Plugin Directory

Changeset 3258149


Ignore:
Timestamp:
03/19/2025 03:31:21 AM (11 months ago)
Author:
codemenschen
Message:

Convert esc_html() to esc_html() for Translation Support

Location:
gift-voucher
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • gift-voucher/tags/4.5.1/include/new_voucher_template.php

    r3258145 r3258149  
    140140                            <img class="image_src<?php echo esc_html($i); ?>" src="" width="100" style="display: none;" /><br>
    141141                            <input class="image_url<?php echo esc_html($i); ?>" type="hidden" name="image<?php echo esc_html($i); ?>" size="60" value="<?php echo esc_attr($value); ?>">
    142                             <button type="button" class="upload_image<?php echo esc_html($i); ?> button"><?php echo esc_html('Upload Image', 'gift-voucher') ?></button>
    143                             <button type="button" class="button button-primary remove_image<?php echo esc_attr($i); ?>" style="display: none;"><?php echo esc_html('Remove Image', 'gift-voucher') ?></button>
     142                            <button type="button" class="upload_image<?php echo esc_html($i); ?> button"><?php echo esc_html_('Upload Image', 'gift-voucher') ?></button>
     143                            <button type="button" class="button button-primary remove_image<?php echo esc_attr($i); ?>" style="display: none;"><?php echo esc_html_('Remove Image', 'gift-voucher') ?></button>
    144144                        </td>
    145145                    </tr>
     
    151151                    <td>
    152152                        <select name="active" id="active">
    153                             <option value="<?php echo esc_html("1"); ?>" <?php echo ($options->active == 1) ? esc_html('selected') : ''; ?>><?php echo esc_html('Active', 'gift-voucher') ?></option>
    154                             <option class="0" <?php echo ($options->active == 0) ? esc_html('selected') : ''; ?>><?php echo esc_html('Inactive', 'gift-voucher') ?></option>
     153                            <option value="<?php echo esc_html("1"); ?>" <?php echo ($options->active == 1) ? esc_html('selected') : ''; ?>><?php echo esc_html_('Active', 'gift-voucher') ?></option>
     154                            <option class="0" <?php echo ($options->active == 0) ? esc_html('selected') : ''; ?>><?php echo esc_html_('Inactive', 'gift-voucher') ?></option>
    155155                        </select>
    156156                    </td>
  • gift-voucher/tags/4.5.1/include/view_voucher_details.php

    r3258145 r3258149  
    8585            <tbody>
    8686                <tr>
    87                     <td><?php echo ($voucher_options->buying_for == 'yourself') ? esc_html('Yourself') : esc_html('Someone Else'); ?></td>
     87                    <td><?php echo ($voucher_options->buying_for == 'yourself') ? esc_html__('Yourself', 'gift-voucher') : esc_html__('Someone Else', 'gift-voucher'); ?></td>
     88
    8889                    <td><?php echo esc_html($voucher_options->from_name); ?></td>
    8990                    <?php if ($voucher_options->buying_for != 'yourself') { ?>
     
    119120            <tbody>
    120121                <tr>
    121                     <td><?php echo ($voucher_options->shipping_type == 'shipping_as_email') ? esc_html('Shipping as Email') : esc_html('Shipping as Post'); ?></td>
     122                    <td><?php echo ($voucher_options->shipping_type == 'shipping_as_email') ? esc_html__('Shipping as Email', 'gift-voucher') : esc_html__('Shipping as Post', 'gift-voucher'); ?></td>
    122123                    <?php if ($voucher_options->shipping_type == 'shipping_as_email') { ?>
    123124                        <td><?php echo esc_html($voucher_options->shipping_email); ?></td>
  • gift-voucher/tags/4.5.1/include/voucher-shortcodes.php

    r3258145 r3258149  
    396396            <table class="wpgv-balance-activity-table">
    397397                <tr>
    398                     <th><?php echo esc_html('Date', 'gift-voucher'); ?></th>
    399                     <th><?php echo esc_html('Action', 'gift-voucher'); ?></th>
    400                     <th><?php echo esc_html('Note', 'gift-voucher'); ?></th>
    401                     <th><?php echo esc_html('Amount', 'gift-voucher'); ?></th>
    402                     <th><?php echo esc_html('Balance', 'gift-voucher'); ?></th>
     398                    <th><?php echo esc_html_('Date', 'gift-voucher'); ?></th>
     399                    <th><?php echo esc_html_('Action', 'gift-voucher'); ?></th>
     400                    <th><?php echo esc_html_('Note', 'gift-voucher'); ?></th>
     401                    <th><?php echo esc_html_('Amount', 'gift-voucher'); ?></th>
     402                    <th><?php echo esc_html_('Balance', 'gift-voucher'); ?></th>
    403403                </tr>
    404404                <?php
  • gift-voucher/tags/4.5.1/include/voucher_list.php

    r3258145 r3258149  
    4646                    <?php if ($items): ?><input type="hidden" name="items" value="<?php echo esc_html("1"); ?>"><?php endif; ?>
    4747                    <input type="hidden" name="search" value="<?php echo esc_html("1"); ?>">
    48                     <input type="text" name="voucher_code" autocomplete="off" placeholder="Search by Gift voucher code or email" value="<?php echo esc_html($voucher_code); ?>" style="width: 400px;">
     48                    <input type="text" name="voucher_code" autocomplete="off" placeholder="<?php echo esc_attr__('Search by Gift voucher code or email', 'gift-voucher'); ?>" value="<?php echo esc_html($voucher_code); ?>" style="width: 400px;">
    4949                    <input type="submit" class="button button-primary" value="<?php echo esc_html("Search"); ?>">
    5050                </form>
  • gift-voucher/trunk/include/new_voucher_template.php

    r3179739 r3258149  
    140140                            <img class="image_src<?php echo esc_html($i); ?>" src="" width="100" style="display: none;" /><br>
    141141                            <input class="image_url<?php echo esc_html($i); ?>" type="hidden" name="image<?php echo esc_html($i); ?>" size="60" value="<?php echo esc_attr($value); ?>">
    142                             <button type="button" class="upload_image<?php echo esc_html($i); ?> button"><?php echo esc_html('Upload Image', 'gift-voucher') ?></button>
    143                             <button type="button" class="button button-primary remove_image<?php echo esc_attr($i); ?>" style="display: none;"><?php echo esc_html('Remove Image', 'gift-voucher') ?></button>
     142                            <button type="button" class="upload_image<?php echo esc_html($i); ?> button"><?php echo esc_html_('Upload Image', 'gift-voucher') ?></button>
     143                            <button type="button" class="button button-primary remove_image<?php echo esc_attr($i); ?>" style="display: none;"><?php echo esc_html_('Remove Image', 'gift-voucher') ?></button>
    144144                        </td>
    145145                    </tr>
     
    151151                    <td>
    152152                        <select name="active" id="active">
    153                             <option value="<?php echo esc_html("1"); ?>" <?php echo ($options->active == 1) ? esc_html('selected') : ''; ?>><?php echo esc_html('Active', 'gift-voucher') ?></option>
    154                             <option class="0" <?php echo ($options->active == 0) ? esc_html('selected') : ''; ?>><?php echo esc_html('Inactive', 'gift-voucher') ?></option>
     153                            <option value="<?php echo esc_html("1"); ?>" <?php echo ($options->active == 1) ? esc_html('selected') : ''; ?>><?php echo esc_html_('Active', 'gift-voucher') ?></option>
     154                            <option class="0" <?php echo ($options->active == 0) ? esc_html('selected') : ''; ?>><?php echo esc_html_('Inactive', 'gift-voucher') ?></option>
    155155                        </select>
    156156                    </td>
  • gift-voucher/trunk/include/view_voucher_details.php

    r3246800 r3258149  
    8585            <tbody>
    8686                <tr>
    87                     <td><?php echo ($voucher_options->buying_for == 'yourself') ? esc_html('Yourself') : esc_html('Someone Else'); ?></td>
     87                    <td><?php echo ($voucher_options->buying_for == 'yourself') ? esc_html__('Yourself', 'gift-voucher') : esc_html__('Someone Else', 'gift-voucher'); ?></td>
     88
    8889                    <td><?php echo esc_html($voucher_options->from_name); ?></td>
    8990                    <?php if ($voucher_options->buying_for != 'yourself') { ?>
     
    119120            <tbody>
    120121                <tr>
    121                     <td><?php echo ($voucher_options->shipping_type == 'shipping_as_email') ? esc_html('Shipping as Email') : esc_html('Shipping as Post'); ?></td>
     122                    <td><?php echo ($voucher_options->shipping_type == 'shipping_as_email') ? esc_html__('Shipping as Email', 'gift-voucher') : esc_html__('Shipping as Post', 'gift-voucher'); ?></td>
    122123                    <?php if ($voucher_options->shipping_type == 'shipping_as_email') { ?>
    123124                        <td><?php echo esc_html($voucher_options->shipping_email); ?></td>
  • gift-voucher/trunk/include/voucher-shortcodes.php

    r3186322 r3258149  
    396396            <table class="wpgv-balance-activity-table">
    397397                <tr>
    398                     <th><?php echo esc_html('Date', 'gift-voucher'); ?></th>
    399                     <th><?php echo esc_html('Action', 'gift-voucher'); ?></th>
    400                     <th><?php echo esc_html('Note', 'gift-voucher'); ?></th>
    401                     <th><?php echo esc_html('Amount', 'gift-voucher'); ?></th>
    402                     <th><?php echo esc_html('Balance', 'gift-voucher'); ?></th>
     398                    <th><?php echo esc_html_('Date', 'gift-voucher'); ?></th>
     399                    <th><?php echo esc_html_('Action', 'gift-voucher'); ?></th>
     400                    <th><?php echo esc_html_('Note', 'gift-voucher'); ?></th>
     401                    <th><?php echo esc_html_('Amount', 'gift-voucher'); ?></th>
     402                    <th><?php echo esc_html_('Balance', 'gift-voucher'); ?></th>
    403403                </tr>
    404404                <?php
  • gift-voucher/trunk/include/voucher_list.php

    r3179739 r3258149  
    4646                    <?php if ($items): ?><input type="hidden" name="items" value="<?php echo esc_html("1"); ?>"><?php endif; ?>
    4747                    <input type="hidden" name="search" value="<?php echo esc_html("1"); ?>">
    48                     <input type="text" name="voucher_code" autocomplete="off" placeholder="Search by Gift voucher code or email" value="<?php echo esc_html($voucher_code); ?>" style="width: 400px;">
     48                    <input type="text" name="voucher_code" autocomplete="off" placeholder="<?php echo esc_attr__('Search by Gift voucher code or email', 'gift-voucher'); ?>" value="<?php echo esc_html($voucher_code); ?>" style="width: 400px;">
    4949                    <input type="submit" class="button button-primary" value="<?php echo esc_html("Search"); ?>">
    5050                </form>
Note: See TracChangeset for help on using the changeset viewer.