Changeset 821624
- Timestamp:
- 12/14/2013 02:39:32 AM (12 years ago)
- Location:
- post-thumbnail-extras/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (3 diffs)
-
i18n/post-thumbnail-extras.pot (modified) (1 diff)
-
php/options.php (modified) (5 diffs)
-
post-thumbnail-extras.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-thumbnail-extras/trunk/README.txt
r709640 r821624 4 4 Tags: post-thumbnail, post thumbnail, featured image, awesome, media library, shortcode, shortcodes 5 5 Requires at least: 2.5 6 Tested up to: 3. 66 Tested up to: 3.8 7 7 Stable tag: trunk 8 8 License: GPLv2 … … 55 55 == Changelog == 56 56 57 = 5.0 = 58 59 * Updated for wordpress 3.8 60 * Added code to check for pending operations on the Options → Media screen. 61 57 62 = 4.0 = 58 63 … … 75 80 == Upgrade Notice == 76 81 77 = 4.0 =82 = 5.0 = 78 83 79 Better shortcodesand bug fixes84 Upgrade for wordpress 3.8 and bug fixes -
post-thumbnail-extras/trunk/i18n/post-thumbnail-extras.pot
r705217 r821624 1 # Copyright (C) 201 3Post Thumbnail Extras1 # Copyright (C) 2010 Post Thumbnail Extras 2 2 # This file is distributed under the same license as the Post Thumbnail Extras package. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Post Thumbnail Extras 3.0\n"5 "Project-Id-Version: Post Thumbnail Extras 5.0\n" 6 6 "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-thumbnail-extras\n" 7 "POT-Creation-Date: 2013- 04-29 05:16:12+00:00\n"7 "POT-Creation-Date: 2013-12-12 16:40:43+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 201 3-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 14 15 #: php/options.php:10 16 msgid "Post Thumbnail Extra Sizes" 15 #. #-#-#-#-# post-thumbnail-extras.pot (Post Thumbnail Extras 5.0) #-#-#-#-# 16 #. Plugin Name of the plugin/theme 17 #: php/options.php:20 18 msgid "Post Thumbnail Extras" 17 19 msgstr "" 18 20 19 #: php/options.php: 2421 #: php/options.php:34 20 22 msgid "Post Thumbnail Extras - Display other post thumbnails" 21 23 msgstr "" 22 24 23 #: php/options.php:118 25 #: php/options.php:114 26 msgid "Create additional post thumbnail sizes here:" 27 msgstr "" 28 29 #: php/options.php:115 30 msgid "There are pending changes, are you sure that you want to leave?" 31 msgstr "" 32 33 #: php/options.php:157 24 34 msgid "Delete" 25 35 msgstr "" 26 36 27 #: php/options.php:1 19 php/options.php:20437 #: php/options.php:158 php/options.php:243 28 38 msgid "Width" 29 39 msgstr "" 30 40 31 #: php/options.php:1 20 php/options.php:20541 #: php/options.php:159 php/options.php:244 32 42 msgid "Height" 33 43 msgstr "" 34 44 35 #: php/options.php:1 2145 #: php/options.php:160 36 46 msgid "Crop to exact dimensions" 37 47 msgstr "" 38 48 39 #: php/options.php: 16149 #: php/options.php:200 40 50 msgid "Post Thumbnail Name must contain only alphanumeric characters and '-'." 41 51 msgstr "" 42 52 43 #: php/options.php: 17353 #: php/options.php:212 44 54 msgid "Consider using 0 for an unlimited size side (%s)" 45 55 msgstr "" 46 56 47 #: php/options.php: 19957 #: php/options.php:238 48 58 msgid "No additional image sizes defined" 49 59 msgstr "" 50 60 51 #: php/options.php:2 0361 #: php/options.php:242 52 62 msgid "Name" 53 63 msgstr "" 54 64 55 #: php/options.php:2 0665 #: php/options.php:245 56 66 msgid "Crop" 57 67 msgstr "" 58 68 59 #: php/options.php:2 4869 #: php/options.php:287 60 70 msgid "True" 61 71 msgstr "" 62 72 63 #: php/options.php:2 4873 #: php/options.php:287 64 74 msgid "False" 65 75 msgstr "" 66 76 67 #: php/shortcode.php: 4877 #: php/shortcode.php:68 68 78 msgid "Insert Shortcode" 69 msgstr ""70 71 #. Plugin Name of the plugin/theme72 msgid "Post Thumbnail Extras"73 79 msgstr "" 74 80 -
post-thumbnail-extras/trunk/php/options.php
r709027 r821624 18 18 public function admin_init() { 19 19 add_settings_field( 'ptx-post-thumbnails' 20 , '<b>' . __( 'Post Thumbnail Extra Sizes', PTX_DOMAIN ) . '</b>'20 , '<b>' . __( 'Post Thumbnail Extras', PTX_DOMAIN ) . '</b>' 21 21 . ' <a class="ptx-add-thumb" href="#">+</a>' 22 22 , array( $this, 'create_post_thumbnails_html' ) … … 43 43 public function create_post_thumbnails_html() { 44 44 $ptx_post_thumbnails = get_option( 'ptx_post_thumbnails' ); 45 $output = " </td></tr>";45 $output = "%s</td></tr>"; 46 46 if ( isset( $ptx_post_thumbnails ) and is_array( $ptx_post_thumbnails ) ){ 47 47 foreach ( $ptx_post_thumbnails as $thumbnail ){ … … 56 56 <script type="text/javascript" charset="utf-8"> 57 57 (function($){ 58 59 // Check for pending operations 60 var pending = false; 61 $(window).on("beforeunload", function(e) { 62 if (e.target.activeElement.name == "submit") 63 return; 64 if (pending) { 65 return "%s"; 66 } 67 }) 68 69 $("body").on("change", "input", function(){ 70 pending = true; 71 }); 72 58 73 $(function(){ 59 74 var post_template = $('#ptx-template').html(), counter = 0; 60 75 $('.ptx-add-thumb').click(function(e){ 76 pending = true; 61 77 e.preventDefault(); 62 78 var html = post_template.replace(/new-name/g, 'new-name-' + counter++); … … 64 80 }); 65 81 $('body').delegate('.ptx-delete-thumb', 'click', function(e){ 82 pending = true; 66 83 e.preventDefault(); 67 84 $(this).parents('tr').first().remove(); 68 85 }); 69 86 }) 87 70 88 })(jQuery); 71 89 </script> 72 90 <style type="text/css" media="all"> 91 .ptx-section { 92 width: 300px; 93 } 73 94 .ptx-add-thumb { 95 bottom: -2px; 74 96 color: #44bb44 !important; 75 97 font-size: 1.5em; 76 98 font-weight: bold; 99 position: relative; 77 100 text-decoration: none; 78 101 } … … 81 104 font-size: smaller; 82 105 } 106 .ptx-thumb-name { 107 position:relative; 108 left: -3px; 109 } 83 110 </style> 84 111 85 112 EOT; 86 echo( $output ); 113 echo( sprintf( $output 114 , __( "Create additional post thumbnail sizes here:") 115 , __( "There are pending changes, are you sure that you want to leave?" ) ) ); 87 116 } 88 117 -
post-thumbnail-extras/trunk/post-thumbnail-extras.php
r709027 r821624 5 5 Author: sewpafly 6 6 Author URI: http://sewpafly.github.io/post-thumbnail-editor/ 7 Version: 4.07 Version: 5.0 8 8 Description: Little things that make using post thumbnails easier 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.