| 1 |
<?php |
| 2 |
// If this file is called directly, abort. |
| 3 |
if ( ! defined( 'WPINC' ) ) { |
| 4 |
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.'; |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
|
| 9 |
/* |
| 10 |
Plugin Name: Starter Templates by Gradient Themes |
| 11 |
Description: Plugin used to install demo data for themes developed and submitted by Gradient Themes. |
| 12 |
Version: 1.2.13 |
| 13 |
Author: gradientthemes |
| 14 |
Author URI: www.gradientthemes.com |
| 15 |
Tested up to: 7.0.0 |
| 16 |
Generated By: http://gradientthemes.com |
| 17 |
License: GPL-2.0+ |
| 18 |
Text Domain: gradient-starter-templates |
| 19 |
Domain Path: /languages |
| 20 |
*/ |
| 21 |
|
| 22 |
/*Define Constants for this plugin*/ |
| 23 |
define( 'gradient_starter_templates_VERSION', '1.2.13' ); |
| 24 |
define( 'gradient_starter_templates_PLUGIN_NAME', 'gradient-starter-templates' ); |
| 25 |
define( 'gradient_starter_templates_PATH', plugin_dir_path( __FILE__ ) ); |
| 26 |
define( 'gradient_starter_templates_URL', plugin_dir_url( __FILE__ ) ); |
| 27 |
define( 'gradient_starter_templates_TEMPLATE_URL', gradient_starter_templates_URL.'includes/demo-data/' ); |
| 28 |
define( 'gradient_starter_templates_SCRIPT_PREFIX', ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '' ); |
| 29 |
|
| 30 |
|
| 31 |
add_filter( 'doing_it_wrong_trigger_error', '__return_false' ); |
| 32 |
|
| 33 |
/** |
| 34 |
* The code that runs during plugin activation. |
| 35 |
* This action is documented in includes/class-gradient-starter-templates-activator.php |
| 36 |
*/ |
| 37 |
function activate_gradient_starter_templates() { |
| 38 |
require_once gradient_starter_templates_PATH . 'includes/activator.php'; |
| 39 |
gradient_starter_templates_Activator::activate(); |
| 40 |
} |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
/** |
| 46 |
* The core plugin class that is used to define internationalization, |
| 47 |
* admin-specific hooks, and public-facing site hooks. |
| 48 |
*/ |
| 49 |
require gradient_starter_templates_PATH . 'includes/init.php'; |
| 50 |
|
| 51 |
|
| 52 |
/** |
| 53 |
* The code that runs during plugin deactivation. |
| 54 |
* This action is documented in includes/class-gradient-starter-templates-deactivator.php |
| 55 |
*/ |
| 56 |
function deactivate_gradient_starter_templates() { |
| 57 |
require_once gradient_starter_templates_PATH . 'includes/deactivator.php'; |
| 58 |
gradient_starter_templates_Deactivator::deactivate(); |
| 59 |
} |
| 60 |
|
| 61 |
register_activation_hook( __FILE__, 'activate_gradient_starter_templates' ); |
| 62 |
register_deactivation_hook( __FILE__, 'deactivate_gradient_starter_templates' ); |
| 63 |
|
| 64 |
/** |
| 65 |
* Begins execution of the plugin. |
| 66 |
* |
| 67 |
* Since everything within the plugin is registered via hooks, |
| 68 |
* then kicking off the plugin from this point in the file does |
| 69 |
* not affect the page life cycle. |
| 70 |
* |
| 71 |
* @since 1.0.0 |
| 72 |
*/ |
| 73 |
if( !function_exists( 'run_gradient_starter_templates')){ |
| 74 |
|
| 75 |
function run_gradient_starter_templates() { |
| 76 |
|
| 77 |
return gradient_starter_templates::instance(); |
| 78 |
} |
| 79 |
run_gradient_starter_templates()->run(); |
| 80 |
} |