<?php /**
 * Jthoor free theme v 1.0
 *
 * this site use free theme ffrom jthoor,com.
 *
 * @package 	Jthoor free theme 
 * @copyright	Copyright (c) 2013-2014, Jthoor 
 * @license		http://www.jthoor.com
 *
 * @since 		1.0
 */
 ?>
<?php get_header(); ?>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">






<ul class="linkd">
    	<li><a href="<?php bloginfo( 'url' ) ?>">الرئيسية</a></li>
        <li>»</li>
    	<li><a href="<?php bloginfo('url'); ?>/<?php echo  get_post_type( get_the_ID() ); ?> ">
    	<?php 
$post_type = get_post_type_object( get_post_type($post) );
echo $post_type->label ; ?>
</a></li>
        <li>»</li>
<li><?php the_category(', ') ?> </li>
        <li>»</li>
                <li><?php the_title(); ?></li>
    </ul>
        		
        		
        		
<div class="right">



<?php if ( have_posts() ) : ?>

<!-- Add the pagination functions here. -->

<!-- Start of the main loop. -->
<?php while ( have_posts() ) : the_post(); setPostViews(get_the_ID()); ?>

<div class="side-title"><?php echo wp_trim_words( get_the_title(), 900 ); ?></div>
<div class="about">
<span class="post-date"><i class="fa fa-calendar"></i><?php the_time('j  F  Y  g:ia ') ?></span>
<span class="post-views"><i class="fa  fa-eye"></i><?php  echo getPostViews(get_the_ID());; ?></span>
<span class="post-comments"><i class="fa fa-comments"></i><?php comments_number( '0', '1 ', '%' ); ?></span>
</div>


<br />
<div class="n-img-w-z2">
<a class="img-open2 fancybox" id="fancybox" href="<?php $image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'large', true);
echo $image_url[0];  ?>" title="<?php echo wp_trim_words( get_the_title(), 9 ); ?>" ><i class=" fa fa-search-plus"></i></a>
		<br />
			<a class="post-img2">
<img src="<?php $image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'large', true);
echo $image_url[0];  ?>" /></a></div>
<span class="post-small"><?php echo wpshed_get_custom_field( 'wpshed_textarea' ); ?></span>
<span class="writer-in"><?php echo wpshed_get_custom_field( 'wpshed_textfield' ); ?> : </span>


<?php the_content('ط§ظ„ظ…ط²ظٹط¯...');?>





<?php endwhile; ?>
<br clear="all" />
<?php else : ?>
<p class="error">لا يوجد م تبحث عنه</p>
<?php endif; ?>

		<?php comments_template(); ?> 


</div>
<div class="left">


<?php dynamic_sidebar( 'inleft' ); ?>



</div>


<div class="clear"></div>
<?php get_footer();?>