| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* |
| 5 |
* @package Solid_Testimonial |
| 6 |
* @author GS Plugins <hello@gsplugins.com> |
| 7 |
* @license GPL-2.0+ |
| 8 |
* @link https://www.gsplugins.com/ |
| 9 |
* @copyright 2015 GS Plugins |
| 10 |
* |
| 11 |
* @wordpress-plugin |
| 12 |
* Plugin Name: Solid Testimonials |
| 13 |
* Plugin URI: https://www.gsplugins.com/wordpress-plugins/ |
| 14 |
* Description: Discover the Ultimate Responsive Testimonials Slider for Showcasing Client Testimonials and Recommendations. Easily Display Anywhere on Your Site using the Simple Shortcode [gs_testimonial id=1]. Explore <a href="https://testimonial.gsplugins.com/">Solid Testimonials Demo</a> and Comprehensive <a href="https://docs.gsplugins.com/gs-testimonial-slider/">Documentation</a>. |
| 15 |
* Version: 3.3.10 |
| 16 |
* Author: GS Plugins |
| 17 |
* Author URI: https://www.gsplugins.com/ |
| 18 |
* Text Domain: gs-testimonial |
| 19 |
* License: GPL-2.0+ |
| 20 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 21 |
* |
| 22 |
*/ |
| 23 |
// If this file is called directly, abort. |
| 24 |
if ( !defined( 'WPINC' ) ) { |
| 25 |
exit; |
| 26 |
} |
| 27 |
/** |
| 28 |
* Defining constants |
| 29 |
*/ |
| 30 |
if ( !defined( 'GSTM_VERSION' ) ) { |
| 31 |
define( 'GSTM_VERSION', '3.3.10' ); |
| 32 |
} |
| 33 |
if ( !defined( 'GSTM_MENU_POSITION' ) ) { |
| 34 |
define( 'GSTM_MENU_POSITION', 39 ); |
| 35 |
} |
| 36 |
if ( !defined( 'GSTM_PLUGIN_DIR' ) ) { |
| 37 |
define( 'GSTM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 38 |
} |
| 39 |
if ( !defined( 'GSTM_PLUGIN_URI' ) ) { |
| 40 |
define( 'GSTM_PLUGIN_URI', plugins_url( '', __FILE__ ) ); |
| 41 |
} |
| 42 |
if ( !defined( 'GSTM_PLUGIN_FILE' ) ) { |
| 43 |
define( 'GSTM_PLUGIN_FILE', __FILE__ ); |
| 44 |
} |
| 45 |
if ( function_exists( 'gstm_fs' ) ) { |
| 46 |
gstm_fs()->set_basename( false, __FILE__ ); |
| 47 |
} else { |
| 48 |
if ( !function_exists( 'gstm_fs' ) ) { |
| 49 |
// Create a helper function for easy SDK access. |
| 50 |
function gstm_fs() { |
| 51 |
global $gstm_fs; |
| 52 |
if ( !isset( $gstm_fs ) ) { |
| 53 |
// Activate multisite network integration. |
| 54 |
if ( !defined( 'WP_FS__PRODUCT_12861_MULTISITE' ) ) { |
| 55 |
define( 'WP_FS__PRODUCT_12861_MULTISITE', true ); |
| 56 |
} |
| 57 |
// Include Freemius SDK. |
| 58 |
require_once dirname( __FILE__ ) . '/freemius/start.php'; |
| 59 |
$gstm_fs = fs_dynamic_init( array( |
| 60 |
'id' => '12861', |
| 61 |
'slug' => 'gs-testimonial', |
| 62 |
'premium_slug' => 'gs-testimonial-pro', |
| 63 |
'type' => 'plugin', |
| 64 |
'public_key' => 'pk_4a6b7553615bb8b8b5c545954816f', |
| 65 |
'is_premium' => false, |
| 66 |
'premium_suffix' => '- Pro', |
| 67 |
'has_addons' => false, |
| 68 |
'has_paid_plans' => true, |
| 69 |
'trial' => array( |
| 70 |
'days' => 14, |
| 71 |
'is_require_payment' => true, |
| 72 |
), |
| 73 |
'menu' => array( |
| 74 |
'slug' => 'edit.php?post_type=gs_testimonial', |
| 75 |
'first-path' => 'edit.php?post_type=gs_testimonial&page=gs-testimonial-plugins-help', |
| 76 |
), |
| 77 |
'is_live' => true, |
| 78 |
'is_org_compliant' => true, |
| 79 |
) ); |
| 80 |
} |
| 81 |
return $gstm_fs; |
| 82 |
} |
| 83 |
|
| 84 |
// Init Freemius. |
| 85 |
gstm_fs(); |
| 86 |
// Signal that SDK was initiated. |
| 87 |
do_action( 'gstm_fs_loaded' ); |
| 88 |
} |
| 89 |
if ( !gstm_fs()->is_paying_or_trial() ) { |
| 90 |
function gs_tm_free_vs_pro_page() { |
| 91 |
add_submenu_page( |
| 92 |
'edit.php?post_type=gs_testimonial', |
| 93 |
'Free Pro Trial', |
| 94 |
'Free Pro Trial', |
| 95 |
'delete_posts', |
| 96 |
gstm_fs()->get_trial_url() |
| 97 |
); |
| 98 |
} |
| 99 |
|
| 100 |
add_action( 'admin_menu', 'gs_tm_free_vs_pro_page', 20 ); |
| 101 |
} |
| 102 |
/** |
| 103 |
* Initiate Autoloader for Class Load |
| 104 |
* |
| 105 |
* @since 1.0.0 |
| 106 |
*/ |
| 107 |
if ( !class_exists( '\\GSTM\\Autoloader' ) ) { |
| 108 |
require GSTM_PLUGIN_DIR . 'includes/autoloader.php'; |
| 109 |
\GSTM\Autoloader::init(); |
| 110 |
} |
| 111 |
require_once GSTM_PLUGIN_DIR . '/includes/plugin.php'; |
| 112 |
} |