| @@ -3,13 +3,13 @@ | ||
| 3 | 3 | defined('ABSPATH') or die("Jog on!"); |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 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.1 | |
| 7 | + * Description: Create your own shortcodes and assign text / variables to it or use our premade ones. You can then embed these shortcodes throughout your entire site and only have to change the value in one place. | |
| 8 | + * Version: 4.2.2 | |
| 9 | 9 | * Requires at least: 6.0 |
| 10 | - * Tested up to: 7.0.1 | |
| 11 | - * Requires PHP: 8.1 | |
| 10 | + * Tested up to: 6.8 | |
| 11 | + * Requires PHP: 7.4 | |
| 12 | 12 | * Author: Ali Colville |
| 13 | 13 | * Author URI: https://www.YeKen.uk |
| 14 | 14 | * License: GPL v2 or later |
| 15 | 15 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 16 | 16 | * Text Domain: shortcode-variables |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | -/* Copyright 2025 YeKen.uk | |
| 19 | +/* Copyright 2024 YeKen.uk | |
| 20 | 20 | |
| 21 | 21 | This program is free software; you can redistribute it and/or modify |
| 22 | 22 | it under the terms of the GNU General Public License, version 2, as |
| 23 | 23 | published by the Free Software Foundation. |
| @@ -32,40 +32,43 @@ | ||
| 32 | 32 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 33 | 33 | */ |
| 34 | 34 | |
| 35 | 35 | define( 'SH_CD_ABSPATH', plugin_dir_path( __FILE__ ) ); |
| 36 | -define( 'SH_CD_PLUGIN_VERSION', '5.2.1' ); | |
| 36 | + | |
| 37 | +define( 'SH_CD_PLUGIN_VERSION', '4.2' ); | |
| 37 | 38 | define( 'SH_CD_PLUGIN_NAME', 'Snippet Shortcodes' ); |
| 38 | 39 | define( 'SH_CD_TABLE', 'SH_CD_SHORTCODES' ); |
| 39 | 40 | define( 'SH_CD_TABLE_MULTISITE', 'SH_CD_SHORTCODES_MULTISITE' ); |
| 40 | -define( 'SH_CD_TABLE_REVISIONS', 'SH_CD_SHORTCODES_REVISIONS' ); | |
| 41 | 41 | define( 'SH_CD_SLUG', 'sh-cd-shortcode-variables' ); |
| 42 | 42 | define( 'SH_CD_PREFIX', 'sh-cd-' ); |
| 43 | 43 | define( 'SH_CD_SHORTCODE', 'sv' ); |
| 44 | +define( 'SH_CD_FREE_SHORTCODE_LIMIT', 10 ); | |
| 45 | +define( 'SH_CD_PREMIUM_PRICE', 2.99 ); | |
| 44 | 46 | 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 | 47 | |
| 51 | -add_action( 'plugins_loaded', function() { | |
| 48 | +// ----------------------------------------------------------------------------------------- | |
| 49 | +// AC: Include all relevant PHP files | |
| 50 | +// ----------------------------------------------------------------------------------------- | |
| 52 | 51 | |
| 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 | -}); | |
| 52 | +include_once SH_CD_ABSPATH . 'includes/class.presets.php'; | |
| 53 | +include_once SH_CD_ABSPATH . 'includes/hooks.php'; | |
| 54 | +include_once SH_CD_ABSPATH . 'includes/functions.php'; | |
| 55 | +include_once SH_CD_ABSPATH . 'includes/db.php'; | |
| 56 | +include_once SH_CD_ABSPATH . 'includes/cron.php'; | |
| 57 | +include_once SH_CD_ABSPATH . 'includes/license.php'; | |
| 58 | + | |
| 59 | +$sh_cd_is_premium = sh_cd_license_is_premium(); | |
| 60 | + | |
| 61 | +define( 'SH_CD_IS_PREMIUM', $sh_cd_is_premium ); | |
| 62 | + | |
| 63 | +include_once SH_CD_ABSPATH . 'includes/shortcode.user.php'; | |
| 64 | +include_once SH_CD_ABSPATH . 'includes/shortcode.presets.core.php'; | |
| 65 | +include_once SH_CD_ABSPATH . 'includes/shortcode.presets.free.php'; | |
| 66 | +include_once SH_CD_ABSPATH . 'includes/shortcode.presets.premium.php'; | |
| 67 | +include_once SH_CD_ABSPATH . 'includes/pages/page.list.php'; | |
| 68 | +include_once SH_CD_ABSPATH . 'includes/pages/page.premade.php'; | |
| 69 | +include_once SH_CD_ABSPATH . 'includes/pages/page.edit.php'; | |
| 70 | +include_once SH_CD_ABSPATH . 'includes/pages/page.settings.php'; | |
| 71 | +include_once SH_CD_ABSPATH . 'includes/pages/page.license.php'; | |
| 72 | +include_once SH_CD_ABSPATH . 'includes/pages/page.help.php'; | |
| 73 | +include_once SH_CD_ABSPATH . 'includes/pages/page.import.php'; | |
| 74 | +include_once SH_CD_ABSPATH . 'includes/tinymce.php'; | |