Advertisement
Guest User

INDEX.PHP FILE

a guest
Oct 6th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.68 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.  
  30. <?php
  31. $prev_link = get_previous_posts_link(__('Postări Mai Noi &raquo;', 'kubrick'));
  32. $next_link = get_next_posts_link(__('&laquo; Postări Mai Vechi', 'kubrick'));
  33. ?>
  34. <br>
  35. <center><script type="text/javascript"><!--
  36. google_ad_client = "ca-pub-4472516631898679";
  37. /* BANNER */
  38. google_ad_slot = "0443286928";
  39. google_ad_width = 468;
  40. google_ad_height = 60;
  41. //-->
  42. </script>
  43. <script type="text/javascript"
  44. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  45. </script></center>
  46.  
  47. <?php if ($prev_link || $next_link): ?>
  48. <div class="Post">
  49. <div class="Post-tl"></div>
  50. <div class="Post-tr"><div></div></div>
  51. <div class="Post-bl"><div></div></div>
  52. <div class="Post-br"><div></div></div>
  53. <div class="Post-tc"><div></div></div>
  54. <div class="Post-bc"><div></div></div>
  55. <div class="Post-cl"><div></div></div>
  56. <div class="Post-cr"><div></div></div>
  57. <div class="Post-cc"></div>
  58. <div class="Post-body">
  59. <div class="Post-inner article">
  60.  
  61. <div class="PostContent">
  62.  
  63. <div class="navigation">
  64. <div class="alignleft"><?php echo $next_link; ?></div>
  65. <div class="alignright"><?php echo $prev_link; ?></div>
  66. </div>
  67.  
  68. </div>
  69. <div class="cleared"></div>
  70.  
  71.  
  72. </div>
  73.  
  74. </div>
  75. </div>
  76.  
  77. <?php endif; ?>
  78.  
  79. <?php if (have_posts()) : ?>
  80.  
  81. <?php while (have_posts()) : the_post(); ?>
  82. <div class="Post">
  83. <div class="Post-tl"></div>
  84. <div class="Post-tr"><div></div></div>
  85. <div class="Post-bl"><div></div></div>
  86. <div class="Post-br"><div></div></div>
  87. <div class="Post-tc"><div></div></div>
  88. <div class="Post-bc"><div></div></div>
  89. <div class="Post-cl"><div></div></div>
  90. <div class="Post-cr"><div></div></div>
  91. <div class="Post-cc"></div>
  92. <div class="Post-body">
  93. <div class="Post-inner article">
  94. <h2 class="PostHeaderIcon-wrapper">
  95. <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  96. <?php the_title(); ?>
  97. </a></span>
  98. </h2>
  99. <?php $icons = array(); ?>
  100. <?php if (!is_page()) : ?>
  101. <?php ob_start(); ?>
  102. <img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="18" height="18" alt="PostDateIcon" />
  103. <?php the_time(__('F jS, Y', 'kubrick')) ?>
  104. <?php $icons[] = ob_get_clean(); ?>
  105. <?php endif; ?>
  106. <?php if (!is_page()) : ?>
  107. <?php ob_start(); ?>
  108. <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="PostAuthorIcon" />
  109. <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
  110. <?php $icons[] = ob_get_clean(); ?>
  111. <?php endif; ?>
  112. <?php if (current_user_can( 'edit_post', $post->ID )) : ?><?php ob_start(); ?>
  113. <img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="16" height="16" alt="PostEditIcon" />
  114. <?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
  115. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  116. <?php if (0 != count($icons)): ?>
  117. <div class="PostHeaderIcons metadata-icons">
  118. <?php echo implode(' | ', $icons); ?>
  119.  
  120. </div>
  121. <?php endif; ?>
  122. <div class="PostContent">
  123. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  124.  
  125. </div>
  126. <div class="cleared"></div>
  127. <?php $icons = array(); ?>
  128. <?php if (!is_page()) : ?>
  129. <?php ob_start(); ?>
  130. <img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon" />
  131. <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  132. <?php $icons[] = ob_get_clean(); ?>
  133. <?php endif; ?>
  134. <?php if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
  135. <img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
  136. <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
  137. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  138. <?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
  139. <img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon" />
  140. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  141. <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
  142. <?php if (0 != count($icons)): ?>
  143. <div class="PostFooterIcons metadata-icons">
  144. <?php echo implode(' | ', $icons); ?>
  145.  
  146. </div>
  147. <?php endif; ?>
  148.  
  149. </div>
  150.  
  151. </div>
  152. </div>
  153.  
  154. <?php endwhile; ?>
  155.  
  156. <?php if ($prev_link || $next_link): ?>
  157. <div class="Post">
  158. <div class="Post-tl"></div>
  159. <div class="Post-tr"><div></div></div>
  160. <div class="Post-bl"><div></div></div>
  161. <div class="Post-br"><div></div></div>
  162. <div class="Post-tc"><div></div></div>
  163. <div class="Post-bc"><div></div></div>
  164. <div class="Post-cl"><div></div></div>
  165. <div class="Post-cr"><div></div></div>
  166. <div class="Post-cc"></div>
  167. <div class="Post-body">
  168. <div class="Post-inner article">
  169.  
  170. <div class="PostContent">
  171.  
  172. <div class="navigation">
  173. <div class="alignleft"><?php echo $next_link; ?></div>
  174. <div class="alignright"><?php echo $prev_link; ?></div>
  175. </div>
  176.  
  177. </div>
  178. <div class="cleared"></div>
  179.  
  180.  
  181. </div>
  182.  
  183. </div>
  184. </div>
  185.  
  186. <?php endif; ?>
  187.  
  188. <?php else : ?>
  189. <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
  190. <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
  191. <?php if(function_exists('get_search_form')) get_search_form(); ?>
  192. <?php endif; ?>
  193. </div>
  194. <?php
  195. global $lcmp_sidebarloc;
  196. if($lcmp_sidebarloc == $lcmp_rightdefault || $lcmp_sidebarloc == 'right'){ ?>
  197. <div class="sidebar1">
  198. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  199. </div>
  200. <?php } ?>
  201. <?php if(file_exists(TEMPLATEPATH . '/sidebar2.php')){ ?>
  202. <div class="sidebar2">
  203. <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  204. </div>
  205. <?php } ?>
  206. </div>
  207. <div class="cleared"></div>
  208.  
  209. <!--Our dear footer starts here-->
  210.  
  211. <?php get_footer(); ?>
  212.  
  213. <!--Our dear footer ends here
  214. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement