Guest User

Untitled

a guest
Jun 17th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.92 KB | None | 0 0
  1. <?php
  2. /* ----------------------------------------------------------------------------
  3. the author template
  4. */
  5.  
  6. get_header();
  7.  
  8.  
  9.  
  10.  
  11. //set the template id, used to get the template specific settings
  12. $template_id = 'tag';
  13.  
  14. //prepare the loop variables
  15. global $loop_module_id, $loop_sidebar_position;
  16. $loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
  17. $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
  18.  
  19.  
  20.  
  21. $current_tag_name = single_tag_title( '', false );
  22. ?>
  23.  
  24. <div class="td-container">
  25. <div class="td-container-border">
  26. <div class="td-pb-row">
  27. <?php
  28. switch ($loop_sidebar_position) {
  29. default:
  30. ?>
  31. <div class="td-pb-span8 td-main-content">
  32. <div class="td-ss-main-content">
  33. <div class="td-page-header td-pb-padding-side">
  34. <?php echo td_page_generator::get_tag_breadcrumbs($current_tag_name);?>
  35.  
  36. <h1 class="entry-title td-page-title">
  37. <?php /*<a itemprop="url" href="<?php echo get_tag_link(get_query_var('tag_id'));?>" rel="bookmark" title="<?php echo __td('Posts in ') . $current_tag_name?>"><?php echo $current_tag_name ?></a>*/?>
  38. <span style="text-transform: uppercase;"> <?php echo $current_tag_name ?></span>
  39. </h1>
  40. </div>
  41. <?php
  42. $td_tag_description = tag_description();
  43. if (!empty($td_tag_description)) {
  44. echo '<div class="entry-content td-pb-padding-side">';
  45. echo $td_tag_description;
  46. echo '</div>';
  47. }
  48. locate_template('loop.php', true);
  49.  
  50. echo td_page_generator::get_pagination();
  51. ?>
  52. </div>
  53. </div>
  54. <div class="td-pb-span4 td-main-sidebar">
  55. <div class="td-ss-main-sidebar">
  56. <?php get_sidebar(); ?>
  57. </div>
  58. </div>
  59. <?php
  60. break;
  61.  
  62. case 'sidebar_left':
  63. ?>
  64. <div class="td-pb-span8 td-main-content td-sidebar-left-content">
  65. <div class="td-ss-main-content">
  66. <div class="td-page-header td-pb-padding-side">
  67. <?php echo td_page_generator::get_tag_breadcrumbs($current_tag_name);?>
  68.  
  69. <h1 class="entry-title td-page-title">
  70. <?php /*<a itemprop="url" href="<?php echo get_tag_link(get_query_var('tag_id'));?>" rel="bookmark" title="<?php echo __td('Posts in ') . $current_tag_name?>">Tag: <?php echo $current_tag_name ?></a>*/?>
  71. <span><?php echo __td('Tag');?>: <?php echo $current_tag_name ?></span>
  72. </h1>
  73. </div>
  74.  
  75. <?php
  76. $td_tag_description = tag_description();
  77. if (!empty($td_tag_description)) {
  78. echo '<div class="entry-content">';
  79. echo $td_tag_description;
  80. echo '</div>';
  81. }
  82. locate_template('loop.php', true);
  83.  
  84. echo td_page_generator::get_pagination();
  85. ?>
  86. </div>
  87. </div>
  88. <div class="td-pb-span4 td-main-sidebar">
  89. <div class="td-ss-main-sidebar">
  90. <?php get_sidebar(); ?>
  91. </div>
  92. </div>
  93. <?php
  94. break;
  95.  
  96. case 'no_sidebar':
  97. ?>
  98. <div class="td-pb-span12 td-main-content">
  99. <div class="td-ss-main-content">
  100. <div class="td-page-header td-pb-padding-side">
  101. <?php echo td_page_generator::get_tag_breadcrumbs($current_tag_name);?>
  102.  
  103. <h1 class="entry-title td-page-title">
  104. <?php /*<a itemprop="url" href="<?php echo get_tag_link(get_query_var('tag_id'));?>" rel="bookmark" title="<?php echo __td('Posts in ') . $current_tag_name?>"><?php echo $current_tag_name ?></a>*/?>
  105. <span><?php echo $current_tag_name ?></span>
  106. </h1>
  107. </div>
  108. <?php
  109. $td_tag_description = tag_description();
  110. if (!empty($td_tag_description)) {
  111. echo '<div class="entry-content">';
  112. echo $td_tag_description;
  113. echo '</div>';
  114. }
  115. locate_template('loop.php', true);
  116.  
  117. echo td_page_generator::get_pagination();
  118. ?>
  119. </div>
  120. </div>
  121. <?php
  122. break;
  123. }
  124. ?>
  125. </div> <!-- /.td-pb-row -->
  126. </div>
  127. </div> <!-- /.td-container -->
  128.  
  129. <?php
  130. get_footer();
  131. ?>
Advertisement
Add Comment
Please, Sign In to add comment