| 1 |
<?php |
| 2 |
/** |
| 3 |
* The plugin bootstrap file |
| 4 |
* |
| 5 |
* @link http://syllogic.in |
| 6 |
* @since 1.0.0 |
| 7 |
* @package Cf7_Grid_Layout |
| 8 |
* |
| 9 |
* @wordpress-plugin |
| 10 |
* Plugin Name: CF7 Smart Grid Design Extension |
| 11 |
* Plugin URI: https://wordpress.org/plugins/cf7-grid-layout/ |
| 12 |
* GitHub Plugin URI: https://github.com/aurovrata/cf7-grid-layout |
| 13 |
* Description: Enabled responsive grid layout designs for Contact Form 7 forms. |
| 14 |
* Version: 4.4.4 |
| 15 |
* Author: Aurovrata V. |
| 16 |
* Author URI: https://profiles.wordpress.org/aurovrata |
| 17 |
* License: GPL-2.0+ |
| 18 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 19 |
* Text Domain: cf7-grid-layout |
| 20 |
* Domain Path: /languages |
| 21 |
*/ |
| 22 |
// If this file is called directly, abort. |
| 23 |
if ( ! defined( 'WPINC' ) ) { |
| 24 |
die; |
| 25 |
} |
| 26 |
define( 'CF7_GRID_VERSION', '4.4.4' ); |
| 27 |
|
| 28 |
if(! defined('WPCF7_AUTOP') ) define('WPCF7_AUTOP', false); |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
/** @since 2.6.0, NOTIFY USERS of forms requiring udpates */ |
| 33 |
define( 'CF7SG_VERSION_FORM_UPDATE', '4.0.0'); |
| 34 |
/** @since 4.4.0, Translated locales */ |
| 35 |
define( 'CF7SG_TRANSLATED_VERSION', '4.4.0'); |
| 36 |
/** |
| 37 |
* The code that runs during plugin activation. |
| 38 |
* This action is documented in includes/class-cf7-grid-layout-activator.php |
| 39 |
*/ |
| 40 |
function activate_cf7_grid_layout() { |
| 41 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout-activator.php'; |
| 42 |
Cf7_Grid_Layout_Activator::activate(); |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* The code that runs during plugin deactivation. |
| 47 |
* This action is documented in includes/class-cf7-grid-layout-deactivator.php |
| 48 |
*/ |
| 49 |
function deactivate_cf7_grid_layout() { |
| 50 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout-deactivator.php'; |
| 51 |
Cf7_Grid_Layout_Deactivator::deactivate(); |
| 52 |
} |
| 53 |
|
| 54 |
register_activation_hook( __FILE__, 'activate_cf7_grid_layout' ); |
| 55 |
register_deactivation_hook( __FILE__, 'deactivate_cf7_grid_layout' ); |
| 56 |
|
| 57 |
/** |
| 58 |
* The core plugin class that is used to define internationalization, |
| 59 |
* admin-specific hooks, and public-facing site hooks. |
| 60 |
*/ |
| 61 |
require plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout.php'; |
| 62 |
|
| 63 |
/** |
| 64 |
* Begins execution of the plugin. |
| 65 |
* |
| 66 |
* Since everything within the plugin is registered via hooks, |
| 67 |
* then kicking off the plugin from this point in the file does |
| 68 |
* not affect the page life cycle. |
| 69 |
* |
| 70 |
* @since 1.0.0 |
| 71 |
*/ |
| 72 |
function run_cf7_grid_layout() { |
| 73 |
$plugin = new Cf7_Grid_Layout(CF7_GRID_VERSION); |
| 74 |
$plugin->run(); |
| 75 |
|
| 76 |
} |
| 77 |
run_cf7_grid_layout(); |
| 78 |
|
| 79 |
//get cf7 translation strings. |
| 80 |
function __cf7sg($string){ |
| 81 |
return __($string, 'contact-form-7'); |
| 82 |
} |
| 83 |
|