PluginProbe
Snippet Shortcodes / 2.1
Snippet Shortcodes v2.1
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
← All changes | shortcode-variables.php +27 -20 1.22.1 View file →
@@ -4,18 +4,18 @@
4 4
5 5 /**
6 6 * Plugin Name: Shortcode Variables
7 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: 1.2
8 + * Version: 2.1
9 9 * Author: YeKen
10 10 * Author URI: http://www.YeKen.uk
11 11 * License: GPL2
12 12 * Text Domain: shortcode-variables
13 13 */
14 -/* Copyright 2014 YeKen.uk
14 +/* Copyright 2019 YeKen.uk
15 15
16 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
17 + it under the terms of the GNU General Public License, version 2, as
18 18 published by the Free Software Foundation.
19 19
20 20 This program is distributed in the hope that it will be useful,
21 21 but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -26,30 +26,37 @@
26 26 along with this program; if not, write to the Free Software
27 27 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 28 */
29 29
30 -define('SH_CD_ABSPATH', plugin_dir_path( __FILE__ ));
30 +define( 'SH_CD_ABSPATH', plugin_dir_path( __FILE__ ) );
31 31
32 -// -----------------------------------------------------------------------------------------
33 -// Activation - create table
34 -// -----------------------------------------------------------------------------------------
35 -register_activation_hook( __FILE__, 'sh_cd_create_database_table');
32 +define( 'SH_CD_PLUGIN_VERSION', '2.1' );
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' );
36 39
37 -
38 40 // -----------------------------------------------------------------------------------------
39 41 // AC: Include all relevant PHP files
40 42 // -----------------------------------------------------------------------------------------
41 43
42 -include SH_CD_ABSPATH . 'includes/globals.php';
43 -include SH_CD_ABSPATH . 'includes/hooks.php';
44 -include SH_CD_ABSPATH . 'includes/pages.php';
45 -include SH_CD_ABSPATH . 'includes/functions.php';
46 -include SH_CD_ABSPATH . 'includes/shortcode.php';
47 -include SH_CD_ABSPATH . 'includes/shortcode-premade.php';
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 +
48 58 // -----------------------------------------------------------------------------------------
49 59 // AC: Load relevant language files
50 60 // -----------------------------------------------------------------------------------------
51 -load_plugin_textdomain( SH_CD_SLUG, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
52 -
53 -// -----------------------------------------------------------------------------------------
54 -// AC: DEV Stuff here (!!!! REMOVE !!!!)
55 -// -----------------------------------------------------------------------------------------
61 +
62 +load_plugin_textdomain( SH_CD_SLUG, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );