Changeset 2024975
- Timestamp:
- 02/05/2019 03:42:14 AM (7 years ago)
- Location:
- wp-notes-widget
- Files:
-
- 113 added
- 17 edited
-
tags/1.0.4 (added)
-
tags/1.0.4/README.txt (added)
-
tags/1.0.4/admin (added)
-
tags/1.0.4/admin/admin-post-twitter-no-credentials-view.php (added)
-
tags/1.0.4/admin/admin-post-twitter-view.php (added)
-
tags/1.0.4/admin/admin-post-view.php (added)
-
tags/1.0.4/admin/admin-settings-page-promo-sidebar.php (added)
-
tags/1.0.4/admin/admin-settings-page-setup.php (added)
-
tags/1.0.4/admin/admin-widget-view.php (added)
-
tags/1.0.4/admin/class-wp-notes-admin.php (added)
-
tags/1.0.4/admin/css (added)
-
tags/1.0.4/admin/css/wp-ace-bootstrap-theme.css (added)
-
tags/1.0.4/admin/css/wp-ace-bootstrap.css (added)
-
tags/1.0.4/admin/css/wp-notes-admin.css (added)
-
tags/1.0.4/admin/images (added)
-
tags/1.0.4/admin/images/admin-code-editor-promo.jpg (added)
-
tags/1.0.4/admin/images/custom-ratings-promo.jpg (added)
-
tags/1.0.4/admin/images/notes-widet-wrapper-promo.jpg (added)
-
tags/1.0.4/admin/images/wp-notes-thumbnail-128.png (added)
-
tags/1.0.4/admin/images/wp-notes-thumbnail-16.png (added)
-
tags/1.0.4/admin/images/wp-notes-thumbnail-24.png (added)
-
tags/1.0.4/admin/images/wp-notes-thumbnail-32.png (added)
-
tags/1.0.4/admin/images/wp-notes-thumbnail-64.png (added)
-
tags/1.0.4/admin/index.php (added)
-
tags/1.0.4/admin/js (added)
-
tags/1.0.4/admin/js/bootstrap.min.js (added)
-
tags/1.0.4/admin/js/shortcode-editor.js (added)
-
tags/1.0.4/admin/js/wp-notes-admin.js (added)
-
tags/1.0.4/admin/js/wp-notes-settings-admin.js (added)
-
tags/1.0.4/admin/js/wp-notes-widget-admin.js (added)
-
tags/1.0.4/admin/less (added)
-
tags/1.0.4/admin/less/wp-notes-admin.less (added)
-
tags/1.0.4/admin/partials (added)
-
tags/1.0.4/admin/partials/admin-post-shortcode-editor-modal.php (added)
-
tags/1.0.4/admin/partials/wp-notes-admin-display.php (added)
-
tags/1.0.4/elements.less (added)
-
tags/1.0.4/gruntfile.js (added)
-
tags/1.0.4/gulpfile.js (added)
-
tags/1.0.4/includes (added)
-
tags/1.0.4/includes/class-wp-notes-activator.php (added)
-
tags/1.0.4/includes/class-wp-notes-deactivator.php (added)
-
tags/1.0.4/includes/class-wp-notes-i18n.php (added)
-
tags/1.0.4/includes/class-wp-notes-loader.php (added)
-
tags/1.0.4/includes/class-wp-notes-widget.php (added)
-
tags/1.0.4/includes/class-wp-notes.php (added)
-
tags/1.0.4/includes/codebird (added)
-
tags/1.0.4/includes/codebird/src (added)
-
tags/1.0.4/includes/codebird/src/cacert.pem (added)
-
tags/1.0.4/includes/codebird/src/codebird.php (added)
-
tags/1.0.4/includes/index.php (added)
-
tags/1.0.4/includes/wp-notes-helpers.php (added)
-
tags/1.0.4/includes/wp-notes-post-data.php (added)
-
tags/1.0.4/includes/wp-notes-widget-data.php (added)
-
tags/1.0.4/index.php (added)
-
tags/1.0.4/languages (added)
-
tags/1.0.4/languages/wp-notes-widget.pot (added)
-
tags/1.0.4/package.json (added)
-
tags/1.0.4/public (added)
-
tags/1.0.4/public/class-wp-notes-public.php (added)
-
tags/1.0.4/public/css (added)
-
tags/1.0.4/public/css/wp-notes-public.css (added)
-
tags/1.0.4/public/css/wp-notes-public.ie8.css (added)
-
tags/1.0.4/public/fonts (added)
-
tags/1.0.4/public/fonts/Kalam (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Bold.eot (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Bold.svg (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Bold.ttf (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Bold.woff (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Regular.eot (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Regular.svg (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Regular.ttf (added)
-
tags/1.0.4/public/fonts/Kalam/Kalam-Regular.woff (added)
-
tags/1.0.4/public/fonts/Kalam/readme.txt (added)
-
tags/1.0.4/public/fonts/Kalam/stylesheet.css (added)
-
tags/1.0.4/public/fonts/kalam_bold (added)
-
tags/1.0.4/public/fonts/kalam_bold/Kalam_Bold (added)
-
tags/1.0.4/public/fonts/kalam_bold/Kalam_Bold/Kalam-Bold.eot (added)
-
tags/1.0.4/public/fonts/kalam_bold/Kalam_Bold/Kalam-Bold.svg (added)
-
tags/1.0.4/public/fonts/kalam_bold/Kalam_Bold/Kalam-Bold.ttf (added)
-
tags/1.0.4/public/fonts/kalam_bold/Kalam_Bold/Kalam-Bold.woff (added)
-
tags/1.0.4/public/fonts/kalam_bold/Kalam_Bold/readme.txt (added)
-
tags/1.0.4/public/fonts/kalam_bold/Kalam_Bold/stylesheet.css (added)
-
tags/1.0.4/public/images (added)
-
tags/1.0.4/public/images/bg-note-bottom.png (added)
-
tags/1.0.4/public/images/bg-note-middle.png (added)
-
tags/1.0.4/public/images/bg-note-top.png (added)
-
tags/1.0.4/public/images/img_filter_colorize_0_0_100.png (added)
-
tags/1.0.4/public/images/thumbtack-blue.png (added)
-
tags/1.0.4/public/images/thumbtack-gray.png (added)
-
tags/1.0.4/public/images/thumbtack-green.png (added)
-
tags/1.0.4/public/images/thumbtack-orange.png (added)
-
tags/1.0.4/public/images/thumbtack-pink.png (added)
-
tags/1.0.4/public/images/thumbtack-pushpin-2-md.png (added)
-
tags/1.0.4/public/images/thumbtack-red.png (added)
-
tags/1.0.4/public/images/thumbtack-teal.png (added)
-
tags/1.0.4/public/images/thumbtack-yellow.png (added)
-
tags/1.0.4/public/index.php (added)
-
tags/1.0.4/public/js (added)
-
tags/1.0.4/public/js/wp-notes-widget-public.js (added)
-
tags/1.0.4/public/less (added)
-
tags/1.0.4/public/less/for.less (added)
-
tags/1.0.4/public/less/wp-notes-public.less (added)
-
tags/1.0.4/public/partials (added)
-
tags/1.0.4/public/partials/public-widget-empty-list-item-partial.php (added)
-
tags/1.0.4/public/partials/public-widget-footer-partial.php (added)
-
tags/1.0.4/public/partials/public-widget-header-partial.php (added)
-
tags/1.0.4/public/partials/public-widget-note-list-item-partial.php (added)
-
tags/1.0.4/public/partials/wp-notes-public-display.php (added)
-
tags/1.0.4/public/public-widget-empty-view.php (added)
-
tags/1.0.4/public/public-widget-single-view.php (added)
-
tags/1.0.4/public/public-widget-view.php (added)
-
tags/1.0.4/uninstall.php (added)
-
tags/1.0.4/wp-notes-widget.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/admin-post-twitter-no-credentials-view.php (modified) (1 diff)
-
trunk/admin/admin-post-twitter-view.php (modified) (3 diffs)
-
trunk/admin/admin-post-view.php (modified) (9 diffs)
-
trunk/admin/admin-settings-page-promo-sidebar.php (modified) (5 diffs)
-
trunk/admin/admin-settings-page-setup.php (modified) (44 diffs)
-
trunk/admin/admin-widget-view.php (modified) (13 diffs)
-
trunk/admin/class-wp-notes-admin.php (modified) (5 diffs)
-
trunk/admin/partials/admin-post-shortcode-editor-modal.php (modified) (18 diffs)
-
trunk/gruntfile.js (modified) (2 diffs)
-
trunk/includes/class-wp-notes-widget.php (modified) (1 diff)
-
trunk/includes/class-wp-notes.php (modified) (1 diff)
-
trunk/package.json (modified) (1 diff)
-
trunk/public/partials/public-widget-empty-list-item-partial.php (modified) (1 diff)
-
trunk/public/partials/public-widget-header-partial.php (modified) (1 diff)
-
trunk/public/partials/public-widget-note-list-item-partial.php (modified) (1 diff)
-
trunk/wp-notes-widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-notes-widget/trunk/README.txt
r1869348 r2024975 3 3 Tags: widget, notes, sidebar, notification, news, events, tweet, twitter 4 4 Requires at least: 3.5 5 Tested up to: 4.96 Stable tag: 1.0. 35 Tested up to: 5.0.3 6 Stable tag: 1.0.4 7 7 License: GPLv2 or later 8 8 … … 168 168 == Changelog == 169 169 170 = 1.0.4 = 171 * change: Admin Code Editor promo link 172 * change: updated WordPress version compatibility 173 170 174 = 1.0.3 = 171 175 * 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> 2 2 -
wp-notes-widget/trunk/admin/admin-post-twitter-view.php
r1427839 r2024975 1 1 <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> 3 3 <div class="content-segment"> 4 4 … … 6 6 var wp_notes_widget_twitter_url_short_length = <?php echo $twitter_url_short_length; ?>; 7 7 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'); ?>"; 9 9 </script> 10 10 11 11 <div class="wp-notes-margin-bottom" > 12 12 <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> 14 14 </div> 15 15 16 16 <?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> 18 18 19 19 <?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> 21 21 <ul class="tweet-history-list faded"> 22 22 <?php … … 30 30 </div> 31 31 32 <h4><?php _e('Tweet Content', 'wp-notes-widget'); ?></h4>32 <h4><?php esc_html_e('Tweet Content', 'wp-notes-widget'); ?></h4> 33 33 <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> 36 36 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> 38 38 <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> 42 42 </ul> 43 43 -
wp-notes-widget/trunk/admin/admin-post-view.php
r1738506 r2024975 2 2 <div class="wp-notes-post-admin-container"> 3 3 4 <h4><?php _e('Notes Text','wp-notes-widget') ?></h4>4 <h4><?php esc_html_e('Notes Text','wp-notes-widget') ?></h4> 5 5 <div class="content-segment"> 6 6 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> 9 9 10 10 </div> 11 11 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> 13 13 <div class="content-segment"> 14 14 … … 18 18 <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); ?>"> 19 19 <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> 21 21 </div> 22 22 23 23 <div class="wp-notes-media-option-control wp-notes-radio-option-control <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'],'video'); ?>"> 24 24 <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> 26 26 </div> 27 27 28 28 <div class="wp-notes-media-option-control wp-notes-radio-option-control <?php WP_Notes_get_selected_output($wp_notes_data['media_embed'],'audio'); ?>"> 29 29 <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> 31 31 </div> 32 32 … … 38 38 <div class="wp-notes-image-management"> 39 39 <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> 42 42 </div> 43 43 … … 50 50 <div class="no-image <?php if ( (bool)($wp_notes_data['image_id'] ) ) { echo 'wp-notes-hidden'; } ?>"> 51 51 <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> 53 53 <div class="no-image-shim"></div> 54 54 </div> … … 65 65 <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'); ?>"> 66 66 <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> 69 69 </label> 70 70 <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'] ?>" /> … … 77 77 78 78 <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> 81 81 </div> 82 82 … … 85 85 <div class="audio <?php if ( !(bool)($wp_notes_data['media_audio_id'] ) ) { echo 'wp-notes-hidden'; } ?>"> 86 86 <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> 88 88 </audio> 89 89 </div> 90 90 91 91 <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> 93 93 </div> 94 94 … … 111 111 </div> 112 112 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> 114 114 <div class="content-segment"> 115 115 116 116 <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'] ?>" /> 119 119 </p> 120 120 121 121 <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> 123 123 124 124 <div class="wp-notes-radio-option-controls "> 125 125 <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); ?>"> 126 126 <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> 128 128 </div> 129 129 130 130 <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'); ?>"> 131 131 <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> 133 133 </div> 134 134 … … 140 140 <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'] ?>" /> 141 141 <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> 143 143 </div> 144 144 145 145 <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> 147 147 <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'] ?>" /> 148 148 <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 7 7 <div class="col-lg-9 col-md-8"> 8 8 <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> 10 10 11 11 <form method="post" action="options.php"> … … 17 17 <!-- Nav tabs --> 18 18 <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> 22 22 </ul> 23 23 … … 67 67 </ul> 68 68 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> 70 70 <p>Save 20% by using discount code <strong>GOPRO20</strong> !</p> 71 71 … … 80 80 81 81 <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> 83 83 <div class=""> 84 84 … … 93 93 <!-- Admin Code Editor Promo Item --> 94 94 <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' > 96 96 <h4>Admin Code Editor</h4> 97 97 <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 10 10 11 11 <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' ); ?> 13 13 </p> 14 14 … … 24 24 ?> 25 25 <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>'); ?> 27 27 </div> 28 28 <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' ); ?> 30 30 </p> 31 31 … … 52 52 53 53 <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 the54 <?php esc_html_e( 'Enter the credentials from the Twitter application you have set up. You can set up a new application on the 55 55 <a href="https://apps.twitter.com" target="_blank" >Twitter Application Management</a> 56 56 page. You will need these credentials in order to automatically post your notes to your Twitter account. … … 80 80 81 81 <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> 83 83 <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" /> 84 84 </div> … … 104 104 105 105 <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> 107 107 <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" /> 108 108 </div> … … 128 128 129 129 <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> 131 131 <input type='text' name='wp_notes_widget_twitter_credentials[token]' value='<?php echo $options['token']; ?>' class="wp-notes-widget-long" /> 132 132 </div> … … 152 152 153 153 <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> 155 155 <input type='text' name='wp_notes_widget_twitter_credentials[token_secret]' value='<?php echo $options['token_secret']; ?>' class="wp-notes-widget-long" > 156 156 </div> … … 163 163 add_settings_section( 164 164 '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 page165 esc_html__('Twitter API Credentials','wp-notes-widget'), // Title to be displayed on the administration page 166 166 'wp_notes_widget_twitter_credentials_callback', // Callback used to render the description of the section 167 167 'wp_notes_widget_twitter_settings_page_partial' // Page on which to add this section of options … … 172 172 add_settings_field( 173 173 '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 element174 '<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 175 175 'wp_notes_widget_twitter_key_callback', // The name of the function responsible for rendering the option interface 176 176 'wp_notes_widget_twitter_settings_page_partial', // The page on which this option will be displayed … … 180 180 add_settings_field( 181 181 '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>', 183 183 'wp_notes_widget_twitter_secret_callback', 184 184 'wp_notes_widget_twitter_settings_page_partial', … … 188 188 add_settings_field( 189 189 '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>', 191 191 'wp_notes_widget_twitter_token_callback', 192 192 'wp_notes_widget_twitter_settings_page_partial', … … 196 196 add_settings_field( 197 197 '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>', 199 199 'wp_notes_widget_twitter_token_secret_callback', 200 200 'wp_notes_widget_twitter_settings_page_partial', … … 231 231 } 232 232 ?> 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> 234 234 <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> 243 243 </select> 244 244 … … 260 260 } 261 261 ?> 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> 263 263 <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> 272 272 </select> 273 273 … … 289 289 } 290 290 ?> 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> 292 292 <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> 300 300 </select> 301 301 … … 318 318 ?> 319 319 <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> 321 321 <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> 332 332 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> 334 334 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> 345 345 </select> 346 346 </div> … … 365 365 <div class="checkbox"> 366 366 <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> 368 368 </div> 369 369 <?php … … 387 387 <div class="checkbox"> 388 388 <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> 390 390 </div> 391 391 <?php … … 408 408 409 409 <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> 411 411 </div> 412 412 … … 430 430 <div class="checkbox"> 431 431 <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> 433 433 </div> 434 434 <?php … … 451 451 <div class="checkbox"> 452 452 <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> 454 454 </div> 455 455 <?php … … 472 472 473 473 <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> 475 475 </div> 476 476 … … 520 520 <li class="wp-notes-widget__settings__radio-checkbox-input-item font-style-item font-<?php echo $key ?>" > 521 521 <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> 523 523 </li> 524 524 <?php … … 537 537 add_settings_section( 538 538 '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 page539 esc_html__('Default Settings','wp-notes-widget'), // Title to be displayed on the administration page 540 540 'wp_notes_widget_default_settings_callback', // Callback used to render the description of the section 541 541 'wp_notes_widget_default_settings_page_partial' // Page on which to add this section of options … … 545 545 add_settings_field( 546 546 '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 element547 '<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 548 548 'wp_notes_widget_default_thumb_tack_color_callback', // The name of the function responsible for rendering the option interface 549 549 'wp_notes_widget_default_settings_page_partial', // The page on which this option will be displayed … … 553 553 add_settings_field( 554 554 '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>', 556 556 'wp_notes_widget_default_background_callback', 557 557 'wp_notes_widget_default_settings_page_partial', … … 561 561 add_settings_field( 562 562 '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>', 564 564 'wp_notes_widget_default_text_color_callback', 565 565 'wp_notes_widget_default_settings_page_partial', … … 569 569 add_settings_field( 570 570 '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>', 572 572 'wp_notes_widget_default_font_size_callback', 573 573 'wp_notes_widget_default_settings_page_partial', … … 577 577 add_settings_field( 578 578 '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>', 580 580 'wp_notes_widget_default_display_date_callback', 581 581 'wp_notes_widget_default_settings_page_partial', … … 585 585 add_settings_field( 586 586 '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>', 588 588 'wp_notes_widget_default_use_own_css_callback', 589 589 'wp_notes_widget_default_settings_page_partial', … … 593 593 add_settings_field( 594 594 '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>', 596 596 'wp_notes_widget_default_hide_if_empty_callback', 597 597 'wp_notes_widget_default_settings_page_partial', … … 601 601 add_settings_field( 602 602 '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>', 604 604 'wp_notes_widget_default_use_individual_notes_callback', 605 605 'wp_notes_widget_default_settings_page_partial', … … 609 609 add_settings_field( 610 610 '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>', 612 612 'wp_notes_widget_default_enable_social_sharing_callback', 613 613 'wp_notes_widget_default_settings_page_partial', … … 617 617 add_settings_field( 618 618 '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>', 620 620 'wp_notes_widget_default_do_not_force_uppercase_callback', 621 621 'wp_notes_widget_default_settings_page_partial', … … 624 624 add_settings_field( 625 625 '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>', 627 627 'wp_notes_widget_default_font_style_callback', 628 628 'wp_notes_widget_default_settings_page_partial', … … 662 662 663 663 <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> 665 665 <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'] ?>' > 666 666 </div> … … 685 685 ?> 686 686 <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> 688 688 689 689 <select id="wp_notes_widget__shortcode-defaults__max-width-units" name='wp_notes_widget_default_shortcode_settings[max_width_units]' > … … 713 713 } 714 714 ?> 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> 716 716 <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> 720 720 </div> 721 721 … … 738 738 } 739 739 ?> 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> 741 741 <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> 744 744 </div> 745 745 … … 749 749 add_settings_section( 750 750 '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 page751 esc_html__('Default Shortcode Settings','wp-notes-widget'), // Title to be displayed on the administration page 752 752 'wp_notes_widget_default_shortcode_settings_callback', // Callback used to render the description of the section 753 753 'wp_notes_widget_default_shortcode_settings_page_partial' // Page on which to add this section of options … … 756 756 add_settings_field( 757 757 '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>', 759 759 'wp_notes_widget_default_shortcode__max_width_callback', 760 760 'wp_notes_widget_default_shortcode_settings_page_partial', … … 764 764 add_settings_field( 765 765 '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>', 767 767 'wp_notes_widget_default_shortcode__max_width_units_callback', 768 768 'wp_notes_widget_default_shortcode_settings_page_partial', … … 771 771 add_settings_field( 772 772 '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>', 774 774 'wp_notes_widget_default_shortcode__alignment_callback', 775 775 'wp_notes_widget_default_shortcode_settings_page_partial', … … 778 778 add_settings_field( 779 779 '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>', 781 781 'wp_notes_widget_default_shortcode__direction_callback', 782 782 'wp_notes_widget_default_shortcode_settings_page_partial', -
wp-notes-widget/trunk/admin/admin-widget-view.php
r1738506 r2024975 3 3 <div id="wp-notes-widget-visual-settings-column" class="wp-notes-widget-admin-third"> 4 4 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> 9 9 <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); ?>" /> 10 10 </p> 11 11 12 12 <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> 14 14 15 15 <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> 24 24 </select> 25 25 </p> 26 26 27 27 <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> 29 29 30 30 <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> 39 39 </select> 40 40 </p> 41 41 42 42 <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> 44 44 45 45 <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> 53 53 </select> 54 54 </p> 55 55 56 56 <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> 58 58 59 59 <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> 83 83 84 84 </select> … … 88 88 </div> 89 89 <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> 91 91 92 92 <?php … … 99 99 <label> 100 100 <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'); ?> 102 102 </label> 103 103 <label> 104 104 <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'); ?> 106 106 </label> 107 107 <label> 108 108 <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'); ?> 110 110 </label> 111 111 <label> 112 112 <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'); ?> 114 114 </label> 115 115 </p> … … 143 143 ?> 144 144 <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'); ?> 146 146 </li> 147 147 <?php … … 153 153 </div> 154 154 <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> 156 156 </div> 157 157 </div> 158 158 <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> 160 160 161 161 <p> 162 162 <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> 164 164 165 165 </p> … … 167 167 <p> 168 168 <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> 170 170 171 171 </p> … … 173 173 <p> 174 174 <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> 176 176 177 177 </p> … … 179 179 <p> 180 180 <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> 182 182 183 183 </p> … … 185 185 <p> 186 186 <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> 188 188 189 189 </p> … … 191 191 <p> 192 192 <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> 194 194 </p> 195 195 196 196 <p> 197 197 <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> 199 199 </p> 200 200 … … 204 204 <section id="wp-notes-widget-font-settings-column" class="wp-notes-widget-admin-container" > 205 205 <h3> 206 <?php _e('Font Style', 'wp-notes-widget'); ?>206 <?php esc_html_e('Font Style', 'wp-notes-widget'); ?> 207 207 </h3> 208 208 … … 234 234 <li class="font-style-item font-<?php echo $key ?>" > 235 235 <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> 237 237 </li> 238 238 <?php … … 241 241 </ul> 242 242 <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 & 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 & 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> 245 245 </div> 246 246 </div> -
wp-notes-widget/trunk/admin/class-wp-notes-admin.php
r1738506 r2024975 67 67 'name_admin_bar' => _x( 'Note', 'add new on admin bar', 'wp-notes-widget' ), 68 68 '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' ) 78 78 ); 79 79 … … 126 126 $messages['nw-item'] = array( 127 127 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.' ), 132 132 /* 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.' ), 137 137 9 => sprintf( 138 __( 'Note scheduled for: <strong>%1$s</strong>.' ),138 esc_html__( 'Note scheduled for: <strong>%1$s</strong>.' ), 139 139 // 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 ) ) 141 141 ), 142 10 => __( 'Note draft updated.' )142 10 => esc_html__( 'Note draft updated.' ) 143 143 ); 144 144 … … 161 161 add_meta_box( 162 162 'WP_Notes_item_content', 163 __( 'Note Content', 'wp-notes-widget' ),163 esc_html__( 'Note Content', 'wp-notes-widget' ), 164 164 array( $this, 'WP_Notes_meta_display' ), 165 165 'nw-item', … … 170 170 add_meta_box( 171 171 'WP_Notes_item_twitter', 172 __( 'Auto Twitter Post', 'wp-notes-widget' ),172 esc_html__( 'Auto Twitter Post', 'wp-notes-widget' ), 173 173 array( $this, 'WP_Notes_twitter_post_display' ), 174 174 'nw-item', … … 674 674 // Localize the script with new data 675 675 $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' ) 682 682 ); 683 683 -
wp-notes-widget/trunk/admin/partials/admin-post-shortcode-editor-modal.php
r1738506 r2024975 6 6 <div class="modal-header"> 7 7 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</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> 9 9 </div> 10 10 <div class="modal-body"> 11 11 12 12 <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>'); ?> 14 14 </div> 15 15 16 16 <!-- Nav tabs --> 17 17 <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> 23 23 </ul> 24 24 … … 29 29 <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a> 30 30 <header> 31 <h4><?php _e('Visual Settings','wp-notes-widget'); ?></h4>31 <h4><?php esc_html_e('Visual Settings','wp-notes-widget'); ?></h4> 32 32 </header> 33 33 <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> 35 35 <input type="text" id="wp-notes-widget__settings__title" name="wp-notes-widget__settings__title" /> 36 36 </div> 37 37 <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> 39 39 <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> 48 48 </select> 49 49 </div> 50 50 51 51 <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> 53 53 <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> 62 62 </select> 63 63 </div> 64 64 65 65 <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> 67 67 <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> 75 75 </select> 76 76 </div> 77 77 78 78 <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> 80 80 <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> 91 91 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> 93 93 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> 104 104 </select> 105 105 </div> … … 109 109 <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a> 110 110 <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> 112 112 <p> 113 113 <?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>'; 115 115 ?> 116 116 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 );?> 118 118 119 119 </p> … … 123 123 <label> 124 124 <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'); ?> 126 126 </label> 127 127 <label> 128 128 <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'); ?> 130 130 </label> 131 131 </p> … … 159 159 ?> 160 160 <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'); ?> 162 162 </li> 163 163 <?php … … 168 168 </div> 169 169 <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> 171 171 </div> 172 172 </section> … … 174 174 <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a> 175 175 <header> 176 <h4><?php _e('General Settings', 'wp-notes-widget'); ?></h4>176 <h4><?php esc_html_e('General Settings', 'wp-notes-widget'); ?></h4> 177 177 </header> 178 178 … … 180 180 <li class="wp-notes-widget__settings__radio-checkbox-input-item" > 181 181 <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> 183 183 184 184 </li class="wp-notes-widget__settings__radio-checkbox-input-item" > … … 186 186 <li class="wp-notes-widget__settings__radio-checkbox-input-item" > 187 187 <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> 189 189 190 190 </li> … … 192 192 <li class="wp-notes-widget__settings__radio-checkbox-input-item" > 193 193 <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> 195 195 196 196 </li> … … 198 198 <li class="wp-notes-widget__settings__radio-checkbox-input-item" > 199 199 <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> 201 201 202 202 </li> … … 204 204 <li class="wp-notes-widget__settings__radio-checkbox-input-item" > 205 205 <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> 207 207 </li> 208 208 209 209 <li class="wp-notes-widget__settings__radio-checkbox-input-item" > 210 210 <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> 212 212 </li> 213 213 </ul> … … 216 216 <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a> 217 217 <header> 218 <h4><?php _e('Font Style', 'wp-notes-widget'); ?></h4>218 <h4><?php esc_html_e('Font Style', 'wp-notes-widget'); ?></h4> 219 219 </header> 220 220 <div class="font-style-selection-container" > … … 245 245 <li class="wp-notes-widget__settings__radio-checkbox-input-item font-style-item font-<?php echo $key ?>" > 246 246 <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> 248 248 </li> 249 249 <?php … … 256 256 <a href='#' class="wp-notes-widget__scroll-to-bottom hidden" ><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></a> 257 257 <header> 258 <h4><?php _e('Shortcode Settings', 'wp-notes-widget'); ?></h4>258 <h4><?php esc_html_e('Shortcode Settings', 'wp-notes-widget'); ?></h4> 259 259 </header> 260 260 261 261 <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> 264 264 <div class="wp-notes-widget__flex-container"> 265 265 <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']; ?>" > … … 275 275 276 276 <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> 278 278 <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> 282 282 </div> 283 283 </div> 284 284 285 285 <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> 287 287 <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> 290 290 </div> 291 291 </div> … … 297 297 <div class="col-sm-12"> 298 298 <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> 300 300 </div> 301 301 </div> … … 304 304 </div> 305 305 <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> 307 307 <!-- 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> 309 309 --> 310 310 </div> -
wp-notes-widget/trunk/gruntfile.js
r1427839 r2024975 25 25 } 26 26 } 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 } 27 38 } 39 28 40 }); 29 41 … … 31 43 grunt.loadNpmTasks('grunt-contrib-watch'); 32 44 grunt.loadNpmTasks('grunt-contrib-less'); 45 grunt.loadNpmTasks('grunt-pot'); 33 46 // Default task(s). 34 47 grunt.registerTask('default', ['less', 'watch']); -
wp-notes-widget/trunk/includes/class-wp-notes-widget.php
r1738506 r2024975 37 37 38 38 $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() ); 41 41 $widget_ops = array( 42 42 'classname' => $this->get_widget_slug().'-widget', -
wp-notes-widget/trunk/includes/class-wp-notes.php
r1738506 r2024975 72 72 73 73 $this->WP_Notes = 'wp-notes'; 74 $this->version = '1.0. 1';74 $this->version = '1.0.4'; 75 75 76 76 $this->load_dependencies(); -
wp-notes-widget/trunk/package.json
r1738506 r2024975 20 20 "grunt": "^0.4.5", 21 21 "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" 23 25 } 24 26 } -
wp-notes-widget/trunk/public/partials/public-widget-empty-list-item-partial.php
r1095544 r2024975 6 6 */ 7 7 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>'; 9 9 10 10 ?> -
wp-notes-widget/trunk/public/partials/public-widget-header-partial.php
r1294308 r2024975 7 7 <h3 ><?php echo $title; ?></h3> 8 8 <?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> 10 10 <?php } ?> 11 11 </div> -
wp-notes-widget/trunk/public/partials/public-widget-note-list-item-partial.php
r1427839 r2024975 52 52 <?php if((bool)$enable_social_share) { ?> 53 53 <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> 55 55 <?php } ?> 56 56 -
wp-notes-widget/trunk/wp-notes-widget.php
r1738506 r2024975 14 14 * Plugin Name: WP Notes Widget 15 15 * Description: 'Sticky note' style widget to display short, important, time sensitive information. 16 * Version: 1.0. 116 * Version: 1.0.4 17 17 * Author: Steve Puddick 18 18 * Author URI: http://webrockstar.net/
Note: See TracChangeset
for help on using the changeset viewer.