-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.php
More file actions
91 lines (72 loc) · 3.4 KB
/
index.php
File metadata and controls
91 lines (72 loc) · 3.4 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* The template for starting The Loop and rendering general content features such as the breadcrumbs, pagination, and sidebars. Uses
* get_template_part to render the appropriate template based on the current post's format.
*
* @package Standard
* @since 3.0
* @version 3.1
*/
?>
<?php get_header(); ?>
<?php $presentation_options = get_option( 'standard_theme_presentation_options' ); ?>
<div id="wrapper">
<div class="container">
<div class="row">
<?php if ( 'left_sidebar_layout' == $presentation_options['layout'] ) { ?>
<?php get_sidebar(); ?>
<?php } // end if ?>
<div id="main" class="<?php echo 'full_width_layout' == $presentation_options['layout'] ? 'span12 fullwidth' : 'span8'; ?> clearfix" role="main">
<?php get_template_part( 'breadcrumbs' ); ?>
<?php if ( is_archive() ) { ?>
<div id="archive-page-title">
<h3>
<?php _e( 'Archives For ', 'standard' ); ?>
<?php if( standard_is_date_archive() ) { ?>
<?php echo standard_get_date_archive_label(); ?>
<?php } elseif ( is_author() ) { ?>
<?php
$author_data = standard_is_using_pretty_permalinks() ?
get_userdata( get_query_var( 'author' ) ) :
get_userdata( user_trailingslashit( get_query_var( 'author' ) ) );
echo ( null == $author_data ) ? get_query_var( 'author_name' ) : $author_data->display_name;
?>
<?php } elseif ( '' == single_tag_title( '', false ) ) { ?>
<?php echo get_cat_name( get_query_var( 'cat' ) ); ?>
<?php } else { ?>
<?php echo single_tag_title() ?>
<?php } // end if/else ?>
</h3>
<?php if( '' != category_description() ) { ?>
<?php echo category_description(); ?>
<?php } // end if ?>
</div>
<?php } // end if ?>
<?php if ( have_posts() ) { ?>
<?php while ( have_posts() ) { ?>
<?php the_post(); ?>
<?php get_template_part( 'loop', get_post_format() ); ?>
<?php } // end while ?>
<?php // If infinite scroll is on, the we won't render pagination ?>
<?php if( false == wp_script_is( 'the-neverending-homepage-css' ) ) { ?>
<?php get_template_part( 'pagination' ); ?>
<?php } // end if ?>
<?php } else { ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Page or resource not found', 'standard' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'No results were found.', 'standard' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php } // end if/else ?>
</div><!-- /#main -->
<?php if ( 'right_sidebar_layout' == $presentation_options['layout'] ) { ?>
<?php get_sidebar(); ?>
<?php } // end if ?>
</div><!-- /row -->
</div><!-- /container -->
</div> <!-- /#wrapper -->
<?php get_footer(); ?>