| 1 |
<?php |
| 2 |
/** |
| 3 |
* Smart Post Show |
| 4 |
* |
| 5 |
* @link https://smartpostshow.com/ |
| 6 |
* @since 2.2.0 |
| 7 |
* @package Smart_Post_Show |
| 8 |
* |
| 9 |
* @wordpress-plugin |
| 10 |
* Plugin Name: Smart Post Show (formerly Post Carousel) |
| 11 |
* Plugin URI: https://smartpostshow.com/ |
| 12 |
* Description: Filter and display posts, pages, taxonomy (categories, tags, & post formats), in beautiful layouts (carousel, grid) easily without coding! Highly customizable and developer-friendly with free active support. |
| 13 |
* Version: 2.2.5 |
| 14 |
* Author: ShapedPlugin |
| 15 |
* Author URI: http://shapedplugin.com/ |
| 16 |
* License: GPL-2.0+ |
| 17 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 18 |
* Text Domain: smart-post-show |
| 19 |
* Domain Path: /languages |
| 20 |
*/ |
| 21 |
|
| 22 |
if ( ! defined( 'ABSPATH' ) ) { |
| 23 |
exit; // Exit if accessed directly. |
| 24 |
} |
| 25 |
|
| 26 |
/** |
| 27 |
* Currently plugin version. |
| 28 |
* Start at version 2.0.0 and use SemVer - https://semver.org |
| 29 |
* Rename this for your plugin and update it as you release new versions. |
| 30 |
*/ |
| 31 |
define( 'SMART_POST_SHOW_VERSION', '2.2.5' ); |
| 32 |
// define( 'SMART_POST_SHOW_VERSION', uniqid() ); |
| 33 |
define( 'SMART_POST_SHOW_BASENAME', plugin_basename( __FILE__ ) ); |
| 34 |
|
| 35 |
/** |
| 36 |
* The code that runs during plugin activation. |
| 37 |
* This action is documented in includes/class-smart-post-show-activator.php |
| 38 |
*/ |
| 39 |
function activate_smart_post_show() { |
| 40 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-smart-post-show-activator.php'; |
| 41 |
Smart_Post_Show_Activator::activate(); |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* The code that runs during plugin deactivation. |
| 46 |
* This action is documented in includes/class-smart-post-show-deactivator.php |
| 47 |
*/ |
| 48 |
function deactivate_smart_post_show() { |
| 49 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-smart-post-show-deactivator.php'; |
| 50 |
Smart_Post_Show_Deactivator::deactivate(); |
| 51 |
} |
| 52 |
|
| 53 |
register_activation_hook( __FILE__, 'activate_smart_post_show' ); |
| 54 |
register_deactivation_hook( __FILE__, 'deactivate_smart_post_show' ); |
| 55 |
|
| 56 |
/** |
| 57 |
* The core plugin class that is used to define internationalization, |
| 58 |
* admin-specific hooks, and public-facing site hooks. |
| 59 |
*/ |
| 60 |
require plugin_dir_path( __FILE__ ) . 'includes/class-smart-post-show.php'; |
| 61 |
|
| 62 |
/** |
| 63 |
* Begins execution of the plugin. |
| 64 |
* |
| 65 |
* Since everything within the plugin is registered via hooks, |
| 66 |
* then kicking off the plugin from this point in the file does |
| 67 |
* not affect the page life cycle. |
| 68 |
* |
| 69 |
* @since 2.0.0 |
| 70 |
*/ |
| 71 |
function run_smart_post_show() { |
| 72 |
$plugin = new Smart_Post_Show(); |
| 73 |
$plugin->run(); |
| 74 |
} |
| 75 |
|
| 76 |
require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 77 |
if ( ! ( is_plugin_active( 'smart-post-show-pro/smart-post-show-pro.php' ) || is_plugin_active_for_network( 'smart-post-show-pro/smart-post-show-pro.php' ) ) ) { |
| 78 |
run_smart_post_show(); |
| 79 |
} |
| 80 |
|