wildmercury

Newpaper6 loop-single.php

Dec 3rd, 2015
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.45 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The single post loop Default template
  4.  **/
  5.  
  6. if (have_posts()) {
  7.     the_post();
  8.  
  9.     $td_mod_single = new td_module_single($post);
  10.     ?>
  11.  
  12.     <article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
  13.         <div class="td-post-header">
  14.  
  15.             <?php echo $td_mod_single->get_category(); ?>
  16.  
  17.             <header class="td-post-title">
  18.                 <?php echo $td_mod_single->get_title();?>
  19.  
  20.  
  21.                 <?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
  22.                     <p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
  23.                 <?php } ?>
  24.  
  25.  
  26.                 <div class="td-module-meta-info">
  27.                     <?php echo $td_mod_single->get_author();?>
  28.                     <?php echo $td_mod_single->get_date(false);?>
  29.                     <?php echo $td_mod_single->get_comments();?>
  30.                     <?php echo $td_mod_single->get_views();?>
  31.                 </div>
  32.  
  33.             </header>
  34.  
  35.         </div>
  36.  
  37.         <?php echo $td_mod_single->get_social_sharing_top();?>
  38.  
  39.  
  40.         <div class="td-post-content">
  41.  
  42.         <?php
  43.         // override the default featured image by the templates (single.php and home.php/index.php - blog loop)
  44.         if (!empty(td_global::$load_featured_img_from_template)) {
  45.             echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
  46.         } else {
  47.             echo $td_mod_single->get_image('td_696x0');
  48.         }
  49.         ?>
  50.  
  51.         <?php echo $td_mod_single->get_content();?>
  52.         </div>
  53.  
  54.  
  55.         <footer>
  56.             <?php echo $td_mod_single->get_post_pagination();?>
  57.             <?php echo $td_mod_single->get_review();?>
  58.  
  59.             <div class="td-post-source-tags">
  60.                 <?php echo $td_mod_single->get_source_and_via();?>
  61.                 <?php echo $td_mod_single->get_the_tags();?>
  62.             </div>
  63.  
  64.             <?php echo $td_mod_single->get_social_sharing_bottom();?>
  65.             <?php echo $td_mod_single->get_next_prev_posts();?>
  66.             <?php echo $td_mod_single->get_author_box();?>
  67.             <?php echo $td_mod_single->get_item_scope_meta();?>
  68.         </footer>
  69.  
  70.     </article> <!-- /.post -->
  71.  
  72.     <?php echo $td_mod_single->related_posts();?>
  73.  
  74. <?php
  75. } else {
  76.     //no posts
  77.     echo td_page_generator::no_posts();
  78. }
Advertisement
Add Comment
Please, Sign In to add comment