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

Smart Grid-Layout Design for Contact Form 7, version 4.12. 42 lines.

- Page: https://pluginprobe.com/plugins/cf7-grid-layout/4.12/code/includes/class-cf7-grid-layout-activator.php
- Raw: https://pluginprobe.com/plugins/cf7-grid-layout/4.12/raw/includes/class-cf7-grid-layout-activator.php
- Modified: 2021-11-02T16:43:00+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/4.12/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 Smart Grid-layout plugin on those sites only','cf7-grid-alyout'));
      }
      exit(__('This plugin requires the Contact Form 7 plugin to be activated first', 'cf7-grid-layout') );
    }
  }

}

```
