Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Atul

By: a guest on Jun 2nd, 2010  |  syntax: PHP  |  size: 1.85 KB  |  views: 224  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div class="clear"></div>
  2. </div>
  3. <div class="clear"></div>
  4. </div>
  5. <div class="clear"></div>
  6. </div>
  7. <div class="clear"></div>
  8. </div>
  9.  
  10. <div id="footbg"><!--footer background 100% -->
  11.  
  12. <div id="footwrap"><!--align footer content with main content-->       
  13.         <div id="flickr">
  14.         <?php
  15.         $myposts = get_posts('numberposts=110&offset=0&orderby=rand&category='.$category);
  16.         $postshtmlcount = 0;
  17.         foreach($myposts as $post){
  18.                 $custom = get_post_custom($post->ID);
  19.                 $thumb = $custom['videoswiper-embed-thumb'][0];
  20.                 if($thumb and ($postshtmlcount < 11)){
  21.                         $postshtmlcount++;
  22.         ?>                     
  23.                 <a href="<?php echo get_permalink($post->ID);?>" title="<?php the_title_attribute();?>" class="<?php echo ($postshtmlcount == 11?'flickr_last':'flickr'); ?>"><img src="<?php echo $thumb;?>" alt="<?php the_title_attribute();?>" width="69" height="53"></a>
  24.         <?php
  25.                 }
  26.         }
  27.         ?>
  28.         </div>
  29.         <div class="footer-links">
  30.                 <h2>Recent Videos</h2>
  31.                 <ul>
  32.                         <?php get_archives('postbypost', '5', 'custom', '<li>', '</li>');; ?>
  33.                 </ul>
  34.         </div>
  35.        
  36.         <div class="footer-links">
  37.                 <h2>Most Popular Videos</h2>
  38.                 <?php
  39.                 if (function_exists('todays_overall_count_widget')) {
  40.                         todays_overall_count_widget('views', 'ul');
  41.                 } ?>
  42.         </div>
  43.        
  44.         <div class="footer-links-r">
  45.                 <h2>Videos Been Watched</h2>
  46.                 <?php
  47.                 if (function_exists('todays_count_widget')) {
  48.                         todays_count_widget('views', 'ul');
  49.                 } ?>
  50.         </div>
  51.        
  52.         <br clear="all" />
  53.        
  54.         <div id="copyright">
  55.                 <ul>
  56.                         <li><strong><a href="#top-panel">Back to Top</a></strong></li>
  57.                 </ul>
  58.                 Powered by <a href="http://www.wordpress.org">Wordpress</a> | Theme by <a href="http://www.blogohblog.com" title="Free WordPress Themes">Blog Oh! blog</a> | Modified for <a href="http://www.smartvideoplus.com" title="WordPress Video Plugin">SmartVideoPlus</a>
  59.         </div>
  60. </div><!--close footer wrap -->
  61. </div><!--close footer -->
  62. </body>
  63. </html>
clone this paste RAW Paste Data