Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="news-holder cf">
- <ul class="news-headlines">
- <li class="selected">
- <?php $recent = new WP_Query(array( 'cat' => $categories, 'showposts' => 1 , 'offset' => 0 )); while($recent->have_posts()) : $recent->the_post();?>
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"></a>
- <?php } ?>
- <a href="<?php the_permalink(); ?>"><?php short_title(68); ?></a>
- </li>
- <?php endwhile; ?>
- <li >
- <?php $recent = new WP_Query(array( 'cat' => $categories, 'showposts' => 5 , 'offset' => 1 )); while($recent->have_posts()) : $recent->the_post();?>
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"></a>
- <?php } ?>
- <a href="<?php the_permalink(); ?>"><?php short_title(68); ?></a>
- </li>
- <?php endwhile; ?>
- <!-- li.highlight gets inserted here -->
- </ul>
- <div class="news-preview">
- <div class="news-content">
- <?php $recent = new WP_Query(array( 'cat' => $categories, 'showposts' => 6 )); while($recent->have_posts()) : $recent->the_post();?>
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'large-thumb', array( 'class' => 'img-large' ) ); ?></a>
- <?php } ?>
- <p><a href="<?php the_permalink() ?>" rel="bookmark"><?php short_title(84); ?></a></p>
- <p><?php echo excerpt(43); ?></p>
- <?php endwhile; ?>
- </div><!-- .news-content -->
- </div><!-- .news-preview -->
- </div><!-- .news-holder -->
- <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/vertical.news.slider.js"></script>
- <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/css/vertical.news.slider.css" />
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="js/jquery-1.8.1.min.js"><\/script>')</script>
- <script src="js/vertical.news.slider.js"></script>
- <script>
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-1965499-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement