Advertisement
Guest User

archive.php

a guest
Feb 2nd, 2012
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.14 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.     <div id="content">
  4.    
  5.         <div id="beforeCategory">
  6.        
  7.             <script>var stage = new swiffy.Stage(document.getElementById("beforeCategory"), swiffyobject);</script>
  8.             <script>stage.start();</script>
  9.        
  10.         </div>
  11.         <div class="entryCategoryAll">
  12.        
  13.         <!--<?php if (is_category()) { ?><h2 class="arh"><?php _e('', 'themezee_lang'); ?> <?php echo single_cat_title(); ?></h2>-->
  14.         <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?><h2 class="arh"><?php _e('Archives', 'themezee_lang'); ?></h2><?php } ?>
  15.  
  16.  <!--------- SUB CAT ------->
  17. <?php
  18.                     if (is_category()) {
  19.                         $this_category = get_category($cat);
  20.                     if (get_category_children($this_category->cat_ID) != "")
  21.                         { echo "<ul>"; wp_list_categories('orderby=id&show_count=0&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID); echo "</ul>"; }}
  22. ?>
  23.   <!---------  END SUB CAT ------->
  24.  
  25.  
  26.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  27.        
  28.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  29.            
  30.                 <!--<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>-->
  31.                    
  32.            
  33.                
  34.                 <div class="entryCategory">
  35.                
  36.                     <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('thumbnail', array('class' => 'alignright')); ?></a>
  37.                     <!--<?php the_content('<span class="moretext">' . __('Read more', 'themezee_lang') . '</span>'); ?>
  38.                     <div class="clear"></div>
  39.                     <?php wp_link_pages(); ?>-->
  40.                 </div>
  41.                
  42.            
  43.                
  44.  
  45.            
  46.  
  47.         <?php endwhile; ?>
  48.            
  49.            
  50.      
  51.             <?php if(function_exists('wp_pagenavi')) { // if PageNavi is activated ?>
  52.                 <div class="more_posts">
  53.                     <?php wp_pagenavi(); ?>
  54.                 </div>
  55.             <?php } else { // Otherwise, use traditional Navigation ?>
  56.                 <div class="more_posts">
  57.                     <span class="post_links"><?php next_posts_link(__('&laquo; Older Entries', 'themezee_lang')) ?> &nbsp; <?php previous_posts_link (__('Recent Entries &raquo;', 'themezee_lang')) ?></span>
  58.                 </div>
  59.             <?php }?>
  60.            
  61.  
  62.         <?php endif; ?>
  63.             </div></div>
  64.     </div>
  65.        
  66.    
  67. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement