Advertisement
Guest User

vns

a guest
Nov 2nd, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.93 KB | None | 0 0
  1. <div class="news-holder cf">
  2.  
  3.     <ul class="news-headlines">
  4.       <li class="selected">
  5.  
  6.        
  7.  
  8.       <?php $recent = new WP_Query(array( 'cat' => $categories, 'showposts' => 1 , 'offset'  => 0 )); while($recent->have_posts()) : $recent->the_post();?>
  9.                        
  10.                             <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
  11.                            
  12.                                 <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"></a>
  13.                            
  14.                             <?php } ?>
  15.                            
  16.                                
  17.                                 <a href="<?php the_permalink(); ?>"><?php short_title(68); ?></a>
  18.  
  19.  
  20.       </li>
  21.  
  22.  
  23.  
  24. <?php endwhile; ?>
  25.  
  26.   <li >
  27.  
  28.        
  29.  
  30.       <?php $recent = new WP_Query(array( 'cat' => $categories, 'showposts' => 5 , 'offset'  => 1 )); while($recent->have_posts()) : $recent->the_post();?>
  31.                        
  32.                             <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
  33.                            
  34.                                 <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"></a>
  35.                            
  36.                             <?php } ?>
  37.                            
  38.                                
  39.                                 <a href="<?php the_permalink(); ?>"><?php short_title(68); ?></a>
  40.  
  41.  
  42.       </li>
  43.  
  44.  
  45.  
  46. <?php endwhile; ?>
  47.  
  48.       <!-- li.highlight gets inserted here -->
  49.     </ul>
  50.  
  51.  
  52.     <div class="news-preview">
  53.  
  54.       <div class="news-content">
  55.  
  56.         <?php $recent = new WP_Query(array( 'cat' => $categories, 'showposts' => 6 )); while($recent->have_posts()) : $recent->the_post();?>
  57.                        
  58.                             <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
  59.                            
  60.                                 <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'large-thumb', array( 'class' => 'img-large' ) ); ?></a>
  61.                            
  62.                             <?php } ?>
  63.  
  64.         <p><a href="<?php the_permalink() ?>" rel="bookmark"><?php short_title(84); ?></a></p>
  65.  
  66.         <p><?php echo excerpt(43); ?></p>
  67.  
  68.         <?php endwhile; ?>
  69.       </div><!-- .news-content -->
  70.  
  71.  
  72.      
  73.  
  74.  
  75.     </div><!-- .news-preview -->
  76.  
  77.   </div><!-- .news-holder -->
  78.  
  79.  
  80.  
  81. <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/vertical.news.slider.js"></script>
  82.  
  83.  
  84. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/css/vertical.news.slider.css" />
  85.  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
  86.   <script>window.jQuery || document.write('<script src="js/jquery-1.8.1.min.js"><\/script>')</script>
  87.   <script src="js/vertical.news.slider.js"></script>
  88.   <script>
  89.     var _gaq = _gaq || [];
  90.     _gaq.push(['_setAccount', 'UA-1965499-1']);
  91.     _gaq.push(['_trackPageview']);
  92.  
  93.     (function() {
  94.       var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  95.       ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  96.       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  97.     })();
  98.   </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement