Advertisement
AgenceRegard

layout-right-sidebar.php

Nov 18th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <?php
  2. /**
  3. * Right Sidebar layout
  4. */
  5.  
  6.  
  7. if(is_singular()):
  8. global $post;
  9. $st_page_builder = get_page_builder_options($post->ID);
  10. else :
  11. $st_page_builder = array();
  12. endif
  13.  
  14. ?>
  15. <div class="page-wrapper twelve columns right-sidebar b0">
  16.  
  17. <div class="row">
  18. <div class="content-wrapper eight columns b0">
  19. <?php
  20. do_action('st_before_page_template');
  21. do_action('st_page_template');
  22. do_action('st_after_page_template'); ?>
  23. </div>
  24.  
  25. <div class="right-sidebar-wrapper four columns b0">
  26. <div class="right-sidebar sidebar">
  27. <?php
  28. if(empty($st_page_builder['right_sidebar'])){
  29. $st_page_builder['right_sidebar'] ='';
  30. }
  31. do_action('st_sidebar',$st_page_builder['right_sidebar'],'right');
  32. ?>
  33. <div class="clear"></div>
  34. </div>
  35. </div>
  36. <div class="clear"></div>
  37. </div>
  38.  
  39. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement