# cf7-grid-layout/3.3.4/includes/class-cf7-grid-layout-activator.php

Smart Grid-Layout Design for Contact Form 7, version 3.3.4. 43 lines.

- Page: https://pluginprobe.com/plugins/cf7-grid-layout/3.3.4/code/includes/class-cf7-grid-layout-activator.php
- Raw: https://pluginprobe.com/plugins/cf7-grid-layout/3.3.4/raw/includes/class-cf7-grid-layout-activator.php
- Modified: 2018-03-15T13:10:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cf7-grid-layout/3.3.4/code/includes/class-cf7-grid-layout-activator.php#L10-L20`.

```php
<?php

/**
 * Fired during plugin activation
 *
 * @link       http://syllogic.in
 * @since      1.0.0
 *
 * @package    Cf7_Grid_Layout
 * @subpackage Cf7_Grid_Layout/includes
 */

/**
 * Fired during plugin activation.
 *
 * This class defines all code necessary to run during the plugin's activation.
 *
 * @since      1.0.0
 * @package    Cf7_Grid_Layout
 * @subpackage Cf7_Grid_Layout/includes
 * @author     Aurovrata V. <vrata@syllogic.in>
 */
class Cf7_Grid_Layout_Activator {

	/**
	 * Short Description. (use period)
	 *
	 * Long Description.
	 *
	 * @since    1.0.0
	 */
	public static function activate() {
		if(!is_plugin_active( 'contact-form-7/wp-contact-form-7.php' )){
      if(is_multisite()){
        exit('Contact Form 7 plugin needs to be activated first. If you have activated it on select sites,
        you will need to activate the Post My CF7 Form plugin on those sites only');
      }
      exit('This plugin requires the Contact Form 7 plugin to be activated first');
    }
	}

}

```
