PageRenderTime 49ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/aqge/deptandashboard
PHP | 121 lines | 113 code | 8 blank | 0 comment | 28 complexity | 6b1d79175a5ad30041d90ebd02587cc1 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. <?php
  21. global $lcmp_sidebarloc;
  22. if($lcmp_sidebarloc == $lcmp_leftdefault || $lcmp_sidebarloc == 'left'){ ?>
  23. <div class="sidebar1">
  24. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  25. </div>
  26. <?php } ?>
  27. <div class="content">
  28. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  29. <div class="Post">
  30. <div class="Post-body">
  31. <div class="Post-inner article">
  32. <h2 class="PostHeaderIcon-wrapper">
  33. <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  34. <?php the_title(); ?>
  35. </a></span>
  36. </h2>
  37. <?php $icons = array(); ?>
  38. <?php if (!is_page()) : ?>
  39. <?php ob_start(); ?>
  40. <img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="18" height="18" alt="PostDateIcon" />
  41. <?php the_time(__('F jS, Y', 'kubrick')) ?>
  42. <?php $icons[] = ob_get_clean(); ?>
  43. <?php endif; ?>
  44. <?php if (!is_page()) : ?>
  45. <?php ob_start(); ?>
  46. <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="18" height="18" alt="PostAuthorIcon" />
  47. <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
  48. <?php $icons[] = ob_get_clean(); ?>
  49. <?php endif; ?>
  50. <?php if (current_user_can( 'edit_post', $post->ID )) : ?><?php ob_start(); ?>
  51. <img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="20" height="20" alt="PostEditIcon" />
  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. </div>
  58. <?php endif; ?>
  59. <div class="PostContent">
  60. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  61. </div>
  62. <div class="cleared"></div>
  63. <?php ob_start(); ?>
  64. <?php $icons = array(); ?>
  65. <?php if (!is_page()) : ?>
  66. <?php ob_start(); ?>
  67. <img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon" />
  68. <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  69. <?php $icons[] = ob_get_clean(); ?>
  70. <?php endif; ?>
  71. <?php if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
  72. <img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
  73. <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
  74. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  75. <?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
  76. <img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon" />
  77. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  78. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  79. <?php if (0 != count($icons)): ?>
  80. <div class="PostFooterIcons metadata-icons">
  81. <?php echo implode(' | ', $icons); ?>
  82. </div>
  83. <?php endif; ?>
  84. <?php $metadataContent = ob_get_clean(); ?>
  85. <?php if (trim($metadataContent) != ''): ?>
  86. <div class="PostMetadataFooter">
  87. <?php echo $metadataContent; ?>
  88. </div>
  89. <?php endif; ?>
  90. </div>
  91. </div>
  92. </div>
  93. <?php comments_template(); ?>
  94. <?php endwhile; ?>
  95. <?php else: ?>
  96. <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
  97. <?php endif; ?>
  98. </div>
  99. <?php
  100. global $lcmp_sidebarloc;
  101. if($lcmp_sidebarloc == $lcmp_rightdefault || $lcmp_sidebarloc == 'right'){ ?>
  102. <div class="sidebar1">
  103. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  104. </div>
  105. <?php } ?>
  106. <?php if(file_exists(TEMPLATEPATH . '/sidebar2.php')){ ?>
  107. <div class="sidebar2">
  108. <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  109. </div>
  110. <?php } ?>
  111. </div>
  112. <div class="cleared"></div>
  113. <?php get_footer(); ?>