PluginProbe
Snippet Shortcodes / 2.0
Snippet Shortcodes v2.0
5.2.1 5.2 5.1.8 5.1.6 5.1.7 5.1.5 trunk 1.0 1.1 1.2 1.3 1.3.1 1.4 1.5 1.5.1 1.6 1.6.1 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.8 2.0 2.0.1 All 74 releases
shortcode-variables / shortcode-variables.php

shortcode-variables.php in Snippet Shortcodes 2.0, at shortcode-variables.php

62 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') or die("Jog on!");
4
5 /**
6 * Plugin Name: Shortcode Variables
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: 2.0
9 * Author: YeKen
10 * Author URI: http://www.YeKen.uk
11 * License: GPL2
12 * Text Domain: shortcode-variables
13 */
14 /* Copyright 2019 YeKen.uk
15
16 This program is free software; you can redistribute it and/or modify
17 it under the terms of the GNU General Public License, version 2, as
18 published by the Free Software Foundation.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 */
29
30 define( 'SH_CD_ABSPATH', plugin_dir_path( __FILE__ ) );
31
32 define( 'SH_CD_PLUGIN_VERSION', '2.0' );
33 define( 'SH_CD_PLUGIN_NAME', 'Shortcode Variables' );
34 define( 'SH_CD_TABLE', 'SH_CD_SHORTCODES' );
35 define( 'SH_CD_SLUG', 'sh-cd-shortcode-variables' );
36 define( 'SH_CD_SHORTCODE', 'sv' );
37 define( 'SH_CD_PREMIUM_PRICE', 5.00 );
38 define( 'SH_CD_UPGRADE_LINK', 'https://sv.yeken.uk/upgrade' );
39
40 // -----------------------------------------------------------------------------------------
41 // AC: Include all relevant PHP files
42 // -----------------------------------------------------------------------------------------
43
44 include_once SH_CD_ABSPATH . 'includes/class.presets.php';
45 include_once SH_CD_ABSPATH . 'includes/hooks.php';
46 include_once SH_CD_ABSPATH . 'includes/functions.php';
47 include_once SH_CD_ABSPATH . 'includes/db.php';
48 include_once SH_CD_ABSPATH . 'includes/license.php';
49 include_once SH_CD_ABSPATH . 'includes/shortcode.user.php';
50 include_once SH_CD_ABSPATH . 'includes/shortcode.presets.core.php';
51 include_once SH_CD_ABSPATH . 'includes/shortcode.presets.free.php';
52 include_once SH_CD_ABSPATH . 'includes/shortcode.presets.premium.php';
53 include_once SH_CD_ABSPATH . 'includes/pages/pages.list.php';
54 include_once SH_CD_ABSPATH . 'includes/pages/pages.premade.php';
55 include_once SH_CD_ABSPATH . 'includes/pages/pages.edit.php';
56 include_once SH_CD_ABSPATH . 'includes/pages/pages.license.php';
57
58 // -----------------------------------------------------------------------------------------
59 // AC: Load relevant language files
60 // -----------------------------------------------------------------------------------------
61
62 load_plugin_textdomain( SH_CD_SLUG, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );