Guest User

Untitled

a guest
Dec 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php $has_sidebar = ss_framework_check_page_layout(); ?>
  4.  
  5. <?php $page_title = ss_framework_get_custom_field('ss_page_title') ? ss_framework_get_custom_field('ss_page_title') : get_the_title(); ?>
  6.  
  7. <section id="content" class="clearfix <?php echo ss_framework_check_sidebar_position(); ?>">
  8.  
  9. <div class="container">
  10.  
  11. <?php if ( !is_front_page() && ss_framework_get_custom_field('ss_disable_page_header') != '1' ): ?>
  12.  
  13. <header class="page-header">
  14.  
  15. <h1 class="page-title"><?php echo $page_title ?></h1>
  16.  
  17. <?php if( ss_framework_get_custom_field('ss_page_description') ): ?>
  18.  
  19. <hr />
  20.  
  21. <h2 class="page-description"><?php echo ss_framework_get_custom_field('ss_page_description'); ?></h2>
  22.  
  23. <?php endif; ?>
  24.  
  25. <?php if( ss_framework_get_custom_field('ss_page_subdescription') ): ?>
  26.  
  27. <hr />
  28.  
  29. <h2 class="page-subdescription"><?php echo ss_framework_get_custom_field('ss_page_subdescription'); ?></h2>
  30.  
  31. <?php endif; ?>
  32.  
  33. <?php do_action('ss_framework_portfolio_filter'); ?>
  34.  
  35. </header><!-- end .page-header -->
  36.  
  37. <?php endif; ?>
  38.  
  39.  
  40. <?php if( $has_sidebar ): ?>
  41.  
  42. <section id="main">
  43.  
  44. <?php endif; ?>
  45.  
  46.  
  47. <?php if (have_posts()) while ( have_posts() ): the_post(); ?>
  48.  
  49. <?php the_content(); ?>
  50.  
  51. <?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'ss_framework' ), 'after' => '' ) ); ?>
  52.  
  53. <p><?php edit_post_link( __( 'Edit', 'ss_framework' ), '', '' ); ?></p>
  54.  
  55. <?php endwhile; ?>
  56.  
  57.  
  58. <?php if( $has_sidebar ): ?>
  59.  
  60. </section><!-- end #main -->
  61.  
  62. <?php get_sidebar(); ?>
  63.  
  64. <?php endif; ?>
  65.  
  66. </div><!-- end .container -->
  67.  
  68. </section><!-- end #content -->
  69.  
  70. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment