Advertisement
Indradhonu

Modified archive.php--Hueman(2.0.8)

Feb 4th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.16 KB | None | 0 0
  1.  
  2. <?php get_header(); ?>
  3.  
  4.  
  5. <section class="content">
  6.  
  7.  
  8.     <?php get_template_part('inc/page-title'); ?>
  9.  
  10.  
  11.     <div class="pad group">    
  12.         <?php if ((category_description() != '') && !is_paged()) : ?>
  13.  
  14.             <div class="notebox">
  15.  
  16.                 <?php echo category_description(); ?>
  17.  
  18.             </div>
  19.  
  20.         <?php endif; ?>
  21.  
  22.         <?php if ( is_category() && !is_paged() ): // Show slider if posts are not 1 or 0 ?>
  23.  
  24.         <script type="text/javascript">
  25.  
  26.             // Check if first slider image is loaded, and load flexslider on document ready
  27.  
  28.             jQuery(document).ready(function(){
  29.  
  30.             var firstImage = jQuery('#flexslider-catag-featured').find('img').filter(':first'),
  31.  
  32.                 checkforloaded = setInterval(function() {
  33.  
  34.                     var image = firstImage.get(0);
  35.  
  36.                     if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
  37.  
  38.                         clearInterval(checkforloaded);
  39.  
  40.                    
  41.  
  42.                         jQuery('#flexslider-catag-featured').flexslider({
  43.  
  44.                             animation: "slide",
  45.  
  46.                             useCSS: false, // Fix iPad flickering issue
  47.  
  48.                             slideshow: false,
  49.  
  50.                             directionNav: true,
  51.  
  52.                             controlNav: true,
  53.  
  54.                             pauseOnHover: true,
  55.  
  56.                             slideshowSpeed: 7000,
  57.  
  58.                             animationSpeed: 400,
  59.  
  60.                             smoothHeight: true,
  61.  
  62.                             touch: false
  63.  
  64.                         });
  65.  
  66.                    
  67.  
  68.                     }
  69.  
  70.                 }, 20);
  71.  
  72.             });
  73.  
  74.         </script>
  75.  
  76.        
  77.  
  78.     <div class="featured flexslider" id="flexslider-catag-featured">
  79.  
  80.         <ul class="slides">            
  81.  
  82.             <?php while ( have_posts() ): the_post(); ?>
  83.  
  84.             <li>   
  85.  
  86.                 <?php get_template_part('content-featured'); ?>
  87.  
  88.             </li>
  89.  
  90.             <?php endwhile; ?>         
  91.  
  92.         </ul>
  93.  
  94.     </div><!--/.featured-->
  95.  
  96.         <?php endif; ?>    
  97.  
  98.  
  99.         <?php if ( have_posts() ) : ?>
  100.        
  101.  
  102.             <div class="post-list group">
  103.  
  104.                 <?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?>
  105.  
  106.                 <?php get_template_part('content'); ?>
  107.  
  108.                 <?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
  109.  
  110.             </div><!--/.post-list-->
  111.  
  112.        
  113.  
  114.             <?php get_template_part('inc/pagination'); ?>
  115.  
  116.            
  117.  
  118.         <?php endif; ?>
  119.  
  120.        
  121.  
  122.     </div><!--/.pad-->
  123.  
  124.    
  125.  
  126. </section><!--/.content-->
  127.  
  128.  
  129.  
  130. <?php get_sidebar(); ?>
  131.  
  132.  
  133.  
  134. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement