<div id="blog-contact" class="min-10px">
<div id="maincontect-right" class="blogshowlatest">
<div id="maincontect-left" class="blogshowlatest">
<div id="maincontect-center" class="blogshowlatest">
<div class="blog-contact">
<div class="blog-spacer"></div>


<section id="main-content">

<?php
// set the $paged variable
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
// query the posts of your custom post types
query_posts( array(
		'post_type' => array(
					'events',
					'photo',
					'link',
					'article',
					'post'
				),
				'paged' => $paged ) // for paging links to work
			);

if (have_posts()) :
	while (have_posts()) : the_post(); ?> 
<div class="post-article">
<span class="post-date-info"><span class="post-date-info-y"><?php the_time('Y-')?></span><?php the_time('m-d')?></span>
<div class="post-head-section">
<div class="post-head-section-right"></div>
<div class="post-head-section-center"></div>
<div class="post-head-section-left"></div>
</div>
<div class="post-center-section">
<div class="post-center-section-right"></div>
<div class="post-center-section-center">
<div class="post-thumb">
<div id="pgoto-in-post">
 <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(150,150) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
    echo '<img src="'. get_template_directory_uri().'/PRtheme/img/mhgoz-general/no-img/nothumb.png" alt="'.the_title().'" />';
}
?>
<a>
</div>
</div>
<div class="post-short-show">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="post-link-name"><?php shortened_title(); ?></a>
<br>
<span class="post-words">
<?php echo substr(get_the_excerpt(), 0,220); ?>
</span>
</div>
</div>
<div class="post-center-section-left"></div>
</div>
<div class="post-bottom-section">
<div class="post-bottom-section-right"></div>
<div class="post-bottom-section-center"></div>
<div class="post-bottom-section-left"></div>
</div>
<a href="<?php the_permalink(); ?>" title="تابع المزيد" class="readmore"></a>
</div> 
<?php endwhile;
endif; ?>






<div id="main-pager">
<?php next_posts_link('<span class="newer-adds"></span>') ?>
<?php previous_posts_link('<span class="older-adds"></span>') ?>
</div>
<div id="main-pagerno">
<?php if (function_exists("pagination")) {
    pagination($additional_loop->max_num_pages);
} ?>
</div>
<?php wp_reset_query(); ?>

</section>
   </div>

</div>
</div>
</div>
</div>


<div id="footer-section">
<div id="footer-section-top-right"></div>
<div id="footer-section-top-center"></div>
<div id="footer-section-top-left"></div></div>

<div id="after-footer-effect"></div>
<a title="اظهار اخر التحديثات" class="latest-adds-button"  id="linkhover"></a>
<a title="إخفاء اخر التحديثات" class="latest-adds-button-up" id="hide_button" style="display:none"></a>
<a href="http://www.mhgoz.com/"  title="تصميم و تطوير محجوز . كوم" target="_blank" id="mhgozright"></a>
<div id="rights"><strong><?php bloginfo('name'); ?> </strong><?php echo comicpress_copyright(); ?></div>
<div id="footerHtml">
<?php echo of_get_option('mhgoz_html_code_text'); ?>
</div>
</div>
</body>
</html>