PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.2
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.2
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.2, at main.php

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