Guest User

Untitled

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