PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 4.14
Smart Grid-Layout Design for Contact Form 7 v4.14
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 4.14, at cf7-grid-layout.php

85 lines 2.6 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: 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.14.1
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.14.1' );
27
28 if(! defined('WPCF7_AUTOP') ) define('WPCF7_AUTOP', false);
29
30
31 /** @since 2.6.0, NOTIFY USERS of forms requiring udpates */
32 define( 'CF7SG_VERSION_FORM_UPDATE', '4.11.0');
33 /** @since 4.4.0, Translated locales */
34 define( 'CF7SG_TRANSLATED_VERSION', '4.4.0');
35 /** @since 4.14.1 Major code update, upgrade requires testing */
36 define( 'CF7SG_MAJOR_UPDATE_VERSION', '4.14.0');
37
38 /**
39 * The code that runs during plugin activation.
40 * This action is documented in includes/class-cf7-grid-layout-activator.php
41 */
42 function activate_cf7_grid_layout() {
43 require_once plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout-activator.php';
44 Cf7_Grid_Layout_Activator::activate();
45 }
46
47 /**
48 * The code that runs during plugin deactivation.
49 * This action is documented in includes/class-cf7-grid-layout-deactivator.php
50 */
51 function deactivate_cf7_grid_layout() {
52 require_once plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout-deactivator.php';
53 Cf7_Grid_Layout_Deactivator::deactivate();
54 }
55
56 register_activation_hook( __FILE__, 'activate_cf7_grid_layout' );
57 register_deactivation_hook( __FILE__, 'deactivate_cf7_grid_layout' );
58
59 /**
60 * The core plugin class that is used to define internationalization,
61 * admin-specific hooks, and public-facing site hooks.
62 */
63 require plugin_dir_path( __FILE__ ) . 'includes/class-cf7-grid-layout.php';
64
65 /**
66 * Begins execution of the plugin.
67 *
68 * Since everything within the plugin is registered via hooks,
69 * then kicking off the plugin from this point in the file does
70 * not affect the page life cycle.
71 *
72 * @since 1.0.0
73 */
74 function run_cf7_grid_layout() {
75 $plugin = new Cf7_Grid_Layout(CF7_GRID_VERSION);
76 $plugin->run();
77
78 }
79 run_cf7_grid_layout();
80
81 //get cf7 translation strings.
82 function __cf7sg($string){
83 return __($string, 'contact-form-7');
84 }
85