Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- Featured Area -->
- <?php if(get_option('galleryok')!="yes"):?>
- <div id="featured-area">
- <?php include(TEMPLATEPATH . '/featured.php'); ?>
- </div>
- <?php endif?>
- <?php if(get_option('galleryok-secondary')!="yes"):?>
- <!-- Slideshow HTML -->
- <div id="slideshow">
- <div id="bg-control"></div>
- <div id="slidesContainer">
- <?php $recent = new WP_Query("cat=".get_option('gallery-cat-secondary')."&showposts=4");
- while($recent->have_posts()) : $recent->the_post();?>
- <div class="slide">
- <a href="<?php the_permalink() ?>" class="image-secondary" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=90&h=60&zc=1" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <?php the_post_thumbnail( 'secondary-slider' ); ?>
- <?php endif?>
- </a>
- <?php
- $useragent=getenv("HTTP_USER_AGENT");
- if (eregi("MSIE [4-6]",$useragent))
- {$condition = '<div style="display:block;"></div>';}
- else
- {$condition = '<div class="clear"></div>';}
- echo $condition;
- ?>
- <h2 class="secondary-title">
- <?php the_title(); ?>
- </h2>
- <?php the_content_limit(100); ?>
- </div>
- <?php endwhile; ?>
- </div>
- </div>
- <div class="clear"></div>
- <?php endif?>
- <?php if(get_option('galleryok')!="no"):?>
- <?php endif?>
- <!-- end featured area -->
- <!-- Begin Main Body -->
- <div class="indexpadding">
- <?php include(TEMPLATEPATH . '/sidebar.php'); ?>
- <div class="MainContent">
- <!-- Begin Middle Column -->
- <!--START CODE for PART 1a )-->
- <?php if(get_option('toppostok')!="yes"):?>
- <div class="thepart1a">
- <div id="thepart1">
- <div id="top-news-month">
- <h5>أفضل المواضيع</h5>
- </div>
- <?php
- query_posts('showposts=3&cat='.get_option('lhbox').'&offset=0');
- if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div id="slider2" class="spotlightwrapperbig">
- <div class="spotlightIT">
- <h2 class="articletitle"> <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title(); ?>
- </a> </h2>
- </div>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php if(get_option('thumbok')!="yes"):?>
- <img class="teaser-image-small" src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=320&h=128&zc=1" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="teaser-image-small">
- <?php the_post_thumbnail( 'hotleft' ); ?>
- </span>
- <?php endif?>
- </a>
- </div>
- <?php endwhile; else: ?>
- <p>
- <?php _e('Sorry, no posts matched your criteria.'); ?>
- </p>
- <?php endif; ?>
- </div>
- </div>
- <?php endif?>
- <?php if(get_option('toppostok')!="no"):?>
- <?php endif?>
- <!--END CODE for PART 1a )-->
- <!--START CODE for PART 1B )-->
- <?php if(get_option('newpostok')!="yes"):?>
- <div class="thepart1b">
- <!-- Entries below the featured section -->
- <div class="thepart1bhotnews">الجديد </div>
- <?php
- $otherFeaturedPost = new WP_Query();
- $otherFeaturedPost->query('showposts=5&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <div class="thepart1bwrapper"><div style="_float:left;*float:left;*width:80px;*margin-left:20px;_width:80px;"> <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=80&h=80&zc=1" class="thepart1bimg" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="thepart1bimg">
- <?php the_post_thumbnail( 'thehot' ); ?>
- </span>
- <?php endif?>
- </a>
- </div><div style="_width:260px;">
- <div class="thepart1btitle"><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title() ?>
- </a>
- <div class="date">
- <?php the_time('D, M j, Y') ?>
- /
- <?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?>
- </div>
- </div>
- <div class="thepart1bpost">
- <?php the_content_limit(100); ?>
- </div></div>
- </div>
- <?php $c++; endwhile; wp_reset_query(); ?>
- <?php
- $useragent=getenv("HTTP_USER_AGENT");
- if (eregi("MSIE [4-6]",$useragent))
- {$condition = '<div style="display:block;"></div>';}
- else
- {$condition = '<div class="clear"></div>';}
- echo $condition;
- ?>
- </div>
- <div class="clear"></div>
- <?php endif?>
- <?php if(get_option('newpostok')!="no"):?>
- <?php endif?>
- <?php if(get_option('entertainment-newsok')!="yes"):?>
- <div class="entertainment-news">
- <!-- Entries below the featured section -->
- <div class="entertainment-news-section"><?php echo get_option('entertainment-news-text'); ?> </div>
- <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=3&cat='.get_option('entertainment-news-category').'&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <div class="entertainment-news-wrapper"> <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=80&h=80&zc=1" class="thepart1bimg" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="entertainment-news-img">
- <?php the_post_thumbnail( 'entertainment-news' ); ?>
- </span>
- <?php endif?>
- </a>
- <div class="entertainment-news-title"><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title() ?>
- </a>
- <div class="entertainment-news-date">
- <?php the_time('D, M j, Y') ?>
- /
- <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
- </div>
- </div>
- <div class="entertainment-news-content">
- <?php the_content_limit(154); ?>
- </div>
- </div>
- <?php $c++; endwhile; wp_reset_query(); ?>
- <div style="clear:both"> </div>
- </div>
- <?php endif?>
- <?php if(get_option('entertainment-newsok')!="no"):?>
- <?php endif?>
- <?php
- $useragent=getenv("HTTP_USER_AGENT");
- if (eregi("MSIE [4-6]",$useragent))
- {$condition = '<div style="display:block;"></div>';}
- else
- {$condition = '<div class="clear"></div>';}
- echo $condition;
- ?>
- <!--Art and life style-->
- <?php if(get_option('art-categoryok')!="yes"):?>
- <?php $artIndex=0;?>
- <div class="art">
- <!-- Entries below the featured section -->
- <div class="art-section"><?php echo get_option('art-text'); ?> </div>
- <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=6&cat='.get_option('art-category').'&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <div class="art-wrapper">
- <div class="art-title"><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title() ?>
- </a>
- <?php if ($artIndex==0) {?>
- <div class="art-date">
- <?php the_time('D, M j, Y') ?>
- /
- <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
- </div>
- <?php }?>
- </div>
- <?php if ($artIndex==0) {?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=80&h=80&zc=1" class="thepart1bimg" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="art-img">
- <?php the_post_thumbnail( 'art' ); ?>
- </span>
- <?php endif?>
- </a>
- <?php }?>
- <?php if ($artIndex==0) {?>
- <div class="art-content">
- <?php the_content_limit(360); ?>
- </div>
- <?php }?>
- </div>
- <?php $artIndex++; $c++; endwhile; wp_reset_query(); ?>
- <div style="clear:both"> </div>
- </div>
- <?php endif?>
- <?php if(get_option('art-categoryok')!="no"):?>
- <?php endif?>
- <!--Art-->
- <!--sport and life style-->
- <?php if(get_option('sport-categoryok')!="yes"):?>
- <?php $sportIndex=0;?>
- <div class="sport">
- <!-- Entries below the featured section -->
- <div class="sport-section"><?php echo get_option('sport-text'); ?> </div>
- <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=3&cat='.get_option('sport-category').'&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <?php if ($sportIndex==0) {?>
- <div class="sport-wrapper-left">
- <?php } else if ($sportIndex==1) {?>
- <div class="sport-wrapper-right">
- <?php }?>
- <div class="sport-title"><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title() ?>
- </a>
- <?php if ($sportIndex==0) {?>
- <div class="sport-date">
- <?php the_time('D, M j, Y') ?>
- /
- <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
- </div>
- <?php }?>
- </div>
- <?php if ($sportIndex==0) {?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=80&h=80&zc=1" class="thepart1bimg" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="sport-img">
- <?php the_post_thumbnail( 'sport' ); ?>
- </span>
- <?php endif?>
- </a>
- <?php }?>
- <?php if ($sportIndex==0) {?>
- <div class="sport-content">
- <?php the_content_limit(300); ?>
- </div>
- <?php } else if ($sportIndex>0) {?>
- <div class="sport-content">
- <?php the_content_limit(280); ?>
- </div>
- <?php }?>
- <?php if ($sportIndex==0) {?>
- </div> <!--sport-left-column-->
- <?php } else if ($sportIndex==2) {?>
- </div>
- <?php }?>
- <?php $sportIndex++; $c++; endwhile; wp_reset_query(); ?>
- <div style="clear:both"> </div>
- </div>
- <?php endif?>
- <?php if(get_option('sport-categoryok')!="no"):?>
- <?php endif?>
- <!--world and life style-->
- <?php if(get_option('world-categoryok')!="yes"):?>
- <?php $worldIndex=0;?>
- <div class="world">
- <!-- Entries below the featured section -->
- <div class="world-section"><?php echo get_option('world-text'); ?> </div>
- <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=3&cat='.get_option('world-category').'&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <?php if ($worldIndex==0) {?>
- <div class="world-wrapper-left">
- <?php } else if ($worldIndex==1) {?>
- <div class="world-wrapper-right">
- <?php }?>
- <div class="world-title"><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title() ?>
- </a>
- <?php if ($worldIndex==0) {?>
- <div class="world-date">
- <?php the_time('D, M j, Y') ?>
- /
- <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
- </div>
- <?php }?>
- </div>
- <?php if ($worldIndex==0) {?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=80&h=80&zc=1" class="thepart1bimg" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="world-img">
- <?php the_post_thumbnail( 'world' ); ?>
- </span>
- <?php endif?>
- </a>
- <?php }?>
- <?php if ($worldIndex==0) {?>
- <div class="world-content">
- <?php the_content_limit(154); ?>
- </div>
- <?php } else if ($worldIndex>0) {?>
- <div class="world-content">
- <?php the_content_limit(240); ?>
- </div>
- <?php }?>
- <?php if ($worldIndex==0) {?>
- </div> <!--world-left-column-->
- <?php } else if ($worldIndex==2) {?>
- </div>
- <?php }?>
- <?php $worldIndex++; $c++; endwhile; wp_reset_query(); ?>
- <div style="clear:both"> </div>
- </div>
- <?php endif?>
- <?php if(get_option('world-categoryok')!="no"):?>
- <?php endif?>
- <div class="clear"></div>
- <?php if(get_option('vidd-catok')!="yes"):?>
- <div id="left-div">
- <div class="the2rdtitle"><?php echo get_option('videotxt'); ?>
- <div class="the2rdtitlemore">[ <a href="<?php echo get_option('vid-cat'); ?>">شاهد جميع <?php echo get_option('videotxt'); ?></a> ]</div>
- </div>
- <div class="clear"></div>
- <div id="left-insidebar">
- <!--START CODE for showing 6 post under gallery )-->
- <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts='.get_option('vidd-count').'&cat='.get_option('vidd-cat').'&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <div class="home-post-wrap">
- <div class="thumbnail-div" style="">
- <!-- START OF TIM THUMB CODE FOR 6 BOX UNDER GALLERY )-->
- <a href="<?php the_permalink() ?>">
- <?php if(get_option('thumbok')!="yes"):?>
- <img class="header" src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=158&h=125&zc=1" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="header">
- <?php the_post_thumbnail( 'vidpic' ); ?>
- </span>
- <?php endif?>
- </a> </div>
- <a href="<?php the_permalink(); ?>" class="the2title" title="<?php the_title(); ?>" rel="bookmark">
- <?php the_title(); ?>
- </a>
- <!-- END OF TIM THUMB CODE FOR 6 BOX UNDER GALLERY )-->
- </div>
- <?php endwhile; ?>
- <!--END CODE for showing 6 post under gallery )-->
- </div>
- </div>
- <?php endif?>
- <?php if(get_option('vidd-catok')!="no"):?>
- <?php endif?>
- <div class="clear"></div>
- <div id="third">
- <?php if(get_option('lastnewsok')!="yes"):?>
- <?php if (is_home()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts("cat=".get_option('excludecat')."&paged=$paged"); } ?>
- <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> آخر الأخبار</div>
- <ul class="thirdwrapper">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <li> <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title(); ?>
- </a> </li>
- <?php endwhile; else: ?>
- <p>
- <?php _e('Sorry, no posts matched your criteria.'); ?>
- </p>
- <?php endif; ?>
- </ul>
- <div id="paginationtech">
- <?php if ( function_exists('get_pagination') ) echo(get_pagination(4, 'third')); ?>
- </div>
- <div class="clear"></div>
- <?php endif?>
- <?php if(get_option('lastnewsok')!="no"):?>
- <?php endif?>
- <!--technology and life style-->
- <?php if(get_option('technology-categoryok')!="yes"):?>
- <?php $technologyIndex=0;?>
- <div class="technology">
- <!-- Entries below the featured section -->
- <div class="technology-section"><?php echo get_option('technology-text'); ?> </div>
- <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=6&cat='.get_option('technology-category').'&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <div class="technology-wrapper">
- <div class="technology-title"><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title() ?>
- </a>
- <?php if ($technologyIndex==0) {?>
- <div class="technology-date">
- <?php the_time('D, M j, Y') ?>
- /
- <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
- </div>
- <?php }?>
- </div>
- <?php if ($technologyIndex==0) {?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=80&h=80&zc=1" class="thepart1bimg" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="technology-img">
- <?php the_post_thumbnail( 'technology' ); ?>
- </span>
- <?php endif?>
- </a>
- <?php }?>
- <?php if ($technologyIndex==0) {?>
- <div class="technology-content">
- <?php the_content_limit(154); ?>
- </div>
- <?php }?>
- </div>
- <?php $technologyIndex++; $c++; endwhile; wp_reset_query(); ?>
- <div style="clear:both"> </div>
- </div>
- <?php endif?>
- <?php if(get_option('technology-categoryok')!="no"):?>
- <?php endif?>
- <!--technology-->
- <!--health and life style-->
- <?php if(get_option('health-categoryok')!="yes"):?>
- <?php $healthIndex=0;?>
- <div class="health">
- <!-- Entries below the featured section -->
- <div class="health-section"><?php echo get_option('health-text'); ?> </div>
- <?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=6&cat='.get_option('health-category').'&offset=0'); ?>
- <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
- <div class="health-wrapper">
- <div class="health-title"><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title() ?>
- </a>
- <?php if ($healthIndex==0) {?>
- <div class="health-date">
- <?php the_time('D, M j, Y') ?>
- /
- <span class="comnt"><?php comments_popup_link('لا تعليقات', 'تعليق واحد ', '% تعليقات'); ?></span>
- </div>
- <?php }?>
- </div>
- <?php if ($healthIndex==0) {?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if(get_option('thumbok')!="yes"):?>
- <img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=80&h=80&zc=1" class="thepart1bimg" />
- <?php endif?>
- <?php if(get_option('thumbok')!="no"):?>
- <span class="health-img">
- <?php the_post_thumbnail( 'health' ); ?>
- </span>
- <?php endif?>
- </a>
- <?php }?>
- <?php if ($healthIndex==0) {?>
- <div class="health-content">
- <?php the_content_limit(154); ?>
- </div>
- <?php }?>
- </div>
- <?php $healthIndex++; $c++; endwhile; wp_reset_query(); ?>
- <div style="clear:both"> </div>
- </div>
- <?php endif?>
- <?php if(get_option('health-categoryok')!="no"):?>
- <?php endif?>
- <!--health-->
- </div>
- <div class="thirdsmallsidebar">
- <div class="widgetcontentsmall">
- <div class="textwidget">
- <center>
- <?php echo get_option('120'); ?>
- </center>
- </div>
- </div>
- <div id="primary" class="asidebar main-asidebar sidebar">
- <ul class="xoxo">
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Small sidebar') ) : ?>
- <?php endif; ?>
- </ul>
- </div>
- </div>
- <?php
- $useragent=getenv("HTTP_USER_AGENT");
- if (eregi("MSIE [4-6]",$useragent))
- {$condition = '<div style="display:block;"></div>';}
- else
- {$condition = '<div class="clear"></div>';}
- echo $condition;
- ?>
- </div>
- <?php
- $useragent=getenv("HTTP_USER_AGENT");
- if (eregi("MSIE [4-6]",$useragent))
- {$condition = '<div style="display:block;"></div>';}
- else
- {$condition = '<div class="clear"></div>';}
- echo $condition;
- ?>
- </div>
- <!-- End Main Body -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement