Guest User

Untitled

a guest
Mar 30th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <?php
  2. /* ----------------------------------------------------------------------------
  3. the page template
  4. */
  5.  
  6.  
  7. get_header();
  8.  
  9.  
  10. //set the template id, used to get the template specific settings
  11. $template_id = 'page';
  12.  
  13.  
  14. $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
  15.  
  16.  
  17. //read the custom single post settings - this setting overids all of them
  18. $td_page = get_post_meta($post->ID, 'td_page', true);
  19. if (!empty($td_page['td_sidebar_position'])) {
  20. $loop_sidebar_position = $td_page['td_sidebar_position'];
  21. }
  22.  
  23. echo td_page_generator::wrap_start();
  24. ?>
  25. <div class="span12 column_container td-no-pagination" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
  26.  
  27. <?php
  28. if (have_posts()) {
  29. while ( have_posts() ) : the_post();
  30. echo td_page_generator::get_page_breadcrumbs(get_the_title());
  31. ?>
  32. <h1 itemprop="name" class="entry-title td-page-title">
  33. <?php /*<a itemprop="url" href="<?php the_permalink()?>" rel="bookmark" title="<?php the_title_attribute() ?>"><?php the_title() ?></a>*/?>
  34. <span><?php the_title() ?></span>
  35. </h1>
  36.  
  37. <div class="td-page-text-content"><?php the_content();?></div>
  38.  
  39. <?php
  40. if (td_util::get_option('tds_disable_comments_pages') == 'show_comments') {
  41. comments_template('', true);
  42. }
  43. endwhile; //end loop
  44. }
  45. ?>
  46.  
  47. </div>
  48. <?php
  49. echo td_page_generator::wrap_end();
  50.  
  51.  
  52. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment