-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
103 lines (81 loc) · 3.13 KB
/
index.php
File metadata and controls
103 lines (81 loc) · 3.13 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
92
93
94
95
96
97
98
99
100
101
102
103
<?php get_header();
$col= 'col-md-8';
if ( is_active_sidebar( 'sidebar' ) ) {
$col = 'col-md-8';
}
?>
<div class="row">
<div id="content" class="site-content <?php echo $col; ?>" role="main">
<?php if ( have_posts() ) { ?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) { the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( is_single() ) { ?>
<h1 class="entry-title">
<?php the_title(); ?>
<?php edit_post_link( __( 'Edit', ZEETEXTDOMAIN ), '<small class="edit-link pull-right">', '</small>' ); ?>
</h1>
<?php } else { ?>
<h2 class="entry-title">
<div class="date-post">
<span class="day-post"><?php echo get_the_date('d'); ?></span>
<span class="month-post"><?php echo get_the_date('M'); ?></span>
</div>
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
<?php if ( is_sticky() && is_home() && ! is_paged() ) { ?>
<sup class="featured-post"><?php _e( 'Sticky', ZEETEXTDOMAIN ) ?></sup>
<?php } ?>
<?php edit_post_link( __( 'Edit', ZEETEXTDOMAIN ), '<small class="edit-link pull-right">', '</small>' ); ?>
</h2>
<?php } //.entry-title ?>
</header><!--/.entry-header -->
<?php if ( is_search() ) { ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<?php } else { ?>
<div class="entry-content" >
<div class="entry-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php echo '<p>' . wp_trim_words( get_the_content(), 50 ); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">[more]</a>
<?php echo '</p>'; ?>
</div>
<div style="clear:both;"></div>
<?php } //.entry-content ?>
<footer>
<?php zee_link_pages(); ?>
</footer>
</article><!--/#post-->
<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?>
<?php get_template_part( 'author-bio' ); ?>
<?php } ?>
<?php } ?>
<?php echo zee_pagination(); ?>
<?php } else { ?>
<?php get_template_part( 'post-templates/content', 'none' ); ?>
<?php } ?>
</div><!-- #content -->
<div id="sidebar" class="col-md-4" role="complementary">
<div class="sidebar-inner">
<aside class="widget-area">
<p class="buble-title">Latest<br/>Posts</p>
<ul class="latest-blogs">
<?php $the_query = new WP_Query( 'showposts=10' ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<li>
<p class="date-post">
<span class="day-post"><?php echo get_the_date('d'); ?></span>
<span class="month-post"><?php echo get_the_date('M'); ?></span>
</p>
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<?php endwhile;?>
</ul>
<br> <?php dynamic_sidebar( 'sidebar' ); ?>
</aside>
</div>
</div>
</div>
<?php get_footer();