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 +25 -20 1.62.1 View file →
@@ -4,15 +4,15 @@
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.6
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 17 it under the terms of the GNU General Public License, version 2, as
18 18 published by the Free Software Foundation.
@@ -26,32 +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 -define('SH_CD_PLUGIN_VERSION', '1.6');
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' );
33 39
34 40 // -----------------------------------------------------------------------------------------
35 -// Activation - create table
41 +// AC: Include all relevant PHP files
36 42 // -----------------------------------------------------------------------------------------
37 43
38 -register_activation_hook( __FILE__, 'sh_cd_create_database_table');
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';
39 57
40 58 // -----------------------------------------------------------------------------------------
41 -// AC: Include all relevant PHP files
42 -// -----------------------------------------------------------------------------------------
43 -
44 -include SH_CD_ABSPATH . 'includes/globals.php';
45 -include SH_CD_ABSPATH . 'includes/hooks.php';
46 -include SH_CD_ABSPATH . 'includes/pages.php';
47 -include SH_CD_ABSPATH . 'includes/functions.php';
48 -include SH_CD_ABSPATH . 'includes/shortcode.php';
49 -include SH_CD_ABSPATH . 'includes/shortcode-premade.php';
50 -// -----------------------------------------------------------------------------------------
51 59 // AC: Load relevant language files
52 60 // -----------------------------------------------------------------------------------------
53 -load_plugin_textdomain( SH_CD_SLUG, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
54 61
55 -// -----------------------------------------------------------------------------------------
56 -// AC: DEV Stuff here (!!!! REMOVE !!!!)
57 -// -----------------------------------------------------------------------------------------
62 +load_plugin_textdomain( SH_CD_SLUG, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );