| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Fired during plugin activation |
| 5 |
* |
| 6 |
* @link http://syllogic.in |
| 7 |
* @since 1.0.0 |
| 8 |
* |
| 9 |
* @package Cf7_Grid_Layout |
| 10 |
* @subpackage Cf7_Grid_Layout/includes |
| 11 |
*/ |
| 12 |
|
| 13 |
/** |
| 14 |
* Fired during plugin activation. |
| 15 |
* |
| 16 |
* This class defines all code necessary to run during the plugin's activation. |
| 17 |
* |
| 18 |
* @since 1.0.0 |
| 19 |
* @package Cf7_Grid_Layout |
| 20 |
* @subpackage Cf7_Grid_Layout/includes |
| 21 |
* @author Aurovrata V. <vrata@syllogic.in> |
| 22 |
*/ |
| 23 |
class Cf7_Grid_Layout_Activator { |
| 24 |
|
| 25 |
/** |
| 26 |
* Short Description. (use period) |
| 27 |
* |
| 28 |
* Long Description. |
| 29 |
* |
| 30 |
* @since 1.0.0 |
| 31 |
*/ |
| 32 |
public static function activate() { |
| 33 |
if(!is_plugin_active( 'contact-form-7/wp-contact-form-7.php' )){ |
| 34 |
if(is_multisite()){ |
| 35 |
exit('Contact Form 7 plugin needs to be activated first. If you have activated it on select sites, |
| 36 |
you will need to activate the Post My CF7 Form plugin on those sites only'); |
| 37 |
} |
| 38 |
exit('This plugin requires the Contact Form 7 plugin to be activated first'); |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
} |
| 43 |
|