PageRenderTime 80ms CodeModel.GetById 6ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/fork_in_the_road_lae044/single.php

https://bitbucket.org/aqge/deptandashboard
PHP | 110 lines | 101 code | 9 blank | 0 comment | 23 complexity | 5b139b86c43c4df3d8f5116c23279ff6 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1
  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. TXT;
  10. $lcmp_is_left = strpos($lcmp_page_head,"sidebar");
  11. if($lcmp_is_left===FALSE){
  12. $lcmp_rightdefault = 'default';
  13. $lcmp_leftdefault = 'notdefault';
  14. }else{
  15. $lcmp_leftdefault = 'default';
  16. $lcmp_rightdefault = 'notdefault';
  17. }
  18. ?>
  19. <div class="contentLayout">
  20. <div class="kelompok_berita">
  21. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  22. <div class="Post">
  23. <div class="Post-body">
  24. <div class="Post-inner article">
  25. <h2 class="PostHeaderIcon-wrapper">
  26. <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  27. <?php the_title(); ?>
  28. </a></span>
  29. </h2>
  30. <?php $icons = array(); ?>
  31. <?php if (!is_page()) : ?>
  32. <?php ob_start(); ?>
  33. <img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="18" height="18" alt="PostDateIcon" />
  34. <?php the_time(__('F jS, Y', 'kubrick')) ?>
  35. <?php $icons[] = ob_get_clean(); ?>
  36. <?php endif; ?>
  37. <?php if (!is_page()) : ?>
  38. <?php ob_start(); ?>
  39. <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="18" height="18" alt="PostAuthorIcon" />
  40. <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
  41. <?php $icons[] = ob_get_clean(); ?>
  42. <?php endif; ?>
  43. <?php if (current_user_can( 'edit_post', $post->ID )) : ?><?php ob_start(); ?>
  44. <img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="20" height="20" alt="PostEditIcon" />
  45. <?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
  46. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  47. <?php if (0 != count($icons)): ?>
  48. <div class="PostHeaderIcons metadata-icons">
  49. <?php echo implode(' | ', $icons); ?>
  50. </div>
  51. <?php endif; ?>
  52. <div class="PostContent">
  53. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  54. </div>
  55. <div class="cleared"></div>
  56. <?php ob_start(); ?>
  57. <?php $icons = array(); ?>
  58. <?php if (!is_page()) : ?>
  59. <?php ob_start(); ?>
  60. <img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon" />
  61. <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  62. <?php $icons[] = ob_get_clean(); ?>
  63. <?php endif; ?>
  64. <?php if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
  65. <img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
  66. <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
  67. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  68. <?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
  69. <img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon" />
  70. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  71. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  72. <?php if (0 != count($icons)): ?>
  73. <div class="PostFooterIcons metadata-icons">
  74. <?php echo implode(' | ', $icons); ?>
  75. </div>
  76. <?php endif; ?>
  77. <?php $metadataContent = ob_get_clean(); ?>
  78. <?php if (trim($metadataContent) != ''): ?>
  79. <div class="PostMetadataFooter">
  80. <?php echo $metadataContent; ?>
  81. </div>
  82. <?php endif; ?>
  83. </div>
  84. </div>
  85. </div>
  86. <?php comments_template(); ?>
  87. <?php endwhile; ?>
  88. <?php else: ?>
  89. <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
  90. <?php endif; ?>
  91. </div>
  92. <?php
  93. global $lcmp_sidebarloc;
  94. if($lcmp_sidebarloc == $lcmp_leftdefault || $lcmp_sidebarloc == 'left'){ ?>
  95. <div class="sidebar1">
  96. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  97. </div>
  98. <?php } ?>
  99. </div>
  100. <div class="cleared"></div>
  101. <?php get_footer(); ?>