PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 3.3.7
Smart Grid-Layout Design for Contact Form 7 v3.3.7
4.18.0 4.17.0 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10 4.11 4.12 4.13 4.14 All 119 releases
cf7-grid-layout / cf7-grid-layout.php

cf7-grid-layout.php in Smart Grid-Layout Design for Contact Form 7 3.3.7, at cf7-grid-layout.php

81 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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: http://wordpress.syllogic.in
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: 3.3.7
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', '3.3.7' );
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', '3.3.6');
34 /**
35 * The code that runs during plugin activation.
36 * This action is documented in includes/class-cf7-grid-layout-activator.php
37 */
38 function activate_cf7_grid_layout() {
39 require_once plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout-activator.php';
40 Cf7_Grid_Layout_Activator::activate();
41 }
42
43 /**
44 * The code that runs during plugin deactivation.
45 * This action is documented in includes/class-cf7-grid-layout-deactivator.php
46 */
47 function deactivate_cf7_grid_layout() {
48 require_once plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout-deactivator.php';
49 Cf7_Grid_Layout_Deactivator::deactivate();
50 }
51
52 register_activation_hook( __FILE__, 'activate_cf7_grid_layout' );
53 register_deactivation_hook( __FILE__, 'deactivate_cf7_grid_layout' );
54
55 /**
56 * The core plugin class that is used to define internationalization,
57 * admin-specific hooks, and public-facing site hooks.
58 */
59 require plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout.php';
60
61 /**
62 * Begins execution of the plugin.
63 *
64 * Since everything within the plugin is registered via hooks,
65 * then kicking off the plugin from this point in the file does
66 * not affect the page life cycle.
67 *
68 * @since 1.0.0
69 */
70 function run_cf7_grid_layout() {
71 $plugin = new Cf7_Grid_Layout(CF7_GRID_VERSION);
72 $plugin->run();
73
74 }
75 run_cf7_grid_layout();
76
77 //get cf7 translation strings.
78 function __cf7sg($string){
79 return __($string, 'contact-form-7');
80 }
81