Changeset 3172276
- Timestamp:
- 10/20/2024 10:10:36 AM (17 months ago)
- Location:
- contact-form-7-image-captcha
- Files:
-
- 58 added
- 5 edited
-
tags/3.3.20 (added)
-
tags/3.3.20/assets (added)
-
tags/3.3.20/assets/example-cf7.png (added)
-
tags/3.3.20/assets/icon-cf7.svg (added)
-
tags/3.3.20/assets/icon-cf7ic.svg (added)
-
tags/3.3.20/assets/icon-wpf.svg (added)
-
tags/3.3.20/assets/pro-color.png (added)
-
tags/3.3.20/assets/pro-language.png (added)
-
tags/3.3.20/assets/pro-new-colors.png (added)
-
tags/3.3.20/assets/pro-new-icons.png (added)
-
tags/3.3.20/assets/pro-spam.svg (added)
-
tags/3.3.20/assets/star.svg (added)
-
tags/3.3.20/cf7-image-captcha.php (added)
-
tags/3.3.20/css (added)
-
tags/3.3.20/css/cf7ic-admin-style.css (added)
-
tags/3.3.20/css/cf7ic-style.css (added)
-
tags/3.3.20/css/fontawesome.css (added)
-
tags/3.3.20/fonts (added)
-
tags/3.3.20/fonts/FontAwesome.otf (added)
-
tags/3.3.20/fonts/fontawesome-webfont.eot (added)
-
tags/3.3.20/fonts/fontawesome-webfont.svg (added)
-
tags/3.3.20/fonts/fontawesome-webfont.ttf (added)
-
tags/3.3.20/fonts/fontawesome-webfont.woff (added)
-
tags/3.3.20/fonts/fontawesome-webfont.woff2 (added)
-
tags/3.3.20/includes (added)
-
tags/3.3.20/includes/captcha-generator.php (added)
-
tags/3.3.20/includes/module-cf7.php (added)
-
tags/3.3.20/includes/module-wpforms.php (added)
-
tags/3.3.20/languages (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-bg_BG.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-bg_BG.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-da_DK.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-da_DK.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-de_DE.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-de_DE.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-es_ES.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-es_ES.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-es_MX.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-es_MX.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-fa_IR.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-fa_IR.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-fi_FI.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-fi_FI.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-fr_FR.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-fr_FR.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-hr.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-hr.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-it_IT.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-it_IT.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-nl_NL.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-nl_NL.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-pt_PT.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-pt_PT.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-ru_RU.mo (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha-ru_RU.po (added)
-
tags/3.3.20/languages/contact-form-7-image-captcha.pot (added)
-
tags/3.3.20/readme.txt (added)
-
tags/3.3.20/uninstall.php (added)
-
trunk/cf7-image-captcha.php (modified) (1 diff)
-
trunk/css/cf7ic-style.css (modified) (5 diffs)
-
trunk/includes/captcha-generator.php (modified) (2 diffs)
-
trunk/includes/module-cf7.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-image-captcha/trunk/cf7-image-captcha.php
r3149747 r3172276 4 4 * Plugin URI: https://wpimagecaptcha.com/ 5 5 * Description: Adds an image CAPTCHA to your "Contact Form 7" and "WPForms" forms. 6 * Version: 3.3. 196 * Version: 3.3.20 7 7 * Author: WP Image CAPTCHA 8 8 * Author URI: https://wpimagecaptcha.com/ -
contact-form-7-image-captcha/trunk/css/cf7ic-style.css
r2970208 r3172276 14 14 15 15 .captcha-image .cf7ic_instructions span { 16 color: red;17 16 font-weight: bold; 18 17 } … … 22 21 width: 60px !important; 23 22 position: relative; 24 }25 26 .captcha-image label>input {27 opacity: 0;28 margin: 0;29 width: 50px;30 height: 50px;31 position: absolute;32 23 } 33 24 … … 74 65 } 75 66 76 .cf7ic-style1 p {77 margin-bottom: 5px;78 }79 80 .cf7ic-style1 p span {81 color: red;82 font-weight: bold;83 }84 85 67 .cf7ic-icon-wrapper { 86 68 font-size: inherit; … … 110 92 .captcha-image label>input { 111 93 /* Hide radio */ 112 opacity: 0 ;113 width: 0 ;114 height: 0 ;115 min-width: 0 ;116 min-height: 0 ;117 margin: 0 ;118 padding: 0 ;94 opacity: 0 !important; 95 width: 0 !important; 96 height: 0 !important; 97 min-width: 0 !important; 98 min-height: 0 !important; 99 margin: 0 !important; 100 padding: 0 !important; 119 101 border: none !important; 102 position: absolute !important; 120 103 } 121 104 … … 227 210 transform: scale(0); 228 211 } 212 213 .cf7ic-wpf { 214 margin-bottom: 30px !important; 215 } 216 217 .cf7ic-wpf .captcha-image label { 218 width: 35px !important; 219 } 220 221 .cf7ic-wpf .captcha-image label i { 222 width: 35px !important; 223 text-align: center; 224 } 225 226 .cf7ic-wpf .captcha-image .cf7ic-icon-wrapper { 227 display: block; 228 text-align: left !important; 229 } -
contact-form-7-image-captcha/trunk/includes/captcha-generator.php
r2994933 r3172276 63 63 64 64 // START of captcha block 65 $inner = '<span class="wpcf7-form-control-wrap kc_captcha" data-name="kc_captcha"><span class="wpcf7-form-control wpcf7-cf7ic">';65 $inner = '<span class="wpcf7-form-control-wrap cf7ic-wpf kc_captcha" data-name="kc_captcha"><span class="wpcf7-form-control wpcf7-cf7ic">'; 66 66 $inner .= '<span class="captcha-image cf7ic-style1" style="border:none;">'; 67 67 $inner .= '<span class="cf7ic_instructions">'; 68 68 $image = '<span>' . $choices[$choice[$human]]['title'] . '</span>'; 69 $inner .= sprintf(esc_html__('Please prove you are human by selecting the', 'contact-form-7-image-captcha') . ' %s .', $image);69 $inner .= sprintf(esc_html__('Please prove you are human by selecting the', 'contact-form-7-image-captcha') . ' %s:', $image); 70 70 $inner .= '<span class="cf7ic-icon-wrapper">'; 71 71 … … 83 83 84 84 $icon = '<i class="fa ' . $iconSet['icon'] . '"></i>'; 85 $inner .= '<label><input type="radio" name="kc_captcha" value="' . $value . '" />' . $icon . '</label>';85 $inner .= '<label><input aria-label="' . ($i + 1) . '" type="radio" name="kc_captcha" value="' . $value . '" />' . $icon . '</label>'; 86 86 } 87 87 -
contact-form-7-image-captcha/trunk/includes/module-cf7.php
r3035392 r3172276 1 1 <?php 2 2 3 /** 3 4 * Backend: add custom shortcode to CF7 … … 7 8 { 8 9 wp_enqueue_style('cf7ic_style'); // Enqueue CSS 9 10 10 11 wpcf7_add_form_tag('cf7ic', 'call_cf7ic'); 11 12 } … … 80 81 } else { 81 82 $value = "bot"; 82 } 83 ; 84 $output .= '<label><input type="radio" name="kc_captcha" value="' . $value . '" />' . $image . '</label>'; 83 }; 84 $output .= '<label><input aria-label="' . ($i + 1) . '" type="radio" name="kc_captcha" value="' . $value . '" />' . $image . '</label>'; 85 85 } 86 86 87 $output .= ' 87 88 </span> … … 148 149 } 149 150 } 150 151 151 152 return $result; 152 153 } … … 177 178 </div> 178 179 </div> 179 <?php180 <?php 180 181 } -
contact-form-7-image-captcha/trunk/readme.txt
r3149747 r3172276 5 5 Requires PHP: 7.0 6 6 Tested up to: 6.6 7 Stable tag: 3.3. 197 Stable tag: 3.3.20 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 150 150 == Changelog == 151 151 152 = 3.3.18 [09/11/2024] = 152 = 3.3.20 [10/20/2024] = 153 * Add aria-labels + style WP Forms captcha 154 155 = 3.3.19 [09/11/2024] = 153 156 * Clean up 154 157
Note: See TracChangeset
for help on using the changeset viewer.