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

Untitled

By: a guest on Nov 5th, 2012  |  syntax: None  |  size: 0.57 KB  |  views: 6  |  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. <section id="omc-sidebar" class="omc-right">
  2.  
  3.         <a href="#top" class="omc-mobile-back-to-top"><?php _e('Back to Top', 'gonzo');?> &uarr;</a>
  4.        
  5.         <ul class="xoxo">
  6.                 <?php  
  7.                         if ( have_posts() ) : while ( have_posts() ) : the_post();
  8.                                 $post_custom = get_post_meta($post->ID,'omc_page_sidebar',true);
  9.                         endwhile; endif;
  10.                        
  11.                         if (!empty($post_custom)){
  12.                                 dynamic_sidebar($post_custom);
  13.                         } else {
  14.                                 dynamic_sidebar(get_sidebar_name());
  15.                         }        
  16.                 ?>                                     
  17.  
  18.         </ul><!-- /xoxo -->
  19.  
  20. </section>     
  21.  
  22. <br class="clear" />
  23.        
  24. </div> <!--! end of #container -->