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,137 @@
<?php
/**
* Plugin Premium Offer Page
*
* @package Trending/Popular Post Slider and Widget
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
} ?>
<div class="wrap">
<h2><span class="wtpsw-sf-blue">WP Trending Post Slider and Widget </span>Including in <span class="wtpsw-sf-blue">Essential Plugin Bundle</span></h2>
<style>
/* Table CSS */
table, th, td {border: 1px solid #d1d1d1;}
table.wpos-plugin-list{width:100%; text-align: left; border-spacing: 0; border-collapse: collapse; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin-bottom: 50px;}
.wpos-plugin-list th {width: 16%; background: #2271b1; color: #fff; }
.wpos-plugin-list td {vertical-align: top;}
.wpos-plugin-type { text-align: left; color: #fff; font-weight: 700; padding: 0 10px; margin: 15px 0; }
.wpos-slider-list { font-size: 14px; font-weight: 500; padding: 0 10px 0 25px; }
.wpos-slider-list li {text-align: left; font-size: 13px; list-style: disc;}
.wtpsw-sf-blue{color:#6c63ff; font-weight:bold;}
.wtpsw-sf-btn{display: inline-block; font-size: 18px; padding: 10px 25px; border-radius: 100px; background-color: #46b450; border-color: #46b450; color: #fff !important; font-weight: 600; text-decoration: none;}
.wtpsw-sf-btn-orange{ background-color: #FF1000; border-color: #FF1000 ;}
.wtpsw-sf-btn:hover,
.wtpsw-sf-btn:focus{background-color: #3fa548; border-color: #3fa548;}
.wtpsw-sf-btn-orange:hover,
.wtpsw-sf-btn-orange:focus {background-color: #D01003 ; border-color: #D01003 ;}
</style>
<div id="poststuff">
<div id="post-body" class="metabox-holder">
<div id="post-body-content">
<div style="text-align: center; background: #DCDCDC; margin: 30px 0; padding: 10px 30px 30px 30px;">
<p style="font-weight: bold !important; font-size:20px !important;"><span style="color: #50c621;">Essential Plugin Bundle</span> + Any Leading Builders (Avada / Elementor / Divi / <br>VC-WPBakery / Site Origin / Beaver) = <span style="background: #50c621;color: #fff;padding: 2px 10px;">WordPress Magic</span></p>
<h4 style="color: #333; font-size: 14px; font-weight: 700;">Over 15K+ Customers Using <span style="color: #50c621 !important;">Essential Plugin Bundle</span></h4>
<a href="<?php echo esc_url( WTPSW_PLUGIN_LINK_UPGRADE ); ?>" target="_blank" class="wtpsw-sf-btn wtpsw-sf-btn-orange"><span class="dashicons dashicons-cart"></span> View Essential Plugin Bundle</a>
</div>
<h2 style="font-size: 24px; text-align: center; color: #6c63ff;">Bundle Deal Details</h2>
<table class="wpos-plugin-list">
<thead>
<tr>
<th><h3 class="wpos-plugin-type">Image Slider</h3></th>
<th><h3 class="wpos-plugin-type">Marketing</h3></th>
<th><h3 class="wpos-plugin-type">Photo Album</h3></th>
<th><h3 class="wpos-plugin-type">Publication</h3></th>
<th><h3 class="wpos-plugin-type">Showcase</h3></th>
<th><h3 class="wpos-plugin-type">WooCommerce</h3></th>
</tr>
<tr>
<td>
<ul class="wpos-slider-list">
<li>Accordion and Accordion Slider</li>
<li>WP Slick Slider and Image Carousel</li>
<li>WP Responsive Recent Post Slider/Carousel</li>
<li>WP Logo Showcase Responsive Slider and Carousel</li>
<li>WP Featured Content and Slider</li>
<li><span style="color:#2271b1; font-weight: bold;">Trending/Popular Post Slider and Widget</span></li>
<li>Timeline and History slider</li>
<li>Meta slider and carousel with lightbox</li>
<li>Post Category Image With Grid and Slider</li>
</ul>
</td>
<td>
<ul class="wpos-slider-list">
<li>Popup Anything - A Marketing Popup and Lead Generation Conversions</li>
<li>Countdown Timer Ultimate</li>
</ul>
</td>
<td>
<ul class="wpos-slider-list">
<li>Album and Image Gallery plus Lightbox</li>
<li>Portfolio and Projects</li>
<li>Video gallery and Player</li>
</ul>
</td>
<td>
<ul class="wpos-slider-list">
<li>WP Responsive Recent Post Slider/Carousel</li>
<li>WP News and Scrolling Widgets</li>
<li>WP Blog and Widget</li>
<li>Blog Designer - Post and Widget</li>
<li><span style="color:#2271b1; font-weight: bold;">Trending/Popular Post Slider and Widget</span></li>
<li>WP Featured Content and Slider</li>
<li>Timeline and History slider</li>
<li>Testimonial Grid and Testimonial Slider plus Carousel with Rotator Widget</li>
<li>Post Ticker Ultimate</li>
<li>Post grid and filter ultimate</li>
</ul>
</td>
<td>
<ul class="wpos-slider-list">
<li>Testimonial Grid and Testimonial Slider plus Carousel with Rotator Widget</li>
<li>Team Slider and Team Grid Showcase plus Team Carousel</li>
<li>Hero Banner Ultimate</li>
<li>WP Logo Showcase Responsive Slider and Carousel</li>
</ul>
</td>
<td>
<ul class="wpos-slider-list">
<li>Product Slider and Carousel with Category for WooCommerce</li>
<li>Product Categories Designs for WooCommerce</li>
<li>Popup Anything - A Marketing Popup and Lead Generation Conversions</li>
<li>Countdown Timer Ultimate</li>
</ul>
</td>
</tr>
</thead>
</table>
<div style="text-align: center; margin-bottom:30px">
<h3 class="wtpsw-sf-blue" style="margin:0; margin-bottom:10px; font-size:24px; font-weight:bold;">Use Essential Plugin Bundle</h3>
<h1 style="font-size: 28px; font-weight: 700; letter-spacing: -1px; text-align: center; padding:0; margin-bottom: 5px;">With Your Favourite Page Builders</h1>
<span style="font-size: 14px; color: #000;">and see how Essential Plugins can help you.</span>
</div>
<div style="text-align: center;">
<img style="width: 100%; margin-bottom:30px;" src="<?php echo esc_url( WTPSW_URL ); ?>assets/images/image-upgrade.png" alt="image-upgrade" title="image-upgrade" />
<div style="font-size: 14px; margin-bottom:10px;"><span class="wtpsw-sf-blue">Trending/Popular Post Slider </span>Including in <span class="wtpsw-sf-blue">Essential Plugin Bundle</span></div>
<a href="<?php echo esc_url( WTPSW_PLUGIN_LINK_UPGRADE ); ?>" target="_blank" class="wtpsw-sf-btn wtpsw-sf-btn-orange"><span class="dashicons dashicons-cart"></span> View Essential Plugin Bundle</a>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,98 @@
<?php
/**
* Settings Page
*
* @package WP Trending Post Slider and Widget
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$reg_post_types = wtpsw_get_post_types();
$tp_support_post_types = wtpsw_get_option( 'post_types', array() );
?>
<div class="wrap wtpsw-settings">
<h2><?php esc_html_e( 'Trending Post - Settings', 'wtpsw' ); ?></h2>
<?php
if( isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true' ) {
echo '<div id="message" class="updated notice notice-success is-dismissible">
<p>'.esc_html__( "Your changes saved successfully.", "wtpsw" ).'</p>
</div>';
}
?>
<form action="options.php" method="POST" id="wtpsw-settings-form" class="wtpsw-settings-form">
<?php settings_fields( 'wtpsw_plugin_options' );
global $wtpsw_options; ?>
<div id="wtpsw-general-settings" class="post-box-container wtpsw-general-settings">
<div class="metabox-holder">
<div class="meta-box-sortables ui-sortable">
<div id="general" class="postbox">
<div class="postbox-header">
<h2 class="hndle">
<span><?php esc_html_e( 'General Settings', 'wtpsw' ); ?></span>
</h2>
</div>
<div class="inside">
<table class="form-table wtpsw-general-settings-tbl">
<tbody>
<tr>
<th scope="row">
<label for="wtpsw-post-within"><?php esc_html_e( 'Post Within', 'wtpsw' ); ?></label>
</th>
<td>
<select id="wtpsw-post-within" class="wtpsw-post-within" name="wtpsw_options[post_range]">
<option value=""><?php esc_attr_e( 'All Time', 'wtpsw' ); ?></option>
<option value="daily" <?php selected( $wtpsw_options['post_range'], 'daily' ); ?>><?php esc_html_e( 'Today', 'wtpsw' ); ?></option>
<option value="last_day" <?php selected( $wtpsw_options['post_range'], 'last_day' ); ?>><?php esc_html_e( 'Last Day', 'wtpsw' ); ?></option>
<option value="last_week" <?php selected( $wtpsw_options['post_range'], 'last_week' ); ?>><?php esc_html_e( 'Last 7 Days', 'wtpsw' ); ?></option>
<option value="last_month" <?php selected( $wtpsw_options['post_range'], 'last_month' ); ?>><?php esc_html_e( 'Last Month', 'wtpsw' ); ?></option>
</select><br/>
<span class="description"><?php esc_html_e( 'Select time range for post visibility. Note: The post published within this time range will be visible.', 'wtpsw' ); ?></span>
</td>
</tr>
<tr>
<th>
<label for="select-post-type"><?php esc_html_e( 'Select Post Types', 'wtpsw' ); ?></label>
</th>
<td>
<?php if( ! empty( $reg_post_types )) {
foreach ( $reg_post_types as $post_key => $post_label ) { ?>
<div class="ftpp-post-type-wrap">
<label>
<input type="checkbox" id="ftpp-tp-post-<?php echo esc_attr($post_key); ?>" value="<?php echo esc_attr($post_key); ?>" name="wtpsw_options[post_types][]" <?php checked( in_array( $post_key, $tp_support_post_types ), true ); ?> />
<?php echo esc_attr( $post_label ); ?>( <?php echo esc_attr__('Post Type','wtpsw').' : '.esc_attr( $post_key ); ?> )
</label>
</div>
<?php } } ?>
<span class="description"><?php esc_html_e( 'Select post type box for trending post. You can enter post type name in shortcode parameter.', 'wtpsw' ); ?></span> <br/>
</td>
</tr>
<tr>
<td colspan="2" valign="top" scope="row">
<input type="submit" id="wtpsw-settings-submit" name="wtpsw-settings-submit" class="button button-primary right" value="<?php esc_attr_e( 'Save Changes','wtpsw' ); ?>" />
</td>
</tr>
</tbody>
</table>
</div><!-- .inside -->
</div><!-- #general -->
</div><!-- .meta-box-sortables ui-sortable -->
</div><!-- .metabox-holder -->
</div><!-- #wtpsw-general-settings -->
</form><!-- end .wtpsw-settings-form -->
</div><!-- end .wtpsw-settings -->