Changeset 2284706
- Timestamp:
- 04/16/2020 07:51:00 AM (6 years ago)
- Location:
- amp-for-contact-form-7
- Files:
-
- 2 added
- 20 edited
-
tags/1.2/amp-for-contact-form-7.php (modified) (2 diffs)
-
tags/1.2/includes/Admin/Assets/css/admin.css (modified) (1 diff)
-
tags/1.2/includes/Admin/Assets/js/admin.js (modified) (1 diff)
-
tags/1.2/includes/Admin/Menu.php (modified) (1 diff)
-
tags/1.2/includes/FrontEnd/Assets/css/FrontEnd.css (modified) (3 diffs)
-
tags/1.2/includes/FrontEnd/Cf7.php (modified) (5 diffs)
-
tags/1.2/includes/FrontEnd/FrontEnd.php (modified) (1 diff)
-
tags/1.2/includes/FrontEnd/modules/checkbox.php (added)
-
tags/1.2/includes/FrontEnd/modules/clearform.php (modified) (1 diff)
-
tags/1.2/includes/activator.php (modified) (1 diff)
-
tags/1.2/readme.txt (modified) (2 diffs)
-
trunk/amp-for-contact-form-7.php (modified) (2 diffs)
-
trunk/includes/Admin/Assets/css/admin.css (modified) (1 diff)
-
trunk/includes/Admin/Assets/js/admin.js (modified) (1 diff)
-
trunk/includes/Admin/Menu.php (modified) (1 diff)
-
trunk/includes/FrontEnd/Assets/css/FrontEnd.css (modified) (3 diffs)
-
trunk/includes/FrontEnd/Cf7.php (modified) (5 diffs)
-
trunk/includes/FrontEnd/FrontEnd.php (modified) (1 diff)
-
trunk/includes/FrontEnd/modules/checkbox.php (added)
-
trunk/includes/FrontEnd/modules/clearform.php (modified) (1 diff)
-
trunk/includes/activator.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amp-for-contact-form-7/tags/1.2/amp-for-contact-form-7.php
r2282177 r2284706 47 47 * Define All Constants 48 48 */ 49 function define_constants()49 private function define_constants() 50 50 { 51 51 if (!defined('AMPCF7_NAME')) { … … 69 69 * Divided Admin And Public Section 70 70 */ 71 function load_dependencies()71 private function load_dependencies() 72 72 { 73 load_plugin_textdomain('AMPCF7', false, basename(dirname(__FILE__)) . '/languages'); 73 74 /** 74 75 * Admin Section -
amp-for-contact-form-7/tags/1.2/includes/Admin/Assets/css/admin.css
r2282177 r2284706 1 .ampcf7-css .admin_table {2 color: #000;3 font-size: 13px;4 }5 6 .ampcf7-css .admin_table td {7 padding: 10px;8 }9 10 .ampcf7-css .admin_table input[type="text"] {11 width: 100%;12 border-radius: 5px;13 line-height: 18px;14 padding: 10px;15 }16 17 .ampcf7-css .admin_table input[type="submit"] {18 border: 2px solid #0073aa;19 border-radius: 5px;20 box-sizing: border-box;21 background: #0085ba;22 color: #fff;23 cursor: pointer;24 font-weight: bold;25 line-height: 20px;26 padding: 10px;27 }28 29 .ampcf7-css .hint-class {30 font-size: 13px;31 color: red;32 font-weight: bold;33 line-height: 1.5;34 padding-left: 10px;35 } -
amp-for-contact-form-7/tags/1.2/includes/Admin/Assets/js/admin.js
r2282177 r2284706 1 1 jQuery(document).ready(function () { 2 3 jQuery("#captcha_checkbox").click(function () {4 5 if (jQuery(this).prop("checked") == true) {6 7 jQuery("#captcha_key").attr("required", true);8 9 10 } else if (jQuery(this).prop("checked") == false) {11 12 jQuery("#captcha_key").attr("required", false);13 14 }15 16 });17 18 // function onSubmit(captcha_key) {19 // grecaptcha.ready(() => {20 // grecaptcha.execute(captcha_key, {21 // action: ampcf7Ajax.ampcf7homeurl22 // }).then((token) => {23 // return true;24 // });25 // });26 // return false;27 // }28 29 // jQuery('#ampcf7_submit').submit(function () {30 // captcha_key = jQuery("#captcha_key").val();31 // console.log(captcha_key);32 // if (captcha_key !== '') {33 // // url = 'https://www.google.com/recaptcha/api.js?render=' + captcha_key;34 // // jQuery.getScript(url, function (arg) {35 // // console.log(arg);36 // // });37 38 // if (!onSubmit(captcha_key)) {39 // console.log("error");40 // jQuery("#captcha_key_error").fadeIn();41 // jQuery("#captcha_key_error").delay(5000).fadeOut(800);42 // return false;43 // }44 // return true;45 // }46 // return true;47 // });48 49 2 }); -
amp-for-contact-form-7/tags/1.2/includes/Admin/Menu.php
r2282177 r2284706 28 28 function register_menu_page() 29 29 { 30 31 add_menu_page(__('Ampcf7'), __('Amp CF7'), $this->user_level, AMPCF7_HANDLE, [$this, 'show_menu'], 'dashicons-schedule', 80); 32 } 33 34 /** 35 * Call Menu Function 36 */ 37 38 function show_menu() 39 { 40 41 switch ($_GET['page']) { 42 43 default: 44 new Templates\AmpCf7setting(); 45 break; 46 } 30 return true; 47 31 } 48 32 } -
amp-for-contact-form-7/tags/1.2/includes/FrontEnd/Assets/css/FrontEnd.css
r2282177 r2284706 1 1 form.amp-form-submit-success [submit-success], 2 form.amp-form-submit-success [submit-error] { 2 form.amp-form-submit-success [submit-error], 3 form.amp-form-initial [submit-success], 4 form.amp-form-initial [submit-error] { 3 5 display: none; 4 6 } 5 7 6 8 .ampcf7-successes-massage { 9 width: 100%; 10 padding: 0px 15px; 11 border: 1px solid green; 12 border-radius: 5px; 7 13 color: #363; 8 14 font-weight: bold; 9 15 line-height: 40px; 10 font-size: 24px;16 font-size: 18px; 11 17 visibility: hidden; 12 18 opacity: 0; 13 19 height: 0; 14 margin: 0; 20 margin: 0; 15 21 } 16 22 … … 65 71 66 72 .ampcf7-error-massage { 73 width: 100%; 74 padding: 0px 15px; 75 border: 1px solid red; 76 border-radius: 5px; 67 77 color: red; 68 78 font-weight: bold; 69 79 line-height: 40px; 70 font-size: 24px;80 font-size: 18px; 71 81 visibility: hidden; 72 82 opacity: 0; … … 76 86 77 87 form.amp-form-submit-error .ampcf7-error-massage { 78 animation-name: error; 79 animation-duration: 5s; 88 visibility: visible; 89 opacity: 1; 90 height: auto; 91 margin: 15px 0; 80 92 } 81 82 @-webkit-keyframes error {83 0% {84 visibility: visible;85 opacity: 1;86 height: auto;87 margin: 15px 0;88 }89 90 90% {91 visibility: visible;92 opacity: 1;93 height: auto;94 margin: 15px 0;95 }96 97 100% {98 visibility: hidden;99 opacity: 0;100 height: 0;101 }102 }103 104 @keyframes error {105 0% {106 visibility: visible;107 opacity: 1;108 height: auto;109 margin: 15px 0;110 }111 112 90% {113 visibility: visible;114 opacity: 1;115 height: auto;116 margin: 15px 0;117 }118 119 100% {120 visibility: hidden;121 opacity: 0;122 height: 0;123 }124 } -
amp-for-contact-form-7/tags/1.2/includes/FrontEnd/Cf7.php
r2282177 r2284706 15 15 class Cf7 16 16 { 17 private $formcount = 0; 18 17 19 public function __construct() 18 { 20 { 21 $this->load_module(); 19 22 $this->load_filter(); 20 $this->load_module();21 23 } 22 24 … … 29 31 add_filter('wpcf7_form_novalidate', [$this, 'ampcf7_novalidate'], 9, 0); 30 32 add_filter('wpcf7_form_id_attr', [$this, 'ampcf7_id_attr'], 9, 1); 31 add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1); 33 add_filter('wpcf7_change_atts', [$this, 'ampcf7_formclear'], 9, 1); 34 add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1); 32 35 } 33 36 … … 45 48 require_once 'modules/text.php'; 46 49 require_once 'modules/textarea.php'; 50 require_once 'modules/checkbox.php'; 47 51 require_once 'modules/clearform.php'; 48 49 //print_r(maybe_unserialize('')); 50 } 52 } 51 53 52 54 … … 64 66 */ 65 67 68 function ampcf7_formclear($pretag) 69 { 70 $pretag .= 'on="submit-success:ampform_'.$this->formcount.'.clear"'; 71 return $pretag; 72 } 73 74 /** 75 * Add Form Clear 76 */ 77 66 78 function ampcf7_id_attr($preid) 67 79 { 68 $preid .= 'ampform ';80 $preid .= 'ampform_'.$this->formcount; 69 81 return $preid; 70 82 } … … 75 87 76 88 function ampcf7_form_html($prehtml) 77 { 78 $ampcf7_active_captcha = get_option('ampcf7_active_captcha'); 79 $ampcf7_captchakey = get_option('ampcf7_captchakey'); 89 { 90 $this->formcount++; 80 91 81 $ampcf7_sucmessage = get_option('ampcf7_sucmessage'); 82 $ampcf7_errormessage = get_option('ampcf7_errormessage'); 83 84 if (empty($ampcf7_sucmessage)) 85 $ampcf7_sucmessage = 'Success! Thanks for Your Request.'; 86 87 if (empty($ampcf7_errormessage)) 88 $ampcf7_errormessage = 'Error! Please Try Again.'; 89 90 if ((!empty($ampcf7_active_captcha) && $ampcf7_active_captcha == 'yes') && (!empty($ampcf7_captchakey))) { 91 $prehtml .= '<amp-recaptcha-input layout="nodisplay" name="reCAPTCHA_form" data-sitekey="' . $ampcf7_captchakey . '" data-action="reCAPTCHA_form"></amp-recaptcha-input>'; 92 } 92 $ampcf7_sucmessage = 'Success! Thanks for Your Request.'; 93 $ampcf7_errormessage = 'Error! Please Try Again.'; 93 94 94 95 $prehtml .= '<div class="ampcf7-successes-massage">' . $ampcf7_sucmessage . '</div>'; -
amp-for-contact-form-7/tags/1.2/includes/FrontEnd/FrontEnd.php
r2282177 r2284706 28 28 function frontend_hooks() 29 29 { 30 wp_enqueue_script('ampcf7-frontend-script', AMPCF7_URL . 'includes/FrontEnd/Assets/js/FrontEnd.js', array('jquery'), '1.0.0', true);31 30 wp_enqueue_style('ampcf7-frontend-style', AMPCF7_URL . 'includes/FrontEnd/Assets/css/FrontEnd.css'); 32 31 } -
amp-for-contact-form-7/tags/1.2/includes/FrontEnd/modules/clearform.php
r2282177 r2284706 3 3 4 4 if (file_exists($check_file)) { 5 $CheckText = 'on="submit-success:ampform.clear"'; 6 $searchfor = '<form %s'; 7 $replacefor = '<form %s on="submit-success:ampform.clear"'; 5 6 $Check_previous_Text = 'on="submit-success:ampform.clear"'; 8 7 $file_content = file_get_contents($check_file); 9 if (!strpos($file_content, $CheckText)) { 8 if (strpos($file_content, $Check_previous_Text)) { 9 $new_form = str_replace($Check_previous_Text, '', $file_content); 10 file_put_contents($check_file, $new_form); 11 } 12 13 $CheckText = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts );"; 14 $searchfor = "\$html .= sprintf( '<form %s"; 15 $replacefor = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts ); 16 17 \$html .= sprintf( '<form %s"; 18 $file_content = file_get_contents($check_file); 19 if (!strpos($file_content, $CheckText)) { 10 20 $new_form = str_replace($searchfor, $replacefor, $file_content); 11 21 file_put_contents($check_file, $new_form); -
amp-for-contact-form-7/tags/1.2/includes/activator.php
r2282177 r2284706 48 48 private function Create_Table() 49 49 { 50 51 global $wpdb; 52 53 if (!current_user_can('activate_plugins')) { 54 return; 55 } 56 57 if (!defined('DB_CHARSET') || !($db_charset = DB_CHARSET)) { 58 $db_charset = 'utf8mb4'; 59 } 60 61 $db_charset = "CHARACTER SET " . $db_charset; 62 63 if (defined('DB_COLLATE') && $db_collate = DB_COLLATE) { 64 $db_collate = "COLLATE " . $db_collate; 65 } 50 return true; 66 51 } 67 52 } -
amp-for-contact-form-7/tags/1.2/readme.txt
r2282177 r2284706 33 33 * quiz 34 34 * file 35 * checkbox 36 37 == For premium version we are offering extra 2 features : == 38 35 39 * captcha 36 40 * change the default message that is displayed after a form submission 37 41 38 == For premium version we are offering extra 1 features : == 39 40 * checkbox 42 > 41 43 42 44 == Installation == … … 56 58 57 59 == Changelog == 58 #59 60 60 == Upgrade Notice == 61 = 1.0 = 62 This is the first Version of AMP for Contact Form 7 plugin 63 = 1.1 = 64 OOP Coding Structure With Namespace 65 = 1.2 = 66 Add google reCAPTCHA v3 67 change the default message that is displayed after a form submission 61 = 1.2 (2020-04-16) = 62 63 * Fix checkbox Require 64 65 = 1.1 (2020-03-20) = 66 67 * OOP Coding Structure With Namespace 68 69 = 1.0 (2020-02-26) = 70 71 * This is the first Version of AMP for Contact Form 7 plugin -
amp-for-contact-form-7/trunk/amp-for-contact-form-7.php
r2282833 r2284706 47 47 * Define All Constants 48 48 */ 49 function define_constants()49 private function define_constants() 50 50 { 51 51 if (!defined('AMPCF7_NAME')) { … … 69 69 * Divided Admin And Public Section 70 70 */ 71 function load_dependencies()71 private function load_dependencies() 72 72 { 73 73 load_plugin_textdomain('AMPCF7', false, basename(dirname(__FILE__)) . '/languages'); -
amp-for-contact-form-7/trunk/includes/Admin/Assets/css/admin.css
r2282840 r2284706 1 .ampcf7-css .admin_table {2 color: #000;3 font-size: 13px;4 }5 6 .ampcf7-css .admin_table td {7 padding: 10px;8 }9 10 .ampcf7-css .admin_table input[type="text"] {11 width: 100%;12 border-radius: 5px;13 line-height: 18px;14 padding: 10px;15 }16 17 .ampcf7-css .admin_table input[type="submit"] {18 border: 2px solid #0073aa;19 border-radius: 5px;20 box-sizing: border-box;21 background: #0085ba;22 color: #fff;23 cursor: pointer;24 font-weight: bold;25 line-height: 20px;26 padding: 10px;27 }28 29 .ampcf7-css .hint-class {30 font-size: 13px;31 color: red;32 font-weight: bold;33 line-height: 1.5;34 padding-left: 10px;35 } -
amp-for-contact-form-7/trunk/includes/Admin/Assets/js/admin.js
r2282840 r2284706 1 1 jQuery(document).ready(function () { 2 3 jQuery("#captcha_checkbox").click(function () {4 5 if (jQuery(this).prop("checked") == true) {6 7 jQuery("#captcha_key").attr("required", true);8 9 10 } else if (jQuery(this).prop("checked") == false) {11 12 jQuery("#captcha_key").attr("required", false);13 14 }15 16 });17 18 // function onSubmit(captcha_key) {19 // grecaptcha.ready(() => {20 // grecaptcha.execute(captcha_key, {21 // action: ampcf7Ajax.ampcf7homeurl22 // }).then((token) => {23 // return true;24 // });25 // });26 // return false;27 // }28 29 // jQuery('#ampcf7_submit').submit(function () {30 // captcha_key = jQuery("#captcha_key").val();31 // console.log(captcha_key);32 // if (captcha_key !== '') {33 // // url = 'https://www.google.com/recaptcha/api.js?render=' + captcha_key;34 // // jQuery.getScript(url, function (arg) {35 // // console.log(arg);36 // // });37 38 // if (!onSubmit(captcha_key)) {39 // console.log("error");40 // jQuery("#captcha_key_error").fadeIn();41 // jQuery("#captcha_key_error").delay(5000).fadeOut(800);42 // return false;43 // }44 // return true;45 // }46 // return true;47 // });48 49 2 }); -
amp-for-contact-form-7/trunk/includes/Admin/Menu.php
r2282840 r2284706 28 28 function register_menu_page() 29 29 { 30 31 add_menu_page(__('Ampcf7'), __('Amp CF7'), $this->user_level, AMPCF7_HANDLE, [$this, 'show_menu'], 'dashicons-schedule', 80); 32 } 33 34 /** 35 * Call Menu Function 36 */ 37 38 function show_menu() 39 { 40 41 switch ($_GET['page']) { 42 43 default: 44 new Templates\AmpCf7setting(); 45 break; 46 } 30 return true; 47 31 } 48 32 } -
amp-for-contact-form-7/trunk/includes/FrontEnd/Assets/css/FrontEnd.css
r2282840 r2284706 1 1 form.amp-form-submit-success [submit-success], 2 form.amp-form-submit-success [submit-error] { 2 form.amp-form-submit-success [submit-error], 3 form.amp-form-initial [submit-success], 4 form.amp-form-initial [submit-error] { 3 5 display: none; 4 6 } 5 7 6 8 .ampcf7-successes-massage { 9 width: 100%; 10 padding: 0px 15px; 11 border: 1px solid green; 12 border-radius: 5px; 7 13 color: #363; 8 14 font-weight: bold; 9 15 line-height: 40px; 10 font-size: 24px;16 font-size: 18px; 11 17 visibility: hidden; 12 18 opacity: 0; 13 19 height: 0; 14 margin: 0; 20 margin: 0; 15 21 } 16 22 … … 65 71 66 72 .ampcf7-error-massage { 73 width: 100%; 74 padding: 0px 15px; 75 border: 1px solid red; 76 border-radius: 5px; 67 77 color: red; 68 78 font-weight: bold; 69 79 line-height: 40px; 70 font-size: 24px;80 font-size: 18px; 71 81 visibility: hidden; 72 82 opacity: 0; … … 76 86 77 87 form.amp-form-submit-error .ampcf7-error-massage { 78 animation-name: error; 79 animation-duration: 5s; 88 visibility: visible; 89 opacity: 1; 90 height: auto; 91 margin: 15px 0; 80 92 } 81 82 @-webkit-keyframes error {83 0% {84 visibility: visible;85 opacity: 1;86 height: auto;87 margin: 15px 0;88 }89 90 90% {91 visibility: visible;92 opacity: 1;93 height: auto;94 margin: 15px 0;95 }96 97 100% {98 visibility: hidden;99 opacity: 0;100 height: 0;101 }102 }103 104 @keyframes error {105 0% {106 visibility: visible;107 opacity: 1;108 height: auto;109 margin: 15px 0;110 }111 112 90% {113 visibility: visible;114 opacity: 1;115 height: auto;116 margin: 15px 0;117 }118 119 100% {120 visibility: hidden;121 opacity: 0;122 height: 0;123 }124 } -
amp-for-contact-form-7/trunk/includes/FrontEnd/Cf7.php
r2282840 r2284706 15 15 class Cf7 16 16 { 17 private $formcount = 0; 18 17 19 public function __construct() 18 { 20 { 21 $this->load_module(); 19 22 $this->load_filter(); 20 $this->load_module();21 23 } 22 24 … … 29 31 add_filter('wpcf7_form_novalidate', [$this, 'ampcf7_novalidate'], 9, 0); 30 32 add_filter('wpcf7_form_id_attr', [$this, 'ampcf7_id_attr'], 9, 1); 31 add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1); 33 add_filter('wpcf7_change_atts', [$this, 'ampcf7_formclear'], 9, 1); 34 add_filter('wpcf7_form_elements', [$this, 'ampcf7_form_html'], 9, 1); 32 35 } 33 36 … … 45 48 require_once 'modules/text.php'; 46 49 require_once 'modules/textarea.php'; 50 require_once 'modules/checkbox.php'; 47 51 require_once 'modules/clearform.php'; 48 49 //print_r(maybe_unserialize('')); 50 } 52 } 51 53 52 54 … … 64 66 */ 65 67 68 function ampcf7_formclear($pretag) 69 { 70 $pretag .= 'on="submit-success:ampform_'.$this->formcount.'.clear"'; 71 return $pretag; 72 } 73 74 /** 75 * Add Form Clear 76 */ 77 66 78 function ampcf7_id_attr($preid) 67 79 { 68 $preid .= 'ampform ';80 $preid .= 'ampform_'.$this->formcount; 69 81 return $preid; 70 82 } … … 75 87 76 88 function ampcf7_form_html($prehtml) 77 { 78 $ampcf7_active_captcha = get_option('ampcf7_active_captcha'); 79 $ampcf7_captchakey = get_option('ampcf7_captchakey'); 89 { 90 $this->formcount++; 80 91 81 $ampcf7_sucmessage = get_option('ampcf7_sucmessage'); 82 $ampcf7_errormessage = get_option('ampcf7_errormessage'); 83 84 if (empty($ampcf7_sucmessage)) 85 $ampcf7_sucmessage = 'Success! Thanks for Your Request.'; 86 87 if (empty($ampcf7_errormessage)) 88 $ampcf7_errormessage = 'Error! Please Try Again.'; 89 90 if ((!empty($ampcf7_active_captcha) && $ampcf7_active_captcha == 'yes') && (!empty($ampcf7_captchakey))) { 91 $prehtml .= '<amp-recaptcha-input layout="nodisplay" name="reCAPTCHA_form" data-sitekey="' . $ampcf7_captchakey . '" data-action="reCAPTCHA_form"></amp-recaptcha-input>'; 92 } 92 $ampcf7_sucmessage = 'Success! Thanks for Your Request.'; 93 $ampcf7_errormessage = 'Error! Please Try Again.'; 93 94 94 95 $prehtml .= '<div class="ampcf7-successes-massage">' . $ampcf7_sucmessage . '</div>'; -
amp-for-contact-form-7/trunk/includes/FrontEnd/FrontEnd.php
r2282840 r2284706 28 28 function frontend_hooks() 29 29 { 30 wp_enqueue_script('ampcf7-frontend-script', AMPCF7_URL . 'includes/FrontEnd/Assets/js/FrontEnd.js', array('jquery'), '1.0.0', true);31 30 wp_enqueue_style('ampcf7-frontend-style', AMPCF7_URL . 'includes/FrontEnd/Assets/css/FrontEnd.css'); 32 31 } -
amp-for-contact-form-7/trunk/includes/FrontEnd/modules/clearform.php
r2282840 r2284706 3 3 4 4 if (file_exists($check_file)) { 5 $CheckText = 'on="submit-success:ampform.clear"'; 6 $searchfor = '<form %s'; 7 $replacefor = '<form %s on="submit-success:ampform.clear"'; 5 6 $Check_previous_Text = 'on="submit-success:ampform.clear"'; 8 7 $file_content = file_get_contents($check_file); 9 if (!strpos($file_content, $CheckText)) { 8 if (strpos($file_content, $Check_previous_Text)) { 9 $new_form = str_replace($Check_previous_Text, '', $file_content); 10 file_put_contents($check_file, $new_form); 11 } 12 13 $CheckText = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts );"; 14 $searchfor = "\$html .= sprintf( '<form %s"; 15 $replacefor = "\$atts = apply_filters( 'wpcf7_change_atts', \$atts ); 16 17 \$html .= sprintf( '<form %s"; 18 $file_content = file_get_contents($check_file); 19 if (!strpos($file_content, $CheckText)) { 10 20 $new_form = str_replace($searchfor, $replacefor, $file_content); 11 21 file_put_contents($check_file, $new_form); -
amp-for-contact-form-7/trunk/includes/activator.php
r2282840 r2284706 48 48 private function Create_Table() 49 49 { 50 51 global $wpdb; 52 53 if (!current_user_can('activate_plugins')) { 54 return; 55 } 56 57 if (!defined('DB_CHARSET') || !($db_charset = DB_CHARSET)) { 58 $db_charset = 'utf8mb4'; 59 } 60 61 $db_charset = "CHARACTER SET " . $db_charset; 62 63 if (defined('DB_COLLATE') && $db_collate = DB_COLLATE) { 64 $db_collate = "COLLATE " . $db_collate; 65 } 50 return true; 66 51 } 67 52 } -
amp-for-contact-form-7/trunk/readme.txt
r2282865 r2284706 4 4 Donate link: * 5 5 Requires at least: 4.0 6 Tested up to: 5. 46 Tested up to: 5.1 7 7 Requires PHP: 5.2.4 8 8 Stable tag: 4.3 … … 33 33 * quiz 34 34 * file 35 * checkbox 36 37 == For premium version we are offering extra 2 features : == 38 35 39 * captcha 36 40 * change the default message that is displayed after a form submission 37 41 38 == For premium version we are offering extra 1 features : == 39 40 * checkbox 42 > 41 43 42 44 == Installation == … … 56 58 57 59 == Changelog == 58 #59 60 60 == Upgrade Notice == 61 = 1.0 = 62 This is the first Version of AMP for Contact Form 7 plugin 63 = 1.1 = 64 OOP Coding Structure With Namespace 65 = 1.2 = 66 Add google reCAPTCHA v3 67 change the default message that is displayed after a form submission 61 = 1.2 (2020-04-16) = 62 63 * Fix checkbox Require 64 65 = 1.1 (2020-03-20) = 66 67 * OOP Coding Structure With Namespace 68 69 = 1.0 (2020-02-26) = 70 71 * This is the first Version of AMP for Contact Form 7 plugin
Note: See TracChangeset
for help on using the changeset viewer.