Advertisement
Guest User

Untitled

a guest
Nov 26th, 2013
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2. <body>
  3. <div class="bodyBox">
  4. <div class="bodySpacer">&nbsp;</div>
  5.          
  6.  
  7. <div class="bodyCenter">
  8.          
  9. <!--===STR===== HEADER ===========-->
  10. <div class="header">
  11. <div class="logo">
  12. <!--=== פקודה זאת תחזיר את שם האתר ===-->
  13. <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  14. </div>
  15. <div class="topMenu">
  16. <?php wp_nav_menu( array( 'theme_location' => 'top-menu', 'menu_class' => 'top_menu', 'menu_id' => 'top_menu' ) ); ?>
  17. </div>
  18. </div>
  19. <!--===END===== HEADER ===========-->
  20.  
  21. <div class="fix"></div>
  22.  
  23. <!--===STR===== SLOGAN ===========-->
  24. <div class="sloganBox mt3 pt2 pb2 center fs26 mr1 ml1">
  25. <?php echo get_option('slogan_sentence'); ?>
  26. </div>
  27. <!--===END===== SLOGAN ===========-->
  28.              
  29.             <!--===STR===== CONTENT ===========-->
  30.             <div class="contentBox">
  31.                 <div class="sidebar">
  32.                  
  33.                 </div>
  34. <<div class="homeLoop">
  35. <div class="innerLoop">
  36. <?php $count = 0; ?>
  37.  
  38. <?php
  39. $homeArgs = array(
  40. 'posts_per_page' => 5
  41. );
  42. $homeQuery = new WP_Query( $homeArgs );
  43. while ( $homeQuery->have_posts() ) : $homeQuery->the_post();
  44. ?>
  45. <div class="post">
  46. <?php
  47. if ($count < 1){
  48.  
  49. // LOOP STRUCTURE FOR OUR LATEST POST
  50. ?>
  51. <h2 class="newestPost"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  52. <div class="postMeta">
  53. <?php echo __('By').'&nbsp;'.get_the_author_link().', '.__('On', 'sagive').get_the_date().' - '; ?><a href="<?php comments_link(); ?>"><?php comments_number( __('no responses', 'sagive'), __('one response', 'sagive'), __('% responses', 'sagive') );echo '</a>'; ?>
  54. </div>
  55. <?php
  56. echo '<div class="postThumb">';
  57. $thumbUrl = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
  58. if($thumbUrl) {
  59. echo '<img src="'.get_bloginfo('template_url').'/functions/timthumb.php?src='.$thumbUrl.'&q=100&w=660&h=355" alt="'.get_the_title().'" />';
  60. }
  61. else {
  62. echo '<img src="'.get_bloginfo('template_url').'/images/nopost-image-home.jpg" alt="'.get_the_title().'" />';
  63. }
  64. echo '</div>';
  65.  
  66. echo '<div class="newsetPostExcerpt mt3 mb5 pb3 fs14">';
  67. dynamic_excerpt(650);
  68. echo '</div>';
  69.  
  70. echo '<div class="rpBorder mt5 pb2">
  71. <div></div>
  72. <div></div>
  73. </div>';
  74. }
  75. else {
  76. // LOOP STRUCTURE FOR OTHER RECENT POSTS
  77.  
  78. // ASSING CLASS EVERY 2 POSTS & ACCORIND TO LANGUAGE
  79. if(is_rtl()) {if($count % 2 == 0) {$marginClass = 'ml4';} else {$marginClass = '';}}
  80. else {if($count % 2 == 0) {$marginClass = 'ml4';} else {$marginClass = '';}}
  81.  
  82. echo '<div class="singleRecentPost '.$marginClass.'">';
  83. ?>
  84. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  85. <?php
  86. echo '<div class="postExcerpt">';
  87. dynamic_excerpt(300);
  88. echo '</div>';
  89.  
  90. echo '<div class="readMore"><a href="'.get_permalink().'" rel="nofollow">'.__('Read More &raquo;', 'sagive').'</a></div>';
  91.  
  92. echo '<div class="rpBorder mt10 pb2">
  93. <div></div>
  94. <div></div>
  95. </div>';
  96.  
  97. echo '</div>';
  98. }
  99. ?>
  100. </div>
  101. <?php $count++; ?>
  102. <?php endwhile; ?>
  103. </div>
  104. </div>
  105.             </div>
  106.             <!--===END===== CONTENT ===========-->
  107.          
  108.             <!--===STR===== FOOTER ===========-->
  109. <?php get_footer(); ?>
  110.             <!--===END===== FOOTER ===========-->
  111.              
  112.         </div>
  113.         <!--===END==================== BODY CENTER ==========================-->
  114.          
  115.         <div class="bodySpacer">&nbsp;</div>
  116.          
  117.         <div class="fix"></div>
  118.     </div>
  119.  
  120.  
  121. <!--===STR===== WP FOOTER ===========-->
  122. <?php wp_footer(); ?>
  123. <!--===END===== WP FOOTER ===========-->
  124.  
  125. </body>
  126. </html>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement