| 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: 1.6 |
| 9 |
* Author: YeKen |
| 10 |
* Author URI: http://www.YeKen.uk |
| 11 |
* License: GPL2 |
| 12 |
* Text Domain: shortcode-variables |
| 13 |
*/ |
| 14 |
/* Copyright 2014 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', '1.6'); |
| 33 |
|
| 34 |
// ----------------------------------------------------------------------------------------- |
| 35 |
// Activation - create table |
| 36 |
// ----------------------------------------------------------------------------------------- |
| 37 |
|
| 38 |
register_activation_hook( __FILE__, 'sh_cd_create_database_table'); |
| 39 |
|
| 40 |
// ----------------------------------------------------------------------------------------- |
| 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 |
// AC: Load relevant language files |
| 52 |
// ----------------------------------------------------------------------------------------- |
| 53 |
load_plugin_textdomain( SH_CD_SLUG, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); |
| 54 |
|
| 55 |
// ----------------------------------------------------------------------------------------- |
| 56 |
// AC: DEV Stuff here (!!!! REMOVE !!!!) |
| 57 |
// ----------------------------------------------------------------------------------------- |
| 58 |
|