PageRenderTime 65ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/aqge/deptandashboard
PHP | 177 lines | 149 code | 28 blank | 0 comment | 34 complexity | e0793af6b59a72728979e4c98652470d 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
  29. $prev_link = get_previous_posts_link(__('Newer Entries &raquo;', 'kubrick'));
  30. $next_link = get_next_posts_link(__('&laquo; Older Entries', 'kubrick'));
  31. ?>
  32. <?php if ($prev_link || $next_link): ?>
  33. <div class="Post">
  34. <div class="Post-body">
  35. <div class="Post-inner article">
  36. <div class="PostContent">
  37. <div class="navigation">
  38. <div class="alignleft"><?php echo $next_link; ?></div>
  39. <div class="alignright"><?php echo $prev_link; ?></div>
  40. </div>
  41. </div>
  42. <div class="cleared"></div>
  43. </div>
  44. </div>
  45. </div>
  46. <?php endif; ?>
  47. <?php if (have_posts()) : ?>
  48. <?php while (have_posts()) : the_post(); ?>
  49. <div class="Post">
  50. <div class="Post-body">
  51. <div class="Post-inner article">
  52. <h2 class="PostHeaderIcon-wrapper">
  53. <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  54. <?php the_title(); ?>
  55. </a></span>
  56. </h2>
  57. <?php $icons = array(); ?>
  58. <?php if (!is_page()) : ?>
  59. <?php ob_start(); ?>
  60. <img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="18" height="18" alt="PostDateIcon" />
  61. <?php the_time(__('F jS, Y', 'kubrick')) ?>
  62. <?php $icons[] = ob_get_clean(); ?>
  63. <?php endif; ?>
  64. <?php if (!is_page()) : ?>
  65. <?php ob_start(); ?>
  66. <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="18" height="18" alt="PostAuthorIcon" />
  67. <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
  68. <?php $icons[] = ob_get_clean(); ?>
  69. <?php endif; ?>
  70. <?php if (current_user_can( 'edit_post', $post->ID )) : ?><?php ob_start(); ?>
  71. <img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="20" height="20" alt="PostEditIcon" />
  72. <?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
  73. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  74. <?php if (0 != count($icons)): ?>
  75. <div class="PostHeaderIcons metadata-icons">
  76. <?php echo implode(' | ', $icons); ?>
  77. </div>
  78. <?php endif; ?>
  79. <div class="PostContent">
  80. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  81. </div>
  82. <div class="cleared"></div>
  83. <?php ob_start(); ?>
  84. <?php $icons = array(); ?>
  85. <?php if (!is_page()) : ?>
  86. <?php ob_start(); ?>
  87. <img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon" />
  88. <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  89. <?php $icons[] = ob_get_clean(); ?>
  90. <?php endif; ?>
  91. <?php if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
  92. <img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
  93. <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
  94. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  95. <?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
  96. <img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon" />
  97. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  98. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  99. <?php if (0 != count($icons)): ?>
  100. <div class="PostFooterIcons metadata-icons">
  101. <?php echo implode(' | ', $icons); ?>
  102. </div>
  103. <?php endif; ?>
  104. <?php $metadataContent = ob_get_clean(); ?>
  105. <?php if (trim($metadataContent) != ''): ?>
  106. <div class="PostMetadataFooter">
  107. <?php echo $metadataContent; ?>
  108. </div>
  109. <?php endif; ?>
  110. </div>
  111. </div>
  112. </div>
  113. <?php endwhile; ?>
  114. <?php if ($prev_link || $next_link): ?>
  115. <div class="Post">
  116. <div class="Post-body">
  117. <div class="Post-inner article">
  118. <div class="PostContent">
  119. <div class="navigation">
  120. <div class="alignleft"><?php echo $next_link; ?></div>
  121. <div class="alignright"><?php echo $prev_link; ?></div>
  122. </div>
  123. </div>
  124. <div class="cleared"></div>
  125. </div>
  126. </div>
  127. </div>
  128. <?php endif; ?>
  129. <?php else : ?>
  130. <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
  131. <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
  132. if(function_exists('get_search_form')) get_search_form();
  133. <?php endif; ?>
  134. </div>
  135. <?php
  136. global $lcmp_sidebarloc;
  137. if($lcmp_sidebarloc == $lcmp_rightdefault || $lcmp_sidebarloc == 'right'){ ?>
  138. <div class="sidebar1">
  139. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  140. </div>
  141. <?php } ?>
  142. <?php if(file_exists(TEMPLATEPATH . '/sidebar2.php')){ ?>
  143. <div class="sidebar2">
  144. <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  145. </div>
  146. <?php } ?>
  147. </div>
  148. <div class="cleared"></div>
  149. <?php get_footer(); ?>