initial commit
This commit is contained in:
44
app/webroot/blog/wp-content/themes/expense-blog/index.php
Normal file
44
app/webroot/blog/wp-content/themes/expense-blog/index.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php get_header(); ?>
|
||||
<div class="block-2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php
|
||||
// Start the loop.
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
/*
|
||||
* Include the Post-Format-specific template for the content.
|
||||
* If you want to override this in a child theme, then include a file
|
||||
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||
*/?>
|
||||
<div class="single-blog row">
|
||||
<div class="col-sm-4">
|
||||
<?php the_post_thumbnail(); ?>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<h2><a href="<?php echo the_permalink(); ?>"><?php echo the_title(); ?></a></h2>
|
||||
<?php echo the_excerpt(); ?>
|
||||
<div class="post-meta">
|
||||
<p><b>Published : </b><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?></a>
|
||||
<a href="<?php echo the_permalink(); ?>" class="view-more-btn text-right">View More</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php // End the loop.
|
||||
endwhile;
|
||||
|
||||
// If no content, include the "No posts found" template.
|
||||
else :
|
||||
get_template_part( 'content', 'none' );
|
||||
|
||||
endif;
|
||||
if(function_exists('wp_pagenavi'))
|
||||
wp_pagenavi();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user