bibhamrokhanpin/wp-content/__plugins/wp-trending-post-slider-and-widget/templates/slider/design-1.php

53 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2024-04-10 12:01:06 +00:00
<?php
/**
* 'wtpsw_popular_post' Design 1 Shortcodes HTML
*
* @package WP Trending Post Slider and Widget
* @since 1.5
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<div class="wtpsw-post-slides">
<div class="wtpsw-post-list">
<div class="wtpsw-medium-5 wtpswcolumns">
<div class="wtpsw-post-image-bg">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(500,500)); ?></a>
</div>
</div>
<div class="wtpsw-medium-7 wtpswcolumns">
<h2 class="wtpsw-post-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<?php if($showdate == 'true' || $showauthor == 'true' || $show_comment_count == 'true') { ?>
<div class="wtpsw-post-stats">
<?php if($showauthor == 'true') {
$wtpsw_post_stats[] = "<span>".__( 'By', 'wtpsw' )." <a href='".get_author_posts_url( $post->post_author )."'>".get_the_author()."</a></span>";
} ?>
<?php if($showdate == "true") {
$wtpsw_post_stats[] = "<span>".get_the_date()."</span>";
} ?>
<?php if( $show_comment_count == "true" && $comment_text ) {
$wtpsw_post_stats[] = "<span class='wtpsw-post-comment'>".$comment_text."</span>";
} ?>
<?php echo join(' / ', $wtpsw_post_stats); ?>
</div>
<?php } ?>
<?php if($showcontent == "true") { ?>
<div class="wtpsw-post-content">
<div class="wtpsw-sub-content"><?php echo wtpsw_get_post_excerpt( get_the_content(), '', $words_limit); ?></div>
</div>
<?php } ?>
</div>
</div>
</div>