<?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();  ?>

<div class="post post-type-1">
<span class="post-small"><?php echo wpshed_get_custom_field( 'wpshed_textarea' ); ?></span>
<a href="<?php the_permalink() ?>" class="post-title"><?php echo wp_trim_words( get_the_title(), 9 ); ?></a>
<p class="post-p">
<div class="n-img-w-z">
<a class="img-open 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>
					<a class="post-img">
<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="wr"><?php echo wpshed_get_custom_field( 'wpshed_textfield' ); ?></span>  
							<?php $excerpt = get_the_excerpt();
    						echo string_limit_words($excerpt,20);
  							?> .. <a href="<?php the_permalink() ?>">لمزيد</a>

</p>
<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>
<div class="clear"></div>
</div>



<?php endwhile; ?>
<div id="navy"><div class="clear"></div>
<?php wpbeginner_numeric_posts_nav(); ?><div class="clear"></div></div>

<!-- End of the main loop -->

<!-- Add the pagination functions here. -->
<br clear="all" />
<?php else : ?>
<p class="error">ل يوجد م تبحث عنه</p>
<?php endif; ?>



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


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



</div>


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