initial commit

This commit is contained in:
2024-04-29 13:12:44 +05:45
commit 34887303c5
19300 changed files with 5268802 additions and 0 deletions

View File

@ -0,0 +1,49 @@
<?php
/**
* 'wtpsw_carousel' 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-carousel-slides">
<div class="wtpsw-medium-12 wtpswcolumns">
<div class="wtpsw-post-image-bg">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array(500,500 )); ?></a>
</div>
<h4 class="wtpsw-post-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h4>
<?php if( $showdate == 'true' || $showauthor == 'true' || $show_comment_count == 'true' ) { ?>
<div class="wtpsw-post-stats">
<?php if( $showauthor == 'true' ) {
$wtpsw_post_stats[] = "<span>".esc_html__( 'By', 'wtpsw' )." <a href='".get_author_posts_url( $post->post_author )."'>".get_the_author()."</a></span>";
}
if($showdate == "true") {
$wtpsw_post_stats[] = "<span>".get_the_date()."</span>";
}
if( $show_comment_count == "true" && $comment_text ) {
$wtpsw_post_stats[] = "<span class='wtpsw-post-comment'>".esc_attr($comment_text)."</span>";
}
echo join( ' / ', $wtpsw_post_stats ); ?>
</div>
<?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>

View File

@ -0,0 +1,50 @@
<?php
/**
* 'wtpsw_gridbox' 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-gridbox <?php if( $wtpsw_count == 1 ) { echo 'wtpsw-medium-6'; } else { echo 'wtpsw-medium-3'; } ?> wtpswcolumns">
<a class="wtpsw-link-overlay" href="<?php the_permalink(); ?>"></a>
<div class="wtpsw-post-list">
<div class="wtpsw-post-image-bg">
<?php the_post_thumbnail( array(500,500 )); ?>
<div class="wtpsw-post-list-content">
<h4 class="wtpsw-post-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h4>
<?php if($showdate == 'true' || $showauthor == 'true' || $show_comment_count == 'true') { ?>
<div class="wtpsw-post-stats">
<?php if( $showauthor == 'true' ) {
$wtpsw_post_stats[] = "<span>".esc_html__( 'By', 'wtpsw' )." <a href='".get_author_posts_url( $post->post_author )."'>".get_the_author()."</a></span>";
}
if( $showdate == "true" ) {
$wtpsw_post_stats[] = "<span>".get_the_date()."</span>";
}
if( $show_comment_count == "true" && $comment_text ) {
$wtpsw_post_stats[] = "<span class='wtpsw-post-comment'>".esc_attr($comment_text)."</span>";
}
echo join( ' / ', $wtpsw_post_stats ); ?>
</div>
<?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>
</div>

View File

@ -0,0 +1,53 @@
<?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>".esc_html__( 'By', 'wtpsw' )." <a href='".get_author_posts_url( $post->post_author )."'>".get_the_author()."</a></span>";
}
if($showdate == "true") {
$wtpsw_post_stats[] = "<span>".get_the_date()."</span>";
}
if( $show_comment_count == "true" && $comment_text ) {
$wtpsw_post_stats[] = "<span class='wtpsw-post-comment'>".esc_attr($comment_text)."</span>";
}
echo join( ' / ', $wtpsw_post_stats ); ?>
</div>
<?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>

View File

@ -0,0 +1,50 @@
<?php
/**
* 'Trending List Widget' Design 1 Shortcodes HTML
*
* @package WP Trending Post Slider and Widget
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<li class="wtpsw-post-li">
<?php if( $show_thumb ) { ?>
<div class="wtpsw-post-thumb-left">
<a href="<?php the_permalink(); ?>">
<?php if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) {
the_post_thumbnail( array(100, 100) );
} ?>
</a>
</div>
<?php } ?>
<div class="wtpsw-post-thumb-right">
<h6> <a class="wtpsw-post-title" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6>
<?php if( $show_date ) { ?>
<div class="wtpsw-date-post"><?php echo get_the_date(); ?></div>
<?php } ?>
<div class="wtpsw-post-stats">
<?php if( $show_author ) {
$wtpsw_stats[] = "<span class='wtpsw-post-author'>".esc_html__( 'By ', 'wtpsw' )."<a href='".get_author_posts_url( $post->post_author )."'>".get_the_author()."</a></span>";
}
if( $show_comment_count && $comment_text ) {
$wtpsw_stats[] = "<span class='wtpsw-post-comment'>".esc_attr($comment_text)."</span>";
}
echo join( ' | ', $wtpsw_stats ); ?>
</div>
<?php if( $show_content ) { ?>
<div class="wtpsw-post-cnt">
<?php echo wtpsw_get_post_excerpt( $post->ID, null, $content_length ); ?>
</div>
<?php } ?>
</div>
</li>