| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die("Jog on!"); |
| 4 |
|
| 5 |
/** |
| 6 |
* Plugin Name: Snippet Shortcodes |
| 7 |
* Description: Create a library of custom shortcodes and reusable content, and seamlessly insert them into your posts and pages. |
| 8 |
* Version: 5.2 |
| 9 |
* Requires at least: 6.0 |
| 10 |
* Tested up to: 7.0.1 |
| 11 |
* Requires PHP: 8.1 |
| 12 |
* Author: Ali Colville |
| 13 |
* Author URI: https://www.YeKen.uk |
| 14 |
* License: GPL v2 or later |
| 15 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 16 |
* Text Domain: shortcode-variables |
| 17 |
*/ |
| 18 |
|
| 19 |
/* Copyright 2025 YeKen.uk |
| 20 |
|
| 21 |
This program is free software; you can redistribute it and/or modify |
| 22 |
it under the terms of the GNU General Public License, version 2, as |
| 23 |
published by the Free Software Foundation. |
| 24 |
|
| 25 |
This program is distributed in the hope that it will be useful, |
| 26 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 28 |
GNU General Public License for more details. |
| 29 |
|
| 30 |
You should have received a copy of the GNU General Public License |
| 31 |
along with this program; if not, write to the Free Software |
| 32 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 33 |
*/ |
| 34 |
|
| 35 |
define( 'SH_CD_ABSPATH', plugin_dir_path( __FILE__ ) ); |
| 36 |
define( 'SH_CD_PLUGIN_VERSION', '5.2' ); |
| 37 |
define( 'SH_CD_PLUGIN_NAME', 'Snippet Shortcodes' ); |
| 38 |
define( 'SH_CD_TABLE', 'SH_CD_SHORTCODES' ); |
| 39 |
define( 'SH_CD_TABLE_MULTISITE', 'SH_CD_SHORTCODES_MULTISITE' ); |
| 40 |
define( 'SH_CD_TABLE_REVISIONS', 'SH_CD_SHORTCODES_REVISIONS' ); |
| 41 |
define( 'SH_CD_SLUG', 'sh-cd-shortcode-variables' ); |
| 42 |
define( 'SH_CD_PREFIX', 'sh-cd-' ); |
| 43 |
define( 'SH_CD_SHORTCODE', 'sv' ); |
| 44 |
define( 'SH_CD_UPGRADE_LINK', 'https://shop.yeken.uk/product/shortcode-variables/' ); |
| 45 |
// Note: SH_CD_GET_PREMIUM_LINK is detected by the Premium plugin to determine if the main plugin is enabled. |
| 46 |
// Do not remove or rename the constant. |
| 47 |
define( 'SH_CD_GET_PREMIUM_LINK', 'https://snippetshortcodes.yeken.uk/download/' ); |
| 48 |
define( 'SH_CD_YEKEN_UPDATES_URL', 'https://yeken.uk/downloads/_updates/shortcode-variables.json' ); |
| 49 |
define( 'SH_CD_YEKEN_PREMIUM_RELEASE_MANIFEST', 'https://snippetshortcodes.yeken.uk/wp-content/plugins/snippet-shortcodes-premium/release.json' ); |
| 50 |
|
| 51 |
add_action( 'plugins_loaded', function() { |
| 52 |
|
| 53 |
include_once SH_CD_ABSPATH . 'includes/functions.php'; |
| 54 |
include_once SH_CD_ABSPATH . 'includes/class.presets.php'; |
| 55 |
include_once SH_CD_ABSPATH . 'includes/hooks.php'; |
| 56 |
include_once SH_CD_ABSPATH . 'includes/db.php'; |
| 57 |
include_once SH_CD_ABSPATH . 'includes/marketing.php'; |
| 58 |
include_once SH_CD_ABSPATH . 'includes/shortcode.marketing.php'; |
| 59 |
include_once SH_CD_ABSPATH . 'includes/shortcode.user.php'; |
| 60 |
include_once SH_CD_ABSPATH . 'includes/shortcode.presets.core.php'; |
| 61 |
include_once SH_CD_ABSPATH . 'includes/shortcode.presets.free.php'; |
| 62 |
include_once SH_CD_ABSPATH . 'includes/pages/page.list.php'; |
| 63 |
include_once SH_CD_ABSPATH . 'includes/pages/page.premade.php'; |
| 64 |
include_once SH_CD_ABSPATH . 'includes/pages/page.edit.php'; |
| 65 |
include_once SH_CD_ABSPATH . 'includes/pages/page.upgrade.php'; |
| 66 |
include_once SH_CD_ABSPATH . 'includes/pages/page.settings.php'; |
| 67 |
include_once SH_CD_ABSPATH . 'includes/pages/page.help.php'; |
| 68 |
include_once SH_CD_ABSPATH . 'includes/pages/page.import.php'; |
| 69 |
include_once SH_CD_ABSPATH . 'includes/tinymce.php'; |
| 70 |
include_once SH_CD_ABSPATH . 'includes/gutenberg.php'; |
| 71 |
}); |