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

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