Plugin Directory

Changeset 2024975


Ignore:
Timestamp:
02/05/2019 03:42:14 AM (7 years ago)
Author:
stevepuddick
Message:

add: version 1.0.4

Location:
wp-notes-widget
Files:
113 added
17 edited

Legend:

Unmodified
Added
Removed
  • wp-notes-widget/trunk/README.txt

    r1869348 r2024975  
    33Tags: widget, notes, sidebar, notification, news, events, tweet, twitter
    44Requires at least: 3.5
    5 Tested up to: 4.9
    6 Stable tag: 1.0.3
     5Tested up to: 5.0.3
     6Stable tag: 1.0.4
    77License: GPLv2 or later
    88
     
    168168== Changelog ==
    169169
     170= 1.0.4 =
     171* change: Admin Code Editor promo link
     172* change: updated WordPress version compatibility
     173
    170174= 1.0.3 =
    171175* fix: proper html escaping of gettext
  • wp-notes-widget/trunk/admin/admin-post-twitter-no-credentials-view.php

    r1095544 r2024975  
    1     <p><?php _e('If you would like to automatically post your Notes to your Twitter account, please go to the <a href="/wp-admin/options-general.php?page=wp-notes-widget-settings">settings page</a> and follow the instructions.', 'wp-notes-widget'); ?></p>
     1    <p><?php esc_html_e('If you would like to automatically post your Notes to your Twitter account, please go to the <a href="/wp-admin/options-general.php?page=wp-notes-widget-settings">settings page</a> and follow the instructions.', 'wp-notes-widget'); ?></p>
    22   
  • wp-notes-widget/trunk/admin/admin-post-twitter-view.php

    r1427839 r2024975  
    11  <div class="wp-notes-post-admin-container" >
    2     <h4><?php _e('Tweet History and Settings', 'wp-notes-widget'); ?></h4>
     2    <h4><?php esc_html_e('Tweet History and Settings', 'wp-notes-widget'); ?></h4>
    33    <div class="content-segment">
    44     
     
    66        var wp_notes_widget_twitter_url_short_length         = <?php echo $twitter_url_short_length; ?>;
    77        var wp_notes_widget_twitter_url_short_length_https   = <?php echo $twitter_url_short_length_https; ?>;
    8         var wp_notes_widget_twitter_over_limit_text         = "<?php _e('Too long. Tweet won\'t be sent.', 'wp-notes-widget'); ?>"; 
     8        var wp_notes_widget_twitter_over_limit_text         = "<?php esc_html_e('Too long. Tweet won\'t be sent.', 'wp-notes-widget'); ?>"; 
    99      </script>
    1010
    1111      <div class="wp-notes-margin-bottom" >
    1212        <input type="checkbox" id="WP_Notes_push_tweet" name="WP_Notes_push_tweet" for="" value="checked" <?php checked($wp_notes_twitter_data['push_tweet'], 'checked' ) ?> />
    13         <label for="WP_Notes_push_tweet" ><strong><?php _e('Send Tweet on Publish or Update?', 'wp-notes-widget') ?></strong></label>
     13        <label for="WP_Notes_push_tweet" ><strong><?php esc_html_e('Send Tweet on Publish or Update?', 'wp-notes-widget') ?></strong></label>
    1414      </div>
    1515
    1616      <?php if(empty($wp_notes_tweet_history)) { ?>
    17         <p><?php _e('WP Notes Widget has not tweeted this note yet.','wp-notes-widget'); ?></p>
     17        <p><?php esc_html_e('WP Notes Widget has not tweeted this note yet.','wp-notes-widget'); ?></p>
    1818
    1919      <?php } else { ?>
    20         <p><?php _e('WP Notes Widget has tweeted this note on:', 'wp-notes-widget'); ?></p> 
     20        <p><?php esc_html_e('WP Notes Widget has tweeted this note on:', 'wp-notes-widget'); ?></p> 
    2121        <ul class="tweet-history-list faded">
    2222          <?php
     
    3030    </div>
    3131
    32     <h4><?php _e('Tweet Content', 'wp-notes-widget'); ?></h4>
     32    <h4><?php esc_html_e('Tweet Content', 'wp-notes-widget'); ?></h4>
    3333    <div class="content-segment">
    34       <button id="WP_Notes_twitter_copy_text" class="button button-secondary wp-notes-margin-bottom"><?php _e('Copy Content From Notes Text', 'wp-notes-widget'); ?></button>
    35       <p class="wp-notes-no-margin-bottom" ><?php _e('Characters Remaining:', 'wp-notes-widget'); ?> <span id="WP_Notes_twitter_chars_remaining"></span><span id="WP_Notes_twitter_over_limit_text" ></span></p>
     34      <button id="WP_Notes_twitter_copy_text" class="button button-secondary wp-notes-margin-bottom"><?php esc_html_e('Copy Content From Notes Text', 'wp-notes-widget'); ?></button>
     35      <p class="wp-notes-no-margin-bottom" ><?php esc_html_e('Characters Remaining:', 'wp-notes-widget'); ?> <span id="WP_Notes_twitter_chars_remaining"></span><span id="WP_Notes_twitter_over_limit_text" ></span></p>
    3636       
    37       <textarea id="WP_Notes_tweet_body" name="WP_Notes_tweet_body" class="wp-notes-textarea" placeholder="<?php _e('Here is a tweet with a link to *url*. Also, check out this cool video *video*', 'wp-notes-widget'); ?>" ><?php echo $wp_notes_twitter_data['tweet_body']; ?></textarea>
     37      <textarea id="WP_Notes_tweet_body" name="WP_Notes_tweet_body" class="wp-notes-textarea" placeholder="<?php esc_html_e('Here is a tweet with a link to *url*. Also, check out this cool video *video*', 'wp-notes-widget'); ?>" ><?php echo $wp_notes_twitter_data['tweet_body']; ?></textarea>
    3838      <ul class="faded" >
    39         <li><?php _e('Enter *url* in tweet body to attach the action or download link.', 'wp-notes-widget'); ?></li>
    40         <li><?php _e('Enter *video* in tweet body to attach the video link.', 'wp-notes-widget'); ?></li>         
    41         <li><?php _e('If an image is attached to the note, it will automatically be included in your Tweet.', 'wp-notes-widget'); ?> </li>
     39        <li><?php esc_html_e('Enter *url* in tweet body to attach the action or download link.', 'wp-notes-widget'); ?></li>
     40        <li><?php esc_html_e('Enter *video* in tweet body to attach the video link.', 'wp-notes-widget'); ?></li>         
     41        <li><?php esc_html_e('If an image is attached to the note, it will automatically be included in your Tweet.', 'wp-notes-widget'); ?> </li>
    4242      </ul>
    4343     
  • wp-notes-widget/trunk/admin/admin-post-view.php

    r1738506 r2024975  
    22<div class="wp-notes-post-admin-container">
    33
    4   <h4><?php _e('Notes Text','wp-notes-widget') ?></h4>
     4  <h4><?php esc_html_e('Notes Text','wp-notes-widget') ?></h4>
    55  <div class="content-segment">
    66   
    7     <label class="wp-notes-label wp-notes-hidden" for="WP_Notes_text"><?php _e('Notes Text', 'wp-notes-widget') ?></label>
    8     <textarea  class="wp-notes-textarea"  id="WP_Notes_text" name="WP_Notes_text" placeholder="<?php _e( 'Enter your note here.', 'wp-notes-widget' ) ?>"><?php echo $wp_notes_data['text'] ?></textarea>
     7    <label class="wp-notes-label wp-notes-hidden" for="WP_Notes_text"><?php esc_html_e('Notes Text', 'wp-notes-widget') ?></label>
     8    <textarea  class="wp-notes-textarea"  id="WP_Notes_text" name="WP_Notes_text" placeholder="<?php esc_html_e( 'Enter your note here.', 'wp-notes-widget' ) ?>"><?php echo $wp_notes_data['text'] ?></textarea>
    99   
    1010  </div>
    1111 
    12   <h4><?php _e('Add Media', 'wp-notes-widget') ?> <span class="secondary-text" >(<?php _e('optional','wp-notes-widget'); ?>)</span> </h4>
     12  <h4><?php esc_html_e('Add Media', 'wp-notes-widget') ?> <span class="secondary-text" >(<?php esc_html_e('optional','wp-notes-widget'); ?>)</span> </h4>
    1313  <div class="content-segment">
    1414
     
    1818        <div class="wp-notes-media-option-control wp-notes-radio-option-control <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'] ,'image', 1); ?>">
    1919          <input type="radio" name="WP_Notes_media_type" id="WP_Notes_media_type_image" value="image" <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'] ,'image',1); ?>  data-content-panel-id="wp-notes-image-components"  />
    20           <label class="wp-notes-option-label" for="WP_Notes_media_type_image"><?php _e('Image', 'wp-notes-widget') ?></label>
     20          <label class="wp-notes-option-label" for="WP_Notes_media_type_image"><?php esc_html_e('Image', 'wp-notes-widget') ?></label>
    2121        </div>
    2222       
    2323        <div class="wp-notes-media-option-control wp-notes-radio-option-control <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'],'video'); ?>">
    2424          <input type="radio" name="WP_Notes_media_type" id="WP_Notes_media_type_video" value="video" <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'],'video'); ?> data-content-panel-id="wp-notes-video-components"  />
    25           <label class="wp-notes-option-label" for="WP_Notes_media_type_video"><?php _e('Video', 'wp-notes-widget') ?></label>
     25          <label class="wp-notes-option-label" for="WP_Notes_media_type_video"><?php esc_html_e('Video', 'wp-notes-widget') ?></label>
    2626        </div>
    2727
    2828        <div class="wp-notes-media-option-control wp-notes-radio-option-control <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'],'audio'); ?>">
    2929          <input type="radio" name="WP_Notes_media_type" id="WP_Notes_media_type_audio" value="audio" <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'],'audio'); ?> data-content-panel-id="wp-notes-audio-components"  />
    30           <label class="wp-notes-option-label" for="WP_Notes_media_type_audio"><?php _e('Audio', 'wp-notes-widget') ?></label>
     30          <label class="wp-notes-option-label" for="WP_Notes_media_type_audio"><?php esc_html_e('Audio', 'wp-notes-widget') ?></label>
    3131        </div>
    3232
     
    3838          <div class="wp-notes-image-management">
    3939            <div>
    40               <a href="#" id="wp-notes-add-image-button" class="button" ><?php _e('Add Image', 'wp-notes-widget') ?></a>
    41               <a href="#" id="wp-notes-remove-image-button" class="button <?php if ( !($wp_notes_data['image_id'] ) ) { echo 'disabled'; } ?>" ><?php _e('Remove Image', 'wp-notes-widget') ?></a>
     40              <a href="#" id="wp-notes-add-image-button" class="button" ><?php esc_html_e('Add Image', 'wp-notes-widget') ?></a>
     41              <a href="#" id="wp-notes-remove-image-button" class="button <?php if ( !($wp_notes_data['image_id'] ) ) { echo 'disabled'; } ?>" ><?php esc_html_e('Remove Image', 'wp-notes-widget') ?></a>
    4242            </div>
    4343
     
    5050              <div class="no-image <?php if ( (bool)($wp_notes_data['image_id'] ) ) { echo 'wp-notes-hidden'; } ?>">
    5151                <div class="no-image-box">
    52                   <div class="text"><?php _e('No Image Set', 'wp-notes-widget'); ?></div>
     52                  <div class="text"><?php esc_html_e('No Image Set', 'wp-notes-widget'); ?></div>
    5353                  <div class="no-image-shim"></div>
    5454                </div>
     
    6565        <div id="wp-notes-video-components" class="wp-notes-media-component-container wp-notes-radio-component-container  <?php WP_Notes_get_hidden_class_output($wp_notes_data['media_embed'],'video'); ?>">
    6666          <label for="WP_Notes_video_embed_link" >
    67             <?php _e('Enter a video page link from Youtube or Vimeo', 'wp-notes-widget'); ?> <br />
    68             <small><?php _e('WP Notes Widget will automatically convert it to the embedded format.', 'wp-notes-widget'); ?></small>
     67            <?php esc_html_e('Enter a video page link from Youtube or Vimeo', 'wp-notes-widget'); ?> <br />
     68            <small><?php esc_html_e('WP Notes Widget will automatically convert it to the embedded format.', 'wp-notes-widget'); ?></small>
    6969          </label>
    7070          <input type="text" class="wp-notes-text full-width"  id="WP_Notes_video_embed_link" name="WP_Notes_video_embed_link" placeholder="https://www.youtube.com/watch?v=EYs_FckMqow" value="<?php echo $wp_notes_data['media_video_link'] ?>" />
     
    7777           
    7878            <div>
    79               <a href="#" id="wp-notes-add-audio-button" class="button" ><?php _e('Add Audio File', 'wp-notes-widget') ?></a>
    80               <a href="#" id="wp-notes-remove-audio-button" class="button <?php if ( !($wp_notes_data['media_audio_id'] ) ) { echo 'disabled'; } ?>" ><?php _e('Remove Audio File', 'wp-notes-widget') ?></a>
     79              <a href="#" id="wp-notes-add-audio-button" class="button" ><?php esc_html_e('Add Audio File', 'wp-notes-widget') ?></a>
     80              <a href="#" id="wp-notes-remove-audio-button" class="button <?php if ( !($wp_notes_data['media_audio_id'] ) ) { echo 'disabled'; } ?>" ><?php esc_html_e('Remove Audio File', 'wp-notes-widget') ?></a>
    8181            </div>
    8282
     
    8585              <div class="audio <?php if ( !(bool)($wp_notes_data['media_audio_id'] ) ) { echo 'wp-notes-hidden'; } ?>">
    8686                <audio id="WP_Notes_audio" src="<?php echo $wp_notes_data['media_audio_src'] ?>" controls >
    87                   <p><?php _e('Your browser does not support HTML5 audio.', 'wp-notes-widget'); ?></p>
     87                  <p><?php esc_html_e('Your browser does not support HTML5 audio.', 'wp-notes-widget'); ?></p>
    8888                </audio>
    8989              </div>
    9090             
    9191              <div class="no-audio <?php if ( (bool)($wp_notes_data['media_audio_id'] ) ) { echo 'wp-notes-hidden'; } ?>">
    92                 <p><?php _e('No Audio File Set', 'wp-notes-widget'); ?></p>
     92                <p><?php esc_html_e('No Audio File Set', 'wp-notes-widget'); ?></p>
    9393              </div>
    9494
     
    111111  </div>
    112112
    113   <h4><?php _e('Include a Link', 'wp-notes-widget'); ?> <span class="secondary-text" >(<?php _e('optional','wp-notes-widget'); ?>)</span></h4>
     113  <h4><?php esc_html_e('Include a Link', 'wp-notes-widget'); ?> <span class="secondary-text" >(<?php esc_html_e('optional','wp-notes-widget'); ?>)</span></h4>
    114114  <div class="content-segment">
    115115   
    116116    <p>
    117       <label  class="wp-notes-label"  for="WP_Notes_action_text"><?php _e('Action Text', 'wp-notes-widget') ?></label>
    118       <input type="text" class="wp-notes-text"   id="WP_Notes_action_text" name="WP_Notes_action_text" placeholder="<?php _e('Action Link Text', 'wp-notes-widget') ?>"  value="<?php echo $wp_notes_data['action_text'] ?>" /> 
     117      <label  class="wp-notes-label"  for="WP_Notes_action_text"><?php esc_html_e('Action Text', 'wp-notes-widget') ?></label>
     118      <input type="text" class="wp-notes-text"   id="WP_Notes_action_text" name="WP_Notes_action_text" placeholder="<?php esc_html_e('Action Link Text', 'wp-notes-widget') ?>"  value="<?php echo $wp_notes_data['action_text'] ?>" /> 
    119119    </p>
    120120
    121121    <div class="wp-notes-action-link-management">
    122       <p class="wp-notes-label no-margin-below" ><?php _e('Action Link', 'wp-notes-widget') ?></p>
     122      <p class="wp-notes-label no-margin-below" ><?php esc_html_e('Action Link', 'wp-notes-widget') ?></p>
    123123
    124124      <div class="wp-notes-radio-option-controls ">
    125125        <div class="wp-notes-action-link-control wp-notes-radio-option-control <?php WP_Notes_get_selected_output($wp_notes_data['action_link_type'] ,'plain', 1); ?>">
    126126          <input type="radio" name="WP_Notes_action_link_type" data-content-panel-id="wp-notes-plain-link-components" id="WP_Notes_action_link_type_plain" value="plain" <?php WP_Notes_get_selected_output($wp_notes_data['action_link_type'],'plain',1); ?> />
    127           <label class="wp-notes-option-label" for="WP_Notes_action_link_type_plain"><?php _e('Regular Link', 'wp-notes-widget') ?></label>
     127          <label class="wp-notes-option-label" for="WP_Notes_action_link_type_plain"><?php esc_html_e('Regular Link', 'wp-notes-widget') ?></label>
    128128        </div>
    129129       
    130130        <div class="wp-notes-action-link-control wp-notes-radio-option-control <?php WP_Notes_get_selected_output($wp_notes_data['action_link_type'],'download'); ?>">
    131131          <input type="radio" name="WP_Notes_action_link_type" data-content-panel-id="wp-notes-download-components" id="WP_Notes_action_link_type_download" value="download" <?php WP_Notes_get_selected_output($wp_notes_data['action_link_type'],'download'); ?> />
    132           <label class="wp-notes-option-label" for="WP_Notes_action_link_type_download"><?php _e('Download Link', 'wp-notes-widget') ?></label>
     132          <label class="wp-notes-option-label" for="WP_Notes_action_link_type_download"><?php esc_html_e('Download Link', 'wp-notes-widget') ?></label>
    133133        </div>
    134134
     
    140140          <input type="text" class="wp-notes-text full-width" id="WP_Notes_action_link" name="WP_Notes_action_link" placeholder="http://example.com" value="<?php echo $wp_notes_data['action_link'] ?>" /> 
    141141          <input type="checkbox" id="WP_Notes_plain_link_new_tab" name="WP_Notes_plain_link_new_tab" value="new_tab" <?php if ((bool)$wp_notes_data['plain_link_new_tab']) { echo 'checked'; } ?>/>
    142           <label class="wp-notes-option-label" for="WP_Notes_plain_link_new_tab"><?php _e('Open this link in a new tab', 'wp-notes-widget') ?></label>
     142          <label class="wp-notes-option-label" for="WP_Notes_plain_link_new_tab"><?php esc_html_e('Open this link in a new tab', 'wp-notes-widget') ?></label>
    143143        </div>
    144144       
    145145        <div id="wp-notes-download-components" class="wp-notes-link-component-container wp-notes-radio-component-container <?php WP_Notes_get_hidden_class_output($wp_notes_data['action_link_type'],'download'); ?>">
    146           <a href="#" id="wp-notes-add-download" class="button" ><?php _e('Add Download','wp-notes-widget'); ?></a>
     146          <a href="#" id="wp-notes-add-download" class="button" ><?php esc_html_e('Add Download','wp-notes-widget'); ?></a>
    147147          <input type="text" class="wp-notes-text" id="WP_Notes_download_link" style="width:100%" readonly="readonly" value="<?php echo $wp_notes_data['download_link'] ?>" /> 
    148148          <input type="hidden" id="WP_Notes_download_id" name="WP_Notes_download_id" value="<?php echo $wp_notes_data['download_id'] ?>" />
  • wp-notes-widget/trunk/admin/admin-settings-page-promo-sidebar.php

    r1738506 r2024975  
    77      <div class="col-lg-9 col-md-8">
    88        <section>
    9           <h2><?php _e('WP Notes Widget Settings','wp-notes-widget'); ?></h2>
     9          <h2><?php esc_html_e('WP Notes Widget Settings','wp-notes-widget'); ?></h2>
    1010         
    1111          <form method="post" action="options.php">
     
    1717              <!-- Nav tabs -->
    1818              <ul id="wp-notes-widget__settings-tab-list" class="nav nav-tabs" role="tablist">
    19                 <li role="presentation" class="active"><a href="#general" aria-controls="home" role="tab" data-toggle="tab"><?php _e('General','wp-notes-widget'); ?></a></li>
    20                 <li role="presentation" class=""><a href="#shortcode" aria-controls="shortcode" role="tab" data-toggle="tab"><?php _e('Shortcode','wp-notes-widget'); ?></a></li>
    21                 <li role="presentation"><a href="#twitter" aria-controls="profile" role="tab" data-toggle="tab"><?php _e('Twitter','wp-notes-widget'); ?></a></li>
     19                <li role="presentation" class="active"><a href="#general" aria-controls="home" role="tab" data-toggle="tab"><?php esc_html_e('General','wp-notes-widget'); ?></a></li>
     20                <li role="presentation" class=""><a href="#shortcode" aria-controls="shortcode" role="tab" data-toggle="tab"><?php esc_html_e('Shortcode','wp-notes-widget'); ?></a></li>
     21                <li role="presentation"><a href="#twitter" aria-controls="profile" role="tab" data-toggle="tab"><?php esc_html_e('Twitter','wp-notes-widget'); ?></a></li>
    2222              </ul>
    2323
     
    6767            </ul>
    6868
    69             <p><a href='<?php echo WP_NOTES_WIDGET_PRO_LINK ?>?utm_source=wp-notes-widget-plugin&utm-medium=settings-callout' target="_blank" class="btn btn-primary" >Get WP Notes Widget PRO</a></p>
     69            <p><a href='<?php echo WP_NOTES_WIDGET_PRO_LINK ?>?utm_source=wp-notes-widget-plugin&utm_medium=settings-callout' target="_blank" class="btn btn-primary" >Get WP Notes Widget PRO</a></p>
    7070            <p>Save 20% by using discount code <strong>GOPRO20</strong> !</p>
    7171           
     
    8080         
    8181          <div class="panel-body">
    82             <p>WP Notes Widget is built by <a target="_blank" href='http://webrockstar.net?utm_source=wp-notes-widget-plugin&utm-medium=settings-callout'>Web Rockstar</a>. Web Rockstar also offers several other free plugins:</p>
     82            <p>WP Notes Widget is built by <a target="_blank" href='http://webrockstar.net?utm_source=wp-notes-widget-plugin&utm_medium=settings-callout'>Web Rockstar</a>. Web Rockstar also offers several other free plugins:</p>
    8383            <div class="">
    8484             
     
    9393              <!-- Admin Code Editor Promo Item -->
    9494              <div class="wp-notes-widget__plugin-promo-item">
    95                 <a target="_blank" href='https://wordpress.org/plugins/admin-code-editor/' >
     95                <a target="_blank" href='https://github.com/spuddick/admin-code-editor' >
    9696                  <h4>Admin Code Editor</h4>
    9797                  <div class="wp-notes-widget__plugin-promo-item__banner" id="promo-banner--admin-code-editor" ></div>
  • wp-notes-widget/trunk/admin/admin-settings-page-setup.php

    r1738506 r2024975  
    1010   
    1111    <p class="wp-notes-widget-limit-width" >
    12       <?php _e( 'Default settings for the widget and shortcode.', 'wp-notes-widget' ); ?>
     12      <?php esc_html_e( 'Default settings for the widget and shortcode.', 'wp-notes-widget' ); ?>
    1313    </p>
    1414
     
    2424    ?>
    2525    <div class="alert alert-info" role="alert">
    26       <i class="fa fa-info-circle" aria-hidden="true"></i> <?php echo sprintf('Shortcodes allow you to insert notes into posts and pages. Shortcodes are available in %s. Shortcodes will not be rendered.', '<a href="'. WP_NOTES_WIDGET_PRO_LINK .'?utm_source=wp-notes-widget-plugin&utm-medium=settings-shortcode-tab" target="_blank" >WP Notes Widget PRO</a>'); ?>
     26      <i class="fa fa-info-circle" aria-hidden="true"></i> <?php echo sprintf('Shortcodes allow you to insert notes into posts and pages. Shortcodes are available in %s. Shortcodes will not be rendered.', '<a href="'. WP_NOTES_WIDGET_PRO_LINK .'?utm_source=wp-notes-widget-plugin&utm_medium=settings-shortcode-tab" target="_blank" >WP Notes Widget PRO</a>'); ?>
    2727    </div>
    2828    <p class="wp-notes-widget-limit-width" >
    29       <?php _e( 'Default shortcode specific settings.', 'wp-notes-widget' ); ?>
     29      <?php esc_html_e( 'Default shortcode specific settings.', 'wp-notes-widget' ); ?>
    3030    </p>
    3131
     
    5252   
    5353    <p class="wp-notes-widget-limit-width" >
    54       <?php _e( 'Enter the credentials from the Twitter application you have set up. You can set up a new application on the
     54      <?php esc_html_e( 'Enter the credentials from the Twitter application you have set up. You can set up a new application on the
    5555        <a href="https://apps.twitter.com" target="_blank" >Twitter Application Management</a>
    5656        page. You will need these credentials in order to automatically post your notes to your Twitter account.
     
    8080     
    8181      <div class="form-group">
    82         <label for="wp_notes_widget_twitter_credentials__api_key"><?php _e('API Key','wp-notes-widget'); ?></label>
     82        <label for="wp_notes_widget_twitter_credentials__api_key"><?php esc_html_e('API Key','wp-notes-widget'); ?></label>
    8383        <input type='text' id="wp_notes_widget_twitter_credentials__api_key" name='wp_notes_widget_twitter_credentials[api_key]' value='<?php echo $options['api_key']; ?>' class="wp-notes-widget-long" />
    8484      </div>
     
    104104     
    105105      <div class="form-group">
    106         <label for="wp_notes_widget_twitter_credentials__api_secret"><?php _e('API Secret','wp-notes-widget'); ?></label>
     106        <label for="wp_notes_widget_twitter_credentials__api_secret"><?php esc_html_e('API Secret','wp-notes-widget'); ?></label>
    107107        <input type='text' id="wp_notes_widget_twitter_credentials__api_secret" name='wp_notes_widget_twitter_credentials[api_secret]' value='<?php echo $options['api_secret']; ?>' class="wp-notes-widget-long" />
    108108      </div>
     
    128128     
    129129      <div class="form-group">
    130         <label for="wp_notes_widget_twitter_credentials__access-token"><?php _e('Access Token','wp-notes-widget'); ?></label>
     130        <label for="wp_notes_widget_twitter_credentials__access-token"><?php esc_html_e('Access Token','wp-notes-widget'); ?></label>
    131131        <input type='text' name='wp_notes_widget_twitter_credentials[token]' value='<?php echo $options['token']; ?>' class="wp-notes-widget-long" />
    132132      </div>
     
    152152     
    153153      <div class="form-group">
    154         <label for="wp_notes_widget_twitter_credentials__token-secret"><?php _e('Token Secret','wp-notes-widget'); ?></label>
     154        <label for="wp_notes_widget_twitter_credentials__token-secret"><?php esc_html_e('Token Secret','wp-notes-widget'); ?></label>
    155155        <input type='text' name='wp_notes_widget_twitter_credentials[token_secret]' value='<?php echo $options['token_secret']; ?>' class="wp-notes-widget-long" >
    156156      </div>
     
    163163  add_settings_section(
    164164    'wp_notes_widget_twitter_credentials',              // ID used to identify this section and with which to register options
    165      __('Twitter API Credentials','wp-notes-widget'),   // Title to be displayed on the administration page
     165     esc_html__('Twitter API Credentials','wp-notes-widget'),   // Title to be displayed on the administration page
    166166    'wp_notes_widget_twitter_credentials_callback',     // Callback used to render the description of the section
    167167    'wp_notes_widget_twitter_settings_page_partial'     // Page on which to add this section of options
     
    172172  add_settings_field(
    173173    'wp_notes_widget_twitter_key',                  // ID used to identify the field throughout the theme
    174     '<small class="text-muted" >'.__('API Key for your Twitter application','wp-notes-widget').'</small>',                                      // The label to the left of the option interface element
     174    '<small class="text-muted" >'.esc_html__('API Key for your Twitter application','wp-notes-widget').'</small>',                                      // The label to the left of the option interface element
    175175    'wp_notes_widget_twitter_key_callback',         // The name of the function responsible for rendering the option interface
    176176    'wp_notes_widget_twitter_settings_page_partial',     // The page on which this option will be displayed
     
    180180  add_settings_field(
    181181    'wp_notes_widget_twitter_secret',                     
    182     '<small class="text-muted" >'.__('API Secret for your Twitter application','wp-notes-widget').'</small>',             
     182    '<small class="text-muted" >'.esc_html__('API Secret for your Twitter application','wp-notes-widget').'</small>',             
    183183    'wp_notes_widget_twitter_secret_callback', 
    184184    'wp_notes_widget_twitter_settings_page_partial',                   
     
    188188  add_settings_field(
    189189    'wp_notes_widget_twitter_token',                     
    190     '<small class="text-muted" >'.__('Access Token for your Twitter application','wp-notes-widget').'</small>',             
     190    '<small class="text-muted" >'.esc_html__('Access Token for your Twitter application','wp-notes-widget').'</small>',             
    191191    'wp_notes_widget_twitter_token_callback', 
    192192    'wp_notes_widget_twitter_settings_page_partial',                   
     
    196196  add_settings_field(
    197197    'wp_notes_widget_twitter_token_secret',                     
    198     '<small class="text-muted" >'.__('Token Secret for your Twitter application','wp-notes-widget').'</small>',             
     198    '<small class="text-muted" >'.esc_html__('Token Secret for your Twitter application','wp-notes-widget').'</small>',             
    199199    'wp_notes_widget_twitter_token_secret_callback', 
    200200    'wp_notes_widget_twitter_settings_page_partial',                   
     
    231231    }
    232232    ?>
    233       <label for="wp_notes_widget_defaults--thumb_tack_color" ><?php _e('Thumb Tack Color', 'wp-notes-widget' ) ?></label>
     233      <label for="wp_notes_widget_defaults--thumb_tack_color" ><?php esc_html_e('Thumb Tack Color', 'wp-notes-widget' ) ?></label>
    234234      <select id="wp_notes_widget_defaults--thumb_tack_color" name='wp_notes_widget_defaults[thumb_tack_colour]' >
    235         <option value="red"     <?php selected( $default_val['thumb_tack_colour'], 'red' ); ?> >     <?php _e('Red', 'wp-notes-widget' ) ?></option>
    236         <option value="blue"    <?php selected( $default_val['thumb_tack_colour'], 'blue' ); ?> >    <?php _e('Blue', 'wp-notes-widget' ) ?></option>
    237         <option value="green"   <?php selected( $default_val['thumb_tack_colour'], 'green' ); ?> >   <?php _e('Green', 'wp-notes-widget' ) ?></option>
    238         <option value="gray"    <?php selected( $default_val['thumb_tack_colour'], 'gray' ); ?> >    <?php _e('Gray', 'wp-notes-widget' ) ?></option>
    239         <option value="orange"  <?php selected( $default_val['thumb_tack_colour'], 'orange' ); ?> >  <?php _e('Orange', 'wp-notes-widget' ) ?></option>
    240         <option value="pink"    <?php selected( $default_val['thumb_tack_colour'], 'pink' ); ?> >     <?php _e('Pink', 'wp-notes-widget' ) ?></option>
    241         <option value="teal"    <?php selected( $default_val['thumb_tack_colour'], 'teal' ); ?> >    <?php _e('Teal', 'wp-notes-widget' ) ?></option>
    242         <option value="yellow"  <?php selected( $default_val['thumb_tack_colour'], 'yellow' ); ?> >  <?php _e('Yellow', 'wp-notes-widget' ) ?></option>
     235        <option value="red"     <?php selected( $default_val['thumb_tack_colour'], 'red' ); ?> >     <?php esc_html_e('Red', 'wp-notes-widget' ) ?></option>
     236        <option value="blue"    <?php selected( $default_val['thumb_tack_colour'], 'blue' ); ?> >    <?php esc_html_e('Blue', 'wp-notes-widget' ) ?></option>
     237        <option value="green"   <?php selected( $default_val['thumb_tack_colour'], 'green' ); ?> >   <?php esc_html_e('Green', 'wp-notes-widget' ) ?></option>
     238        <option value="gray"    <?php selected( $default_val['thumb_tack_colour'], 'gray' ); ?> >    <?php esc_html_e('Gray', 'wp-notes-widget' ) ?></option>
     239        <option value="orange"  <?php selected( $default_val['thumb_tack_colour'], 'orange' ); ?> >  <?php esc_html_e('Orange', 'wp-notes-widget' ) ?></option>
     240        <option value="pink"    <?php selected( $default_val['thumb_tack_colour'], 'pink' ); ?> >     <?php esc_html_e('Pink', 'wp-notes-widget' ) ?></option>
     241        <option value="teal"    <?php selected( $default_val['thumb_tack_colour'], 'teal' ); ?> >    <?php esc_html_e('Teal', 'wp-notes-widget' ) ?></option>
     242        <option value="yellow"  <?php selected( $default_val['thumb_tack_colour'], 'yellow' ); ?> >  <?php esc_html_e('Yellow', 'wp-notes-widget' ) ?></option>
    243243      </select>
    244244     
     
    260260    }
    261261    ?>
    262       <label for="wp_notes_widget_defaults--background_color" ><?php _e('Background Color', 'wp-notes-widget' ) ?></label>
     262      <label for="wp_notes_widget_defaults--background_color" ><?php esc_html_e('Background Color', 'wp-notes-widget' ) ?></label>
    263263      <select id="wp_notes_widget_defaults--background_color" name='wp_notes_widget_defaults[background_colour]' >
    264         <option value="yellow"      <?php selected( $default_val['background_colour'], 'yellow' ); ?> >    <?php _e('Yellow', 'wp-notes-widget' ) ?>      </option>
    265         <option value="blue"        <?php selected( $default_val['background_colour'], 'blue' ); ?> >      <?php _e('Blue', 'wp-notes-widget' ) ?>        </option>
    266         <option value="green"       <?php selected( $default_val['background_colour'], 'green' ); ?> >     <?php _e('Green', 'wp-notes-widget' ) ?>      </option>
    267         <option value="pink"        <?php selected( $default_val['background_colour'], 'pink' ); ?> >      <?php _e('Pink', 'wp-notes-widget' ) ?>        </option>
    268         <option value="orange"      <?php selected( $default_val['background_colour'], 'orange' ); ?> >    <?php _e('Orange', 'wp-notes-widget' ) ?>      </option>
    269         <option value="white"       <?php selected( $default_val['background_colour'], 'white' ); ?> >     <?php _e('White', 'wp-notes-widget' ) ?>      </option>
    270         <option value="dark-grey"   <?php selected( $default_val['background_colour'], 'dark-grey' ); ?> > <?php _e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
    271         <option value="light-grey"  <?php selected( $default_val['background_colour'], 'light-grey' ); ?> ><?php _e('Light Grey', 'wp-notes-widget' ) ?>  </option>
     264        <option value="yellow"      <?php selected( $default_val['background_colour'], 'yellow' ); ?> >    <?php esc_html_e('Yellow', 'wp-notes-widget' ) ?>      </option>
     265        <option value="blue"        <?php selected( $default_val['background_colour'], 'blue' ); ?> >      <?php esc_html_e('Blue', 'wp-notes-widget' ) ?>        </option>
     266        <option value="green"       <?php selected( $default_val['background_colour'], 'green' ); ?> >     <?php esc_html_e('Green', 'wp-notes-widget' ) ?>      </option>
     267        <option value="pink"        <?php selected( $default_val['background_colour'], 'pink' ); ?> >      <?php esc_html_e('Pink', 'wp-notes-widget' ) ?>        </option>
     268        <option value="orange"      <?php selected( $default_val['background_colour'], 'orange' ); ?> >    <?php esc_html_e('Orange', 'wp-notes-widget' ) ?>      </option>
     269        <option value="white"       <?php selected( $default_val['background_colour'], 'white' ); ?> >     <?php esc_html_e('White', 'wp-notes-widget' ) ?>      </option>
     270        <option value="dark-grey"   <?php selected( $default_val['background_colour'], 'dark-grey' ); ?> > <?php esc_html_e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
     271        <option value="light-grey"  <?php selected( $default_val['background_colour'], 'light-grey' ); ?> ><?php esc_html_e('Light Grey', 'wp-notes-widget' ) ?>  </option>
    272272      </select>
    273273     
     
    289289    }
    290290    ?>
    291       <label for="wp_notes_widget_defaults--text_color" ><?php _e('Text Color', 'wp-notes-widget' ) ?></label>
     291      <label for="wp_notes_widget_defaults--text_color" ><?php esc_html_e('Text Color', 'wp-notes-widget' ) ?></label>
    292292      <select id="wp_notes_widget_defaults--text_color" name='wp_notes_widget_defaults[text_colour]' >
    293         <option value="red"         <?php selected( $default_val['text_colour'], 'red' ); ?> >  <?php _e('Red', 'wp-notes-widget' ) ?>        </option>
    294         <option value="blue"        <?php selected( $default_val['text_colour'], 'blue' ); ?> >  <?php _e('Blue', 'wp-notes-widget' ) ?>        </option>
    295         <option value="black"       <?php selected( $default_val['text_colour'], 'black' ); ?> >  <?php _e('Black', 'wp-notes-widget' ) ?>      </option>
    296         <option value="pink"        <?php selected( $default_val['text_colour'], 'pink' ); ?> >  <?php _e('Pink', 'wp-notes-widget' ) ?>        </option>
    297         <option value="white"       <?php selected( $default_val['text_colour'], 'white' ); ?> >  <?php _e('White', 'wp-notes-widget' ) ?>      </option>
    298         <option value="dark-grey"   <?php selected( $default_val['text_colour'], 'dark-grey' ); ?> >  <?php _e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
    299         <option value="light-grey"  <?php selected( $default_val['text_colour'], 'light-grey' ); ?> >  <?php _e('Light Grey', 'wp-notes-widget' ) ?>  </option>
     293        <option value="red"         <?php selected( $default_val['text_colour'], 'red' ); ?> >  <?php esc_html_e('Red', 'wp-notes-widget' ) ?>        </option>
     294        <option value="blue"        <?php selected( $default_val['text_colour'], 'blue' ); ?> >  <?php esc_html_e('Blue', 'wp-notes-widget' ) ?>        </option>
     295        <option value="black"       <?php selected( $default_val['text_colour'], 'black' ); ?> >  <?php esc_html_e('Black', 'wp-notes-widget' ) ?>      </option>
     296        <option value="pink"        <?php selected( $default_val['text_colour'], 'pink' ); ?> >  <?php esc_html_e('Pink', 'wp-notes-widget' ) ?>        </option>
     297        <option value="white"       <?php selected( $default_val['text_colour'], 'white' ); ?> >  <?php esc_html_e('White', 'wp-notes-widget' ) ?>      </option>
     298        <option value="dark-grey"   <?php selected( $default_val['text_colour'], 'dark-grey' ); ?> >  <?php esc_html_e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
     299        <option value="light-grey"  <?php selected( $default_val['text_colour'], 'light-grey' ); ?> >  <?php esc_html_e('Light Grey', 'wp-notes-widget' ) ?>  </option>
    300300      </select>
    301301     
     
    318318    ?>
    319319      <div class="form-group">
    320         <label for="wp_notes_widget_defaults--font_size" ><?php _e('Font Size', 'wp-notes-widget' ) ?></label>
     320        <label for="wp_notes_widget_defaults--font_size" ><?php esc_html_e('Font Size', 'wp-notes-widget' ) ?></label>
    321321        <select id="wp_notes_widget_defaults--font_size" name='wp_notes_widget_defaults[font_size]' >
    322           <option value="minus-50" <?php selected( $default_val['font_size'], 'minus-50' ); ?> > <?php _e('50% smaller', 'wp-notes-widget' ) ?>  </option>
    323           <option value="minus-45" <?php selected( $default_val['font_size'], 'minus-45' ); ?> > <?php _e('45% smaller', 'wp-notes-widget' ) ?>  </option>
    324           <option value="minus-40" <?php selected( $default_val['font_size'], 'minus-40' ); ?> > <?php _e('40% smaller', 'wp-notes-widget' ) ?>  </option>
    325           <option value="minus-35" <?php selected( $default_val['font_size'], 'minus-35' ); ?> > <?php _e('35% smaller', 'wp-notes-widget' ) ?>  </option>
    326           <option value="minus-30" <?php selected( $default_val['font_size'], 'minus-30' ); ?> > <?php _e('30% smaller', 'wp-notes-widget' ) ?>  </option>
    327           <option value="minus-25" <?php selected( $default_val['font_size'], 'minus-25' ); ?> > <?php _e('25% smaller', 'wp-notes-widget' ) ?>  </option>
    328           <option value="minus-20" <?php selected( $default_val['font_size'], 'minus-20' ); ?> > <?php _e('20% smaller', 'wp-notes-widget' ) ?>  </option>
    329           <option value="minus-15" <?php selected( $default_val['font_size'], 'minus-15' ); ?> > <?php _e('15% smaller', 'wp-notes-widget' ) ?>  </option>
    330           <option value="minus-10" <?php selected( $default_val['font_size'], 'minus-10' ); ?> > <?php _e('10% smaller', 'wp-notes-widget' ) ?>  </option>
    331           <option value="minus-5"  <?php selected( $default_val['font_size'], 'minus-5' ); ?> > <?php _e('5% smaller', 'wp-notes-widget' ) ?>  </option>
     322          <option value="minus-50" <?php selected( $default_val['font_size'], 'minus-50' ); ?> > <?php esc_html_e('50% smaller', 'wp-notes-widget' ) ?>  </option>
     323          <option value="minus-45" <?php selected( $default_val['font_size'], 'minus-45' ); ?> > <?php esc_html_e('45% smaller', 'wp-notes-widget' ) ?>  </option>
     324          <option value="minus-40" <?php selected( $default_val['font_size'], 'minus-40' ); ?> > <?php esc_html_e('40% smaller', 'wp-notes-widget' ) ?>  </option>
     325          <option value="minus-35" <?php selected( $default_val['font_size'], 'minus-35' ); ?> > <?php esc_html_e('35% smaller', 'wp-notes-widget' ) ?>  </option>
     326          <option value="minus-30" <?php selected( $default_val['font_size'], 'minus-30' ); ?> > <?php esc_html_e('30% smaller', 'wp-notes-widget' ) ?>  </option>
     327          <option value="minus-25" <?php selected( $default_val['font_size'], 'minus-25' ); ?> > <?php esc_html_e('25% smaller', 'wp-notes-widget' ) ?>  </option>
     328          <option value="minus-20" <?php selected( $default_val['font_size'], 'minus-20' ); ?> > <?php esc_html_e('20% smaller', 'wp-notes-widget' ) ?>  </option>
     329          <option value="minus-15" <?php selected( $default_val['font_size'], 'minus-15' ); ?> > <?php esc_html_e('15% smaller', 'wp-notes-widget' ) ?>  </option>
     330          <option value="minus-10" <?php selected( $default_val['font_size'], 'minus-10' ); ?> > <?php esc_html_e('10% smaller', 'wp-notes-widget' ) ?>  </option>
     331          <option value="minus-5"  <?php selected( $default_val['font_size'], 'minus-5' ); ?> > <?php esc_html_e('5% smaller', 'wp-notes-widget' ) ?>  </option>
    332332         
    333           <option value="normal" <?php selected( $default_val['font_size'], 'normal' ); ?> >    <?php _e('Normal', 'wp-notes-widget' ) ?></option>
     333          <option value="normal" <?php selected( $default_val['font_size'], 'normal' ); ?> >    <?php esc_html_e('Normal', 'wp-notes-widget' ) ?></option>
    334334         
    335           <option value="plus-5"  <?php selected( $default_val['font_size'], 'plus-5' ); ?> >   <?php _e('5% larger', 'wp-notes-widget' ) ?>  </option>
    336           <option value="plus-10" <?php selected( $default_val['font_size'], 'plus-10' ); ?> >  <?php _e('10% larger', 'wp-notes-widget' ) ?>  </option>
    337           <option value="plus-15" <?php selected( $default_val['font_size'], 'plus-15' ); ?> >  <?php _e('15% larger', 'wp-notes-widget' ) ?>  </option>
    338           <option value="plus-20" <?php selected( $default_val['font_size'], 'plus-20' ); ?> >  <?php _e('20% larger', 'wp-notes-widget' ) ?>  </option>
    339           <option value="plus-25" <?php selected( $default_val['font_size'], 'plus-25' ); ?> >  <?php _e('25% larger', 'wp-notes-widget' ) ?>  </option>
    340           <option value="plus-30" <?php selected( $default_val['font_size'], 'plus-30' ); ?> >  <?php _e('30% larger', 'wp-notes-widget' ) ?>  </option>
    341           <option value="plus-35" <?php selected( $default_val['font_size'], 'plus-35' ); ?> >  <?php _e('35% larger', 'wp-notes-widget' ) ?>  </option>
    342           <option value="plus-40" <?php selected( $default_val['font_size'], 'plus-40' ); ?> >  <?php _e('40% larger', 'wp-notes-widget' ) ?>  </option>
    343           <option value="plus-45" <?php selected( $default_val['font_size'], 'plus-45' ); ?> >  <?php _e('45% larger', 'wp-notes-widget' ) ?>  </option>
    344           <option value="plus-50" <?php selected( $default_val['font_size'], 'plus-50' ); ?> >  <?php _e('50% larger', 'wp-notes-widget' ) ?>  </option>
     335          <option value="plus-5"  <?php selected( $default_val['font_size'], 'plus-5' ); ?> >   <?php esc_html_e('5% larger', 'wp-notes-widget' ) ?>  </option>
     336          <option value="plus-10" <?php selected( $default_val['font_size'], 'plus-10' ); ?> >  <?php esc_html_e('10% larger', 'wp-notes-widget' ) ?>  </option>
     337          <option value="plus-15" <?php selected( $default_val['font_size'], 'plus-15' ); ?> >  <?php esc_html_e('15% larger', 'wp-notes-widget' ) ?>  </option>
     338          <option value="plus-20" <?php selected( $default_val['font_size'], 'plus-20' ); ?> >  <?php esc_html_e('20% larger', 'wp-notes-widget' ) ?>  </option>
     339          <option value="plus-25" <?php selected( $default_val['font_size'], 'plus-25' ); ?> >  <?php esc_html_e('25% larger', 'wp-notes-widget' ) ?>  </option>
     340          <option value="plus-30" <?php selected( $default_val['font_size'], 'plus-30' ); ?> >  <?php esc_html_e('30% larger', 'wp-notes-widget' ) ?>  </option>
     341          <option value="plus-35" <?php selected( $default_val['font_size'], 'plus-35' ); ?> >  <?php esc_html_e('35% larger', 'wp-notes-widget' ) ?>  </option>
     342          <option value="plus-40" <?php selected( $default_val['font_size'], 'plus-40' ); ?> >  <?php esc_html_e('40% larger', 'wp-notes-widget' ) ?>  </option>
     343          <option value="plus-45" <?php selected( $default_val['font_size'], 'plus-45' ); ?> >  <?php esc_html_e('45% larger', 'wp-notes-widget' ) ?>  </option>
     344          <option value="plus-50" <?php selected( $default_val['font_size'], 'plus-50' ); ?> >  <?php esc_html_e('50% larger', 'wp-notes-widget' ) ?>  </option>
    345345        </select>
    346346      </div>
     
    365365      <div class="checkbox">
    366366        <label >
    367         <input type='checkbox' id="wp_notes_widget_defaults--display_date" <?php checked($default_val['show_date'], 'checked'); ?> name='wp_notes_widget_defaults[show_date]' value='checked' ><?php _e('Display Date','wp-notes-widget'); ?></label>
     367        <input type='checkbox' id="wp_notes_widget_defaults--display_date" <?php checked($default_val['show_date'], 'checked'); ?> name='wp_notes_widget_defaults[show_date]' value='checked' ><?php esc_html_e('Display Date','wp-notes-widget'); ?></label>
    368368      </div>
    369369    <?php
     
    387387      <div class="checkbox">
    388388        <label for="wp_notes_widget_defaults--use_own_css" >
    389         <input type='checkbox' id="wp_notes_widget_defaults--use_own_css" <?php checked($default_val['use_custom_style'], 'checked'); ?> name='wp_notes_widget_defaults[use_custom_style]' value='checked' ><?php _e('Use Custom CSS','wp-notes-widget'); ?></label>
     389        <input type='checkbox' id="wp_notes_widget_defaults--use_own_css" <?php checked($default_val['use_custom_style'], 'checked'); ?> name='wp_notes_widget_defaults[use_custom_style]' value='checked' ><?php esc_html_e('Use Custom CSS','wp-notes-widget'); ?></label>
    390390      </div>
    391391    <?php
     
    408408
    409409      <div class="checkbox">
    410         <label><input type='checkbox' id="wp_notes_widget_defaults--hide_if_empty" <?php checked($default_val['hide_if_empty'], 'checked'); ?> name='wp_notes_widget_defaults[hide_if_empty]' value='checked' ><?php _e('Hide if Empty','wp-notes-widget'); ?></label>
     410        <label><input type='checkbox' id="wp_notes_widget_defaults--hide_if_empty" <?php checked($default_val['hide_if_empty'], 'checked'); ?> name='wp_notes_widget_defaults[hide_if_empty]' value='checked' ><?php esc_html_e('Hide if Empty','wp-notes-widget'); ?></label>
    411411      </div>
    412412
     
    430430      <div class="checkbox">
    431431        <label for="wp_notes_widget_defaults--use_individual_notes" >
    432         <input type='checkbox' id="wp_notes_widget_defaults--use_individual_notes" <?php checked($default_val['multiple_notes'], 'checked'); ?> name='wp_notes_widget_defaults[multiple_notes]' value='checked' ><?php _e('Use Individual Notes','wp-notes-widget'); ?></label>
     432        <input type='checkbox' id="wp_notes_widget_defaults--use_individual_notes" <?php checked($default_val['multiple_notes'], 'checked'); ?> name='wp_notes_widget_defaults[multiple_notes]' value='checked' ><?php esc_html_e('Use Individual Notes','wp-notes-widget'); ?></label>
    433433      </div>
    434434    <?php
     
    451451      <div class="checkbox">
    452452        <label for="wp_notes_widget_defaults--enable_social_sharing" >
    453         <input type='checkbox' id="wp_notes_widget_defaults--enable_social_sharing" <?php checked($default_val['enable_social_share'], 'checked'); ?> name='wp_notes_widget_defaults[enable_social_share]' value='checked' ><?php _e('Enable Social Sharing','wp-notes-widget'); ?></label>
     453        <input type='checkbox' id="wp_notes_widget_defaults--enable_social_sharing" <?php checked($default_val['enable_social_share'], 'checked'); ?> name='wp_notes_widget_defaults[enable_social_share]' value='checked' ><?php esc_html_e('Enable Social Sharing','wp-notes-widget'); ?></label>
    454454      </div>
    455455    <?php
     
    472472
    473473      <div class="checkbox">
    474         <label><input type='checkbox' id="wp_notes_widget_defaults--do_not_force_uppercase" <?php checked($default_val['do_not_force_uppercase'], 'checked'); ?> name='wp_notes_widget_defaults[do_not_force_uppercase]' value='checked' ><?php _e('Do not Force Uppercase Letters','wp-notes-widget'); ?></label>
     474        <label><input type='checkbox' id="wp_notes_widget_defaults--do_not_force_uppercase" <?php checked($default_val['do_not_force_uppercase'], 'checked'); ?> name='wp_notes_widget_defaults[do_not_force_uppercase]' value='checked' ><?php esc_html_e('Do not Force Uppercase Letters','wp-notes-widget'); ?></label>
    475475      </div>
    476476
     
    520520              <li class="wp-notes-widget__settings__radio-checkbox-input-item font-style-item font-<?php echo $key ?>" >
    521521                <input type="radio" id="<?php echo  $key ; ?>" <?php checked($default_val['font_style'], $key); ?> name="wp_notes_widget_defaults[font_style]" value="<?php echo $key ?>" />         
    522                 <label for="<?php echo $key ; ?>" id="font-selection-<?php echo $key ?>-label"  ><?php _e('Font Style','wp-notes-widget'); ?> - <?php echo $font_mapping_item ?></label>
     522                <label for="<?php echo $key ; ?>" id="font-selection-<?php echo $key ?>-label"  ><?php esc_html_e('Font Style','wp-notes-widget'); ?> - <?php echo $font_mapping_item ?></label>
    523523              </li>
    524524              <?php
     
    537537  add_settings_section(
    538538    'wp_notes_widget_default_settings',                 // ID used to identify this section and with which to register options
    539     __('Default Settings','wp-notes-widget'),                                 // Title to be displayed on the administration page
     539    esc_html__('Default Settings','wp-notes-widget'),                                 // Title to be displayed on the administration page
    540540    'wp_notes_widget_default_settings_callback',        // Callback used to render the description of the section
    541541    'wp_notes_widget_default_settings_page_partial'                     // Page on which to add this section of options
     
    545545  add_settings_field(
    546546    'wp_notes_widget_default_thumb_tack_color',           // ID used to identify the field throughout the theme
    547     '<small class="text-muted" >'.__('Thumb tack color for notes','wp-notes-widget').'</small>',                                   // The label to the left of the option interface element
     547    '<small class="text-muted" >'.esc_html__('Thumb tack color for notes','wp-notes-widget').'</small>',                                   // The label to the left of the option interface element
    548548    'wp_notes_widget_default_thumb_tack_color_callback',  // The name of the function responsible for rendering the option interface
    549549    'wp_notes_widget_default_settings_page_partial',                      // The page on which this option will be displayed
     
    553553  add_settings_field(
    554554    'wp_notes_widget_default_background_color',
    555     '<small class="text-muted" >'.__('Background color for notes','wp-notes-widget').'</small>',
     555    '<small class="text-muted" >'.esc_html__('Background color for notes','wp-notes-widget').'</small>',
    556556    'wp_notes_widget_default_background_callback',
    557557    'wp_notes_widget_default_settings_page_partial',
     
    561561  add_settings_field(
    562562    'wp_notes_widget_default_text_color',
    563     '<small class="text-muted" >'.__('Text color for notes','wp-notes-widget').'</small>',
     563    '<small class="text-muted" >'.esc_html__('Text color for notes','wp-notes-widget').'</small>',
    564564    'wp_notes_widget_default_text_color_callback',
    565565    'wp_notes_widget_default_settings_page_partial',
     
    569569  add_settings_field(
    570570    'wp_notes_widget_default_font_size',
    571     '<small class="text-muted" >'.__('Font size for notes','wp-notes-widget').'</small>',
     571    '<small class="text-muted" >'.esc_html__('Font size for notes','wp-notes-widget').'</small>',
    572572    'wp_notes_widget_default_font_size_callback',
    573573    'wp_notes_widget_default_settings_page_partial',
     
    577577  add_settings_field(
    578578    'wp_notes_widget_default_display_date',
    579     '<small class="text-muted" >'.__('Display the publish date of the note','wp-notes-widget').'</small>',
     579    '<small class="text-muted" >'.esc_html__('Display the publish date of the note','wp-notes-widget').'</small>',
    580580    'wp_notes_widget_default_display_date_callback',
    581581    'wp_notes_widget_default_settings_page_partial',
     
    585585  add_settings_field(
    586586    'wp_notes_widget_default_use_own_css',
    587     '<small class="text-muted" >'.__('Do not include the built in CSS for the notes','wp-notes-widget').'</small>',
     587    '<small class="text-muted" >'.esc_html__('Do not include the built in CSS for the notes','wp-notes-widget').'</small>',
    588588    'wp_notes_widget_default_use_own_css_callback',
    589589    'wp_notes_widget_default_settings_page_partial',
     
    593593  add_settings_field(
    594594    'wp_notes_widget_default_hide_if_empty',
    595     '<small class="text-muted" >'.__('If there are no notes to display, hide the note container','wp-notes-widget').'</small>',
     595    '<small class="text-muted" >'.esc_html__('If there are no notes to display, hide the note container','wp-notes-widget').'</small>',
    596596    'wp_notes_widget_default_hide_if_empty_callback',
    597597    'wp_notes_widget_default_settings_page_partial',
     
    601601  add_settings_field(
    602602    'wp_notes_widget_default_use_individual_notes',
    603     '<small class="text-muted" >'.__('Instead of one tall note, show multiple individual notes','wp-notes-widget').'</small>',
     603    '<small class="text-muted" >'.esc_html__('Instead of one tall note, show multiple individual notes','wp-notes-widget').'</small>',
    604604    'wp_notes_widget_default_use_individual_notes_callback',
    605605    'wp_notes_widget_default_settings_page_partial',
     
    609609  add_settings_field(
    610610    'wp_notes_widget_default_enable_social_sharing',
    611     '<small class="text-muted" >'.__('Display a Twitter link below each note','wp-notes-widget').'</small>',
     611    '<small class="text-muted" >'.esc_html__('Display a Twitter link below each note','wp-notes-widget').'</small>',
    612612    'wp_notes_widget_default_enable_social_sharing_callback',
    613613    'wp_notes_widget_default_settings_page_partial',
     
    617617  add_settings_field(
    618618    'wp_notes_widget_default_do_not_force_uppercase',
    619     '<small class="text-muted" >'.__('Do not convert all the text to uppercase letters','wp-notes-widget').'</small>',
     619    '<small class="text-muted" >'.esc_html__('Do not convert all the text to uppercase letters','wp-notes-widget').'</small>',
    620620    'wp_notes_widget_default_do_not_force_uppercase_callback',       
    621621    'wp_notes_widget_default_settings_page_partial',   
     
    624624  add_settings_field(
    625625    'wp-notes-widget_default_font_style',
    626     '<small class="text-muted" >'.__('Font style for the note','wp-notes-widget').'</small>',
     626    '<small class="text-muted" >'.esc_html__('Font style for the note','wp-notes-widget').'</small>',
    627627    'wp_notes_widget_default_font_style_callback',       
    628628    'wp_notes_widget_default_settings_page_partial',   
     
    662662
    663663      <div class="form-group">
    664         <label for="wp_notes_widget__shortcode-defaults__max-width"><?php _e('Max Width','wp-notes-widget'); ?></label>
     664        <label for="wp_notes_widget__shortcode-defaults__max-width"><?php esc_html_e('Max Width','wp-notes-widget'); ?></label>
    665665        <input type='number' min="1" id="wp_notes_widget__shortcode-defaults__max-width" name='wp_notes_widget_default_shortcode_settings[max_width]' value='<?php echo $default_setting_val['max_width'] ?>' >
    666666      </div>
     
    685685    ?>
    686686    <div class="form-group">
    687       <label for="wp_notes_widget__shortcode-defaults__max-width-units" ><?php _e('Max Width Units','wp-notes-widget'); ?></label>
     687      <label for="wp_notes_widget__shortcode-defaults__max-width-units" ><?php esc_html_e('Max Width Units','wp-notes-widget'); ?></label>
    688688     
    689689      <select id="wp_notes_widget__shortcode-defaults__max-width-units" name='wp_notes_widget_default_shortcode_settings[max_width_units]' >
     
    713713    }
    714714    ?>
    715     <label for="wp-notes-widget__settings__alignment-container" ><?php _e('Alignment','wp-notes-widget'); ?></label>
     715    <label for="wp-notes-widget__settings__alignment-container" ><?php esc_html_e('Alignment','wp-notes-widget'); ?></label>
    716716    <div id="wp-notes-widget__settings__alignment-container" >
    717       <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[alignment]" <?php checked( $default_setting_val['alignment'], 'left' ); ?> value="left"><?php _e('Left','wp-notes-widget'); ?></label>
    718       <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[alignment]" <?php checked( $default_setting_val['alignment'], 'center' ); ?> value="center"><?php _e('Center','wp-notes-widget'); ?></label>
    719       <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[alignment]" <?php checked( $default_setting_val['alignment'], 'right' ); ?> value="right"><?php _e('Right','wp-notes-widget'); ?></label>
     717      <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[alignment]" <?php checked( $default_setting_val['alignment'], 'left' ); ?> value="left"><?php esc_html_e('Left','wp-notes-widget'); ?></label>
     718      <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[alignment]" <?php checked( $default_setting_val['alignment'], 'center' ); ?> value="center"><?php esc_html_e('Center','wp-notes-widget'); ?></label>
     719      <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[alignment]" <?php checked( $default_setting_val['alignment'], 'right' ); ?> value="right"><?php esc_html_e('Right','wp-notes-widget'); ?></label>
    720720    </div>
    721721
     
    738738    }
    739739    ?>
    740     <label for="wp-notes-widget__settings__direction-options" ><?php _e('Direction','wp-notes-widget'); ?></label>
     740    <label for="wp-notes-widget__settings__direction-options" ><?php esc_html_e('Direction','wp-notes-widget'); ?></label>
    741741    <div class="wp-notes-widget__settings__direction-options">
    742       <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[direction]" <?php checked( $default_setting_val['direction'], 'vertical' ); ?> value="vertical"><?php _e('Vertical','wp-notes-widget'); ?></label>
    743       <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[direction]" <?php checked( $default_setting_val['direction'], 'horizontal' ); ?> value="horizontal"><?php _e('Horizontal','wp-notes-widget'); ?></label>
     742      <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[direction]" <?php checked( $default_setting_val['direction'], 'vertical' ); ?> value="vertical"><?php esc_html_e('Vertical','wp-notes-widget'); ?></label>
     743      <label class="radio-inline"><input type="radio" name="wp_notes_widget_default_shortcode_settings[direction]" <?php checked( $default_setting_val['direction'], 'horizontal' ); ?> value="horizontal"><?php esc_html_e('Horizontal','wp-notes-widget'); ?></label>
    744744    </div>
    745745
     
    749749  add_settings_section(
    750750    'wp_notes_widget_default_shortcode_settings',                 // ID used to identify this section and with which to register options
    751      __('Default Shortcode Settings','wp-notes-widget'),                                // Title to be displayed on the administration page
     751     esc_html__('Default Shortcode Settings','wp-notes-widget'),                                // Title to be displayed on the administration page
    752752    'wp_notes_widget_default_shortcode_settings_callback',        // Callback used to render the description of the section
    753753    'wp_notes_widget_default_shortcode_settings_page_partial'     // Page on which to add this section of options
     
    756756  add_settings_field(
    757757    'wp_notes_widget_default_shortcode__max_width',
    758     '<small class="text-muted" >'.__('Max width of the note container','wp-notes-widget').'</small>',
     758    '<small class="text-muted" >'.esc_html__('Max width of the note container','wp-notes-widget').'</small>',
    759759    'wp_notes_widget_default_shortcode__max_width_callback',
    760760    'wp_notes_widget_default_shortcode_settings_page_partial',
     
    764764  add_settings_field(
    765765    'wp_notes_widget_default_shortcode__max_width_units',
    766     '<small class="text-muted" >'.__('CSS units of the max width note container','wp-notes-widget').'</small>',
     766    '<small class="text-muted" >'.esc_html__('CSS units of the max width note container','wp-notes-widget').'</small>',
    767767    'wp_notes_widget_default_shortcode__max_width_units_callback',       
    768768    'wp_notes_widget_default_shortcode_settings_page_partial',   
     
    771771  add_settings_field(
    772772    'wp_notes_widget_default_shortcode__alignment',
    773     '<small class="text-muted" >'.__('Alignment of the note container','wp-notes-widget').'</small>',
     773    '<small class="text-muted" >'.esc_html__('Alignment of the note container','wp-notes-widget').'</small>',
    774774    'wp_notes_widget_default_shortcode__alignment_callback',       
    775775    'wp_notes_widget_default_shortcode_settings_page_partial',   
     
    778778  add_settings_field(
    779779    'wp_notes_widget_default_shortcode__direction',
    780     '<small class="text-muted" >'.__('Direction flow of the notes','wp-notes-widget').'</small>',
     780    '<small class="text-muted" >'.esc_html__('Direction flow of the notes','wp-notes-widget').'</small>',
    781781    'wp_notes_widget_default_shortcode__direction_callback',       
    782782    'wp_notes_widget_default_shortcode_settings_page_partial',   
  • wp-notes-widget/trunk/admin/admin-widget-view.php

    r1738506 r2024975  
    33    <div id="wp-notes-widget-visual-settings-column" class="wp-notes-widget-admin-third">
    44
    5       <h3><?php _e('Visual Settings', 'wp-notes-widget'); ?></h3>
    6 
    7       <p>
    8         <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'wp-notes-widget' ); ?> <span class="wp-notes-secondary-text" >(<?php _e('optional','wp-notes-widget'); ?>)</span></label>
     5      <h3><?php esc_html_e('Visual Settings', 'wp-notes-widget'); ?></h3>
     6
     7      <p>
     8        <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'wp-notes-widget' ); ?> <span class="wp-notes-secondary-text" >(<?php esc_html_e('optional','wp-notes-widget'); ?>)</span></label>
    99        <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr($title); ?>" />
    1010      </p>
    1111     
    1212      <p>
    13         <label for="<?php echo $this->get_field_id('thumb_tack_colour'); ?>"> <?php _e('Thumb Tack Color', 'wp-notes-widget'); ?></label>
     13        <label for="<?php echo $this->get_field_id('thumb_tack_colour'); ?>"> <?php esc_html_e('Thumb Tack Color', 'wp-notes-widget'); ?></label>
    1414         
    1515          <select name="<?php echo $this->get_field_name( 'thumb_tack_colour' ); ?>" id="<?php echo $this->get_field_id( 'thumb_tack_colour' ); ?>">
    16             <option value="red" <?php     echo ( $thumb_tack_colour == 'red' )     ? 'selected="selected"' : ''; ?> > <?php _e('Red', 'wp-notes-widget' ) ?>     </option>
    17             <option value="blue" <?php     echo ( $thumb_tack_colour == 'blue' )   ? 'selected="selected"' : ''; ?> > <?php _e('Blue', 'wp-notes-widget' ) ?>     </option>
    18             <option value="green" <?php   echo ( $thumb_tack_colour == 'green' )   ? 'selected="selected"' : ''; ?> > <?php _e('Green', 'wp-notes-widget' ) ?>   </option>
    19             <option value="gray" <?php     echo ( $thumb_tack_colour == 'gray' )   ? 'selected="selected"' : ''; ?> > <?php _e('Gray', 'wp-notes-widget' ) ?>    </option>
    20             <option value="orange" <?php   echo ( $thumb_tack_colour == 'orange' ) ? 'selected="selected"' : ''; ?> > <?php _e('Orange', 'wp-notes-widget' ) ?>   </option>
    21             <option value="pink" <?php     echo ( $thumb_tack_colour == 'pink' )   ? 'selected="selected"' : ''; ?> > <?php _e('Pink', 'wp-notes-widget' ) ?>     </option>
    22             <option value="teal" <?php     echo ( $thumb_tack_colour == 'teal' )   ? 'selected="selected"' : ''; ?> > <?php _e('Teal', 'wp-notes-widget' ) ?>     </option>
    23             <option value="yellow" <?php   echo ( $thumb_tack_colour == 'yellow' ) ? 'selected="selected"' : ''; ?> > <?php _e('Yellow', 'wp-notes-widget' ) ?>   </option>
     16            <option value="red" <?php     echo ( $thumb_tack_colour == 'red' )     ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Red', 'wp-notes-widget' ) ?>     </option>
     17            <option value="blue" <?php     echo ( $thumb_tack_colour == 'blue' )   ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Blue', 'wp-notes-widget' ) ?>     </option>
     18            <option value="green" <?php   echo ( $thumb_tack_colour == 'green' )   ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Green', 'wp-notes-widget' ) ?>   </option>
     19            <option value="gray" <?php     echo ( $thumb_tack_colour == 'gray' )   ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Gray', 'wp-notes-widget' ) ?>    </option>
     20            <option value="orange" <?php   echo ( $thumb_tack_colour == 'orange' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Orange', 'wp-notes-widget' ) ?>   </option>
     21            <option value="pink" <?php     echo ( $thumb_tack_colour == 'pink' )   ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Pink', 'wp-notes-widget' ) ?>     </option>
     22            <option value="teal" <?php     echo ( $thumb_tack_colour == 'teal' )   ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Teal', 'wp-notes-widget' ) ?>     </option>
     23            <option value="yellow" <?php   echo ( $thumb_tack_colour == 'yellow' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('Yellow', 'wp-notes-widget' ) ?>   </option>
    2424          </select>
    2525      </p>
    2626
    2727      <p>
    28         <label for="<?php echo $this->get_field_id('background_colour'); ?>"><?php _e('Background Color', 'wp-notes-widget'); ?></label>
     28        <label for="<?php echo $this->get_field_id('background_colour'); ?>"><?php esc_html_e('Background Color', 'wp-notes-widget'); ?></label>
    2929         
    3030          <select name="<?php echo $this->get_field_name( 'background_colour' ); ?>" id="<?php echo $this->get_field_id( 'background_colour' ); ?>">
    31             <option value="yellow" <?php       echo ( $background_colour == 'yellow' )     ? 'selected="selected"' : ''; ?> >  <?php _e('Yellow', 'wp-notes-widget' ) ?>      </option>
    32             <option value="blue" <?php         echo ( $background_colour == 'blue' )       ? 'selected="selected"' : ''; ?> >  <?php _e('Blue', 'wp-notes-widget' ) ?>        </option>
    33             <option value="green" <?php       echo ( $background_colour == 'green' )       ? 'selected="selected"' : ''; ?> >  <?php _e('Green', 'wp-notes-widget' ) ?>      </option>
    34             <option value="pink" <?php         echo ( $background_colour == 'pink' )       ? 'selected="selected"' : ''; ?> >  <?php _e('Pink', 'wp-notes-widget' ) ?>        </option>
    35             <option value="orange" <?php       echo ( $background_colour == 'orange' )     ? 'selected="selected"' : ''; ?> >  <?php _e('Orange', 'wp-notes-widget' ) ?>      </option>
    36             <option value="white" <?php       echo ( $background_colour == 'white' )       ? 'selected="selected"' : ''; ?> >  <?php _e('White', 'wp-notes-widget' ) ?>      </option>
    37             <option value="dark-grey" <?php   echo ( $background_colour == 'dark-grey' )   ? 'selected="selected"' : ''; ?> >  <?php _e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
    38             <option value="light-grey" <?php   echo ( $background_colour == 'light-grey' ) ? 'selected="selected"' : ''; ?> >  <?php _e('Light Grey', 'wp-notes-widget' ) ?>  </option>
     31            <option value="yellow" <?php       echo ( $background_colour == 'yellow' )     ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Yellow', 'wp-notes-widget' ) ?>      </option>
     32            <option value="blue" <?php         echo ( $background_colour == 'blue' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Blue', 'wp-notes-widget' ) ?>        </option>
     33            <option value="green" <?php       echo ( $background_colour == 'green' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Green', 'wp-notes-widget' ) ?>      </option>
     34            <option value="pink" <?php         echo ( $background_colour == 'pink' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Pink', 'wp-notes-widget' ) ?>        </option>
     35            <option value="orange" <?php       echo ( $background_colour == 'orange' )     ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Orange', 'wp-notes-widget' ) ?>      </option>
     36            <option value="white" <?php       echo ( $background_colour == 'white' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('White', 'wp-notes-widget' ) ?>      </option>
     37            <option value="dark-grey" <?php   echo ( $background_colour == 'dark-grey' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
     38            <option value="light-grey" <?php   echo ( $background_colour == 'light-grey' ) ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Light Grey', 'wp-notes-widget' ) ?>  </option>
    3939          </select>
    4040      </p>
    4141
    4242      <p>
    43         <label for="<?php echo $this->get_field_id('text_colour'); ?>"><?php _e('Text Color', 'wp-notes-widget'); ?></label>
     43        <label for="<?php echo $this->get_field_id('text_colour'); ?>"><?php esc_html_e('Text Color', 'wp-notes-widget'); ?></label>
    4444         
    4545          <select name="<?php echo $this->get_field_name( 'text_colour' ); ?>" id="<?php echo $this->get_field_id( 'text_colour' ); ?>">
    46             <option value="red" <?php         echo ( $text_colour == 'red' )         ? 'selected="selected"' : ''; ?> >  <?php _e('Red', 'wp-notes-widget' ) ?>        </option>
    47             <option value="blue" <?php         echo ( $text_colour == 'blue' )       ? 'selected="selected"' : ''; ?> >  <?php _e('Blue', 'wp-notes-widget' ) ?>        </option>
    48             <option value="black" <?php       echo ( $text_colour == 'black' )       ? 'selected="selected"' : ''; ?> >  <?php _e('Black', 'wp-notes-widget' ) ?>      </option>
    49             <option value="pink" <?php         echo ( $text_colour == 'pink' )       ? 'selected="selected"' : ''; ?> >  <?php _e('Pink', 'wp-notes-widget' ) ?>        </option>
    50             <option value="white" <?php       echo ( $text_colour == 'white' )       ? 'selected="selected"' : ''; ?> >  <?php _e('White', 'wp-notes-widget' ) ?>      </option>
    51             <option value="dark-grey" <?php   echo ( $text_colour == 'dark-grey' )   ? 'selected="selected"' : ''; ?> >  <?php _e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
    52             <option value="light-grey" <?php   echo ( $text_colour == 'light-grey' ) ? 'selected="selected"' : ''; ?> >  <?php _e('Light Grey', 'wp-notes-widget' ) ?>  </option>
     46            <option value="red" <?php         echo ( $text_colour == 'red' )         ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Red', 'wp-notes-widget' ) ?>        </option>
     47            <option value="blue" <?php         echo ( $text_colour == 'blue' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Blue', 'wp-notes-widget' ) ?>        </option>
     48            <option value="black" <?php       echo ( $text_colour == 'black' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Black', 'wp-notes-widget' ) ?>      </option>
     49            <option value="pink" <?php         echo ( $text_colour == 'pink' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Pink', 'wp-notes-widget' ) ?>        </option>
     50            <option value="white" <?php       echo ( $text_colour == 'white' )       ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('White', 'wp-notes-widget' ) ?>      </option>
     51            <option value="dark-grey" <?php   echo ( $text_colour == 'dark-grey' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
     52            <option value="light-grey" <?php   echo ( $text_colour == 'light-grey' ) ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('Light Grey', 'wp-notes-widget' ) ?>  </option>
    5353          </select>
    5454      </p>
    5555
    5656      <p>
    57         <label for="<?php echo $this->get_field_id('font_size'); ?>"><?php _e('Font Size', 'wp-notes-widget'); ?></label>
     57        <label for="<?php echo $this->get_field_id('font_size'); ?>"><?php esc_html_e('Font Size', 'wp-notes-widget'); ?></label>
    5858       
    5959        <select name="<?php echo $this->get_field_name( 'font_size' ); ?>" id="<?php echo $this->get_field_id( 'font_size' ); ?>">
    60           <option value="minus-50" <?php   echo ( $font_size == 'minus-50' ) ? 'selected="selected"' : ''; ?> > <?php _e('50% smaller', 'wp-notes-widget' ) ?>  </option>
    61           <option value="minus-45" <?php   echo ( $font_size == 'minus-45' ) ? 'selected="selected"' : ''; ?> > <?php _e('45% smaller', 'wp-notes-widget' ) ?>  </option>
    62           <option value="minus-40" <?php   echo ( $font_size == 'minus-40' ) ? 'selected="selected"' : ''; ?> > <?php _e('40% smaller', 'wp-notes-widget' ) ?>  </option>
    63           <option value="minus-35" <?php   echo ( $font_size == 'minus-35' ) ? 'selected="selected"' : ''; ?> > <?php _e('35% smaller', 'wp-notes-widget' ) ?>  </option>
    64           <option value="minus-30" <?php   echo ( $font_size == 'minus-30' ) ? 'selected="selected"' : ''; ?> > <?php _e('30% smaller', 'wp-notes-widget' ) ?>  </option>
    65           <option value="minus-25" <?php   echo ( $font_size == 'minus-25' ) ? 'selected="selected"' : ''; ?> > <?php _e('25% smaller', 'wp-notes-widget' ) ?>  </option>
    66           <option value="minus-20" <?php   echo ( $font_size == 'minus-20' ) ? 'selected="selected"' : ''; ?> > <?php _e('20% smaller', 'wp-notes-widget' ) ?>  </option>
    67           <option value="minus-15" <?php   echo ( $font_size == 'minus-15' ) ? 'selected="selected"' : ''; ?> > <?php _e('15% smaller', 'wp-notes-widget' ) ?>  </option>
    68           <option value="minus-10" <?php   echo ( $font_size == 'minus-10' ) ? 'selected="selected"' : ''; ?> > <?php _e('10% smaller', 'wp-notes-widget' ) ?>  </option>
    69           <option value="minus-5" <?php   echo ( $font_size == 'minus-5' )   ? 'selected="selected"' : ''; ?> > <?php _e('5% smaller', 'wp-notes-widget' ) ?>  </option>
    70          
    71           <option value="normal" <?php   echo ( $font_size == 'normal' || empty($font_size) ) ? 'selected="selected"' : ''; ?> >    <?php _e('Normal', 'wp-notes-widget' ) ?></option>
    72          
    73           <option value="plus-5" <?php   echo ( $font_size == 'plus-5' )   ? 'selected="selected"' : ''; ?> >   <?php _e('5% larger', 'wp-notes-widget' ) ?>  </option>
    74           <option value="plus-10" <?php echo ( $font_size == 'plus-10' )   ? 'selected="selected"' : ''; ?> >  <?php _e('10% larger', 'wp-notes-widget' ) ?>  </option>
    75           <option value="plus-15" <?php echo ( $font_size == 'plus-15' )   ? 'selected="selected"' : ''; ?> >  <?php _e('15% larger', 'wp-notes-widget' ) ?>  </option>
    76           <option value="plus-20" <?php echo ( $font_size == 'plus-20' )   ? 'selected="selected"' : ''; ?> >  <?php _e('20% larger', 'wp-notes-widget' ) ?>  </option>
    77           <option value="plus-25" <?php echo ( $font_size == 'plus-25' )   ? 'selected="selected"' : ''; ?> >  <?php _e('25% larger', 'wp-notes-widget' ) ?>  </option>
    78           <option value="plus-30" <?php echo ( $font_size == 'plus-30' )   ? 'selected="selected"' : ''; ?> >  <?php _e('30% larger', 'wp-notes-widget' ) ?>  </option>
    79           <option value="plus-35" <?php echo ( $font_size == 'plus-35' )   ? 'selected="selected"' : ''; ?> >  <?php _e('35% larger', 'wp-notes-widget' ) ?>  </option>
    80           <option value="plus-40" <?php echo ( $font_size == 'plus-40' )   ? 'selected="selected"' : ''; ?> >  <?php _e('40% larger', 'wp-notes-widget' ) ?>  </option>
    81           <option value="plus-45" <?php echo ( $font_size == 'plus-45' )   ? 'selected="selected"' : ''; ?> >  <?php _e('45% larger', 'wp-notes-widget' ) ?>  </option>
    82           <option value="plus-50" <?php echo ( $font_size == 'plus-50' )   ? 'selected="selected"' : ''; ?> >  <?php _e('50% larger', 'wp-notes-widget' ) ?>  </option>
     60          <option value="minus-50" <?php   echo ( $font_size == 'minus-50' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('50% smaller', 'wp-notes-widget' ) ?>  </option>
     61          <option value="minus-45" <?php   echo ( $font_size == 'minus-45' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('45% smaller', 'wp-notes-widget' ) ?>  </option>
     62          <option value="minus-40" <?php   echo ( $font_size == 'minus-40' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('40% smaller', 'wp-notes-widget' ) ?>  </option>
     63          <option value="minus-35" <?php   echo ( $font_size == 'minus-35' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('35% smaller', 'wp-notes-widget' ) ?>  </option>
     64          <option value="minus-30" <?php   echo ( $font_size == 'minus-30' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('30% smaller', 'wp-notes-widget' ) ?>  </option>
     65          <option value="minus-25" <?php   echo ( $font_size == 'minus-25' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('25% smaller', 'wp-notes-widget' ) ?>  </option>
     66          <option value="minus-20" <?php   echo ( $font_size == 'minus-20' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('20% smaller', 'wp-notes-widget' ) ?>  </option>
     67          <option value="minus-15" <?php   echo ( $font_size == 'minus-15' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('15% smaller', 'wp-notes-widget' ) ?>  </option>
     68          <option value="minus-10" <?php   echo ( $font_size == 'minus-10' ) ? 'selected="selected"' : ''; ?> > <?php esc_html_e('10% smaller', 'wp-notes-widget' ) ?>  </option>
     69          <option value="minus-5" <?php   echo ( $font_size == 'minus-5' )   ? 'selected="selected"' : ''; ?> > <?php esc_html_e('5% smaller', 'wp-notes-widget' ) ?>  </option>
     70         
     71          <option value="normal" <?php   echo ( $font_size == 'normal' || empty($font_size) ) ? 'selected="selected"' : ''; ?> >    <?php esc_html_e('Normal', 'wp-notes-widget' ) ?></option>
     72         
     73          <option value="plus-5" <?php   echo ( $font_size == 'plus-5' )   ? 'selected="selected"' : ''; ?> >   <?php esc_html_e('5% larger', 'wp-notes-widget' ) ?>  </option>
     74          <option value="plus-10" <?php echo ( $font_size == 'plus-10' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('10% larger', 'wp-notes-widget' ) ?>  </option>
     75          <option value="plus-15" <?php echo ( $font_size == 'plus-15' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('15% larger', 'wp-notes-widget' ) ?>  </option>
     76          <option value="plus-20" <?php echo ( $font_size == 'plus-20' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('20% larger', 'wp-notes-widget' ) ?>  </option>
     77          <option value="plus-25" <?php echo ( $font_size == 'plus-25' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('25% larger', 'wp-notes-widget' ) ?>  </option>
     78          <option value="plus-30" <?php echo ( $font_size == 'plus-30' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('30% larger', 'wp-notes-widget' ) ?>  </option>
     79          <option value="plus-35" <?php echo ( $font_size == 'plus-35' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('35% larger', 'wp-notes-widget' ) ?>  </option>
     80          <option value="plus-40" <?php echo ( $font_size == 'plus-40' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('40% larger', 'wp-notes-widget' ) ?>  </option>
     81          <option value="plus-45" <?php echo ( $font_size == 'plus-45' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('45% larger', 'wp-notes-widget' ) ?>  </option>
     82          <option value="plus-50" <?php echo ( $font_size == 'plus-50' )   ? 'selected="selected"' : ''; ?> >  <?php esc_html_e('50% larger', 'wp-notes-widget' ) ?>  </option>
    8383
    8484        </select>
     
    8888    </div>
    8989    <div  id="wp-notes-widget-show-hide-settings-column"  class="wp-notes-widget-admin-third">
    90       <h3><?php _e('Show/Hide Notes', 'wp-notes-widget'); ?></h3>
     90      <h3><?php esc_html_e('Show/Hide Notes', 'wp-notes-widget'); ?></h3>
    9191     
    9292      <?php
     
    9999        <label>
    100100          <input type="radio" class="wp-notes-widget-post-adjustment-radio" <?php checked($post_adjustment_type, 'none'); ?> name="<?php echo $this->get_field_name( 'post_adjustment_type' ); ?>" value="none" />
    101           <?php _e('Show all published notes.', 'wp-notes-widget'); ?>
     101          <?php esc_html_e('Show all published notes.', 'wp-notes-widget'); ?>
    102102        </label>
    103103        <label>
    104104          <input type="radio" class="wp-notes-widget-post-adjustment-radio" <?php checked($post_adjustment_type, 'hide'); ?>  name="<?php echo $this->get_field_name( 'post_adjustment_type' ); ?>" value="hide" />
    105           <?php _e('Hide the following notes:', 'wp-notes-widget'); ?>
     105          <?php esc_html_e('Hide the following notes:', 'wp-notes-widget'); ?>
    106106        </label>
    107107        <label>
    108108          <input type="radio" class="wp-notes-widget-post-adjustment-radio" <?php checked($post_adjustment_type, 'show'); ?>  name="<?php echo $this->get_field_name( 'post_adjustment_type' ); ?>" value="show" />
    109           <?php _e('Only show the following notes:', 'wp-notes-widget'); ?>
     109          <?php esc_html_e('Only show the following notes:', 'wp-notes-widget'); ?>
    110110        </label>
    111111        <label>
    112112          <input type="radio" class="wp-notes-widget-post-adjustment-radio" <?php checked($post_adjustment_type, 'category'); ?>  name="<?php echo $this->get_field_name( 'post_adjustment_type' ); ?>" value="category" />
    113           <?php _e('Show notes from category:', 'wp-notes-widget'); ?>
     113          <?php esc_html_e('Show notes from category:', 'wp-notes-widget'); ?>
    114114        </label>
    115115      </p>
     
    143143              ?>
    144144              <li>
    145                 <?php _e('No published notes to display.', 'wp-notes-widget'); ?>
     145                <?php esc_html_e('No published notes to display.', 'wp-notes-widget'); ?>
    146146              </li>
    147147              <?php
     
    153153      </div>
    154154      <div class="wp-notes-widget-adjustment-list-container--category wp-notes-widget-adjustment-list-container <?php if ($post_adjustment_type != 'category') echo 'hidden';  ?>">
    155         <p><?php printf( esc_html__( 'Categories available in %1$s.', 'wp-notes-widget' ), '<a href="'. WP_NOTES_WIDGET_PRO_LINK .'?utm_source=wp-notes-widget-plugin&utm-medium=widget-category-setting" target="_blank" >WP Notes Widget PRO</a>'); ?></p>
     155        <p><?php printf( esc_html__( 'Categories available in %1$s.', 'wp-notes-widget' ), '<a href="'. WP_NOTES_WIDGET_PRO_LINK .'?utm_source=wp-notes-widget-plugin&utm_medium=widget-category-setting" target="_blank" >WP Notes Widget PRO</a>'); ?></p>
    156156      </div>
    157157    </div>
    158158    <div  id="wp-notes-widget-general-settings-column"  class="wp-notes-widget-admin-third"> 
    159       <h3><?php _e('General Settings', 'wp-notes-widget'); ?></h3>
     159      <h3><?php esc_html_e('General Settings', 'wp-notes-widget'); ?></h3>
    160160
    161161      <p>
    162162        <input type="checkbox" <?php if((bool)$show_date) echo 'checked="checked"' ?> value="checked" name="<?php echo $this->get_field_name( 'show_date' ); ?>" id="<?php echo $this->get_field_id('show_date'); ?>" />
    163         <label for="<?php echo $this->get_field_id('show_date'); ?>"><?php _e('Display date when note was published', 'wp-notes-widget'); ?></label>
     163        <label for="<?php echo $this->get_field_id('show_date'); ?>"><?php esc_html_e('Display date when note was published', 'wp-notes-widget'); ?></label>
    164164         
    165165      </p>
     
    167167      <p>
    168168        <input type="checkbox" <?php if((bool)$use_custom_style) echo 'checked="checked"' ?> value="checked" name="<?php echo $this->get_field_name( 'use_custom_style' ); ?>" id="<?php echo $this->get_field_id('use_custom_style'); ?>" />
    169         <label for="<?php echo $this->get_field_id('use_custom_style'); ?>"><?php _e('I will use my own CSS styles for WP Notes Widget', 'wp-notes-widget'); ?></label>
     169        <label for="<?php echo $this->get_field_id('use_custom_style'); ?>"><?php esc_html_e('I will use my own CSS styles for WP Notes Widget', 'wp-notes-widget'); ?></label>
    170170         
    171171      </p>
     
    173173      <p>
    174174        <input type="checkbox" <?php if((bool)$wrap_widget) echo 'checked="checked"' ?> value="checked" name="<?php echo $this->get_field_name( 'wrap_widget' ); ?>" id="<?php echo $this->get_field_id('wrap_widget'); ?>" />
    175         <label for="<?php echo $this->get_field_id('wrap_widget'); ?>"><?php _e("Use my theme's widget wrapper for WP Notes Widget", 'wp-notes-widget'); ?></label>
     175        <label for="<?php echo $this->get_field_id('wrap_widget'); ?>"><?php esc_html_e("Use my theme's widget wrapper for WP Notes Widget", 'wp-notes-widget'); ?></label>
    176176         
    177177      </p>
     
    179179      <p>
    180180        <input type="checkbox" <?php if((bool)$hide_if_empty) echo 'checked="checked"' ?> value="checked" name="<?php echo $this->get_field_name( 'hide_if_empty' ); ?>" id="<?php echo $this->get_field_id('hide_if_empty'); ?>" />
    181         <label for="<?php echo $this->get_field_id('hide_if_empty'); ?>"><?php _e('Hide WP Notes Widget if there are no published notes available', 'wp-notes-widget'); ?></label>
     181        <label for="<?php echo $this->get_field_id('hide_if_empty'); ?>"><?php esc_html_e('Hide WP Notes Widget if there are no published notes available', 'wp-notes-widget'); ?></label>
    182182         
    183183      </p>
     
    185185      <p>
    186186        <input type="checkbox" <?php if((bool)$multiple_notes) echo 'checked="checked"' ?> value="checked" name="<?php echo $this->get_field_name( 'multiple_notes' ); ?>" id="<?php echo $this->get_field_id('multiple_notes'); ?>" />
    187         <label for="<?php echo $this->get_field_id('multiple_notes'); ?>"><?php _e('Use individual "sticky notes" for each note', 'wp-notes-widget'); ?></label>
     187        <label for="<?php echo $this->get_field_id('multiple_notes'); ?>"><?php esc_html_e('Use individual "sticky notes" for each note', 'wp-notes-widget'); ?></label>
    188188         
    189189      </p>
     
    191191      <p>
    192192        <input type="checkbox" <?php if((bool)$enable_social_share) echo 'checked="checked"' ?> value="checked" name="<?php echo $this->get_field_name( 'enable_social_share' ); ?>" id="<?php echo $this->get_field_id('enable_social_share'); ?>" />
    193         <label for="<?php echo $this->get_field_id('enable_social_share'); ?>"><?php _e('Enable social sharing of notes', 'wp-notes-widget'); ?></label>
     193        <label for="<?php echo $this->get_field_id('enable_social_share'); ?>"><?php esc_html_e('Enable social sharing of notes', 'wp-notes-widget'); ?></label>
    194194      </p>
    195195
    196196      <p>
    197197        <input type="checkbox" <?php if((bool)$do_not_force_uppercase) echo 'checked="checked"' ?> value="checked" name="<?php echo $this->get_field_name( 'do_not_force_uppercase' ); ?>" id="<?php echo $this->get_field_id('do_not_force_uppercase'); ?>" />
    198         <label for="<?php echo $this->get_field_id('do_not_force_uppercase'); ?>"><?php _e('Do not force uppercase letters', 'wp-notes-widget'); ?></label>
     198        <label for="<?php echo $this->get_field_id('do_not_force_uppercase'); ?>"><?php esc_html_e('Do not force uppercase letters', 'wp-notes-widget'); ?></label>
    199199      </p>
    200200
     
    204204  <section  id="wp-notes-widget-font-settings-column"  class="wp-notes-widget-admin-container" >
    205205    <h3>
    206       <?php _e('Font Style', 'wp-notes-widget'); ?>
     206      <?php esc_html_e('Font Style', 'wp-notes-widget'); ?>
    207207    </h3>
    208208     
     
    234234          <li class="font-style-item font-<?php echo $key ?>" >
    235235            <input type="radio" id="<?php echo $this->get_field_id('font-style-'. $key ); ?>" <?php checked( $key, $font_style ); ?> name="<?php echo $this->get_field_name( 'font_style' ); ?>" value="<?php echo $key ?>" />         
    236             <label for="<?php echo $this->get_field_id('font-style-'. $key ); ?>" id="font-selection-<?php echo $key ?>-label"  ><?php _e('Font Style','wp-notes-widget'); ?> - <?php echo $font_mapping_item ?></label>
     236            <label for="<?php echo $this->get_field_id('font-style-'. $key ); ?>" id="font-selection-<?php echo $key ?>-label"  ><?php esc_html_e('Font Style','wp-notes-widget'); ?> - <?php echo $font_mapping_item ?></label>
    237237          </li>
    238238          <?php
     
    241241    </ul>
    242242    <div class="wp-notes-widget-footer-credits">
    243       <p>WP Notes Widget is developed by <a href='http://webrockstar.net?utm_source=wp-notes-widget-plugin&utm-medium=widget-footer'>Web Rockstar</a>. <br />
    244       Looking for notes in posts &amp; pages, categories, no ads, and more? Check out <a href='<?php echo WP_NOTES_WIDGET_PRO_LINK ?>?utm_source=wp-notes-widget-plugin&utm-medium=widget-footer' target="_blank" >WP Notes Widget PRO</a>.</p>
     243      <p>WP Notes Widget is developed by <a href='http://webrockstar.net?utm_source=wp-notes-widget-plugin&utm_medium=widget-footer'>Web Rockstar</a>. <br />
     244      Looking for notes in posts &amp; pages, categories, no ads, and more? Check out <a href='<?php echo WP_NOTES_WIDGET_PRO_LINK ?>?utm_source=wp-notes-widget-plugin&utm_medium=widget-footer' target="_blank" >WP Notes Widget PRO</a>.</p>
    245245    </div>
    246246  </div>
  • wp-notes-widget/trunk/admin/class-wp-notes-admin.php

    r1738506 r2024975  
    6767      'name_admin_bar'     => _x( 'Note', 'add new on admin bar', 'wp-notes-widget' ),
    6868      'add_new'            => _x( 'Add New', 'nw-item', 'wp-notes-widget' ),
    69       'add_new_item'       => __( 'Add New Note', 'wp-notes-widget' ),
    70       'new_item'           => __( 'New Note', 'wp-notes-widget' ),
    71       'edit_item'          => __( 'Edit Note', 'wp-notes-widget' ),
    72       'view_item'          => __( 'View Note', 'wp-notes-widget' ),
    73       'all_items'          => __( 'All Notes', 'wp-notes-widget' ),
    74       'search_items'       => __( 'Search Notes', 'wp-notes-widget' ),
    75       'parent_item_colon'  => __( 'Parent Notes:', 'wp-notes-widget' ),
    76       'not_found'          => __( 'No notes found.', 'wp-notes-widget' ),
    77       'not_found_in_trash' => __( 'No notes found in Trash.', 'wp-notes-widget' )
     69      'add_new_item'       => esc_html__( 'Add New Note', 'wp-notes-widget' ),
     70      'new_item'           => esc_html__( 'New Note', 'wp-notes-widget' ),
     71      'edit_item'          => esc_html__( 'Edit Note', 'wp-notes-widget' ),
     72      'view_item'          => esc_html__( 'View Note', 'wp-notes-widget' ),
     73      'all_items'          => esc_html__( 'All Notes', 'wp-notes-widget' ),
     74      'search_items'       => esc_html__( 'Search Notes', 'wp-notes-widget' ),
     75      'parent_item_colon'  => esc_html__( 'Parent Notes:', 'wp-notes-widget' ),
     76      'not_found'          => esc_html__( 'No notes found.', 'wp-notes-widget' ),
     77      'not_found_in_trash' => esc_html__( 'No notes found in Trash.', 'wp-notes-widget' )
    7878    );
    7979
     
    126126    $messages['nw-item'] = array(
    127127      0  => '', // Unused. Messages start at index 1.
    128       1  => __( 'Note updated.' ),
    129       2  => __( 'Note details updated.' ),
    130       3  => __( 'Note details deleted.'),
    131       4  => __( 'Note updated.' ),
     128      1  => esc_html__( 'Note updated.' ),
     129      2  => esc_html__( 'Note details updated.' ),
     130      3  => esc_html__( 'Note details deleted.'),
     131      4  => esc_html__( 'Note updated.' ),
    132132      /* translators: %s: date and time of the revision */
    133       5  => isset( $_GET['revision'] ) ? sprintf( __( 'Note restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    134       6  => __( 'Note published.' ),
    135       7  => __( 'Note saved.' ),
    136       8  => __( 'Note submitted.' ),
     133      5  => isset( $_GET['revision'] ) ? sprintf( esc_html__( 'Note restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
     134      6  => esc_html__( 'Note published.' ),
     135      7  => esc_html__( 'Note saved.' ),
     136      8  => esc_html__( 'Note submitted.' ),
    137137      9  => sprintf(
    138         __( 'Note scheduled for: <strong>%1$s</strong>.' ),
     138        esc_html__( 'Note scheduled for: <strong>%1$s</strong>.' ),
    139139        // translators: Publish box date format, see http://php.net/date
    140         date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) )
     140        date_i18n( esc_html__( 'M j, Y @ G:i' ), strtotime( $post->post_date ) )
    141141      ),
    142       10 => __( 'Note draft updated.' )
     142      10 => esc_html__( 'Note draft updated.' )
    143143    );
    144144   
     
    161161    add_meta_box(
    162162      'WP_Notes_item_content',
    163       __( 'Note Content', 'wp-notes-widget' ),
     163      esc_html__( 'Note Content', 'wp-notes-widget' ),
    164164      array( $this, 'WP_Notes_meta_display' ),
    165165      'nw-item',
     
    170170    add_meta_box(
    171171      'WP_Notes_item_twitter',
    172       __( 'Auto Twitter Post', 'wp-notes-widget' ),
     172      esc_html__( 'Auto Twitter Post', 'wp-notes-widget' ),
    173173      array( $this, 'WP_Notes_twitter_post_display' ),
    174174      'nw-item',
     
    674674      // Localize the script with new data
    675675      $translation_array = array(
    676         'audio_choose'    => __( 'Choose an audio file for the note', 'wp-notes-widget' ),
    677         'audio_add'       => __( 'Add Audio', 'wp-notes-widget' ),
    678         'image_choose'    => __( 'Choose an image for the note', 'wp-notes-widget' ),
    679         'image_add'       => __( 'Add Image', 'wp-notes-widget' ),
    680         'download_choose' => __( 'Choose an file to attach as a download', 'wp-notes-widget' ),
    681         'download_add'    => __( 'Add Download', 'wp-notes-widget' )
     676        'audio_choose'    => esc_html__( 'Choose an audio file for the note', 'wp-notes-widget' ),
     677        'audio_add'       => esc_html__( 'Add Audio', 'wp-notes-widget' ),
     678        'image_choose'    => esc_html__( 'Choose an image for the note', 'wp-notes-widget' ),
     679        'image_add'       => esc_html__( 'Add Image', 'wp-notes-widget' ),
     680        'download_choose' => esc_html__( 'Choose an file to attach as a download', 'wp-notes-widget' ),
     681        'download_add'    => esc_html__( 'Add Download', 'wp-notes-widget' )
    682682      );
    683683
  • wp-notes-widget/trunk/admin/partials/admin-post-shortcode-editor-modal.php

    r1738506 r2024975  
    66            <div class="modal-header">
    77              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    8               <h4 class="modal-title"><?php _e('Notes Shortcode Editor','wp-notes-widget'); ?></h4>
     8              <h4 class="modal-title"><?php esc_html_e('Notes Shortcode Editor','wp-notes-widget'); ?></h4>
    99            </div>
    1010            <div class="modal-body">
    1111             
    1212              <div class="alert alert-info" role="alert">
    13                 <i class="fa fa-info-circle" aria-hidden="true"></i> <?php echo sprintf('This is a preview of the shortcode editor available in %s. Shortcodes allows for notes to be placed in posts and pages. Shortcodes will not be rendered in this free version.', '<a href="'. WP_NOTES_WIDGET_PRO_LINK .'?utm_source=wp-notes-widget-plugin&utm-medium=shortcode-editor-modal-header">WP Notes Widget PRO</a>'); ?> 
     13                <i class="fa fa-info-circle" aria-hidden="true"></i> <?php echo sprintf('This is a preview of the shortcode editor available in %s. Shortcodes allows for notes to be placed in posts and pages. Shortcodes will not be rendered in this free version.', '<a href="'. WP_NOTES_WIDGET_PRO_LINK .'?utm_source=wp-notes-widget-plugin&utm_medium=shortcode-editor-modal-header">WP Notes Widget PRO</a>'); ?> 
    1414              </div>
    1515
    1616              <!-- Nav tabs -->
    1717              <ul class="nav nav-tabs" role="tablist">
    18                 <li role="presentation" class="active"><a href="#visual" aria-controls="visual" role="tab" data-toggle="tab"><?php _e('Visual Settings','wp-notes-widget'); ?></a></li>
    19                 <li role="presentation"><a href="#display" aria-controls="display" role="tab" data-toggle="tab"><?php _e('Display Notes','wp-notes-widget'); ?></a></li>
    20                 <li role="presentation"><a href="#general" aria-controls="general" role="tab" data-toggle="tab"><?php _e('General Settings','wp-notes-widget'); ?></a></li>
    21                 <li role="presentation"><a href="#font-style" aria-controls="font-style" role="tab" data-toggle="tab"><?php _e('Font Style','wp-notes-widget'); ?></a></li>
    22                 <li role="presentation"><a href="#shortcode" aria-controls="shortcode" role="tab" data-toggle="tab"><?php _e('Shortcode Settings','wp-notes-widget'); ?></a></li>
     18                <li role="presentation" class="active"><a href="#visual" aria-controls="visual" role="tab" data-toggle="tab"><?php esc_html_e('Visual Settings','wp-notes-widget'); ?></a></li>
     19                <li role="presentation"><a href="#display" aria-controls="display" role="tab" data-toggle="tab"><?php esc_html_e('Display Notes','wp-notes-widget'); ?></a></li>
     20                <li role="presentation"><a href="#general" aria-controls="general" role="tab" data-toggle="tab"><?php esc_html_e('General Settings','wp-notes-widget'); ?></a></li>
     21                <li role="presentation"><a href="#font-style" aria-controls="font-style" role="tab" data-toggle="tab"><?php esc_html_e('Font Style','wp-notes-widget'); ?></a></li>
     22                <li role="presentation"><a href="#shortcode" aria-controls="shortcode" role="tab" data-toggle="tab"><?php esc_html_e('Shortcode Settings','wp-notes-widget'); ?></a></li>
    2323              </ul>
    2424
     
    2929                    <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a>
    3030                    <header>
    31                       <h4><?php _e('Visual Settings','wp-notes-widget'); ?></h4>
     31                      <h4><?php esc_html_e('Visual Settings','wp-notes-widget'); ?></h4>
    3232                    </header>
    3333                    <div class="form-group" >
    34                       <label for="wp-notes-widget__settings__title" ><?php _e('Title', 'wp-notes-widget' ); ?></label>
     34                      <label for="wp-notes-widget__settings__title" ><?php esc_html_e('Title', 'wp-notes-widget' ); ?></label>
    3535                      <input type="text" id="wp-notes-widget__settings__title" name="wp-notes-widget__settings__title" />
    3636                    </div>
    3737                    <div class="wp-notes-widget__settings__select-container" >
    38                       <label for="wp-notes-widget__settings__thumb-tack-color" ><?php _e('Thumb Tack Color', 'wp-notes-widget' ) ?></label>
     38                      <label for="wp-notes-widget__settings__thumb-tack-color" ><?php esc_html_e('Thumb Tack Color', 'wp-notes-widget' ) ?></label>
    3939                      <select id="wp-notes-widget__settings__thumb-tack-color" name='wp-notes-widget__settings__thumb-tack-color' >
    40                         <option value="red"     <?php selected( $default_val['thumb_tack_colour'], 'red' ); ?> >     <?php _e('Red', 'wp-notes-widget' ) ?></option>
    41                         <option value="blue"    <?php selected( $default_val['thumb_tack_colour'], 'blue' ); ?> >    <?php _e('Blue', 'wp-notes-widget' ) ?></option>
    42                         <option value="green"   <?php selected( $default_val['thumb_tack_colour'], 'green' ); ?> >   <?php _e('Green', 'wp-notes-widget' ) ?></option>
    43                         <option value="gray"    <?php selected( $default_val['thumb_tack_colour'], 'gray' ); ?> >    <?php _e('Gray', 'wp-notes-widget' ) ?></option>
    44                         <option value="orange"  <?php selected( $default_val['thumb_tack_colour'], 'orange' ); ?> >  <?php _e('Orange', 'wp-notes-widget' ) ?></option>
    45                         <option value="pink"    <?php selected( $default_val['thumb_tack_colour'], 'pink' ); ?> >     <?php _e('Pink', 'wp-notes-widget' ) ?></option>
    46                         <option value="teal"    <?php selected( $default_val['thumb_tack_colour'], 'teal' ); ?> >    <?php _e('Teal', 'wp-notes-widget' ) ?></option>
    47                         <option value="yellow"  <?php selected( $default_val['thumb_tack_colour'], 'yellow' ); ?> >  <?php _e('Yellow', 'wp-notes-widget' ) ?></option>
     40                        <option value="red"     <?php selected( $default_val['thumb_tack_colour'], 'red' ); ?> >     <?php esc_html_e('Red', 'wp-notes-widget' ) ?></option>
     41                        <option value="blue"    <?php selected( $default_val['thumb_tack_colour'], 'blue' ); ?> >    <?php esc_html_e('Blue', 'wp-notes-widget' ) ?></option>
     42                        <option value="green"   <?php selected( $default_val['thumb_tack_colour'], 'green' ); ?> >   <?php esc_html_e('Green', 'wp-notes-widget' ) ?></option>
     43                        <option value="gray"    <?php selected( $default_val['thumb_tack_colour'], 'gray' ); ?> >    <?php esc_html_e('Gray', 'wp-notes-widget' ) ?></option>
     44                        <option value="orange"  <?php selected( $default_val['thumb_tack_colour'], 'orange' ); ?> >  <?php esc_html_e('Orange', 'wp-notes-widget' ) ?></option>
     45                        <option value="pink"    <?php selected( $default_val['thumb_tack_colour'], 'pink' ); ?> >     <?php esc_html_e('Pink', 'wp-notes-widget' ) ?></option>
     46                        <option value="teal"    <?php selected( $default_val['thumb_tack_colour'], 'teal' ); ?> >    <?php esc_html_e('Teal', 'wp-notes-widget' ) ?></option>
     47                        <option value="yellow"  <?php selected( $default_val['thumb_tack_colour'], 'yellow' ); ?> >  <?php esc_html_e('Yellow', 'wp-notes-widget' ) ?></option>
    4848                      </select>                   
    4949                    </div>
    5050                   
    5151                    <div class="wp-notes-widget__settings__select-container" >
    52                       <label for="wp-notes-widget__settings__background-color" ><?php _e('Background Color', 'wp-notes-widget' ) ?></label>
     52                      <label for="wp-notes-widget__settings__background-color" ><?php esc_html_e('Background Color', 'wp-notes-widget' ) ?></label>
    5353                      <select id="wp-notes-widget__settings__background-color" name='wp-notes-widget__settings__background-color' >
    54                         <option value="yellow"      <?php selected( $default_val['background_colour'], 'yellow' ); ?> >    <?php _e('Yellow', 'wp-notes-widget' ) ?>      </option>
    55                         <option value="blue"        <?php selected( $default_val['background_colour'], 'blue' ); ?> >      <?php _e('Blue', 'wp-notes-widget' ) ?>        </option>
    56                         <option value="green"       <?php selected( $default_val['background_colour'], 'green' ); ?> >     <?php _e('Green', 'wp-notes-widget' ) ?>      </option>
    57                         <option value="pink"        <?php selected( $default_val['background_colour'], 'pink' ); ?> >      <?php _e('Pink', 'wp-notes-widget' ) ?>        </option>
    58                         <option value="orange"      <?php selected( $default_val['background_colour'], 'orange' ); ?> >    <?php _e('Orange', 'wp-notes-widget' ) ?>      </option>
    59                         <option value="white"       <?php selected( $default_val['background_colour'], 'white' ); ?> >     <?php _e('White', 'wp-notes-widget' ) ?>      </option>
    60                         <option value="dark-grey"   <?php selected( $default_val['background_colour'], 'dark-grey' ); ?> > <?php _e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
    61                         <option value="light-grey"  <?php selected( $default_val['background_colour'], 'light-grey' ); ?> ><?php _e('Light Grey', 'wp-notes-widget' ) ?>  </option>
     54                        <option value="yellow"      <?php selected( $default_val['background_colour'], 'yellow' ); ?> >    <?php esc_html_e('Yellow', 'wp-notes-widget' ) ?>      </option>
     55                        <option value="blue"        <?php selected( $default_val['background_colour'], 'blue' ); ?> >      <?php esc_html_e('Blue', 'wp-notes-widget' ) ?>        </option>
     56                        <option value="green"       <?php selected( $default_val['background_colour'], 'green' ); ?> >     <?php esc_html_e('Green', 'wp-notes-widget' ) ?>      </option>
     57                        <option value="pink"        <?php selected( $default_val['background_colour'], 'pink' ); ?> >      <?php esc_html_e('Pink', 'wp-notes-widget' ) ?>        </option>
     58                        <option value="orange"      <?php selected( $default_val['background_colour'], 'orange' ); ?> >    <?php esc_html_e('Orange', 'wp-notes-widget' ) ?>      </option>
     59                        <option value="white"       <?php selected( $default_val['background_colour'], 'white' ); ?> >     <?php esc_html_e('White', 'wp-notes-widget' ) ?>      </option>
     60                        <option value="dark-grey"   <?php selected( $default_val['background_colour'], 'dark-grey' ); ?> > <?php esc_html_e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
     61                        <option value="light-grey"  <?php selected( $default_val['background_colour'], 'light-grey' ); ?> ><?php esc_html_e('Light Grey', 'wp-notes-widget' ) ?>  </option>
    6262                      </select>                   
    6363                    </div>
    6464                   
    6565                    <div class="wp-notes-widget__settings__select-container" >
    66                       <label for="wp-notes-widget__settings__text-color" ><?php _e('Text Color', 'wp-notes-widget' ) ?></label>
     66                      <label for="wp-notes-widget__settings__text-color" ><?php esc_html_e('Text Color', 'wp-notes-widget' ) ?></label>
    6767                      <select id="wp-notes-widget__settings__text-color" name='wp-notes-widget__settings__text-color' >
    68                         <option value="red"         <?php selected( $default_val['text_colour'], 'red' ); ?> >  <?php _e('Red', 'wp-notes-widget' ) ?>        </option>
    69                         <option value="blue"        <?php selected( $default_val['text_colour'], 'blue' ); ?> >  <?php _e('Blue', 'wp-notes-widget' ) ?>        </option>
    70                         <option value="black"       <?php selected( $default_val['text_colour'], 'black' ); ?> >  <?php _e('Black', 'wp-notes-widget' ) ?>      </option>
    71                         <option value="pink"        <?php selected( $default_val['text_colour'], 'pink' ); ?> >  <?php _e('Pink', 'wp-notes-widget' ) ?>        </option>
    72                         <option value="white"       <?php selected( $default_val['text_colour'], 'white' ); ?> >  <?php _e('White', 'wp-notes-widget' ) ?>      </option>
    73                         <option value="dark-grey"   <?php selected( $default_val['text_colour'], 'dark-grey' ); ?> >  <?php _e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
    74                         <option value="light-grey"  <?php selected( $default_val['text_colour'], 'light-grey' ); ?> >  <?php _e('Light Grey', 'wp-notes-widget' ) ?>  </option>
     68                        <option value="red"         <?php selected( $default_val['text_colour'], 'red' ); ?> >  <?php esc_html_e('Red', 'wp-notes-widget' ) ?>        </option>
     69                        <option value="blue"        <?php selected( $default_val['text_colour'], 'blue' ); ?> >  <?php esc_html_e('Blue', 'wp-notes-widget' ) ?>        </option>
     70                        <option value="black"       <?php selected( $default_val['text_colour'], 'black' ); ?> >  <?php esc_html_e('Black', 'wp-notes-widget' ) ?>      </option>
     71                        <option value="pink"        <?php selected( $default_val['text_colour'], 'pink' ); ?> >  <?php esc_html_e('Pink', 'wp-notes-widget' ) ?>        </option>
     72                        <option value="white"       <?php selected( $default_val['text_colour'], 'white' ); ?> >  <?php esc_html_e('White', 'wp-notes-widget' ) ?>      </option>
     73                        <option value="dark-grey"   <?php selected( $default_val['text_colour'], 'dark-grey' ); ?> >  <?php esc_html_e('Dark Grey', 'wp-notes-widget' ) ?>  </option>
     74                        <option value="light-grey"  <?php selected( $default_val['text_colour'], 'light-grey' ); ?> >  <?php esc_html_e('Light Grey', 'wp-notes-widget' ) ?>  </option>
    7575                      </select>                   
    7676                    </div>
    7777
    7878                    <div class="wp-notes-widget__settings__select-container" >
    79                       <label for="wp-notes-widget__settings__font-size" ><?php _e('Font Size', 'wp-notes-widget' ) ?></label>
     79                      <label for="wp-notes-widget__settings__font-size" ><?php esc_html_e('Font Size', 'wp-notes-widget' ) ?></label>
    8080                      <select id="wp-notes-widget__settings__font-size" name='wp-notes-widget__settings__font-size' >
    81                         <option value="minus-50" <?php selected( $default_val['font_size'], 'minus-50' ); ?> > <?php _e('50% smaller', 'wp-notes-widget' ) ?>  </option>
    82                         <option value="minus-45" <?php selected( $default_val['font_size'], 'minus-45' ); ?> > <?php _e('45% smaller', 'wp-notes-widget' ) ?>  </option>
    83                         <option value="minus-40" <?php selected( $default_val['font_size'], 'minus-40' ); ?> > <?php _e('40% smaller', 'wp-notes-widget' ) ?>  </option>
    84                         <option value="minus-35" <?php selected( $default_val['font_size'], 'minus-35' ); ?> > <?php _e('35% smaller', 'wp-notes-widget' ) ?>  </option>
    85                         <option value="minus-30" <?php selected( $default_val['font_size'], 'minus-30' ); ?> > <?php _e('30% smaller', 'wp-notes-widget' ) ?>  </option>
    86                         <option value="minus-25" <?php selected( $default_val['font_size'], 'minus-25' ); ?> > <?php _e('25% smaller', 'wp-notes-widget' ) ?>  </option>
    87                         <option value="minus-20" <?php selected( $default_val['font_size'], 'minus-20' ); ?> > <?php _e('20% smaller', 'wp-notes-widget' ) ?>  </option>
    88                         <option value="minus-15" <?php selected( $default_val['font_size'], 'minus-15' ); ?> > <?php _e('15% smaller', 'wp-notes-widget' ) ?>  </option>
    89                         <option value="minus-10" <?php selected( $default_val['font_size'], 'minus-10' ); ?> > <?php _e('10% smaller', 'wp-notes-widget' ) ?>  </option>
    90                         <option value="minus-5"  <?php selected( $default_val['font_size'], 'minus-5' ); ?> > <?php _e('5% smaller', 'wp-notes-widget' ) ?>  </option>
     81                        <option value="minus-50" <?php selected( $default_val['font_size'], 'minus-50' ); ?> > <?php esc_html_e('50% smaller', 'wp-notes-widget' ) ?>  </option>
     82                        <option value="minus-45" <?php selected( $default_val['font_size'], 'minus-45' ); ?> > <?php esc_html_e('45% smaller', 'wp-notes-widget' ) ?>  </option>
     83                        <option value="minus-40" <?php selected( $default_val['font_size'], 'minus-40' ); ?> > <?php esc_html_e('40% smaller', 'wp-notes-widget' ) ?>  </option>
     84                        <option value="minus-35" <?php selected( $default_val['font_size'], 'minus-35' ); ?> > <?php esc_html_e('35% smaller', 'wp-notes-widget' ) ?>  </option>
     85                        <option value="minus-30" <?php selected( $default_val['font_size'], 'minus-30' ); ?> > <?php esc_html_e('30% smaller', 'wp-notes-widget' ) ?>  </option>
     86                        <option value="minus-25" <?php selected( $default_val['font_size'], 'minus-25' ); ?> > <?php esc_html_e('25% smaller', 'wp-notes-widget' ) ?>  </option>
     87                        <option value="minus-20" <?php selected( $default_val['font_size'], 'minus-20' ); ?> > <?php esc_html_e('20% smaller', 'wp-notes-widget' ) ?>  </option>
     88                        <option value="minus-15" <?php selected( $default_val['font_size'], 'minus-15' ); ?> > <?php esc_html_e('15% smaller', 'wp-notes-widget' ) ?>  </option>
     89                        <option value="minus-10" <?php selected( $default_val['font_size'], 'minus-10' ); ?> > <?php esc_html_e('10% smaller', 'wp-notes-widget' ) ?>  </option>
     90                        <option value="minus-5"  <?php selected( $default_val['font_size'], 'minus-5' ); ?> > <?php esc_html_e('5% smaller', 'wp-notes-widget' ) ?>  </option>
    9191                       
    92                         <option value="normal" <?php selected( $default_val['font_size'], 'normal' ); ?> >    <?php _e('Normal', 'wp-notes-widget' ) ?></option>
     92                        <option value="normal" <?php selected( $default_val['font_size'], 'normal' ); ?> >    <?php esc_html_e('Normal', 'wp-notes-widget' ) ?></option>
    9393                       
    94                         <option value="plus-5"  <?php selected( $default_val['font_size'], 'plus-5' ); ?> >   <?php _e('5% larger', 'wp-notes-widget' ) ?>  </option>
    95                         <option value="plus-10" <?php selected( $default_val['font_size'], 'plus-10' ); ?> >  <?php _e('10% larger', 'wp-notes-widget' ) ?>  </option>
    96                         <option value="plus-15" <?php selected( $default_val['font_size'], 'plus-15' ); ?> >  <?php _e('15% larger', 'wp-notes-widget' ) ?>  </option>
    97                         <option value="plus-20" <?php selected( $default_val['font_size'], 'plus-20' ); ?> >  <?php _e('20% larger', 'wp-notes-widget' ) ?>  </option>
    98                         <option value="plus-25" <?php selected( $default_val['font_size'], 'plus-25' ); ?> >  <?php _e('25% larger', 'wp-notes-widget' ) ?>  </option>
    99                         <option value="plus-30" <?php selected( $default_val['font_size'], 'plus-30' ); ?> >  <?php _e('30% larger', 'wp-notes-widget' ) ?>  </option>
    100                         <option value="plus-35" <?php selected( $default_val['font_size'], 'plus-35' ); ?> >  <?php _e('35% larger', 'wp-notes-widget' ) ?>  </option>
    101                         <option value="plus-40" <?php selected( $default_val['font_size'], 'plus-40' ); ?> >  <?php _e('40% larger', 'wp-notes-widget' ) ?>  </option>
    102                         <option value="plus-45" <?php selected( $default_val['font_size'], 'plus-45' ); ?> >  <?php _e('45% larger', 'wp-notes-widget' ) ?>  </option>
    103                         <option value="plus-50" <?php selected( $default_val['font_size'], 'plus-50' ); ?> >  <?php _e('50% larger', 'wp-notes-widget' ) ?>  </option>
     94                        <option value="plus-5"  <?php selected( $default_val['font_size'], 'plus-5' ); ?> >   <?php esc_html_e('5% larger', 'wp-notes-widget' ) ?>  </option>
     95                        <option value="plus-10" <?php selected( $default_val['font_size'], 'plus-10' ); ?> >  <?php esc_html_e('10% larger', 'wp-notes-widget' ) ?>  </option>
     96                        <option value="plus-15" <?php selected( $default_val['font_size'], 'plus-15' ); ?> >  <?php esc_html_e('15% larger', 'wp-notes-widget' ) ?>  </option>
     97                        <option value="plus-20" <?php selected( $default_val['font_size'], 'plus-20' ); ?> >  <?php esc_html_e('20% larger', 'wp-notes-widget' ) ?>  </option>
     98                        <option value="plus-25" <?php selected( $default_val['font_size'], 'plus-25' ); ?> >  <?php esc_html_e('25% larger', 'wp-notes-widget' ) ?>  </option>
     99                        <option value="plus-30" <?php selected( $default_val['font_size'], 'plus-30' ); ?> >  <?php esc_html_e('30% larger', 'wp-notes-widget' ) ?>  </option>
     100                        <option value="plus-35" <?php selected( $default_val['font_size'], 'plus-35' ); ?> >  <?php esc_html_e('35% larger', 'wp-notes-widget' ) ?>  </option>
     101                        <option value="plus-40" <?php selected( $default_val['font_size'], 'plus-40' ); ?> >  <?php esc_html_e('40% larger', 'wp-notes-widget' ) ?>  </option>
     102                        <option value="plus-45" <?php selected( $default_val['font_size'], 'plus-45' ); ?> >  <?php esc_html_e('45% larger', 'wp-notes-widget' ) ?>  </option>
     103                        <option value="plus-50" <?php selected( $default_val['font_size'], 'plus-50' ); ?> >  <?php esc_html_e('50% larger', 'wp-notes-widget' ) ?>  </option>
    104104                      </select>                   
    105105                    </div>
     
    109109                    <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a>
    110110                    <header>
    111                       <h4><?php _e('Show/Hide Notes', 'wp-notes-widget' ) ?></h4>
     111                      <h4><?php esc_html_e('Show/Hide Notes', 'wp-notes-widget' ) ?></h4>
    112112                      <p>
    113113                      <?php
    114                         $edit_link = '<a href="/wp-admin/edit.php?post_type=nw-item">'. __('Edit Notes','wp-notes-widget') . '</a>';
     114                        $edit_link = '<a href="/wp-admin/edit.php?post_type=nw-item">'. esc_html__('Edit Notes','wp-notes-widget') . '</a>';
    115115                      ?>
    116116
    117                       <?php echo sprintf(__('You can either display a selection of individual notes or all the notes from a category. Notes can be managed on the %s page.'), $edit_link );?>
     117                      <?php echo sprintf(esc_html__('You can either display a selection of individual notes or all the notes from a category. Notes can be managed on the %s page.'), $edit_link );?>
    118118                       
    119119                      </p>
     
    123123                      <label>
    124124                        <input type="radio" checked data-content-id="wp-notes-widget__settings__show-individual" id="wp-notes-widget__settings__show-type--individual" name="wp-notes-widget__settings__show-type" value="notes" />
    125                         <?php _e('Select individual notes to show', 'wp-notes-widget'); ?>
     125                        <?php esc_html_e('Select individual notes to show', 'wp-notes-widget'); ?>
    126126                      </label>
    127127                      <label>
    128128                        <input type="radio" data-content-id="wp-notes-widget__settings__show-category"  id="wp-notes-widget__settings__show-type--category"  name="wp-notes-widget__settings__show-type" value="category" />
    129                         <?php _e('Show all notes from a category', 'wp-notes-widget'); ?>
     129                        <?php esc_html_e('Show all notes from a category', 'wp-notes-widget'); ?>
    130130                      </label>
    131131                    </p>
     
    159159                            ?>
    160160                            <li>
    161                               <?php _e('No published notes to display.', 'wp-notes-widget'); ?>
     161                              <?php esc_html_e('No published notes to display.', 'wp-notes-widget'); ?>
    162162                            </li>
    163163                            <?php
     
    168168                    </div>
    169169                    <div id="wp-notes-widget__settings__show-category" class="hidden wp-notes-widget__settings__show-notes-container" >
    170                       <p><i class="fa fa-info-circle" aria-hidden="true"></i> <?php _e('Note categories are available in', 'wp-notes-widget'); ?> <a href='<?php echo WP_NOTES_WIDGET_PRO_LINK ?>?utm_source=wp-notes-widget-plugin&utm-medium=shortcode-settings-modal-categories'>WP Notes Widget PRO</a>.</p>
     170                      <p><i class="fa fa-info-circle" aria-hidden="true"></i> <?php esc_html_e('Note categories are available in', 'wp-notes-widget'); ?> <a href='<?php echo WP_NOTES_WIDGET_PRO_LINK ?>?utm_source=wp-notes-widget-plugin&utm_medium=shortcode-settings-modal-categories'>WP Notes Widget PRO</a>.</p>
    171171                    </div>                 
    172172                  </section>
     
    174174                    <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a>
    175175                    <header>
    176                       <h4><?php _e('General Settings', 'wp-notes-widget'); ?></h4>
     176                      <h4><?php esc_html_e('General Settings', 'wp-notes-widget'); ?></h4>
    177177                    </header>
    178178                   
     
    180180                      <li class="wp-notes-widget__settings__radio-checkbox-input-item" >
    181181                        <input type="checkbox" <?php checked((bool)$default_val['show_date']); ?> value="true" name="wp-notes-widget__settings__display-date" id="wp-notes-widget__settings__display-date" />
    182                         <label for="wp-notes-widget__settings__display-date"><?php _e('Display date when note was published', 'wp-notes-widget'); ?></label>
     182                        <label for="wp-notes-widget__settings__display-date"><?php esc_html_e('Display date when note was published', 'wp-notes-widget'); ?></label>
    183183                         
    184184                      </li class="wp-notes-widget__settings__radio-checkbox-input-item" >
     
    186186                      <li class="wp-notes-widget__settings__radio-checkbox-input-item" >
    187187                        <input type="checkbox" <?php checked((bool)$default_val['use_custom_style']); ?> value="true" name="wp-notes-widget__settings__use-own-css" id="wp-notes-widget__settings__use-own-css" />
    188                         <label for="wp-notes-widget__settings__use-own-css"><?php _e('I will use my own CSS styles for WP Notes Widget', 'wp-notes-widget'); ?></label>
     188                        <label for="wp-notes-widget__settings__use-own-css"><?php esc_html_e('I will use my own CSS styles for WP Notes Widget', 'wp-notes-widget'); ?></label>
    189189                         
    190190                      </li>
     
    192192                      <li class="wp-notes-widget__settings__radio-checkbox-input-item" >
    193193                        <input type="checkbox" <?php checked((bool)$default_val['hide_if_empty']); ?> value="true" name="wp-notes-widget__settings__hide-if-empty" id="wp-notes-widget__settings__hide-if-empty" />
    194                         <label for="wp-notes-widget__settings__hide-if-empty"><?php _e('Hide WP Notes Widget if there are no published notes available', 'wp-notes-widget'); ?></label>
     194                        <label for="wp-notes-widget__settings__hide-if-empty"><?php esc_html_e('Hide WP Notes Widget if there are no published notes available', 'wp-notes-widget'); ?></label>
    195195                         
    196196                      </li>
     
    198198                      <li class="wp-notes-widget__settings__radio-checkbox-input-item" >
    199199                        <input type="checkbox" <?php checked((bool)$default_val['multiple_notes']); ?> value="true" name="wp-notes-widget__settings__display-single-notes" id="wp-notes-widget__settings__display-single-notes" />
    200                         <label for="wp-notes-widget__settings__display-single-notes"><?php _e('Use individual "sticky notes" for each note', 'wp-notes-widget'); ?></label>
     200                        <label for="wp-notes-widget__settings__display-single-notes"><?php esc_html_e('Use individual "sticky notes" for each note', 'wp-notes-widget'); ?></label>
    201201                         
    202202                      </li>
     
    204204                      <li class="wp-notes-widget__settings__radio-checkbox-input-item" >
    205205                        <input type="checkbox" <?php checked((bool)$default_val['enable_social_share']); ?> value="true" name="wp-notes-widget__settings__enable-social-sharing" id="wp-notes-widget__settings__enable-social-sharing" />
    206                         <label for="wp-notes-widget__settings__enable-social-sharing"><?php _e('Enable social sharing of notes', 'wp-notes-widget'); ?></label>
     206                        <label for="wp-notes-widget__settings__enable-social-sharing"><?php esc_html_e('Enable social sharing of notes', 'wp-notes-widget'); ?></label>
    207207                      </li>
    208208
    209209                      <li class="wp-notes-widget__settings__radio-checkbox-input-item" >
    210210                        <input type="checkbox" <?php checked((bool)$default_val['do_not_force_uppercase']); ?> value="true" name="wp-notes-widget__settings__no-uppercase" id="wp-notes-widget__settings__no-uppercase" />
    211                         <label for="wp-notes-widget__settings__no-uppercase"><?php _e('Do not force uppercase letters', 'wp-notes-widget'); ?></label>
     211                        <label for="wp-notes-widget__settings__no-uppercase"><?php esc_html_e('Do not force uppercase letters', 'wp-notes-widget'); ?></label>
    212212                      </li>
    213213                    </ul>                 
     
    216216                    <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a>
    217217                    <header>
    218                       <h4><?php _e('Font Style', 'wp-notes-widget'); ?></h4>
     218                      <h4><?php esc_html_e('Font Style', 'wp-notes-widget'); ?></h4>
    219219                    </header>
    220220                    <div class="font-style-selection-container" >
     
    245245                            <li class="wp-notes-widget__settings__radio-checkbox-input-item font-style-item font-<?php echo $key ?>" >
    246246                              <input type="radio" id="<?php echo  $key ; ?>" <?php checked($default_val['font_style'], $key); ?> name="wp-notes-widget__settings__font" value="<?php echo $key ?>" />         
    247                               <label for="<?php echo $key ; ?>" id="font-selection-<?php echo $key ?>-label"  ><?php _e('Font Style','wp-notes-widget'); ?> - <?php echo $font_mapping_item ?></label>
     247                              <label for="<?php echo $key ; ?>" id="font-selection-<?php echo $key ?>-label"  ><?php esc_html_e('Font Style','wp-notes-widget'); ?> - <?php echo $font_mapping_item ?></label>
    248248                            </li>
    249249                            <?php
     
    256256                    <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a>
    257257                    <header>
    258                       <h4><?php _e('Shortcode Settings', 'wp-notes-widget'); ?></h4>
     258                      <h4><?php esc_html_e('Shortcode Settings', 'wp-notes-widget'); ?></h4>
    259259                    </header>
    260260                   
    261261                    <div class="form-group">
    262                       <label for="wp-notes-widget__settings__max-width"><?php _e('Max Width of Note Container:', 'wp-notes-widget'); ?></label>
    263                       <label for="wp-notes-widget__settings__max-width-units" class="sr-only" ><?php _e('Units:', 'wp-notes-widget'); ?></label>
     262                      <label for="wp-notes-widget__settings__max-width"><?php esc_html_e('Max Width of Note Container:', 'wp-notes-widget'); ?></label>
     263                      <label for="wp-notes-widget__settings__max-width-units" class="sr-only" ><?php esc_html_e('Units:', 'wp-notes-widget'); ?></label>
    264264                      <div class="wp-notes-widget__flex-container">
    265265                        <input type="number" min="1" class="form-control wp-notes-widget__settings--small" id="wp-notes-widget__settings__max-width" name="wp-notes-widget__settings__max-width" value="<?php echo $default_setting_val['max_width']; ?>" >
     
    275275                   
    276276                    <div class="form-group">
    277                       <label for="wp-notes-widget__settings__alignment-options" ><?php _e('Alignment', 'wp-notes-widget'); ?></label>
     277                      <label for="wp-notes-widget__settings__alignment-options" ><?php esc_html_e('Alignment', 'wp-notes-widget'); ?></label>
    278278                      <div id="wp-notes-widget__settings__alignment-options" >
    279                         <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__alignment" value="left" <?php checked($default_setting_val['alignment'], 'left'); ?> ><?php _e('Left', 'wp-notes-widget'); ?></label>
    280                         <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__alignment" value="center" <?php checked($default_setting_val['alignment'], 'center'); ?> ><?php _e('Center', 'wp-notes-widget'); ?></label>
    281                         <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__alignment" value="right" <?php checked($default_setting_val['alignment'], 'right'); ?> ><?php _e('Right', 'wp-notes-widget'); ?></label>
     279                        <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__alignment" value="left" <?php checked($default_setting_val['alignment'], 'left'); ?> ><?php esc_html_e('Left', 'wp-notes-widget'); ?></label>
     280                        <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__alignment" value="center" <?php checked($default_setting_val['alignment'], 'center'); ?> ><?php esc_html_e('Center', 'wp-notes-widget'); ?></label>
     281                        <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__alignment" value="right" <?php checked($default_setting_val['alignment'], 'right'); ?> ><?php esc_html_e('Right', 'wp-notes-widget'); ?></label>
    282282                      </div>
    283283                    </div>
    284284                   
    285285                    <div class="form-group">
    286                       <label for="wp-notes-widget__settings__direction-options" ><?php _e('Direction', 'wp-notes-widget'); ?></label>
     286                      <label for="wp-notes-widget__settings__direction-options" ><?php esc_html_e('Direction', 'wp-notes-widget'); ?></label>
    287287                      <div class="wp-notes-widget__settings__direction-options">
    288                         <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__direction" value="vertical" <?php checked($default_setting_val['direction'], 'vertical'); ?> ><?php _e('Vertical', 'wp-notes-widget'); ?></label>
    289                         <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__direction" value="horizontal" <?php checked($default_setting_val['direction'], 'horizontal'); ?> ><?php _e('Horizontal', 'wp-notes-widget'); ?></label>
     288                        <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__direction" value="vertical" <?php checked($default_setting_val['direction'], 'vertical'); ?> ><?php esc_html_e('Vertical', 'wp-notes-widget'); ?></label>
     289                        <label class="radio-inline"><input type="radio" name="wp-notes-widget__settings__direction" value="horizontal" <?php checked($default_setting_val['direction'], 'horizontal'); ?> ><?php esc_html_e('Horizontal', 'wp-notes-widget'); ?></label>
    290290                      </div>
    291291                    </div>
     
    297297                <div class="col-sm-12">
    298298                  <div class="well">
    299                     <h5 id="wp-notes-widget__rendered-shortcode" ><?php _e('Your Shortcode', 'wp-notes-widget'); ?></h5>
     299                    <h5 id="wp-notes-widget__rendered-shortcode" ><?php esc_html_e('Your Shortcode', 'wp-notes-widget'); ?></h5>
    300300                  </div>
    301301                </div>
     
    304304            </div>
    305305            <div class="modal-footer">
    306               <button type="button"   class="btn btn-default" data-dismiss="modal"><?php _e('Close', 'wp-notes-widget'); ?></button>
     306              <button type="button"   class="btn btn-default" data-dismiss="modal"><?php esc_html_e('Close', 'wp-notes-widget'); ?></button>
    307307              <!--
    308                 <button type="button" id="wp-notes-widget--insert-shortcode"  class="btn btn-primary"><?php _e('Insert and Close', 'wp-notes-widget'); ?></button>
     308                <button type="button" id="wp-notes-widget--insert-shortcode"  class="btn btn-primary"><?php esc_html_e('Insert and Close', 'wp-notes-widget'); ?></button>
    309309              -->
    310310            </div>
  • wp-notes-widget/trunk/gruntfile.js

    r1427839 r2024975  
    2525        }
    2626      }
     27    },
     28    pot: {
     29        options:{
     30        text_domain: 'wp-notes-widget', //Your text domain. Produces my-text-domain.pot
     31        dest: 'languages/', //directory to place the pot file
     32        keywords: ['gettext', '__', '_e'], //functions to look for
     33      },
     34      files:{
     35        src:  [ '**/*.php' ], //Parse all php files
     36        expand: true,
     37      }
    2738    }
     39
    2840  });
    2941
     
    3143  grunt.loadNpmTasks('grunt-contrib-watch');
    3244  grunt.loadNpmTasks('grunt-contrib-less');
     45  grunt.loadNpmTasks('grunt-pot');
    3346  // Default task(s).
    3447  grunt.registerTask('default', ['less', 'watch']);
  • wp-notes-widget/trunk/includes/class-wp-notes-widget.php

    r1738506 r2024975  
    3737     
    3838      $widget_slug            = $this->get_widget_slug();
    39       $widget_title           = __( 'WP Notes Widget', $this->get_widget_slug() );
    40       $widget_description     = __( 'Displays all of the published notes in a "sticky note" styling.', $this->get_widget_slug() );
     39      $widget_title           = esc_html__( 'WP Notes Widget', $this->get_widget_slug() );
     40      $widget_description     = esc_html__( 'Displays all of the published notes in a "sticky note" styling.', $this->get_widget_slug() );
    4141      $widget_ops             = array(
    4242        'classname'   =>  $this->get_widget_slug().'-widget',
  • wp-notes-widget/trunk/includes/class-wp-notes.php

    r1738506 r2024975  
    7272
    7373    $this->WP_Notes = 'wp-notes';
    74     $this->version = '1.0.1';
     74    $this->version = '1.0.4';
    7575
    7676    $this->load_dependencies();
  • wp-notes-widget/trunk/package.json

    r1738506 r2024975  
    2020    "grunt": "^0.4.5",
    2121    "grunt-contrib-less": "^1.1.0",
    22     "grunt-contrib-watch": "^0.6.1"
     22    "grunt-contrib-watch": "^0.6.1",
     23    "grunt-pot": "^0.3.0",
     24    "gulp-wp-pot": "^2.0.6"
    2325  }
    2426}
  • wp-notes-widget/trunk/public/partials/public-widget-empty-list-item-partial.php

    r1095544 r2024975  
    66           */
    77         
    8            print '<li><p class="wp-notes-widget-no-notes" >' . __('There are no notes to display right now.', 'wp-notes-widget') . '</p></li>';
     8           print '<li><p class="wp-notes-widget-no-notes" >' . esc_html__('There are no notes to display right now.', 'wp-notes-widget') . '</p></li>';
    99
    1010      ?>
  • wp-notes-widget/trunk/public/partials/public-widget-header-partial.php

    r1294308 r2024975  
    77        <h3 ><?php echo $title; ?></h3>
    88      <?php } else { ?>
    9         <h3 class="wp-notes-widget-hidden" ><?php _e('Notes','wp-notes-widget'); ?></h3>
     9        <h3 class="wp-notes-widget-hidden" ><?php esc_html_e('Notes','wp-notes-widget'); ?></h3>
    1010      <?php } ?>
    1111    </div>
  • wp-notes-widget/trunk/public/partials/public-widget-note-list-item-partial.php

    r1427839 r2024975  
    5252    <?php if((bool)$enable_social_share) { ?>
    5353      <a href="https://twitter.com/share?url=<?php echo get_site_url() ?>&text=<?php echo urlencode($wp_note_data['data']['text']); ?>"
    54         class="wp-notes-widget-tweet" target="_blank" ><?php _e('Tweet This!', 'wp-notes-widget'); ?></a>
     54        class="wp-notes-widget-tweet" target="_blank" ><?php esc_html_e('Tweet This!', 'wp-notes-widget'); ?></a>
    5555    <?php } ?>
    5656
  • wp-notes-widget/trunk/wp-notes-widget.php

    r1738506 r2024975  
    1414 * Plugin Name:       WP Notes Widget
    1515 * Description:       'Sticky note' style widget to display short, important, time sensitive information.
    16  * Version:           1.0.1
     16 * Version:           1.0.4
    1717 * Author:            Steve Puddick
    1818 * Author URI:        http://webrockstar.net/
Note: See TracChangeset for help on using the changeset viewer.