%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/gachan/www/wp-content/themes/jekas/
Upload File :
Create Path :
Current File : /home/gachan/www/wp-content/themes/jekas/content.php

<?php

$post_image ='';

if(has_post_thumbnail())
    $post_image = wp_get_attachment_url(get_post_thumbnail_id()) ;

$title_resalt = function_exists('rwmb_meta') ? rwmb_meta('post_title_resalt') : '';
$jekas_print = !empty($title_resalt) ? str_replace($title_resalt,"<span>$title_resalt</span>",get_the_title()) : get_the_title();

$categories = wp_get_post_categories();
?>



<div class="post">

    <?php if(!empty($post_image)) :?>
     <img class="paddin_top_mini" src="<?php print esc_url($post_image) ?>" alt="<?php esc_attr_e('Image','jekas')?>"/>
    <?php endif;?>

    <h2><a href="<?php esc_url(get_permalink())?>"> <?php print $jekas_print ?> </a></h2>

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

    <div class="post-meta">
        <span><i class="fa fa-user"></i> <?php esc_html_e('By','jekas')?> <a href="<?php print esc_url(get_permalink())?>"> <?php print get_the_author()?></a></span>
        <span><i class="fa fa-tag"></i>
            <?php foreach($categories as $key => $category):?>
                <a href="<?php print esc_url(get_category_link($category))?>"><?php print $category->name?></a>
                <?php if ($key < count($categories) - 1) print  ',' ; ?>
            <?php endforeach;?>
        </span>
        <span><i class="fa fa-comments"></i> <a href="<?php print esc_url(get_permalink())?>"><?php print get_comments_number().' '.esc_html__('Comments','jekas'); ?></a></span>
    </div>

    <?php print apply_filters('the_content',$post->post_content);?>

    <?php elseif(is_page()) : ?>

        <p><?php print wp_trim_words(htmlentities($post->post_content),18,'...')?></p>

    <div class="post-meta">
        <span><i class="fa fa-user"></i> <?php esc_html_e('By','jekas')?> <a href="<?php print esc_url(get_permalink())?>"> <?php print get_the_author()?></a></span>
        <span><i class="fa fa-tag"></i>
            <?php foreach($categories as $key => $category):?>
                <a href="<?php print esc_url(get_category_link($category))?>"><?php print $category->name?></a>
                <?php if ($key < count($categories) - 1) print  ',' ; ?>
            <?php endforeach;?>
        </span>
        <span><i class="fa fa-comments"></i> <a href="<?php print esc_url(get_permalink())?>"><?php print get_comments_number().' '.esc_html__('Comments','jekas'); ?></a></span>
        <br>
        <a href="<?php print esc_url(get_permalink())?>" class="btn btn-primary pull-center"> <?php  esc_html_e('Read More','jekas')?></a>
    </div>

    <?php endif;?>



</div>

Zerion Mini Shell 1.0