Advertisement
Guest User

Untitled

a guest
Feb 25th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 22.16 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <!-- Featured Area -->
  3. <?php if(get_option('galleryok')!="yes"):?>
  4.  
  5. <div id="featured-area">
  6.   <?php include(TEMPLATEPATH . '/featured.php'); ?>
  7. </div>
  8. <?php endif?>
  9. <?php if(get_option('galleryok-secondary')!="yes"):?>
  10.  
  11. <!-- Slideshow HTML -->
  12. <div id="slideshow">
  13.     <div id="bg-control"></div>
  14.   <div id="slidesContainer">
  15.     <?php $recent = new WP_Query("cat=".get_option('gallery-cat-secondary')."&showposts=4");
  16.         while($recent->have_posts()) : $recent->the_post();?>
  17.     <div class="slide">
  18.       <a href="<?php the_permalink() ?>" class="image-secondary" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
  19.       <?php if(get_option('thumbok')!="yes"):?>
  20.       <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=90&amp;h=60&amp;zc=1" />
  21.       <?php endif?>
  22.       <?php if(get_option('thumbok')!="no"):?>
  23.       <?php the_post_thumbnail( 'secondary-slider' ); ?>
  24.       <?php endif?>
  25.       </a>
  26.                <?php
  27.                 $useragent=getenv("HTTP_USER_AGENT");
  28.                 if (eregi("MSIE [4-6]",$useragent))
  29.                 {$condition = '<div style="display:block;"></div>';}
  30.                 else
  31.                 {$condition = '<div class="clear"></div>';}
  32.                 echo $condition;
  33.                 ?>
  34.       <h2 class="secondary-title">
  35.         <?php the_title(); ?>
  36.       </h2>
  37.       <?php the_content_limit(100); ?>
  38.     </div>
  39.     <?php endwhile; ?>
  40.   </div>
  41. </div>
  42. <div class="clear"></div>
  43. <?php endif?>
  44. <?php if(get_option('galleryok')!="no"):?>
  45. <?php endif?>
  46. <!-- end featured area -->
  47. <!-- Begin Main Body -->
  48. <div class="indexpadding">
  49.   <?php include(TEMPLATEPATH . '/sidebar.php'); ?>
  50.   <div class="MainContent">
  51.     <!-- Begin Middle Column -->
  52.     <!--START CODE for PART 1a )-->
  53. <?php if(get_option('toppostok')!="yes"):?>
  54.  
  55.     <div class="thepart1a">
  56.       <div id="thepart1">
  57.         <div id="top-news-month">
  58.           <h5>أفضل المواضيع</h5>
  59.         </div>
  60.            
  61.            <?php
  62.         query_posts('showposts=3&cat='.get_option('lhbox').'&offset=0');
  63.        if (have_posts()) : while (have_posts()) : the_post(); ?>
  64.  
  65.         <div id="slider2" class="spotlightwrapperbig">
  66.                   <div class="spotlightIT">
  67.             <h2 class="articletitle"> <a href="<?php the_permalink() ?>" rel="bookmark">
  68.               <?php the_title(); ?>
  69.               </a> </h2>
  70.           </div>
  71.         <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
  72.           <?php if(get_option('thumbok')!="yes"):?>
  73.           <img class="teaser-image-small" src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=320&amp;h=128&amp;zc=1" />
  74.           <?php endif?>
  75.           <?php if(get_option('thumbok')!="no"):?>
  76.           <span class="teaser-image-small">
  77.           <?php the_post_thumbnail( 'hotleft' ); ?>
  78.           </span>
  79.           <?php endif?>
  80.           </a>
  81.         </div>
  82.         <?php endwhile; else: ?>
  83.         <p>
  84.           <?php _e('Sorry, no posts matched your criteria.'); ?>
  85.         </p>
  86.         <?php endif; ?>
  87.       </div>
  88.     </div>
  89. <?php endif?>
  90. <?php if(get_option('toppostok')!="no"):?>
  91. <?php endif?>
  92.     <!--END CODE for PART 1a )-->
  93.     <!--START CODE for PART 1B )-->
  94. <?php if(get_option('newpostok')!="yes"):?>
  95.  
  96.     <div class="thepart1b">
  97.       <!-- Entries below the featured section -->
  98.       <div class="thepart1bhotnews">الجديد </div>
  99.  
  100.      <?php
  101.      
  102.      $otherFeaturedPost = new WP_Query();
  103.     $otherFeaturedPost->query('showposts=5&offset=0'); ?>
  104.  
  105.      
  106.             <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  107.       <div class="thepart1bwrapper"><div style="_float:left;*float:left;*width:80px;*margin-left:20px;_width:80px;"> <a href="<?php the_permalink() ?>" rel="bookmark">
  108.         <?php if(get_option('thumbok')!="yes"):?>
  109.         <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=80&amp;h=80&amp;zc=1" class="thepart1bimg" />
  110.         <?php endif?>
  111.         <?php if(get_option('thumbok')!="no"):?>
  112.         <span class="thepart1bimg">
  113.         <?php the_post_thumbnail( 'thehot' ); ?>
  114.         </span>
  115.         <?php endif?>
  116.         </a>
  117.         </div><div style="_width:260px;">
  118.         <div class="thepart1btitle"><a href="<?php the_permalink() ?>" rel="bookmark">
  119.           <?php the_title() ?>
  120.           </a>
  121.           <div class="date">
  122.             <?php the_time('D, M j, Y') ?>
  123.             /
  124.             <?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?>
  125.           </div>
  126.         </div>
  127.         <div class="thepart1bpost">
  128.           <?php the_content_limit(100); ?>
  129.         </div></div>
  130.       </div>
  131.       <?php $c++; endwhile; wp_reset_query(); ?>
  132.            <?php
  133.                 $useragent=getenv("HTTP_USER_AGENT");
  134.                 if (eregi("MSIE [4-6]",$useragent))
  135.                 {$condition = '<div style="display:block;"></div>';}
  136.                 else
  137.                 {$condition = '<div class="clear"></div>';}
  138.                 echo $condition;
  139.                 ?>
  140.     </div>
  141.     <div class="clear"></div>
  142. <?php endif?>
  143. <?php if(get_option('newpostok')!="no"):?>
  144. <?php endif?>
  145. <?php if(get_option('entertainment-newsok')!="yes"):?>
  146.  
  147.      <div class="entertainment-news">
  148.       <!-- Entries below the featured section -->
  149.       <div class="entertainment-news-section"><?php echo get_option('entertainment-news-text'); ?> </div>
  150.       <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=3&cat='.get_option('entertainment-news-category').'&offset=0'); ?>
  151.       <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  152.       <div class="entertainment-news-wrapper"> <a href="<?php the_permalink() ?>" rel="bookmark">
  153.         <?php if(get_option('thumbok')!="yes"):?>
  154.         <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=80&amp;h=80&amp;zc=1" class="thepart1bimg" />
  155.         <?php endif?>
  156.         <?php if(get_option('thumbok')!="no"):?>
  157.         <span class="entertainment-news-img">
  158.         <?php the_post_thumbnail( 'entertainment-news' ); ?>
  159.         </span>
  160.         <?php endif?>
  161.         </a>
  162.         <div class="entertainment-news-title"><a href="<?php the_permalink() ?>" rel="bookmark">
  163.           <?php the_title() ?>
  164.           </a>
  165.           <div class="entertainment-news-date">
  166.             <?php the_time('D, M j, Y') ?>
  167.             /
  168.              <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
  169.           </div>
  170.         </div>
  171.         <div class="entertainment-news-content">
  172.           <?php the_content_limit(154); ?>
  173.         </div>
  174.       </div>
  175.       <?php $c++; endwhile; wp_reset_query(); ?>
  176.       <div style="clear:both"> </div>
  177.     </div>
  178. <?php endif?>
  179. <?php if(get_option('entertainment-newsok')!="no"):?>
  180. <?php endif?>
  181.                <?php
  182.                 $useragent=getenv("HTTP_USER_AGENT");
  183.                 if (eregi("MSIE [4-6]",$useragent))
  184.                 {$condition = '<div style="display:block;"></div>';}
  185.                 else
  186.                 {$condition = '<div class="clear"></div>';}
  187.                 echo $condition;
  188.                 ?>
  189.    
  190.      <!--Art and life style-->
  191. <?php if(get_option('art-categoryok')!="yes"):?>
  192.  
  193.         <?php $artIndex=0;?>
  194.      <div class="art">
  195.       <!-- Entries below the featured section -->
  196.       <div class="art-section"><?php echo get_option('art-text'); ?> </div>
  197.       <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=6&cat='.get_option('art-category').'&offset=0'); ?>
  198.       <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  199.       <div class="art-wrapper">
  200.         <div class="art-title"><a href="<?php the_permalink() ?>" rel="bookmark">
  201.           <?php the_title() ?>
  202.           </a>
  203.           <?php if ($artIndex==0) {?>
  204.           <div class="art-date">
  205.             <?php the_time('D, M j, Y') ?>
  206.             /
  207.              <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
  208.           </div>
  209.           <?php }?>
  210.         </div>
  211.                
  212.                 <?php if ($artIndex==0) {?>
  213.         <a href="<?php the_permalink() ?>" rel="bookmark">
  214.         <?php if(get_option('thumbok')!="yes"):?>
  215.         <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=80&amp;h=80&amp;zc=1" class="thepart1bimg" />
  216.         <?php endif?>
  217.         <?php if(get_option('thumbok')!="no"):?>
  218.         <span class="art-img">
  219.         <?php the_post_thumbnail( 'art' ); ?>
  220.         </span>
  221.         <?php endif?>
  222.         </a>
  223.          <?php }?>
  224.        
  225.         <?php if ($artIndex==0) {?>
  226.         <div class="art-content">
  227.           <?php the_content_limit(360); ?>
  228.         </div>
  229.         <?php }?>
  230.       </div>
  231.       <?php $artIndex++; $c++; endwhile; wp_reset_query(); ?>
  232.       <div style="clear:both"> </div>
  233.     </div>
  234. <?php endif?>
  235. <?php if(get_option('art-categoryok')!="no"):?>
  236. <?php endif?>
  237.     <!--Art-->
  238.    
  239.     <!--sport and life style-->
  240. <?php if(get_option('sport-categoryok')!="yes"):?>
  241.  
  242.         <?php $sportIndex=0;?>
  243.      <div class="sport">
  244.       <!-- Entries below the featured section -->
  245.       <div class="sport-section"><?php echo get_option('sport-text'); ?> </div>
  246.       <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=3&cat='.get_option('sport-category').'&offset=0'); ?>
  247.       <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  248.      
  249.         <?php if ($sportIndex==0) {?>
  250.         <div class="sport-wrapper-left">
  251.         <?php } else if ($sportIndex==1) {?>
  252.         <div class="sport-wrapper-right">
  253.                 <?php }?>
  254.           <div class="sport-title"><a href="<?php the_permalink() ?>" rel="bookmark">
  255.             <?php the_title() ?>
  256.             </a>
  257.             <?php if ($sportIndex==0) {?>
  258.             <div class="sport-date">
  259.               <?php the_time('D, M j, Y') ?>
  260.               /
  261.                <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
  262.             </div>
  263.             <?php }?>
  264.           </div>
  265.          
  266.           <?php if ($sportIndex==0) {?>
  267.           <a href="<?php the_permalink() ?>" rel="bookmark">
  268.           <?php if(get_option('thumbok')!="yes"):?>
  269.           <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=80&amp;h=80&amp;zc=1" class="thepart1bimg" />
  270.           <?php endif?>
  271.           <?php if(get_option('thumbok')!="no"):?>
  272.           <span class="sport-img">
  273.           <?php the_post_thumbnail( 'sport' ); ?>
  274.           </span>
  275.           <?php endif?>
  276.           </a>
  277.            <?php }?>
  278.          
  279.           <?php if ($sportIndex==0) {?>
  280.           <div class="sport-content">
  281.             <?php the_content_limit(300); ?>
  282.           </div>
  283.           <?php } else if ($sportIndex>0) {?>
  284.           <div class="sport-content">
  285.             <?php the_content_limit(280); ?>
  286.           </div>
  287.           <?php }?>
  288.          <?php if ($sportIndex==0) {?>
  289.         </div> <!--sport-left-column-->
  290.         <?php } else if ($sportIndex==2) {?>
  291.         </div>
  292.                 <?php }?>
  293.      
  294.       <?php $sportIndex++; $c++; endwhile; wp_reset_query(); ?>
  295.       <div style="clear:both"> </div>
  296.     </div>
  297. <?php endif?>
  298. <?php if(get_option('sport-categoryok')!="no"):?>
  299. <?php endif?>
  300.    
  301.    
  302.    
  303.     <!--world and life style-->
  304. <?php if(get_option('world-categoryok')!="yes"):?>
  305.  
  306.         <?php $worldIndex=0;?>
  307.      <div class="world">
  308.       <!-- Entries below the featured section -->
  309.       <div class="world-section"><?php echo get_option('world-text'); ?> </div>
  310.       <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=3&cat='.get_option('world-category').'&offset=0'); ?>
  311.       <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  312.      
  313.         <?php if ($worldIndex==0) {?>
  314.         <div class="world-wrapper-left">
  315.         <?php } else if ($worldIndex==1) {?>
  316.         <div class="world-wrapper-right">
  317.                 <?php }?>
  318.           <div class="world-title"><a href="<?php the_permalink() ?>" rel="bookmark">
  319.             <?php the_title() ?>
  320.             </a>
  321.             <?php if ($worldIndex==0) {?>
  322.             <div class="world-date">
  323.               <?php the_time('D, M j, Y') ?>
  324.               /
  325.               <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
  326.             </div>
  327.             <?php }?>
  328.           </div>
  329.          
  330.           <?php if ($worldIndex==0) {?>
  331.           <a href="<?php the_permalink() ?>" rel="bookmark">
  332.           <?php if(get_option('thumbok')!="yes"):?>
  333.           <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=80&amp;h=80&amp;zc=1" class="thepart1bimg" />
  334.           <?php endif?>
  335.           <?php if(get_option('thumbok')!="no"):?>
  336.           <span class="world-img">
  337.           <?php the_post_thumbnail( 'world' ); ?>
  338.           </span>
  339.           <?php endif?>
  340.           </a>
  341.            <?php }?>
  342.          
  343.           <?php if ($worldIndex==0) {?>
  344.           <div class="world-content">
  345.             <?php the_content_limit(154); ?>
  346.           </div>
  347.           <?php } else if ($worldIndex>0) {?>
  348.           <div class="world-content">
  349.             <?php the_content_limit(240); ?>
  350.           </div>
  351.           <?php }?>
  352.          <?php if ($worldIndex==0) {?>
  353.         </div> <!--world-left-column-->
  354.         <?php } else if ($worldIndex==2) {?>
  355.         </div>
  356.                 <?php }?>
  357.      
  358.       <?php $worldIndex++; $c++; endwhile; wp_reset_query(); ?>
  359.       <div style="clear:both"> </div>
  360.     </div>
  361. <?php endif?>
  362. <?php if(get_option('world-categoryok')!="no"):?>
  363. <?php endif?>
  364.     <div class="clear"></div>
  365.    
  366.    
  367. <?php if(get_option('vidd-catok')!="yes"):?>
  368.  
  369.      <div id="left-div">
  370.       <div class="the2rdtitle"><?php echo get_option('videotxt'); ?>
  371.         <div class="the2rdtitlemore">[ <a href="<?php echo get_option('vid-cat'); ?>">شاهد جميع <?php echo get_option('videotxt'); ?></a> ]</div>
  372.       </div>
  373.       <div class="clear"></div>
  374.       <div id="left-insidebar">
  375.         <!--START CODE for showing 6 post under gallery )-->
  376.         <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts='.get_option('vidd-count').'&cat='.get_option('vidd-cat').'&offset=0'); ?>
  377.         <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  378.         <div class="home-post-wrap">
  379.           <div class="thumbnail-div" style="">
  380.             <!--  START OF TIM THUMB CODE FOR 6 BOX UNDER GALLERY  )-->
  381.             <a href="<?php the_permalink() ?>">
  382.             <?php if(get_option('thumbok')!="yes"):?>
  383.             <img class="header" src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=158&amp;h=125&amp;zc=1" />
  384.             <?php endif?>
  385.             <?php if(get_option('thumbok')!="no"):?>
  386.             <span class="header">
  387.             <?php the_post_thumbnail( 'vidpic' ); ?>
  388.             </span>
  389.             <?php endif?>
  390.             </a> </div>
  391.          
  392.           <a href="<?php the_permalink(); ?>" class="the2title" title="<?php the_title(); ?>" rel="bookmark">
  393.           <?php the_title(); ?>
  394.           </a>
  395.           <!--  END OF TIM THUMB CODE FOR 6 BOX UNDER GALLERY  )-->
  396.         </div>
  397.         <?php endwhile; ?>
  398.         <!--END CODE for showing 6 post under gallery )-->
  399.       </div>
  400.     </div>
  401. <?php endif?>
  402. <?php if(get_option('vidd-catok')!="no"):?>
  403. <?php endif?>
  404.    
  405.     <div class="clear"></div>
  406.     <div id="third">
  407. <?php if(get_option('lastnewsok')!="yes"):?>
  408.  
  409.       <?php if (is_home()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  410. query_posts("cat=".get_option('excludecat')."&paged=$paged"); } ?>
  411.       <div class="thirdtitle"><a href="<?php echo get_option('feedurl'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/rss.gif" /></a> &nbsp;آخر الأخبار</div>
  412.       <ul class="thirdwrapper">
  413.         <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  414.         <li> <a href="<?php the_permalink() ?>" rel="bookmark">
  415.           <?php the_title(); ?>
  416.           </a> </li>
  417.         <?php endwhile; else: ?>
  418.         <p>
  419.           <?php _e('Sorry, no posts matched your criteria.'); ?>
  420.         </p>
  421.         <?php endif; ?>
  422.       </ul>
  423.       <div id="paginationtech">
  424.         <?php if ( function_exists('get_pagination') ) echo(get_pagination(4, 'third')); ?>
  425.       </div>
  426.       <div class="clear"></div>
  427.      
  428. <?php endif?>
  429. <?php if(get_option('lastnewsok')!="no"):?>
  430. <?php endif?>
  431.      
  432.       <!--technology and life style-->
  433. <?php if(get_option('technology-categoryok')!="yes"):?>
  434.  
  435.     <?php $technologyIndex=0;?>
  436.        <div class="technology">
  437.         <!-- Entries below the featured section -->
  438.         <div class="technology-section"><?php echo get_option('technology-text'); ?> </div>
  439.         <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=6&cat='.get_option('technology-category').'&offset=0'); ?>
  440.         <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  441.         <div class="technology-wrapper">
  442.           <div class="technology-title"><a href="<?php the_permalink() ?>" rel="bookmark">
  443.             <?php the_title() ?>
  444.             </a>
  445.             <?php if ($technologyIndex==0) {?>
  446.             <div class="technology-date">
  447.               <?php the_time('D, M j, Y') ?>
  448.               /
  449.                <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
  450.             </div>
  451.             <?php }?>
  452.           </div>
  453.          
  454.           <?php if ($technologyIndex==0) {?>
  455.           <a href="<?php the_permalink() ?>" rel="bookmark">
  456.           <?php if(get_option('thumbok')!="yes"):?>
  457.           <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=80&amp;h=80&amp;zc=1" class="thepart1bimg" />
  458.           <?php endif?>
  459.           <?php if(get_option('thumbok')!="no"):?>
  460.           <span class="technology-img">
  461.           <?php the_post_thumbnail( 'technology' ); ?>
  462.           </span>
  463.           <?php endif?>
  464.           </a>
  465.            <?php }?>
  466.          
  467.           <?php if ($technologyIndex==0) {?>
  468.           <div class="technology-content">
  469.             <?php the_content_limit(154); ?>
  470.           </div>
  471.           <?php }?>
  472.         </div>
  473.         <?php $technologyIndex++; $c++; endwhile; wp_reset_query(); ?>
  474.         <div style="clear:both"> </div>
  475.       </div>
  476. <?php endif?>
  477. <?php if(get_option('technology-categoryok')!="no"):?>
  478. <?php endif?>
  479.       <!--technology-->
  480.    
  481.    
  482.      <!--health and life style-->
  483.         <?php if(get_option('health-categoryok')!="yes"):?>
  484.  
  485.   <?php $healthIndex=0;?>
  486.        <div class="health">
  487.         <!-- Entries below the featured section -->
  488.         <div class="health-section"><?php echo get_option('health-text'); ?> </div>
  489.         <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=6&cat='.get_option('health-category').'&offset=0'); ?>
  490.         <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
  491.         <div class="health-wrapper">
  492.           <div class="health-title"><a href="<?php the_permalink() ?>" rel="bookmark">
  493.             <?php the_title() ?>
  494.             </a>
  495.             <?php if ($healthIndex==0) {?>
  496.             <div class="health-date">
  497.               <?php the_time('D, M j, Y') ?>
  498.               /
  499.                <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
  500.             </div>
  501.             <?php }?>
  502.           </div>
  503.          
  504.           <?php if ($healthIndex==0) {?>
  505.           <a href="<?php the_permalink() ?>" rel="bookmark">
  506.           <?php if(get_option('thumbok')!="yes"):?>
  507.           <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&amp;w=80&amp;h=80&amp;zc=1" class="thepart1bimg" />
  508.           <?php endif?>
  509.           <?php if(get_option('thumbok')!="no"):?>
  510.           <span class="health-img">
  511.           <?php the_post_thumbnail( 'health' ); ?>
  512.           </span>
  513.           <?php endif?>
  514.           </a>
  515.            <?php }?>
  516.          
  517.           <?php if ($healthIndex==0) {?>
  518.           <div class="health-content">
  519.             <?php the_content_limit(154); ?>
  520.           </div>
  521.           <?php }?>
  522.         </div>
  523.         <?php $healthIndex++; $c++; endwhile; wp_reset_query(); ?>
  524.         <div style="clear:both"> </div>
  525.       </div>
  526. <?php endif?>
  527. <?php if(get_option('health-categoryok')!="no"):?>
  528. <?php endif?>
  529.       <!--health-->
  530.     </div>
  531.    
  532.    
  533.    
  534.     <div class="thirdsmallsidebar">
  535.       <div class="widgetcontentsmall">
  536.         <div class="textwidget">
  537.           <center>
  538.             <?php echo get_option('120'); ?>
  539.           </center>
  540.         </div>
  541.       </div>
  542.       <div id="primary" class="asidebar main-asidebar sidebar">
  543.         <ul class="xoxo">
  544.           <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Small sidebar') ) : ?>
  545.           <?php endif; ?>
  546.         </ul>
  547.       </div>
  548.     </div>
  549.            <?php
  550.                 $useragent=getenv("HTTP_USER_AGENT");
  551.                 if (eregi("MSIE [4-6]",$useragent))
  552.                 {$condition = '<div style="display:block;"></div>';}
  553.                 else
  554.                 {$condition = '<div class="clear"></div>';}
  555.                 echo $condition;
  556.                 ?>
  557.   </div>
  558.            <?php
  559.                 $useragent=getenv("HTTP_USER_AGENT");
  560.                 if (eregi("MSIE [4-6]",$useragent))
  561.                 {$condition = '<div style="display:block;"></div>';}
  562.                 else
  563.                 {$condition = '<div class="clear"></div>';}
  564.                 echo $condition;
  565.                 ?>
  566. </div>
  567. <!-- End Main Body -->
  568. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement