-
Notifications
You must be signed in to change notification settings - Fork 18
/
conditional-fields.php
executable file
·49 lines (43 loc) · 1.91 KB
/
conditional-fields.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Plugin Name: Conditional Fields for Contact Form 7
* Plugin URI: http://bdwm.be/
* Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7.
* Author: Jules Colle
* Version: 2.5.6
* Author URI: http://bdwm.be/
* Text Domain: cf7-conditional-fields
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Requires Plugins: contact-form-7
*/
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( function_exists( 'wpcf7cf_pro_deactivate_free_version_notice' ) ) {
add_action( 'admin_notices', 'wpcf7cf_pro_deactivate_free_version_notice' );
} else {
function wpcf7cf_pro_deactivate_free_version_notice() {
?>
<div class="notice notice-error is-dismissible">
<p><?php
// translators: 1. <a>, 2. </a>
printf( __( '<strong>Conditional Fields for Contact Form 7</strong> needs to %1$sdeactivate the free plugin%1$s', 'cf7-conditional-fields' ), '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=cf7-conditional-fields%2Fconditional-fields.php&plugin_status=all&paged=1&s=', 'deactivate-plugin_cf7-conditional-fields/conditional-fields.php' ) . '">', '</a>' );
?></p>
</div>
<?php
}
require_once __DIR__.'/init.php';
}