cf7-conditional-fields
Last commit date
js
11 months ago
jsdoc-out
11 months ago
Wpcf7cfMailParser.php
4 years ago
admin-style.css
2 years ago
admin-style.css.map
2 years ago
admin-style.scss
4 years ago
admin.php
2 years ago
cf7cf.php
1 year ago
conditional-fields.php
11 months ago
contact-form-7-conditional-fields.php
1 year ago
init.php
11 months ago
readme.txt
11 months ago
style.css
3 years ago
tg_pane_group.php
1 year ago
wpcf7cf-options.php
1 year ago
conditional-fields.php
49 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Conditional Fields for Contact Form 7 |
| 4 | * Plugin URI: http://bdwm.be/ |
| 5 | * Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7. |
| 6 | * Author: Jules Colle |
| 7 | * Version: 2.6.2 |
| 8 | * Author URI: http://bdwm.be/ |
| 9 | * Text Domain: cf7-conditional-fields |
| 10 | * License: GPL v2 or later |
| 11 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 12 | * Requires Plugins: contact-form-7 |
| 13 | */ |
| 14 | |
| 15 | /** |
| 16 | * This program is free software; you can redistribute it and/or modify |
| 17 | * it under the terms of the GNU General Public License as published by |
| 18 | * the Free Software Foundation; either version 2 of the License, or |
| 19 | * (at your option) any later version. |
| 20 | * |
| 21 | * This program is distributed in the hope that it will be useful, |
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | * GNU General Public License for more details. |
| 25 | * |
| 26 | * You should have received a copy of the GNU General Public License |
| 27 | * along with this program; if not, write to the Free Software |
| 28 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 29 | */ |
| 30 | |
| 31 | |
| 32 | if ( function_exists( 'wpcf7cf_pro_deactivate_free_version_notice' ) ) { |
| 33 | add_action( 'admin_notices', 'wpcf7cf_pro_deactivate_free_version_notice' ); |
| 34 | } else { |
| 35 | |
| 36 | function wpcf7cf_pro_deactivate_free_version_notice() { |
| 37 | ?> |
| 38 | <div class="notice notice-error is-dismissible"> |
| 39 | <p><?php |
| 40 | // translators: 1. <a>, 2. </a> |
| 41 | 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>' ); |
| 42 | ?></p> |
| 43 | </div> |
| 44 | <?php |
| 45 | } |
| 46 | |
| 47 | require_once __DIR__.'/init.php'; |
| 48 | |
| 49 | } |