Your IP : 216.73.216.95


Current Path : /var/www/ooareogundevinitiative/wp-content/themes/pain/framework/templates/blog/single/
Upload File :
Current File : /var/www/ooareogundevinitiative/wp-content/themes/pain/framework/templates/blog/single/entry.php

<?php
$jwstheme_options = $GLOBALS['jwstheme_options'];
$tb_post_show_post_image = (int) isset($jwstheme_options['tb_post_show_post_image']) ? $jwstheme_options['tb_post_show_post_image'] : 1;
$tb_post_show_post_title = (int) isset($jwstheme_options['tb_post_show_post_title']) ? $jwstheme_options['tb_post_show_post_title'] : 1;
$tb_post_show_post_meta = (int) isset($jwstheme_options['tb_post_show_post_meta']) ? $jwstheme_options['tb_post_show_post_meta'] : 1;
$tb_post_show_post_desc = (int) isset($jwstheme_options['tb_post_show_post_desc']) ? $jwstheme_options['tb_post_show_post_desc'] : 1;
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="jw-blog-item">
		<div class="jw-header">
		<?php if (has_post_thumbnail()) the_post_thumbnail('jwstheme_custom_blog_single_size'); ?>
			<div class="jw-header-inner">
                <div class="jw-publish">
				<span class="jw-day"><?php echo get_the_date('d'); ?></span>
				<span class="jw-month"><?php echo get_the_date('M'); ?></span>
                </div>
				<ul class="jw-meta">
					<li class="jw-author"><?php echo __('By ', 'pain').'<span>'.get_the_author().'</span>'; ?></li>
					<li class="jw-view"><?php echo '<span>'. getPostViews(get_the_ID()).'</span>'; ?></li>
                    <?php $num_comments = get_comments_number();  ?>
					<li class="jw-coment"><?php echo '<span>'.$num_comments.__(' Comments ', 'pain').'</span>'; ?></li>
                </ul>
				<h3 class="jw-title"><?php the_title(); ?></h3>
			</div>
		</div>
		<div class="jw-content">
			<?php
				the_content();
				wp_link_pages(array(
					'before' => '<div class="page-links">' . __('Pages:', 'pain'),
					'after' => '</div>',
				));
			?>
		</div>
        <div class="clear-both"></div>
         <div class="tag-meta">
                <span class="title-tag">POST TAGS:</span>
                <ul>
                <?php
                    $custom_post_tags = get_the_tags();
                    if ( $custom_post_tags ) {
                             foreach( $custom_post_tags as $tag ) {
                                $tags_arr[] = $tag -> name;
                                }
                             }
                             if( isset($tags_arr)) {
                             $uniq_tags_arr = array_unique( $tags_arr );
                             foreach( $uniq_tags_arr as $tag ) {
                             // LIST ALL THE TAGS FOR DESIRED POST TYPE
                             $sanitizeTag =  sanitize_title($tag);
                             $tag_link = get_term_by('name', $tag, 'post_tag');
                             echo '<li><a href="'. get_tag_link($tag_link->term_id).'">' .$tag. '</a></li>';
                                    }
                             }else{
                                echo "<span>"."Not Tags"."</span>";
                             }
                ?>
            </ul>
        </div>
	</div>
</article>