| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Gridable |
| 4 |
* Plugin URI: https://pixelgrade.com/ |
| 5 |
* Description: A simple and intuitive tool for organizing your content into columns and rows. |
| 6 |
* Version: 1.2.12 |
| 7 |
* Author: Pixelgrade |
| 8 |
* Author URI: https://pixelgrade.com/ |
| 9 |
* License: GPL-2.0-or-later |
| 10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 11 |
* Text Domain: gridable |
| 12 |
* Domain Path: /languages |
| 13 |
* Requires at least: 5.9.0 |
| 14 |
* Tested up to: 7.1 |
| 15 |
* Requires PHP: 7.4 |
| 16 |
*/ |
| 17 |
|
| 18 |
// If this file is called directly, abort. |
| 19 |
if ( ! defined( 'WPINC' ) ) { |
| 20 |
die; |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* The code that runs during plugin activation. |
| 25 |
* This action is documented in includes/class-gridable-activator.php |
| 26 |
*/ |
| 27 |
function gridable_activate() { |
| 28 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-gridable-activator.php'; |
| 29 |
Gridable_Activator::activate(); |
| 30 |
} |
| 31 |
|
| 32 |
/** |
| 33 |
* The code that runs during plugin deactivation. |
| 34 |
* This action is documented in includes/class-gridable-deactivator.php |
| 35 |
*/ |
| 36 |
function gridable_deactivate() { |
| 37 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-gridable-deactivator.php'; |
| 38 |
Gridable_Deactivator::deactivate(); |
| 39 |
} |
| 40 |
|
| 41 |
register_activation_hook( __FILE__, 'gridable_activate' ); |
| 42 |
register_deactivation_hook( __FILE__, 'gridable_deactivate' ); |
| 43 |
|
| 44 |
/** |
| 45 |
* The core plugin class that is used to define internationalization, |
| 46 |
* admin-specific hooks, and public-facing site hooks. |
| 47 |
*/ |
| 48 |
require plugin_dir_path( __FILE__ ) . 'includes/class-gridable.php'; |
| 49 |
|
| 50 |
/** |
| 51 |
* Begins execution of the plugin. |
| 52 |
* |
| 53 |
* Since everything within the plugin is registered via hooks, |
| 54 |
* then kicking off the plugin from this point in the file does |
| 55 |
* not affect the page life cycle. |
| 56 |
* |
| 57 |
* @since 1.0.0 |
| 58 |
*/ |
| 59 |
function gridable_run() { |
| 60 |
global $gridable_plugin; |
| 61 |
$gridable_plugin = new Gridable( '1.2.12' ); |
| 62 |
$gridable_plugin->run(); |
| 63 |
|
| 64 |
} |
| 65 |
gridable_run(); |
| 66 |
|