Plugin Directory

Changeset 3802407


Ignore:
Timestamp:
11/14/2026 07:38:24 PM (36 hours ago)
Author:
undercover006
Message:

Update 1.2.0: allow HTML in both notice descriptions and add review note

Preserve and render allowed HTML in the notice and denial-screen descriptions, filtering both saved values and frontend output with WordPress post-content HTML rules.
Support block formatting and keyboard navigation for description links while keeping titles and button labels as plain text.
Add the requested red italic weekly-update message below the existing review invitation, with translations in all supported languages.
Verify real settings saves, frontend rendering, filtering, plain-text compatibility, keyboard focus and mobile layout on WordPress 7.1.4 / PHP 8.5.5.

Location:
blogdoseo-disclaimer-18
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • blogdoseo-disclaimer-18/tags/1.2.0/CHANGELOG.md

    r3802389 r3802407  
    77### Improvements
    88
     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
    912* Added synchronized hexadecimal color fields for buttons, modal background and text, with input validation and 3-/6-digit hex support
    1013* Added a choice between the entire site and selected post categories
  • blogdoseo-disclaimer-18/tags/1.2.0/assets/css/admin.css

    r3802389 r3802407  
    5959#blogdoseo-disclaimer-settings .blogdoseo-review-invitation h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
    6060#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; }
    6162#blogdoseo-disclaimer-settings .blogdoseo-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
    6263#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  
    9292    outline: none;
    9393}
    94 #blogdoseo-disclaimer-dialog button:focus-visible {
     94#blogdoseo-disclaimer-dialog button:focus-visible,
     95#blogdoseo-disclaimer-dialog a:focus-visible {
    9596    outline: 3px solid var(--blogdoseo-text-color);
    9697    outline-offset: 4px;
    9798}
    98 #blogdoseo-disclaimer-modal p {
     99#blogdoseo-disclaimer-modal p,
     100#blogdoseo-disclaimer-modal .blogdoseo-html-description {
    99101    font-size: 14px;
    100102    line-height: 1.5;
    … …  
    103105    overflow-wrap: anywhere;
    104106}
     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; }
    105116#blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret { text-align: center; }
    106117#blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret h2 { margin-bottom: 20px; }
    … …  
    118129    #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-buttons { gap: 10px; flex-direction: column; }
    119130    #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; }
    121133    #blogdoseo-disclaimer-overlay .blogdoseo-logo-container { margin-bottom: 20px; }
    122134    #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  
    103103
    104104    $('#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);
    106107    $('#blogdoseo-disclaimer-yes').text(settings.yesText);
    107108    $('#blogdoseo-disclaimer-no').text(settings.noText);
    108109    $('#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    });
    110114    $('#blogdoseo-disclaimer-back').text(settings.backText);
    111115
  • blogdoseo-disclaimer-18/tags/1.2.0/blogdoseo-disclaimer.php

    r3802389 r3802407  
    108108                $mo->import_from_file( plugin_dir_path( __FILE__ ) . 'languages/blogdoseo-disclaimer-18-' . $locale . '.mo' );
    109109                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;
    111112                }
    112113            }
    … …  
    181182            'theme'                => isset( $settings['theme'] ) ? sanitize_text_field( $settings['theme'] ) : $defaults['theme'],
    182183            'title'                => sanitize_text_field( $content['title'] ),
    183             'description'          => sanitize_textarea_field( $content['description'] ),
     184            'description'          => wp_kses_post( $content['description'] ),
    184185            'yesText'              => sanitize_text_field( $content['yes_text'] ),
    185186            'noText'               => sanitize_text_field( $content['no_text'] ),
    186187            'regretTitle'          => sanitize_text_field( $content['regret_title'] ),
    187             'regretDescription'    => sanitize_textarea_field( $content['regret_description'] ),
     188            'regretDescription'    => wp_kses_post( $content['regret_description'] ),
    188189            'backText'             => sanitize_text_field( $content['back_text'] ),
    189190            'logoUrl'              => isset( $settings['logo_url'] ) ? esc_url( $settings['logo_url'] ) : '',
    … …  
    283284                        <button type="button" id="blogdoseo-disclaimer-no" class="btn-no"></button>
    284285                    </div>
    285                     <p id="blogdoseo-disclaimer-description"></p>
     286                    <div id="blogdoseo-disclaimer-description" class="blogdoseo-html-description"></div>
    286287                </div>
    287288                <div class="blogdoseo-disclaimer-regret" style="display: none;">
    288289                    <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>
    290291                    <button type="button" id="blogdoseo-disclaimer-back" class="btn-yes"></button>
    291292                </div>
    … …  
    337338            <h2 id="blogdoseo-review-title"><?php esc_html_e( 'Help improve BlogDoSEO Disclaimer +18', 'blogdoseo-disclaimer-18' ); ?></h2>
    338339            <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>
    339341            <div class="blogdoseo-review-actions">
    340342                <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">
    … …  
    391393        $textarea_fields = array( 'description', 'regret_description' );
    392394        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 ] );
    395397            }
    396398        }
    … …  
    614616                            <th scope="row"><label for="description"><?php esc_html_e( 'Description:', 'blogdoseo-disclaimer-18' ); ?></label></th>
    615617                            <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"
    617619                                          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>
    618621                            </td>
    619622                        </tr>
    … …  
    645648                            <th scope="row"><label for="regret_description"><?php esc_html_e( 'Denial Screen Description:', 'blogdoseo-disclaimer-18' ); ?></label></th>
    646649                            <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"
    648651                                          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>
    649653                            </td>
    650654                        </tr>
  • blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18-en_US.po

    r3802389 r3802407  
    119119msgstr "Go Back"
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr "Help improve BlogDoSEO Disclaimer +18"
    … …  
    161164msgstr "Modal Background Color:"
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr "More reviews, more weekly updates."
     168
    163169msgid "NO"
    164170msgstr "NO"
  • blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18-pt_BR.po

    r3802389 r3802407  
    119119msgstr "Voltar"
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr "Aceita HTML: links, negrito, itálico, quebras de linha, parágrafos e listas."
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr "Ajude a melhorar o BlogDoSEO Disclaimer +18"
    … …  
    161164msgstr "Cor de fundo da janela:"
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr "Mais avaliações mais atualizações semanais."
     168
    163169msgid "NO"
    164170msgstr "NÃO"
  • blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18-zh_CN.po

    r3802389 r3802407  
    119119msgstr "返回"
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr "支持 HTML:链接、粗体、斜体、换行、段落和列表。"
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr "帮助改进 BlogDoSEO Disclaimer +18"
    … …  
    161164msgstr "弹窗背景颜色:"
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr "更多评价,更多每周更新。"
     168
    163169msgid "NO"
    164170msgstr "否"
  • blogdoseo-disclaimer-18/tags/1.2.0/languages/blogdoseo-disclaimer-18.pot

    r3802389 r3802407  
    119119msgstr ""
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr ""
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr ""
    … …  
    161164msgstr ""
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr ""
     168
    163169msgid "NO"
    164170msgstr ""
  • blogdoseo-disclaimer-18/tags/1.2.0/readme.txt

    r3802389 r3802407  
    2525* Custom logo support (PNG, JPG, WebP, SVG), with a WordPress Media Library picker, inside/outside position, size and opacity controls
    2626* Full content customization: title, description, button texts, denial screen
     27* HTML formatting in both notice descriptions: links, bold, italics, line breaks, paragraphs and lists
    2728* Custom colors for buttons, modal background and text, with synchronized color pickers and hexadecimal inputs
    2829* Background image support for the overlay
    … …  
    9394Yes. 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.
    9495
     96= Can I use HTML in the descriptions? =
     97
     98Yes. 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
    95100= Does the plugin work on mobile? =
    96101
    … …  
    108113
    109114= 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
    110117* Added synchronized hexadecimal color inputs in Design settings, with support for 3- and 6-digit hex codes and validation
    111118* Added entire-site or selected-categories display modes in General settings
  • blogdoseo-disclaimer-18/trunk/CHANGELOG.md

    r3802389 r3802407  
    77### Improvements
    88
     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
    912* Added synchronized hexadecimal color fields for buttons, modal background and text, with input validation and 3-/6-digit hex support
    1013* Added a choice between the entire site and selected post categories
  • blogdoseo-disclaimer-18/trunk/assets/css/admin.css

    r3802389 r3802407  
    5959#blogdoseo-disclaimer-settings .blogdoseo-review-invitation h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
    6060#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; }
    6162#blogdoseo-disclaimer-settings .blogdoseo-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
    6263#blogdoseo-disclaimer-settings .blogdoseo-review-actions .button { white-space: normal; text-align: center; }
  • blogdoseo-disclaimer-18/trunk/assets/css/style.css

    r3696086 r3802407  
    9292    outline: none;
    9393}
    94 #blogdoseo-disclaimer-dialog button:focus-visible {
     94#blogdoseo-disclaimer-dialog button:focus-visible,
     95#blogdoseo-disclaimer-dialog a:focus-visible {
    9596    outline: 3px solid var(--blogdoseo-text-color);
    9697    outline-offset: 4px;
    9798}
    98 #blogdoseo-disclaimer-modal p {
     99#blogdoseo-disclaimer-modal p,
     100#blogdoseo-disclaimer-modal .blogdoseo-html-description {
    99101    font-size: 14px;
    100102    line-height: 1.5;
    … …  
    103105    overflow-wrap: anywhere;
    104106}
     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; }
    105116#blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret { text-align: center; }
    106117#blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-regret h2 { margin-bottom: 20px; }
    … …  
    118129    #blogdoseo-disclaimer-overlay .blogdoseo-disclaimer-buttons { gap: 10px; flex-direction: column; }
    119130    #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; }
    121133    #blogdoseo-disclaimer-overlay .blogdoseo-logo-container { margin-bottom: 20px; }
    122134    #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  
    103103
    104104    $('#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);
    106107    $('#blogdoseo-disclaimer-yes').text(settings.yesText);
    107108    $('#blogdoseo-disclaimer-no').text(settings.noText);
    108109    $('#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    });
    110114    $('#blogdoseo-disclaimer-back').text(settings.backText);
    111115
  • blogdoseo-disclaimer-18/trunk/blogdoseo-disclaimer.php

    r3802389 r3802407  
    108108                $mo->import_from_file( plugin_dir_path( __FILE__ ) . 'languages/blogdoseo-disclaimer-18-' . $locale . '.mo' );
    109109                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;
    111112                }
    112113            }
    … …  
    181182            'theme'                => isset( $settings['theme'] ) ? sanitize_text_field( $settings['theme'] ) : $defaults['theme'],
    182183            'title'                => sanitize_text_field( $content['title'] ),
    183             'description'          => sanitize_textarea_field( $content['description'] ),
     184            'description'          => wp_kses_post( $content['description'] ),
    184185            'yesText'              => sanitize_text_field( $content['yes_text'] ),
    185186            'noText'               => sanitize_text_field( $content['no_text'] ),
    186187            'regretTitle'          => sanitize_text_field( $content['regret_title'] ),
    187             'regretDescription'    => sanitize_textarea_field( $content['regret_description'] ),
     188            'regretDescription'    => wp_kses_post( $content['regret_description'] ),
    188189            'backText'             => sanitize_text_field( $content['back_text'] ),
    189190            'logoUrl'              => isset( $settings['logo_url'] ) ? esc_url( $settings['logo_url'] ) : '',
    … …  
    283284                        <button type="button" id="blogdoseo-disclaimer-no" class="btn-no"></button>
    284285                    </div>
    285                     <p id="blogdoseo-disclaimer-description"></p>
     286                    <div id="blogdoseo-disclaimer-description" class="blogdoseo-html-description"></div>
    286287                </div>
    287288                <div class="blogdoseo-disclaimer-regret" style="display: none;">
    288289                    <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>
    290291                    <button type="button" id="blogdoseo-disclaimer-back" class="btn-yes"></button>
    291292                </div>
    … …  
    337338            <h2 id="blogdoseo-review-title"><?php esc_html_e( 'Help improve BlogDoSEO Disclaimer +18', 'blogdoseo-disclaimer-18' ); ?></h2>
    338339            <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>
    339341            <div class="blogdoseo-review-actions">
    340342                <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">
    … …  
    391393        $textarea_fields = array( 'description', 'regret_description' );
    392394        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 ] );
    395397            }
    396398        }
    … …  
    614616                            <th scope="row"><label for="description"><?php esc_html_e( 'Description:', 'blogdoseo-disclaimer-18' ); ?></label></th>
    615617                            <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"
    617619                                          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>
    618621                            </td>
    619622                        </tr>
    … …  
    645648                            <th scope="row"><label for="regret_description"><?php esc_html_e( 'Denial Screen Description:', 'blogdoseo-disclaimer-18' ); ?></label></th>
    646649                            <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"
    648651                                          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>
    649653                            </td>
    650654                        </tr>
  • blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18-en_US.po

    r3802389 r3802407  
    119119msgstr "Go Back"
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr "Help improve BlogDoSEO Disclaimer +18"
    … …  
    161164msgstr "Modal Background Color:"
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr "More reviews, more weekly updates."
     168
    163169msgid "NO"
    164170msgstr "NO"
  • blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18-pt_BR.po

    r3802389 r3802407  
    119119msgstr "Voltar"
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr "Aceita HTML: links, negrito, itálico, quebras de linha, parágrafos e listas."
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr "Ajude a melhorar o BlogDoSEO Disclaimer +18"
    … …  
    161164msgstr "Cor de fundo da janela:"
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr "Mais avaliações mais atualizações semanais."
     168
    163169msgid "NO"
    164170msgstr "NÃO"
  • blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18-zh_CN.po

    r3802389 r3802407  
    119119msgstr "返回"
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr "支持 HTML:链接、粗体、斜体、换行、段落和列表。"
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr "帮助改进 BlogDoSEO Disclaimer +18"
    … …  
    161164msgstr "弹窗背景颜色:"
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr "更多评价,更多每周更新。"
     168
    163169msgid "NO"
    164170msgstr "否"
  • blogdoseo-disclaimer-18/trunk/languages/blogdoseo-disclaimer-18.pot

    r3802389 r3802407  
    119119msgstr ""
    120120
     121msgid "HTML supported: links, bold, italics, line breaks, paragraphs and lists."
     122msgstr ""
     123
    121124msgid "Help improve BlogDoSEO Disclaimer +18"
    122125msgstr ""
    … …  
    161164msgstr ""
    162165
     166msgid "More reviews, more weekly updates."
     167msgstr ""
     168
    163169msgid "NO"
    164170msgstr ""
  • blogdoseo-disclaimer-18/trunk/readme.txt

    r3802389 r3802407  
    2525* Custom logo support (PNG, JPG, WebP, SVG), with a WordPress Media Library picker, inside/outside position, size and opacity controls
    2626* Full content customization: title, description, button texts, denial screen
     27* HTML formatting in both notice descriptions: links, bold, italics, line breaks, paragraphs and lists
    2728* Custom colors for buttons, modal background and text, with synchronized color pickers and hexadecimal inputs
    2829* Background image support for the overlay
    … …  
    9394Yes. 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.
    9495
     96= Can I use HTML in the descriptions? =
     97
     98Yes. 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
    95100= Does the plugin work on mobile? =
    96101
    … …  
    108113
    109114= 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
    110117* Added synchronized hexadecimal color inputs in Design settings, with support for 3- and 6-digit hex codes and validation
    111118* Added entire-site or selected-categories display modes in General settings
Note: See TracChangeset for help on using the changeset viewer.