Changeset 3802407
- Timestamp:
- 11/14/2026 07:38:24 PM (36 hours ago)
- Location:
- blogdoseo-disclaimer-18
- Files:
-
- 26 edited
-
tags/1.2.0/CHANGELOG.md (modified) (1 diff)
-
tags/1.2.0/assets/css/admin.css (modified) (1 diff)
-
tags/1.2.0/assets/css/style.css (modified) (3 diffs)
-
tags/1.2.0/assets/js/script.js (modified) (1 diff)
-
tags/1.2.0/blogdoseo-disclaimer.php (modified) (7 diffs)
-
tags/1.2.0/languages/blogdoseo-disclaimer-18-en_US.mo (modified) ( previous)
-
tags/1.2.0/languages/blogdoseo-disclaimer-18-en_US.po (modified) (2 diffs)
-
tags/1.2.0/languages/blogdoseo-disclaimer-18-pt_BR.mo (modified) ( previous)
-
tags/1.2.0/languages/blogdoseo-disclaimer-18-pt_BR.po (modified) (2 diffs)
-
tags/1.2.0/languages/blogdoseo-disclaimer-18-zh_CN.mo (modified) ( previous)
-
tags/1.2.0/languages/blogdoseo-disclaimer-18-zh_CN.po (modified) (2 diffs)
-
tags/1.2.0/languages/blogdoseo-disclaimer-18.pot (modified) (2 diffs)
-
tags/1.2.0/readme.txt (modified) (3 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/css/style.css (modified) (3 diffs)
-
trunk/assets/js/script.js (modified) (1 diff)
-
trunk/blogdoseo-disclaimer.php (modified) (7 diffs)
-
trunk/languages/blogdoseo-disclaimer-18-en_US.mo (modified) ( previous)
-
trunk/languages/blogdoseo-disclaimer-18-en_US.po (modified) (2 diffs)
-
trunk/languages/blogdoseo-disclaimer-18-pt_BR.mo (modified) ( previous)
-
trunk/languages/blogdoseo-disclaimer-18-pt_BR.po (modified) (2 diffs)
-
trunk/languages/blogdoseo-disclaimer-18-zh_CN.mo (modified) ( previous)
-
trunk/languages/blogdoseo-disclaimer-18-zh_CN.po (modified) (2 diffs)
-
trunk/languages/blogdoseo-disclaimer-18.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blogdoseo-disclaimer-18/tags/1.2.0/CHANGELOG.md
r3802389 r3802407 7 7 ### Improvements 8 8 9 * Added HTML support to both descriptions while keeping titles and button labels as plain text 10 * Filtered description HTML with WordPress's allowed post-content tags and supported block formatting in the modal 11 * Added a red italic weekly-update note below the existing review invitation text 9 12 * Added synchronized hexadecimal color fields for buttons, modal background and text, with input validation and 3-/6-digit hex support 10 13 * Added a choice between the entire site and selected post categories -
blogdoseo-disclaimer-18/tags/1.2.0/assets/css/admin.css
r3802389 r3802407 59 59 #blogdoseo-disclaimer-settings .blogdoseo-review-invitation h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; } 60 60 #blogdoseo-disclaimer-settings .blogdoseo-review-invitation p { margin: 0 0 12px; } 61 #blogdoseo-disclaimer-settings .blogdoseo-review-invitation .blogdoseo-review-update-note { color: #b32d2e; font-style: italic; } 61 62 #blogdoseo-disclaimer-settings .blogdoseo-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; } 62 63 #blogdoseo-disclaimer-settings .blogdoseo-review-actions .button { white-space: normal; text-align: center; } -
blogdoseo-disclaimer-18/tags/1.2.0/assets/css/style.css
r3696086 r3802407 92 92 outline: none; 93 93 } 94 #blogdoseo-disclaimer-dialog button:focus-visible { 94 #blogdoseo-disclaimer-dialog button:focus-visible, 95 #blogdoseo-disclaimer-dialog a:focus-visible { 95 96 outline: 3px solid var(--blogdoseo-text-color); 96 97 outline-offset: 4px; 97 98 } 98 #blogdoseo-disclaimer-modal p { 99 #blogdoseo-disclaimer-modal p, 100 #blogdoseo-disclaimer-modal .blogdoseo-html-description { 99 101 font-size: 14px; 100 102 line-height: 1.5; … … 103 105 overflow-wrap: anywhere; 104 106 } 107 #blogdoseo-disclaimer-modal .blogdoseo-html-description > * + * { margin-top: 12px; } 108 #blogdoseo-disclaimer-modal .blogdoseo-html-description > :first-child { margin-top: 0; } 109 #blogdoseo-disclaimer-modal .blogdoseo-html-description > :last-child { margin-bottom: 0; } 110 #blogdoseo-disclaimer-modal .blogdoseo-html-description ul, 111 #blogdoseo-disclaimer-modal .blogdoseo-html-description ol { margin: 12px 0; padding-left: 1.5em; text-align: left; list-style: disc; } 112 #blogdoseo-disclaimer-modal .blogdoseo-html-description ol { list-style-type: decimal; } 113 #blogdoseo-disclaimer-modal .blogdoseo-html-description a { color: inherit; text-decoration: underline; } 114 #blogdoseo-disclaimer-modal .blogdoseo-html-description img { max-width: 100%; height: auto; } 115 #blogdoseo-disclaimer-modal .blogdoseo-disclaimer-regret .blogdoseo-html-description { margin-bottom: 20px; } 105 116 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret { text-align: center; } 106 117 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret h2 { margin-bottom: 20px; } … … 118 129 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-buttons { gap: 10px; flex-direction: column; } 119 130 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-buttons button { padding: 12px 30px; font-size: 14px; min-width: 100%; width: 100%; } 120 #blogdoseo-disclaimer-modal p { font-size: 13px; } 131 #blogdoseo-disclaimer-modal p, 132 #blogdoseo-disclaimer-modal .blogdoseo-html-description { font-size: 13px; } 121 133 #blogdoseo-disclaimer-overlay .blogdoseo-logo-container { margin-bottom: 20px; } 122 134 #blogdoseo-disclaimer-overlay .blogdoseo-logo-container img { max-width: min(200px,100%); max-height: 200px; } -
blogdoseo-disclaimer-18/tags/1.2.0/assets/js/script.js
r3802361 r3802407 103 103 104 104 $('#blogdoseo-disclaimer-title').text(settings.title); 105 $('#blogdoseo-disclaimer-description').text(settings.description); 105 // These two HTML fields are filtered with wp_kses_post() before localization. 106 $('#blogdoseo-disclaimer-description').html(settings.description); 106 107 $('#blogdoseo-disclaimer-yes').text(settings.yesText); 107 108 $('#blogdoseo-disclaimer-no').text(settings.noText); 108 109 $('#blogdoseo-disclaimer-regret-title').text(settings.regretTitle); 109 $('#blogdoseo-disclaimer-regret-description').text(settings.regretDescription); 110 $('#blogdoseo-disclaimer-regret-description').html(settings.regretDescription); 111 overlay.find('.blogdoseo-html-description a[target="_blank"]').each(function() { 112 this.relList.add('noopener', 'noreferrer'); 113 }); 110 114 $('#blogdoseo-disclaimer-back').text(settings.backText); 111 115 -
blogdoseo-disclaimer-18/tags/1.2.0/blogdoseo-disclaimer.php
r3802389 r3802407 108 108 $mo->import_from_file( plugin_dir_path( __FILE__ ) . 'languages/blogdoseo-disclaimer-18-' . $locale . '.mo' ); 109 109 foreach ( $this->get_source_content() as $field => $text ) { 110 $catalogs[ $locale ][ $field ] = $mo->translate( $text ); 110 $translated = $mo->translate( $text ); 111 $catalogs[ $locale ][ $field ] = in_array( $field, array( 'description', 'regret_description' ), true ) ? wp_kses_post( $translated ) : $translated; 111 112 } 112 113 } … … 181 182 'theme' => isset( $settings['theme'] ) ? sanitize_text_field( $settings['theme'] ) : $defaults['theme'], 182 183 'title' => sanitize_text_field( $content['title'] ), 183 'description' => sanitize_textarea_field( $content['description'] ),184 'description' => wp_kses_post( $content['description'] ), 184 185 'yesText' => sanitize_text_field( $content['yes_text'] ), 185 186 'noText' => sanitize_text_field( $content['no_text'] ), 186 187 'regretTitle' => sanitize_text_field( $content['regret_title'] ), 187 'regretDescription' => sanitize_textarea_field( $content['regret_description'] ),188 'regretDescription' => wp_kses_post( $content['regret_description'] ), 188 189 'backText' => sanitize_text_field( $content['back_text'] ), 189 190 'logoUrl' => isset( $settings['logo_url'] ) ? esc_url( $settings['logo_url'] ) : '', … … 283 284 <button type="button" id="blogdoseo-disclaimer-no" class="btn-no"></button> 284 285 </div> 285 < p id="blogdoseo-disclaimer-description"></p>286 <div id="blogdoseo-disclaimer-description" class="blogdoseo-html-description"></div> 286 287 </div> 287 288 <div class="blogdoseo-disclaimer-regret" style="display: none;"> 288 289 <h2 id="blogdoseo-disclaimer-regret-title" tabindex="-1"></h2> 289 < p id="blogdoseo-disclaimer-regret-description"></p>290 <div id="blogdoseo-disclaimer-regret-description" class="blogdoseo-html-description"></div> 290 291 <button type="button" id="blogdoseo-disclaimer-back" class="btn-yes"></button> 291 292 </div> … … 337 338 <h2 id="blogdoseo-review-title"><?php esc_html_e( 'Help improve BlogDoSEO Disclaimer +18', 'blogdoseo-disclaimer-18' ); ?></h2> 338 339 <p><?php esc_html_e( 'Share your experience in a short review on WordPress.org. Your honest feedback helps other site owners and guides future improvements.', 'blogdoseo-disclaimer-18' ); ?></p> 340 <p class="blogdoseo-review-update-note"><em><?php esc_html_e( 'More reviews, more weekly updates.', 'blogdoseo-disclaimer-18' ); ?></em></p> 339 341 <div class="blogdoseo-review-actions"> 340 342 <a class="button button-primary" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/blogdoseo-disclaimer-18/reviews/#new-post' ); ?>" target="_blank" rel="noopener noreferrer"> … … 391 393 $textarea_fields = array( 'description', 'regret_description' ); 392 394 foreach ( $textarea_fields as $field ) { 393 if ( isset( $input[ $field ] ) ) {394 $sanitized[ $field ] = sanitize_textarea_field( $input[ $field ] );395 if ( isset( $input[ $field ] ) && is_string( $input[ $field ] ) ) { 396 $sanitized[ $field ] = wp_kses_post( $input[ $field ] ); 395 397 } 396 398 } … … 614 616 <th scope="row"><label for="description"><?php esc_html_e( 'Description:', 'blogdoseo-disclaimer-18' ); ?></label></th> 615 617 <td> 616 <textarea name="blogdoseo_disclaimer_settings[description]" id="description" 618 <textarea name="blogdoseo_disclaimer_settings[description]" id="description" class="code" aria-describedby="blogdoseo-description-html-help" 617 619 style="width: 100%; max-width: 500px; height: 80px;"><?php echo esc_textarea( $content['description'] ); ?></textarea> 620 <p class="description" id="blogdoseo-description-html-help"><?php esc_html_e( 'HTML supported: links, bold, italics, line breaks, paragraphs and lists.', 'blogdoseo-disclaimer-18' ); ?></p> 618 621 </td> 619 622 </tr> … … 645 648 <th scope="row"><label for="regret_description"><?php esc_html_e( 'Denial Screen Description:', 'blogdoseo-disclaimer-18' ); ?></label></th> 646 649 <td> 647 <textarea name="blogdoseo_disclaimer_settings[regret_description]" id="regret_description" 650 <textarea name="blogdoseo_disclaimer_settings[regret_description]" id="regret_description" class="code" aria-describedby="blogdoseo-regret-html-help" 648 651 style="width: 100%; max-width: 500px; height: 80px;"><?php echo esc_textarea( $content['regret_description'] ); ?></textarea> 652 <p class="description" id="blogdoseo-regret-html-help"><?php esc_html_e( 'HTML supported: links, bold, italics, line breaks, paragraphs and lists.', 'blogdoseo-disclaimer-18' ); ?></p> 649 653 </td> 650 654 </tr> -
blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18-en_US.po
r3802389 r3802407 119 119 msgstr "Go Back" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "Help improve BlogDoSEO Disclaimer +18" … … 161 164 msgstr "Modal Background Color:" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "More reviews, more weekly updates." 168 163 169 msgid "NO" 164 170 msgstr "NO" -
blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18-pt_BR.po
r3802389 r3802407 119 119 msgstr "Voltar" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "Aceita HTML: links, negrito, itálico, quebras de linha, parágrafos e listas." 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "Ajude a melhorar o BlogDoSEO Disclaimer +18" … … 161 164 msgstr "Cor de fundo da janela:" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "Mais avaliações mais atualizações semanais." 168 163 169 msgid "NO" 164 170 msgstr "NÃO" -
blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18-zh_CN.po
r3802389 r3802407 119 119 msgstr "返回" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "支持 HTML:链接、粗体、斜体、换行、段落和列表。" 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "帮助改进 BlogDoSEO Disclaimer +18" … … 161 164 msgstr "弹窗背景颜色:" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "更多评价,更多每周更新。" 168 163 169 msgid "NO" 164 170 msgstr "否" -
blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18.pot
r3802389 r3802407 119 119 msgstr "" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "" 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "" … … 161 164 msgstr "" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "" 168 163 169 msgid "NO" 164 170 msgstr "" -
blogdoseo-disclaimer-18/tags/1.2.0/readme.txt
r3802389 r3802407 25 25 * Custom logo support (PNG, JPG, WebP, SVG), with a WordPress Media Library picker, inside/outside position, size and opacity controls 26 26 * Full content customization: title, description, button texts, denial screen 27 * HTML formatting in both notice descriptions: links, bold, italics, line breaks, paragraphs and lists 27 28 * Custom colors for buttons, modal background and text, with synchronized color pickers and hexadecimal inputs 28 29 * Background image support for the overlay … … 93 94 Yes. Under Design, each button, modal-background and text color has both a visual picker and a HEX text field. They stay synchronized. Enter a six-digit code such as #ff6600, or a three-digit shorthand such as #f60. The # is optional when typing. Invalid codes are rejected before saving. 94 95 96 = Can I use HTML in the descriptions? = 97 98 Yes. Under Content, both Description and Denial Screen Description accept HTML formatting, including links, bold, italics, line breaks, paragraphs and lists. Paste or type your HTML and save. HTML is filtered using WordPress's allowed post-content tags. Titles and button labels remain plain text. Existing plain-text descriptions continue to work. 99 95 100 = Does the plugin work on mobile? = 96 101 … … 108 113 109 114 = 1.2.0 = 115 * Added HTML support to the notice description and denial-screen description, with WordPress HTML filtering 116 * Added a red italic weekly-update note below the existing review invitation text 110 117 * Added synchronized hexadecimal color inputs in Design settings, with support for 3- and 6-digit hex codes and validation 111 118 * Added entire-site or selected-categories display modes in General settings -
blogdoseo-disclaimer-18/trunk/CHANGELOG.md
r3802389 r3802407 7 7 ### Improvements 8 8 9 * Added HTML support to both descriptions while keeping titles and button labels as plain text 10 * Filtered description HTML with WordPress's allowed post-content tags and supported block formatting in the modal 11 * Added a red italic weekly-update note below the existing review invitation text 9 12 * Added synchronized hexadecimal color fields for buttons, modal background and text, with input validation and 3-/6-digit hex support 10 13 * Added a choice between the entire site and selected post categories -
blogdoseo-disclaimer-18/trunk/assets/css/admin.css
r3802389 r3802407 59 59 #blogdoseo-disclaimer-settings .blogdoseo-review-invitation h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; } 60 60 #blogdoseo-disclaimer-settings .blogdoseo-review-invitation p { margin: 0 0 12px; } 61 #blogdoseo-disclaimer-settings .blogdoseo-review-invitation .blogdoseo-review-update-note { color: #b32d2e; font-style: italic; } 61 62 #blogdoseo-disclaimer-settings .blogdoseo-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; } 62 63 #blogdoseo-disclaimer-settings .blogdoseo-review-actions .button { white-space: normal; text-align: center; } -
blogdoseo-disclaimer-18/trunk/assets/css/style.css
r3696086 r3802407 92 92 outline: none; 93 93 } 94 #blogdoseo-disclaimer-dialog button:focus-visible { 94 #blogdoseo-disclaimer-dialog button:focus-visible, 95 #blogdoseo-disclaimer-dialog a:focus-visible { 95 96 outline: 3px solid var(--blogdoseo-text-color); 96 97 outline-offset: 4px; 97 98 } 98 #blogdoseo-disclaimer-modal p { 99 #blogdoseo-disclaimer-modal p, 100 #blogdoseo-disclaimer-modal .blogdoseo-html-description { 99 101 font-size: 14px; 100 102 line-height: 1.5; … … 103 105 overflow-wrap: anywhere; 104 106 } 107 #blogdoseo-disclaimer-modal .blogdoseo-html-description > * + * { margin-top: 12px; } 108 #blogdoseo-disclaimer-modal .blogdoseo-html-description > :first-child { margin-top: 0; } 109 #blogdoseo-disclaimer-modal .blogdoseo-html-description > :last-child { margin-bottom: 0; } 110 #blogdoseo-disclaimer-modal .blogdoseo-html-description ul, 111 #blogdoseo-disclaimer-modal .blogdoseo-html-description ol { margin: 12px 0; padding-left: 1.5em; text-align: left; list-style: disc; } 112 #blogdoseo-disclaimer-modal .blogdoseo-html-description ol { list-style-type: decimal; } 113 #blogdoseo-disclaimer-modal .blogdoseo-html-description a { color: inherit; text-decoration: underline; } 114 #blogdoseo-disclaimer-modal .blogdoseo-html-description img { max-width: 100%; height: auto; } 115 #blogdoseo-disclaimer-modal .blogdoseo-disclaimer-regret .blogdoseo-html-description { margin-bottom: 20px; } 105 116 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret { text-align: center; } 106 117 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret h2 { margin-bottom: 20px; } … … 118 129 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-buttons { gap: 10px; flex-direction: column; } 119 130 #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-buttons button { padding: 12px 30px; font-size: 14px; min-width: 100%; width: 100%; } 120 #blogdoseo-disclaimer-modal p { font-size: 13px; } 131 #blogdoseo-disclaimer-modal p, 132 #blogdoseo-disclaimer-modal .blogdoseo-html-description { font-size: 13px; } 121 133 #blogdoseo-disclaimer-overlay .blogdoseo-logo-container { margin-bottom: 20px; } 122 134 #blogdoseo-disclaimer-overlay .blogdoseo-logo-container img { max-width: min(200px,100%); max-height: 200px; } -
blogdoseo-disclaimer-18/trunk/assets/js/script.js
r3802361 r3802407 103 103 104 104 $('#blogdoseo-disclaimer-title').text(settings.title); 105 $('#blogdoseo-disclaimer-description').text(settings.description); 105 // These two HTML fields are filtered with wp_kses_post() before localization. 106 $('#blogdoseo-disclaimer-description').html(settings.description); 106 107 $('#blogdoseo-disclaimer-yes').text(settings.yesText); 107 108 $('#blogdoseo-disclaimer-no').text(settings.noText); 108 109 $('#blogdoseo-disclaimer-regret-title').text(settings.regretTitle); 109 $('#blogdoseo-disclaimer-regret-description').text(settings.regretDescription); 110 $('#blogdoseo-disclaimer-regret-description').html(settings.regretDescription); 111 overlay.find('.blogdoseo-html-description a[target="_blank"]').each(function() { 112 this.relList.add('noopener', 'noreferrer'); 113 }); 110 114 $('#blogdoseo-disclaimer-back').text(settings.backText); 111 115 -
blogdoseo-disclaimer-18/trunk/blogdoseo-disclaimer.php
r3802389 r3802407 108 108 $mo->import_from_file( plugin_dir_path( __FILE__ ) . 'languages/blogdoseo-disclaimer-18-' . $locale . '.mo' ); 109 109 foreach ( $this->get_source_content() as $field => $text ) { 110 $catalogs[ $locale ][ $field ] = $mo->translate( $text ); 110 $translated = $mo->translate( $text ); 111 $catalogs[ $locale ][ $field ] = in_array( $field, array( 'description', 'regret_description' ), true ) ? wp_kses_post( $translated ) : $translated; 111 112 } 112 113 } … … 181 182 'theme' => isset( $settings['theme'] ) ? sanitize_text_field( $settings['theme'] ) : $defaults['theme'], 182 183 'title' => sanitize_text_field( $content['title'] ), 183 'description' => sanitize_textarea_field( $content['description'] ),184 'description' => wp_kses_post( $content['description'] ), 184 185 'yesText' => sanitize_text_field( $content['yes_text'] ), 185 186 'noText' => sanitize_text_field( $content['no_text'] ), 186 187 'regretTitle' => sanitize_text_field( $content['regret_title'] ), 187 'regretDescription' => sanitize_textarea_field( $content['regret_description'] ),188 'regretDescription' => wp_kses_post( $content['regret_description'] ), 188 189 'backText' => sanitize_text_field( $content['back_text'] ), 189 190 'logoUrl' => isset( $settings['logo_url'] ) ? esc_url( $settings['logo_url'] ) : '', … … 283 284 <button type="button" id="blogdoseo-disclaimer-no" class="btn-no"></button> 284 285 </div> 285 < p id="blogdoseo-disclaimer-description"></p>286 <div id="blogdoseo-disclaimer-description" class="blogdoseo-html-description"></div> 286 287 </div> 287 288 <div class="blogdoseo-disclaimer-regret" style="display: none;"> 288 289 <h2 id="blogdoseo-disclaimer-regret-title" tabindex="-1"></h2> 289 < p id="blogdoseo-disclaimer-regret-description"></p>290 <div id="blogdoseo-disclaimer-regret-description" class="blogdoseo-html-description"></div> 290 291 <button type="button" id="blogdoseo-disclaimer-back" class="btn-yes"></button> 291 292 </div> … … 337 338 <h2 id="blogdoseo-review-title"><?php esc_html_e( 'Help improve BlogDoSEO Disclaimer +18', 'blogdoseo-disclaimer-18' ); ?></h2> 338 339 <p><?php esc_html_e( 'Share your experience in a short review on WordPress.org. Your honest feedback helps other site owners and guides future improvements.', 'blogdoseo-disclaimer-18' ); ?></p> 340 <p class="blogdoseo-review-update-note"><em><?php esc_html_e( 'More reviews, more weekly updates.', 'blogdoseo-disclaimer-18' ); ?></em></p> 339 341 <div class="blogdoseo-review-actions"> 340 342 <a class="button button-primary" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/blogdoseo-disclaimer-18/reviews/#new-post' ); ?>" target="_blank" rel="noopener noreferrer"> … … 391 393 $textarea_fields = array( 'description', 'regret_description' ); 392 394 foreach ( $textarea_fields as $field ) { 393 if ( isset( $input[ $field ] ) ) {394 $sanitized[ $field ] = sanitize_textarea_field( $input[ $field ] );395 if ( isset( $input[ $field ] ) && is_string( $input[ $field ] ) ) { 396 $sanitized[ $field ] = wp_kses_post( $input[ $field ] ); 395 397 } 396 398 } … … 614 616 <th scope="row"><label for="description"><?php esc_html_e( 'Description:', 'blogdoseo-disclaimer-18' ); ?></label></th> 615 617 <td> 616 <textarea name="blogdoseo_disclaimer_settings[description]" id="description" 618 <textarea name="blogdoseo_disclaimer_settings[description]" id="description" class="code" aria-describedby="blogdoseo-description-html-help" 617 619 style="width: 100%; max-width: 500px; height: 80px;"><?php echo esc_textarea( $content['description'] ); ?></textarea> 620 <p class="description" id="blogdoseo-description-html-help"><?php esc_html_e( 'HTML supported: links, bold, italics, line breaks, paragraphs and lists.', 'blogdoseo-disclaimer-18' ); ?></p> 618 621 </td> 619 622 </tr> … … 645 648 <th scope="row"><label for="regret_description"><?php esc_html_e( 'Denial Screen Description:', 'blogdoseo-disclaimer-18' ); ?></label></th> 646 649 <td> 647 <textarea name="blogdoseo_disclaimer_settings[regret_description]" id="regret_description" 650 <textarea name="blogdoseo_disclaimer_settings[regret_description]" id="regret_description" class="code" aria-describedby="blogdoseo-regret-html-help" 648 651 style="width: 100%; max-width: 500px; height: 80px;"><?php echo esc_textarea( $content['regret_description'] ); ?></textarea> 652 <p class="description" id="blogdoseo-regret-html-help"><?php esc_html_e( 'HTML supported: links, bold, italics, line breaks, paragraphs and lists.', 'blogdoseo-disclaimer-18' ); ?></p> 649 653 </td> 650 654 </tr> -
blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18-en_US.po
r3802389 r3802407 119 119 msgstr "Go Back" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "Help improve BlogDoSEO Disclaimer +18" … … 161 164 msgstr "Modal Background Color:" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "More reviews, more weekly updates." 168 163 169 msgid "NO" 164 170 msgstr "NO" -
blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18-pt_BR.po
r3802389 r3802407 119 119 msgstr "Voltar" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "Aceita HTML: links, negrito, itálico, quebras de linha, parágrafos e listas." 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "Ajude a melhorar o BlogDoSEO Disclaimer +18" … … 161 164 msgstr "Cor de fundo da janela:" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "Mais avaliações mais atualizações semanais." 168 163 169 msgid "NO" 164 170 msgstr "NÃO" -
blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18-zh_CN.po
r3802389 r3802407 119 119 msgstr "返回" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "支持 HTML:链接、粗体、斜体、换行、段落和列表。" 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "帮助改进 BlogDoSEO Disclaimer +18" … … 161 164 msgstr "弹窗背景颜色:" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "更多评价,更多每周更新。" 168 163 169 msgid "NO" 164 170 msgstr "否" -
blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18.pot
r3802389 r3802407 119 119 msgstr "" 120 120 121 msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists." 122 msgstr "" 123 121 124 msgid "Help improve BlogDoSEO Disclaimer +18" 122 125 msgstr "" … … 161 164 msgstr "" 162 165 166 msgid "More reviews, more weekly updates." 167 msgstr "" 168 163 169 msgid "NO" 164 170 msgstr "" -
blogdoseo-disclaimer-18/trunk/readme.txt
r3802389 r3802407 25 25 * Custom logo support (PNG, JPG, WebP, SVG), with a WordPress Media Library picker, inside/outside position, size and opacity controls 26 26 * Full content customization: title, description, button texts, denial screen 27 * HTML formatting in both notice descriptions: links, bold, italics, line breaks, paragraphs and lists 27 28 * Custom colors for buttons, modal background and text, with synchronized color pickers and hexadecimal inputs 28 29 * Background image support for the overlay … … 93 94 Yes. Under Design, each button, modal-background and text color has both a visual picker and a HEX text field. They stay synchronized. Enter a six-digit code such as #ff6600, or a three-digit shorthand such as #f60. The # is optional when typing. Invalid codes are rejected before saving. 94 95 96 = Can I use HTML in the descriptions? = 97 98 Yes. Under Content, both Description and Denial Screen Description accept HTML formatting, including links, bold, italics, line breaks, paragraphs and lists. Paste or type your HTML and save. HTML is filtered using WordPress's allowed post-content tags. Titles and button labels remain plain text. Existing plain-text descriptions continue to work. 99 95 100 = Does the plugin work on mobile? = 96 101 … … 108 113 109 114 = 1.2.0 = 115 * Added HTML support to the notice description and denial-screen description, with WordPress HTML filtering 116 * Added a red italic weekly-update note below the existing review invitation text 110 117 * Added synchronized hexadecimal color inputs in Design settings, with support for 3- and 6-digit hex codes and validation 111 118 * Added entire-site or selected-categories display modes in General settings
Note:
See TracChangeset
for help on using the changeset viewer.