| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die("Jog on!"); |
| 4 |
|
| 5 |
/** |
| 6 |
* Plugin Name: Snippet Shortcodes |
| 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 |
| 9 |
* Requires at least: 6.0 |
| 10 |
* Tested up to: 6.5 |
| 11 |
* Requires PHP: 7.4 |
| 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 2024 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 |
|
| 37 |
define( 'SH_CD_PLUGIN_VERSION', '4.2' ); |
| 38 |
define( 'SH_CD_PLUGIN_NAME', 'Snippet Shortcodes' ); |
| 39 |
define( 'SH_CD_TABLE', 'SH_CD_SHORTCODES' ); |
| 40 |
define( 'SH_CD_TABLE_MULTISITE', 'SH_CD_SHORTCODES_MULTISITE' ); |
| 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_FREE_SHORTCODE_LIMIT', 10 ); |
| 45 |
define( 'SH_CD_PREMIUM_PRICE', 2.99 ); |
| 46 |
define( 'SH_CD_UPGRADE_LINK', 'https://shop.yeken.uk/product/shortcode-variables/' ); |
| 47 |
|
| 48 |
// ----------------------------------------------------------------------------------------- |
| 49 |
// AC: Include all relevant PHP files |
| 50 |
// ----------------------------------------------------------------------------------------- |
| 51 |
|
| 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'; |
| 75 |
|