Advertisement
Guest User

Untitled

a guest
Nov 5th, 2012
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None
  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 -->
Advertisement
RAW Paste Data Copied
Advertisement