-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpage.php
executable file
·56 lines (49 loc) · 1.24 KB
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Page template used by Eclipse.
*
* Authors: Tyler Cunningham, Trent Lapinski
* Copyright: © 2012
* {@link http://cyberchimps.com/ CyberChimps LLC}
*
* Released under the terms of the GNU General Public License.
* You should have received a copy of the GNU General Public License,
* along with this software. In the main directory, see: /licensing/
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Eclipse.
* @since 1.0
*/
/* Header call. */
get_header();
/* End header. */
/* Define global variables. */
global $options, $post, $themeslug;
$page_section_order = get_post_meta($post->ID, $themeslug.'_page_section_order' , true);
if(!$page_section_order) {
$page_section_order = 'page_section';
}
/* End define global variables. */
// Checking for password protection.
if( ! post_password_required() ) {
foreach(explode(",", $page_section_order) as $key) {
$fn = 'response_' . $key;
if(function_exists($fn)) {
call_user_func_array($fn, array());
}
}
}
else {
?>
<!-- Get the form to submit password -->
<div class="row">
<div id="content" class="eight columns">
<div class="post_container">
<?php echo get_the_password_form(); ?>
</div>
</div>
</div>
<?php
}
get_footer();
?>