Guest User

Untitled

a guest
Jan 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php
  3. $lcmp_page_head = <<<TXT
  4. <div class="contentLayout">
  5. <div class="sidebar1">
  6. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  7. </div>
  8. <div class="content">
  9.  
  10. TXT;
  11. $lcmp_is_left = strpos($lcmp_page_head,"sidebar");
  12. if($lcmp_is_left===FALSE){
  13. $lcmp_rightdefault = 'default';
  14. $lcmp_leftdefault = 'notdefault';
  15. }else{
  16. $lcmp_leftdefault = 'default';
  17. $lcmp_rightdefault = 'notdefault';
  18. }
  19. ?>
  20. <div class="contentLayout">
  21. <?php
  22. global $lcmp_sidebarloc;
  23. if($lcmp_sidebarloc == $lcmp_leftdefault || $lcmp_sidebarloc == 'left'){ ?>
  24. <div class="sidebar1">
  25. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  26. </div>
  27. <?php } ?>
  28. <div class="content">
  29. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  30. <div class="Post">
  31. <div class="Post-body">
  32. <div class="Post-inner article">
  33. <h2 class="PostHeaderIcon-wrapper">
  34. <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  35. <?php the_title(); ?>
  36. </a></span>
  37. </h2>
  38. <?php $icons = array(); ?>
  39. <?php if (!is_page()) : ?>
  40. <?php ob_start(); ?>
  41. <img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="18" height="18" alt="PostDateIcon" />
  42. <?php the_time(__('F jS, Y', 'kubrick')) ?>
  43. <?php $icons[] = ob_get_clean(); ?>
  44. <?php endif; ?>
  45. <?php if (!is_page()) : ?>
  46. <?php ob_start(); ?>
  47. <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="18" height="18" alt="PostAuthorIcon" />
  48. <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
  49. <?php $icons[] = ob_get_clean(); ?>
  50. <?php endif; ?>
  51. <?php if (current_user_can( 'edit_post', $post->ID )) : ?><?php ob_start(); ?>
  52. <?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
  53. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  54. <?php if (0 != count($icons)): ?>
  55. <div class="PostHeaderIcons metadata-icons">
  56. <?php echo implode(' | ', $icons); ?>
  57.  
  58. </div>
  59. <?php endif; ?>
  60. <div class="PostContent">
  61. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  62.  
  63. </div>
  64. <div class="cleared"></div>
  65. <?php ob_start(); ?>
  66. <?php $icons = array(); ?>
  67. <?php if (!is_page()) : ?>
  68. <?php ob_start(); ?>
  69. <img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="15" height="15" alt="PostCategoryIcon" />
  70. <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  71. <?php $icons[] = ob_get_clean(); ?>
  72. <?php endif; ?>
  73. <?php if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
  74. <img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
  75. <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
  76. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  77. <?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
  78. <img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="16" height="16" alt="PostCommentsIcon" />
  79. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  80. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  81. <?php if (0 != count($icons)): ?>
  82. <div class="PostFooterIcons metadata-icons">
  83. <?php echo implode(' | ', $icons); ?>
  84.  
  85. </div>
  86. <?php endif; ?>
  87. <?php $metadataContent = ob_get_clean(); ?>
  88. <?php if (trim($metadataContent) != ''): ?>
  89. <div class="PostMetadataFooter">
  90. <?php echo $metadataContent; ?>
  91.  
  92. </div>
  93. <?php endif; ?>
  94.  
  95. </div>
  96.  
  97. </div>
  98. </div>
  99.  
  100. <?php comments_template(); ?>
  101. <?php endwhile; ?>
  102. <?php else: ?>
  103. <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
  104. <?php endif; ?>
  105. </div>
  106. <?php
  107. global $lcmp_sidebarloc;
  108. if($lcmp_sidebarloc == $lcmp_rightdefault || $lcmp_sidebarloc == 'right'){ ?>
  109. <div class="sidebar1">
  110. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  111. </div>
  112. <?php } ?>
  113. <?php if(file_exists(TEMPLATEPATH . '/sidebar2.php')){ ?>
  114. <div class="sidebar2">
  115. <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  116. </div>
  117. <?php } ?>
  118. </div>
  119. <div class="cleared"></div>
  120. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment