Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Blank - No Header | No Footer
  4. */
  5. ?>
  6.  
  7. <?php get_header('alt'); ?>
  8.  
  9. <?php
  10. global $sf_options;
  11. $default_sidebar_config = $sf_options['default_sidebar_config'];
  12. $default_left_sidebar = $sf_options['default_left_sidebar'];
  13. $default_right_sidebar = $sf_options['default_right_sidebar'];
  14.  
  15. $sidebar_config = sf_get_post_meta($post->ID, 'sf_sidebar_config', true);
  16. $left_sidebar = sf_get_post_meta($post->ID, 'sf_left_sidebar', true);
  17. $right_sidebar = sf_get_post_meta($post->ID, 'sf_right_sidebar', true);
  18.  
  19. if ($sidebar_config == "") {
  20. $sidebar_config = $default_sidebar_config;
  21. }
  22. if ($left_sidebar == "") {
  23. $left_sidebar = $default_left_sidebar;
  24. }
  25. if ($right_sidebar == "") {
  26. $right_sidebar = $default_right_sidebar;
  27. }
  28.  
  29. ?>
  30.  
  31. <div class="container">
  32.  
  33. <?php sf_base_layout('page'); ?>
  34.  
  35. <?php get_footer('alt'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement