Plugin Directory

Changeset 821624


Ignore:
Timestamp:
12/14/2013 02:39:32 AM (12 years ago)
Author:
sewpafly
Message:

version 5.0

Location:
post-thumbnail-extras/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • post-thumbnail-extras/trunk/README.txt

    r709640 r821624  
    44Tags: post-thumbnail, post thumbnail, featured image, awesome, media library, shortcode, shortcodes
    55Requires at least: 2.5
    6 Tested up to: 3.6
     6Tested up to: 3.8
    77Stable tag: trunk
    88License: GPLv2
     
    5555== Changelog ==
    5656
     57= 5.0 =
     58
     59* Updated for wordpress 3.8
     60* Added code to check for pending operations on the Options → Media screen.
     61
    5762= 4.0 =
    5863
     
    7580== Upgrade Notice ==
    7681
    77 = 4.0 =
     82= 5.0 =
    7883
    79 Better shortcodes and bug fixes
     84Upgrade for wordpress 3.8 and bug fixes
  • post-thumbnail-extras/trunk/i18n/post-thumbnail-extras.pot

    r705217 r821624  
    1 # Copyright (C) 2013 Post Thumbnail Extras
     1# Copyright (C) 2010 Post Thumbnail Extras
    22# This file is distributed under the same license as the Post Thumbnail Extras package.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Post Thumbnail Extras 3.0\n"
     5"Project-Id-Version: Post Thumbnail Extras 5.0\n"
    66"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"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
     11"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1313"Language-Team: LANGUAGE <LL@li.org>\n"
    1414
    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
     18msgid "Post Thumbnail Extras"
    1719msgstr ""
    1820
    19 #: php/options.php:24
     21#: php/options.php:34
    2022msgid "Post Thumbnail Extras - Display other post thumbnails"
    2123msgstr ""
    2224
    23 #: php/options.php:118
     25#: php/options.php:114
     26msgid "Create additional post thumbnail sizes here:"
     27msgstr ""
     28
     29#: php/options.php:115
     30msgid "There are pending changes, are you sure that you want to leave?"
     31msgstr ""
     32
     33#: php/options.php:157
    2434msgid "Delete"
    2535msgstr ""
    2636
    27 #: php/options.php:119 php/options.php:204
     37#: php/options.php:158 php/options.php:243
    2838msgid "Width"
    2939msgstr ""
    3040
    31 #: php/options.php:120 php/options.php:205
     41#: php/options.php:159 php/options.php:244
    3242msgid "Height"
    3343msgstr ""
    3444
    35 #: php/options.php:121
     45#: php/options.php:160
    3646msgid "Crop to exact dimensions"
    3747msgstr ""
    3848
    39 #: php/options.php:161
     49#: php/options.php:200
    4050msgid "Post Thumbnail Name must contain only alphanumeric characters and '-'."
    4151msgstr ""
    4252
    43 #: php/options.php:173
     53#: php/options.php:212
    4454msgid "Consider using 0 for an unlimited size side (%s)"
    4555msgstr ""
    4656
    47 #: php/options.php:199
     57#: php/options.php:238
    4858msgid "No additional image sizes defined"
    4959msgstr ""
    5060
    51 #: php/options.php:203
     61#: php/options.php:242
    5262msgid "Name"
    5363msgstr ""
    5464
    55 #: php/options.php:206
     65#: php/options.php:245
    5666msgid "Crop"
    5767msgstr ""
    5868
    59 #: php/options.php:248
     69#: php/options.php:287
    6070msgid "True"
    6171msgstr ""
    6272
    63 #: php/options.php:248
     73#: php/options.php:287
    6474msgid "False"
    6575msgstr ""
    6676
    67 #: php/shortcode.php:48
     77#: php/shortcode.php:68
    6878msgid "Insert Shortcode"
    69 msgstr ""
    70 
    71 #. Plugin Name of the plugin/theme
    72 msgid "Post Thumbnail Extras"
    7379msgstr ""
    7480
  • post-thumbnail-extras/trunk/php/options.php

    r709027 r821624  
    1818    public function admin_init() {
    1919        add_settings_field( 'ptx-post-thumbnails'
    20             , '<b>' . __( 'Post Thumbnail Extra Sizes', PTX_DOMAIN ) . '</b>'
     20            , '<b>' . __( 'Post Thumbnail Extras', PTX_DOMAIN ) . '</b>'
    2121                . '&nbsp;<a class="ptx-add-thumb" href="#">+</a>'
    2222            , array( $this, 'create_post_thumbnails_html' )
     
    4343    public function create_post_thumbnails_html() {
    4444        $ptx_post_thumbnails = get_option( 'ptx_post_thumbnails' );
    45         $output = "</td></tr>";
     45        $output = "%s</td></tr>";
    4646        if ( isset( $ptx_post_thumbnails ) and is_array( $ptx_post_thumbnails ) ){
    4747            foreach ( $ptx_post_thumbnails as $thumbnail ){
     
    5656        <script type="text/javascript" charset="utf-8">
    5757            (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
    5873                $(function(){
    5974                    var post_template = $('#ptx-template').html(), counter = 0;
    6075                    $('.ptx-add-thumb').click(function(e){
     76                        pending = true;
    6177                        e.preventDefault();
    6278                        var html = post_template.replace(/new-name/g, 'new-name-' + counter++);
     
    6480                    });
    6581                    $('body').delegate('.ptx-delete-thumb', 'click', function(e){
     82                        pending = true;
    6683                        e.preventDefault();
    6784                        $(this).parents('tr').first().remove();
    6885                    });
    6986                })
     87
    7088            })(jQuery);
    7189        </script>
    7290        <style type="text/css" media="all">
     91            .ptx-section {
     92                width: 300px;
     93            }
    7394            .ptx-add-thumb {
     95                bottom: -2px;
    7496                color: #44bb44 !important;
    7597                font-size: 1.5em;
    7698                font-weight: bold;
     99                position: relative;
    77100                text-decoration: none;
    78101            }
     
    81104                font-size: smaller;
    82105            }
     106            .ptx-thumb-name {
     107                position:relative;
     108                left: -3px;
     109            }
    83110        </style>
    84111
    85112EOT;
    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?" ) ) );
    87116    }
    88117
  • post-thumbnail-extras/trunk/post-thumbnail-extras.php

    r709027 r821624  
    55Author: sewpafly
    66Author URI: http://sewpafly.github.io/post-thumbnail-editor/
    7 Version: 4.0
     7Version: 5.0
    88Description: Little things that make using post thumbnails easier
    99*/
Note: See TracChangeset for help on using the changeset viewer.