There is a file called default.php located in uploades/slm_templates. Here is the contents of that file:
<div class=”clearclass<?php echo esc_attr( ($xyz++%4) ); ?> col-md-3 col-sm-6 “>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?> itemscope=”” itemtype=”https://schema.org/BlogPosting”>
<div class=”rowtight”>
<?php if(isset($virtue[‘post_summery_default’]) && ($virtue[‘post_summery_default’] != ‘text’)) {
if($home_sidebar == true) {
$textsize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
$imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
} else {
$textsize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
$imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
}
if (has_post_thumbnail( $post->ID ) ) {
$image_id = get_post_thumbnail_id( $post->ID );
$image_url = wp_get_attachment_image_src( $image_id, ‘full’ );
$thumbnailURL = $image_url[0];
$image = aq_resize($thumbnailURL, $img_width, 300, true);
if(empty($image)) { $image = $thumbnailURL; }
$img_srcset = kt_get_srcset_output($img_width, ‘300’, $thumbnailURL, $image_id);
} else {
$thumbnailURL = virtue_post_default_placeholder();
$image = aq_resize($thumbnailURL, $img_width, 300, true);
if(empty($image)) { $image = $thumbnailURL; }
$img_srcset = ”;
} ?>
<div class=”<?php echo esc_attr($imagesize);?>”>
<div class=”imghoverclass”>
” title=”<?php the_title(); ?>”>
”
width=”<?php echo esc_attr($img_width);?>” height=”230″
<?php echo $img_srcset; ?>
alt=”<?php the_title(); ?>”
class=”iconhover”
style=”display:block;”>
</div>
</div>
<?php $image = null; $thumbnailURL = null; ?>
<?php } else {
if (has_post_thumbnail( $post->ID ) ) {
if($home_sidebar == true) {
$textsize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
$imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
} else {
$textsize = ‘tcol-md-7 tcol-sm-12 tcol-ss-12’;
$imagesize = ‘tcol-md-12 tcol-sm-12 tcol-ss-12’;
}
$image_id = get_post_thumbnail_id( $post->ID );
$image_url = wp_get_attachment_image_src( $image_id, ‘full’ );
$thumbnailURL = $image_url[0];
$image = aq_resize($thumbnailURL, $img_width, 300, true);
if(empty($image)) { $image = $thumbnailURL; }
$img_srcset = kt_get_srcset_output($img_width, ‘300’, $thumbnailURL, $image_id);
?>
<div class=”<?php echo esc_attr($imagesize);?>”>
<div class=”imghoverclass”>
” title=”<?php the_title(); ?>”>
”
width=”<?php echo esc_attr($img_width);?>” height=”230″
<?php echo $img_srcset; ?>
alt=”<?php the_title(); ?>”
class=”iconhover”
style=”display:block;”>
</div>
</div>
<?php $image = null; $thumbnailURL = null; ?>
<?php } else {
$textsize = ‘tcol-md-12 tcol-ss-12’;
}
}?>
<div class=”<?php echo esc_attr($textsize);?> postcontent”>
<?php get_template_part(‘templates/post’, ‘date’); ?>
<header class=”home_blog_title”>
“>
<h4 class=”entry-title”><?php the_title(); ?></h4>
<div class=”subhead color_gray”>
<span class=”postauthortop author vcard” data-toggle=”tooltip” data-placement=”top” data-original-title=”<?php echo get_the_author() ?>”>
<span itemprop=”author” class=”kt_hidden”>” class=”fn” rel=”author”><?php echo get_the_author() ?></span>
<i class=”icon-user”></i>
</span>
<span class=”kad-hidepostauthortop”> | </span>
<?php $post_category = get_the_category($post->ID); if (!empty($post_category)) { ?>
<span class=”postedintop” data-toggle=”tooltip” data-placement=”top” data-original-title=”<?php
foreach ($post_category as $category) {
echo $category->name .’ ‘;
} ?>”><i class=”icon-folder-open”></i></span>
<?php }?>
<?php if(comments_open()) { ?>
<span class=”kad-hidepostedin”>|</span>
<span class=”postcommentscount” data-toggle=”tooltip” data-placement=”top” data-original-title=”<?php $num_comments = get_comments_number(); echo esc_attr($num_comments); ?>”>
<i class=”icon-comments-alt”></i>
</span>
<?php } ?>
</div>
</header>
<div class=”entry-content”>
<p><?php echo virtue_excerpt(34); ?><br />“><?php _e(‘READ MORE’, ‘virtue’);?></p>
</div>
<footer>
</footer>
</div>
</div>
</article></div>
-
This reply was modified 6 years, 10 months ago by
Marius L. J.. Reason: Added code tags