PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.5
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.5
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / main.php

main.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 2.2.5, at main.php

80 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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