/
index.php
executable file
·44 lines (44 loc) · 1.9 KB
/
index.php
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
<?php
get_template_part('banner', 'header') ;
$image_uri=get_template_directory_uri(). '/images' ;?>
<div class="container">
<div class="row-fluid">
<div class="<?php if( is_active_sidebar('sidebar-primary')) { echo "span8"; } else { echo "span12"; } ?> blog_left">
<?php
//$post_type_data = new WP_Query( $args );
while(have_posts()):the_post(); ?>
<div class="blog_section" id="post-<?php the_ID(); ?>">
<h2 class="blog_section_title">
<a href="<?php the_permalink(); ?>"title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<!--Link Section-->
<div class="blog_link">
<span><img src="<?php echo $image_uri. '/blog_ic.png' ?>"> <?php the_time('M j,Y');?></span>
<span><a><img src="<?php echo $image_uri. '/blog_ic2.png'?>"> <?php comments_popup_link( __( 'Leave a comment', 'busi_prof' ) ); ?></a></span>
<span><a><img class="post-cate" src="<?php echo $image_uri. '/blog_ic3.png'?>"><?php the_category(', '); ?></a></span>
</div>
<!--Link Section-->
<?php $defalt_arg =array('class' => "blog_section_img" )?>
<?php if(has_post_thumbnail()):?>
<a href="<?php the_permalink(); ?>"title="<?php the_title(); ?>"><?php the_post_thumbnail('', $defalt_arg); ?>
</a>
<?php endif;?>
<div class="blog_con_mn">
<?php the_content( __( 'Read More' , 'busi_prof' ) ); ?>
</div>
<div class="blog_bot_mn">
<span><?php the_tags('<b>'.__('Tags:','busi_prof').'</b>','');?></span>
</div>
</div>
<?php endwhile ?>
<div class="pagination_blog">
<ul>
<li class="paginanext"><?php previous_posts_link(); ?></li>
<li class="paginanext"><?php next_posts_link(); ?></li>
</ul>
</div>
</div>
<?php get_sidebar();?>
</div>
</div>
<?php get_footer();?>