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

83 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.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