| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Canvas |
| 4 |
* Plugin URI: https://codesupply.co/cnvs/ |
| 5 |
* Description: A revolutionary block-based page builder used for building layouts, an interplay of the WordPress block editor features and exceptional UI design. |
| 6 |
* Version: 2.5.1 |
| 7 |
* Author: Code Supply Co. |
| 8 |
* Author URI: https://codesupply.co/ |
| 9 |
* License: GPL-2.0+ |
| 10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 11 |
* Text Domain: canvas |
| 12 |
* Domain Path: /languages |
| 13 |
* |
| 14 |
* @link https://codesupply.co |
| 15 |
* @package Canvas |
| 16 |
*/ |
| 17 |
|
| 18 |
// If this file is called directly, abort. |
| 19 |
if ( ! defined( 'WPINC' ) ) { |
| 20 |
die; |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* Variables |
| 25 |
*/ |
| 26 |
define( 'CNVS_URL', plugin_dir_url( __FILE__ ) ); |
| 27 |
define( 'CNVS_PATH', plugin_dir_path( __FILE__ ) ); |
| 28 |
|
| 29 |
/** |
| 30 |
* The code that runs during plugin activation. |
| 31 |
* This action is documented in includes/class-canvas-activator.php |
| 32 |
*/ |
| 33 |
function cnvs_activate() { |
| 34 |
do_action( 'cnvs_plugin_activation' ); |
| 35 |
} |
| 36 |
register_activation_hook( __FILE__, 'cnvs_activate' ); |
| 37 |
|
| 38 |
/** |
| 39 |
* The code that runs during plugin deactivation. |
| 40 |
* This action is documented in includes/class-canvas-deactivator.php |
| 41 |
*/ |
| 42 |
function cnvs_deactivate() { |
| 43 |
do_action( 'cnvs_plugin_deactivation' ); |
| 44 |
} |
| 45 |
register_deactivation_hook( __FILE__, 'cnvs_deactivate' ); |
| 46 |
|
| 47 |
/** |
| 48 |
* Language |
| 49 |
*/ |
| 50 |
load_plugin_textdomain( 'canvas', false, plugin_basename( CNVS_PATH ) . '/languages' ); |
| 51 |
|
| 52 |
/** |
| 53 |
* The core plugin class that is used to define internationalization, |
| 54 |
* admin-specific hooks, and public-facing site hooks. |
| 55 |
*/ |
| 56 |
require_once plugin_dir_path( __FILE__ ) . '/core/class-canvas.php'; |
| 57 |
|