-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
executable file
·58 lines (42 loc) · 2.08 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
57
58
<?php get_header(); ?>
<?php
get_template_part('menu_section');
if (have_posts()) : while (have_posts()) : the_post();
global $post;
$post_name = $post->post_name;
$post_id = get_the_ID();
?>
<div id="<?php echo $post_name; ?>" class="page<?php echo $post_id; ?> section<?php if((get_post_meta($post_id, "rnr_assign_home") == true) ){ echo ' fullscreen home';} else { echo ' '.$post_name; }?>"><!-- SECTION -->
<?php if((get_post_meta( get_the_ID(), 'rnr_disable_title', true )!= true) && (get_post_meta($post_id, 'rnr_assign_home', true)!= true) ){ ?>
<div class="container">
<div class="row">
<div class="sixteen columns">
<!-- START TITLE -->
<div class="title">
<h1 class="header-text"><?php if(get_post_meta( get_the_ID(), 'rnr_alt_title', true )){ echo get_post_meta( get_the_ID(), 'rnr_alt_title', true ); } else { the_title(); } ?></h1>
<div class="subtitle">
<p><?php if(get_post_meta( get_the_ID(), 'rnr_subtitle', true )){ echo get_post_meta( get_the_ID(), 'rnr_subtitle', true ); } ?></p>
</div><!-- END SUBTITLE -->
</div><!-- END TITLE -->
</div><!-- END SIXTEEN COLUMNS -->
</div><!-- END ROW -->
</div><!-- END CONTAINER -->
<?php } ?>
<div class="container">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
</div>
</div><!--END SECTION -->
<?php
endwhile;
endif;
wp_reset_query();
?>
<div id="footer">
<div class="container">
<div class="one_half">
<a href="http://crossfit813/wp-content/uploads/2013/08/journal.png"><img class="alignnone size-full wp-image-343" alt="journal" src="http://crossfit813/wp-content/uploads/2013/08/journal.png" width="180" height="90"></a>
</div>
</div>
</div>
<?php get_footer(); ?>