<?php
	$big = ARRAY(); // initiate
	for ($i = 1; $i <= $Webcolors['bigcatsN']; $i++ ) array_push($big, $Webcolors['bigcats'.$i]);
	$bigwidgetsArray = array_merge($big);
?>
<div id="bigCatesgories">
<?php foreach($big as $section) : ?>
<div class="categoryWidgetBig">
    <div class="catWidgetTop">
        <a href="<?php print get_category_link($section); ?>"><h2><?php print get_cat_name($section); ?></h2></a>
            										<a href="<?php print get_category_link($section); ?>&feed=rss2" class="catRss"></a>
    </div><!--End Cat Widget Top-->
    <div class="catContent">
    		<?php $getposts = new WP_query(); $getposts->query('showposts=1&cat='.$section); ?>
			<?php global $wp_query; $wp_query->in_the_loop = true; ?>
            <?php while ($getposts->have_posts()) : $getposts->the_post(); ?>
            <div class="latestCatPost">
                                        	
              <div class="postLeft">
                  <a href="<?php the_permalink();?>" class="postThumb"><?php the_post_thumbnail(); ?></a>
                  <div class="postRating"><span class="ratingFix"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></span></div>
                  <a href="<?php the_permalink();?>" class="postMore">أكمل القراءة ..</a>
              </div><!--End Post Left-->
              <div class="postright">
                  <a href="<?php the_permalink();?>"><h1 class="postTitle"><?php the_title();?></h1></a>
                  <ul class="postDetails">
                      <li class="postComments">التعليقات : <?php comments_number('0','1','%');?> تعليق</li>
                  </ul>
                          <p>
                      <?php the_excerpt_max_charlength('300'); ?> ..
                  </p>
              </div><!--End Post Right-->
          </div><!--End latestCatPost-->
          <?php endwhile; ?>
        <div class="catPosts">
			<?php $getposts = new WP_query(); $getposts->query('showposts='.$Webcolors['bigmoreitems'].'&offset=1&cat='.$section); ?>
            <?php global $wp_query; $wp_query->in_the_loop = true; ?>
            <ul>
                <?php while ($getposts->have_posts()) : $getposts->the_post(); ?>
                <li>
                    <a href="<?php the_permalink();?>" class="smallpostThumb">
                    <?php the_post_thumbnail(); ?></a>
                    <a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php echo short_title('...', 6); ?></a>
                </li>
                <?php endwhile; ?>
            </ul>
     </div><!--End smallCatPosts-->
    </div><!--End Cat Content--> 
    <div class="catWidgetBtm">
        <a href="<?php print get_category_link($section); ?>" class="bigCatMore">مقالات أكثر ..</a>
    </div><!--End catWidgetTop -->
</div><!--End Category Widget Big-->
<?php endforeach; ?> 
</div><!--End Big Categories-->