Advertisement
Guest User

tag.php

a guest
Jun 6th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.77 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="hrlineB"></div>
  3.  
  4.     <div id="singlecontent">
  5.        
  6.     <?php get_template_part('/includes/mag-ticker-random');?>
  7.    
  8.     <?php if (have_posts()) : ?>
  9.    
  10.         <?php $post = $posts[0]; ?>
  11.         <?php if (is_category()) { ?>
  12.        
  13.             <h2 class="leading"><?php _e('Archive for the','themnific');?> &#8216;<?php single_cat_title(); ?>&#8217; <?php _e('Category','themnific');?></h2>
  14.        
  15.         <?php } elseif( is_tag() ) { ?>
  16.        
  17.             <h2 class="leadingB"><?php _e('Tutorials Tagged','themnific');?> &#8216;<?php single_tag_title(); ?>&#8217;</h2>
  18.           <div id="category-tags"><ul><li><a href="/category/tutorials/"><< All Tutorials</a></li></ul></div>
  19.         <?php } ?>
  20.            
  21.             <div class="hrline"><span></span></div>
  22.             <ul id="tutorials" class="tutorialspost">
  23.          
  24.                 <?php while (have_posts()) : the_post(); ?>
  25.                                                    
  26.                     <?php get_template_part('/includes/post-types/tutorialspost');?>
  27.                    
  28.                 <?php endwhile; ?>   <!-- end post -->
  29.                    
  30.             </ul><!-- end latest posts section-->
  31.            
  32.             <div style="clear: both;"></div>
  33.  
  34.                     <div class="pagination"><?php pagination('&laquo;', '&raquo;'); ?></div>
  35.  
  36.                     <?php else : ?>
  37.            
  38.  
  39.                         <h1>Sorry, no posts matched your criteria.</h1>
  40.                         <?php get_search_form(); ?><br/>
  41.                     <?php endif; ?>
  42.  
  43.         </div><!-- end #homesingle-->
  44.  
  45.         <div id="sidebar" class="body2 boxshadow">
  46.                 <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sidebar") ) : ?>
  47.                 <?php endif; ?>
  48.         </div><!-- #homeright -->
  49.  
  50. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement