PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.3
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.3
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 4.0.3, at main.php

89 lines 3.5 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://wpsmartpost.com/
6 * @since 2.2.0
7 * @package Smart_Post_Show
8 *
9 * @wordpress-plugin
10 * Plugin Name: Smart Post
11 * Plugin URI: https://wpsmartpost.com/
12 * Description: <a href="https://wpsmartpost.com/" target="_blank">Smart Post</a> is an Advanced Gutenberg Blocks Library plugin with <a href="https://wpsmartpost.com/blocks/" target="_blank"><strong>60+ Post Layout and Builder blocks</strong></a> and <a href="https://wpsmartpost.com/patterns/" target="_blank"><strong>250+ Ready Patterns Library</strong></a> to showcase your content beautifully. Create stunning layouts like post grid, post list, post slider, post thumbnail slider, post carousel, news ticker, post timeline, and additional page builder blocks and modules—all with just a few clicks. <br> Perfect for blogs, news, magazines, portfolios, and personal websites. Smart Post is also an excellent choice for niche sites like personal blogs, travel blogs, fashion blogs, food blogs, recipe blogs, and more.
13 * Version: 4.0.3
14 * Author: ShapedPlugin LLC
15 * Author URI: https://shapedplugin.com/
16 * License: GPL-2.0+
17 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
18 * Text Domain: post-carousel
19 * Domain Path: /languages
20 * Requires at least: 5.9
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', '4.0.3' );
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 if ( ! defined( 'SHAPEDPLIUGIN_OFFER_BANNER_LOADED' ) ) {
76 define( 'SHAPEDPLIUGIN_OFFER_BANNER_LOADED', true );
77
78 /**
79 * The file is responsible for generating admin offer banner.
80 */
81 require_once SP_PC_PATH . 'admin/views/notices/offer-banner.php';
82 }
83 }
84
85 require_once ABSPATH . 'wp-admin/includes/plugin.php';
86 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' ) ) ) {
87 run_smart_post_show();
88 }
89