-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·70 lines (40 loc) · 2.08 KB
/
index.php
File metadata and controls
executable file
·70 lines (40 loc) · 2.08 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
<?php get_header(); ?>
<?php get_template_part('menu_section'); ?>
<div class="section post-single"><!-- SECTION -->
<?php
if (!is_front_page()) {
$current_blog_page_id = get_option('page_for_posts');
?>
<div class="container">
<div class="row">
<div class="sixteen columns">
<!-- START TITLE -->
<div class="title">
<h1 class="header-text"><?php if(get_post_meta( $current_blog_page_id, 'rnr_alt_title', true )){ echo get_post_meta( $current_blog_page_id, 'rnr_alt_title', true ); } else { echo get_the_title($current_blog_page_id); } ?></h1>
<div class="subtitle">
<p><?php if(get_post_meta( $current_blog_page_id, 'rnr_subtitle', true )){ echo get_post_meta( $current_blog_page_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">
<div class="row">
<div class="twelve columns">
<?php if (have_posts()) : while (have_posts()) : the_post();
get_template_part( 'post-format/content', get_post_format() );
endwhile;
get_template_part( 'post-format/pagination' );
else : ?>
<h2><?php _e('No Posts Found', 'rocknrolla') ?></h2>
<?php
endif;
wp_reset_query();
?>
</div><!-- END SPAN8 -->
<?php get_sidebar('blog'); ?>
</div>
</div>
</div><!--END SECTION -->
<?php get_footer(); ?>