Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <div class="row inner-page-title-container">
  6. <?php
  7. global $wp_query;
  8. echo '<h3>'.__('Blog', EWF_SETUP_THEME_DOMAIN).'</h3>';
  9. ?>
  10. </div>
  11.  
  12. <div class="row fixed">
  13. <div class="col-220">
  14. <?php
  15. ewf_setSection('zone-sidebar');
  16. if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-page') );
  17. ?>
  18. </div>
  19.  
  20. <div class="col-700 last">
  21. <div class="blog-post">
  22. <?php
  23.  
  24. $src = null;
  25.  
  26. if ( have_posts() ) while ( have_posts() ) : the_post();
  27. $src .= '<div class="blog-post">';
  28. $src .= '<h3><a href="' . get_permalink() . '" rel="bookmark">'.get_the_title($post->ID).'</a></h3>' ;
  29. $src .= '<p>'.__('Posted by', EWF_SETUP_THEME_DOMAIN).':<strong>'.get_the_author().'</strong> | '.__('Posted on',EWF_SETUP_THEME_DOMAIN).': <strong>'.get_the_time('F jS, Y').'</strong> | <a href="'.get_comments_link().'">'.get_comments_number().' '.__('Comments', EWF_SETUP_THEME_DOMAIN).'</a></p>';
  30.  
  31. $src .= get_the_content();
  32.  
  33. $src .= '<p class="text-right"><a href="'.get_permalink().'">'.__('Read More', EWF_SETUP_THEME_DOMAIN).'</a></p>';
  34. $src .= '</div>';
  35. $src .= '<div class="hr-alt2"></div>';
  36.  
  37. endwhile;
  38.  
  39. if ($wp_query->found_posts > $wp_query->query_vars['posts_per_page']){
  40. $src .= ewf_sc_blog_navigation($wp_query->query_vars['posts_per_page'], $wp_query);
  41. }
  42.  
  43. echo $src;
  44.  
  45. ?>
  46. </div>
  47. </div>
  48. </div>
  49.  
  50. </div>
  51.  
  52. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment