-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
73 lines (57 loc) · 2.28 KB
/
index.php
File metadata and controls
73 lines (57 loc) · 2.28 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
<?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.
*
* @package Archetype
* @version 1.0
* @since 1.0
*/
?>
<?php get_header(); ?>
<div id="wrapper">
<div class="container">
<div class="row">
<div id="main" class="col-md-12 clearfix" role="main">
<?php if ( is_archive() ) { ?>
<div id="archive-page-title">
<h3>
<?php _e( 'Archives For ', 'archetype' ); ?>
<?php if ( is_author() ) { ?>
<?php
$author_data = get_userdata( 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 get_template_part( 'pagination' ); ?>
<?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', 'archetype' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'No results were found.', 'archetype' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php } // end if/else ?>
</div><!-- /#main -->
</div><!-- /row -->
</div><!-- /container -->
</div> <!-- /#wrapper -->
<?php get_footer(); ?>