Advertisement
Guest User

single-destinations

a guest
May 1st, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4.  
  5. <div class="content-outer-wrapper">
  6.  
  7. <div class="content-wrapper container main ">
  8.  
  9. <?php
  10.  
  11. // Check and get Sidebar Class
  12.  
  13. $sidebar = get_post_meta($post->ID,'post-option-sidebar-template',true);
  14.  
  15. if( empty($sidebar) ){
  16.  
  17. global $default_post_sidebar;
  18.  
  19. $sidebar = $default_post_sidebar;
  20.  
  21. }
  22.  
  23. $sidebar_array = gdl_get_sidebar_size( $sidebar );
  24.  
  25.  
  26.  
  27. // Translator words
  28.  
  29. if( $gdl_admin_translator == 'enable' ){
  30.  
  31. $translator_about_author = get_option(THEME_SHORT_NAME.'_translator_about_author', 'About the Author');
  32.  
  33. $translator_social_share = get_option(THEME_SHORT_NAME.'_translator_social_shares', 'Social Share');
  34.  
  35. }else{
  36.  
  37. $translator_about_author = __('About the Author','gdl_front_end');
  38.  
  39. $translator_social_share = __('Social Share','gdl_front_end');
  40.  
  41. }
  42.  
  43. ?>
  44.  
  45. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  46.  
  47. <div class="page-wrapper single-blog <?php echo $sidebar_array['sidebar_class']; ?>">
  48.  
  49. <?php
  50.  
  51. global $left_sidebar, $right_sidebar, $default_post_left_sidebar, $default_post_right_sidebar;
  52.  
  53. $left_sidebar = get_post_meta( $post->ID , "post-option-choose-left-sidebar", true);
  54.  
  55. $right_sidebar = get_post_meta( $post->ID , "post-option-choose-right-sidebar", true);
  56.  
  57. if( empty( $left_sidebar )){ $left_sidebar = $default_post_left_sidebar; }
  58.  
  59. if( empty( $right_sidebar )){ $right_sidebar = $default_post_right_sidebar; }
  60.  
  61.  
  62.  
  63. global $blog_single_size, $sidebar_type;
  64.  
  65. $item_size = $blog_single_size[$sidebar_type];
  66.  
  67.  
  68.  
  69. // starting the content
  70.  
  71. echo '<div class="row gdl-page-row-wrapper">';
  72.  
  73. echo '<div class="gdl-page-left mb0 ' . $sidebar_array['page_left_class'] . '">';
  74.  
  75.  
  76.  
  77. echo '<div class="row">';
  78.  
  79. echo '<div class="gdl-page-item mb0 pb20 gdl-blog-full ' . $sidebar_array['page_item_class'] . '">';
  80.  
  81. if ( have_posts() ){
  82.  
  83. while (have_posts()){
  84.  
  85. the_post();
  86.  
  87.  
  88.  
  89. // blog thumbnail
  90.  
  91. print_single_blog_thumbnail( get_the_ID(), $item_size );
  92.  
  93.  
  94.  
  95. echo '<div class="blog-content-wrapper">';
  96.  
  97.  
  98.  
  99. // blog title
  100.  
  101. echo '<h1 class="blog-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h1>';
  102.  
  103.  
  104.  
  105.  
  106.  
  107. <?php echo do_shortcode('[ct id="ct_Flight_Tim_text_1d66" property="value"]'); ?>
  108.  
  109.  
  110. [ct id="ct_Flight_Tim_text_1d66" property="value"]
  111.  
  112.  
  113.  
  114. // blog content
  115.  
  116.  
  117. echo '<div class="blog-content">';
  118.  
  119. the_content();
  120.  
  121. wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'gdl_front_end' ) . '</span>', 'after' => '</div>' ) );
  122.  
  123. echo '<div class="clear"></div>';
  124.  
  125. echo '</div>';
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. // Include Social Shares
  136.  
  137. if(get_post_meta($post->ID, 'post-option-social-enabled', true) != "No"){
  138.  
  139. echo "<h3 class='social-share-title'>" . $translator_social_share . '</h3>';
  140.  
  141. include_social_shares();
  142.  
  143. echo "<div class='clear'></div>";
  144.  
  145. }
  146.  
  147.  
  148.  
  149. echo '<div class="comment-wrapper">';
  150.  
  151. comments_template();
  152.  
  153. echo '</div>';
  154.  
  155.  
  156.  
  157. echo '</div>'; // blog content wrapper
  158.  
  159. }
  160.  
  161. }
  162.  
  163. echo "</div>"; // end of gdl-page-item
  164.  
  165.  
  166.  
  167. get_sidebar('left');
  168.  
  169. echo '<div class="clear"></div>';
  170.  
  171. echo "</div>"; // row
  172.  
  173. echo "</div>"; // gdl-page-left
  174.  
  175.  
  176.  
  177. get_sidebar('right');
  178.  
  179. echo '<div class="clear"></div>';
  180.  
  181. echo "</div>"; // row
  182.  
  183. ?>
  184.  
  185. <div class="clear"></div>
  186.  
  187. </div> <!-- page wrapper -->
  188.  
  189. </div> <!-- post class -->
  190.  
  191. </div> <!-- content wrapper -->
  192.  
  193. </div> <!-- content outer wrapper -->
  194.  
  195. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement