forked from kunalkushwaha/WPMedium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
74 lines (56 loc) · 2.17 KB
/
Copy pathindex.php
File metadata and controls
74 lines (56 loc) · 2.17 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
<?php
/**
* @package WordPress
* @subpackage WPMedium
* @since WPMedium 1.0
*/
get_header(); ?>
<div id="home" class="hfeed site">
<header id="masthead" class="site-header" role="banner" style="background-image:url(<?php header_image(); ?>);">
<div class="site-header-overlay"></div>
<hgroup>
<div class="site-logo"><?php wpmedium_the_site_logo(); ?></div>
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<p><?php wpmedium_the_social_links(); ?></p>
</hgroup>
<?php if ( is_active_sidebar( 'header-sidebar' ) ) : ?>
<div id="header-sidebar" class="widget-area header-sidebar" role="complementary">
<?php dynamic_sidebar( 'header-sidebar' ); ?>
</div><!-- #secondary -->
<?php endif; ?>
</header><!-- #masthead -->
<div id="main" class="wrapper">
<div id="primary" class="site-content">
<nav class="site-menu">
<ul class="site-menu-links">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => '', 'items_wrap' => '%3$s' ) ); ?>
<?php else : ?>
<?php wpmedium_primary_menu(); ?>
<?php endif; ?>
<li id="menu-item-search" class="menu-item menu-item-search"><?php get_search_form(); ?></li>
</ul>
</nav>
<nav class="site-categories">
<ul class="site-categories-order">
<?php wpmedium_the_index_controls(); ?>
<li class="site-categories-count"><a><?php printf( _n( '%d Post', '%d Posts', $wp_query->found_posts, 'wpmedium' ), $wp_query->found_posts ); ?></a></li>
</ul>
</nav>
<div id="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content' ); ?>
<?php endwhile; ?>
<div style="clear:both"></div>
</div><!-- #content -->
<div class="pagination">
<?php wpmedium_nav_link(); ?>
</div>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
</div><!-- #content -->
<?php endif; // end have_posts() check ?>
</div><!-- #primary -->
</div><!-- #main .wrapper -->
<?php get_footer(); ?>