Plugin Directory

Changeset 709309


Ignore:
Timestamp:
05/07/2013 03:47:19 PM (13 years ago)
Author:
macguru2000
Message:

Release 1.6.4

  • New: Added Russian localization.
  • Fix: Localized strings are properly escaped for JavaScript syntax.
Location:
catablog/trunk
Files:
2 added
16 edited

Legend:

Unmodified
Added
Removed
  • catablog/trunk/catablog.php

    r534363 r709309  
    44Plugin URI: http://catablog.illproductions.com/
    55Description: CataBlog is a comprehensive and effortless tool that helps you create, organize and share catalogs, stores, galleries and portfolios on your blog.
    6 Version: 1.6.3
     6Version: 1.6.4
    77Author: Zachary Segal
    88Author URI: http://catablog.illproductions.com/about/
  • catablog/trunk/lib/CataBlog.class.php

    r534363 r709309  
    55 * This file contains the core class for the CataBlog WordPress Plugin.
    66 * @author Zachary Segal <zac@illproductions.com>
    7  * @version 1.6.3
     7 * @version 1.6.4
    88 * @package catablog
    99 */
     
    1919   
    2020    // plugin version number and blog url
    21     private $version     = "1.6.3";
     21    private $version     = "1.6.4";
    2222    private $blog_url    = 'http://catablog.illproductions.com/';
    2323    private $debug       = false;
     
    22962296               
    22972297                $javascript[] = "var js_i18n=new Object;";
    2298                 $javascript[] = 'js_i18n.prev_tip="'.__("You may also press &quot;P&quot; or the left arrow on your keyboard", 'catablog').'";';
    2299                 $javascript[] = 'js_i18n.next_tip="'.__("You may also press &quot;N&quot; or the right arrow on your keyboard", 'catablog').'";';
    2300                 $javascript[] = "js_i18n.close_tip='".__('Close LightBox Now', 'catablog')."';";
    2301                 $javascript[] = "js_i18n.prev_label='".__('PREV', 'catablog')."';";
    2302                 $javascript[] = "js_i18n.next_label='".__('NEXT', 'catablog')."';";
    2303                 $javascript[] = "js_i18n.close_label='".__('CLOSE', 'catablog')."';";
     2298                $javascript[] = 'js_i18n.prev_tip="'.addslashes(__("You may also press &quot;P&quot; or the left arrow on your keyboard", 'catablog')).'";';
     2299                $javascript[] = 'js_i18n.next_tip="'.addslashes(__("You may also press &quot;N&quot; or the right arrow on your keyboard", 'catablog')).'";';
     2300                $javascript[] = "js_i18n.close_tip='".addslashes(__('Close LightBox Now', 'catablog'))."';";
     2301                $javascript[] = "js_i18n.prev_label='".addslashes(__('PREV', 'catablog'))."';";
     2302                $javascript[] = "js_i18n.next_label='".addslashes(__('NEXT', 'catablog'))."';";
     2303                $javascript[] = "js_i18n.close_label='".addslashes(__('CLOSE', 'catablog'))."';";
    23042304               
    23052305                $javascript[] = "jQuery(document).ready(function(){ jQuery('$selector').catablogLightbox($lightbox_navigation); });";
  • catablog/trunk/lib/CataBlogGallery.class.php

    r534363 r709309  
    55 * This file contains the class for each CataBlog Item that is fetched from the database.
    66 * @author Zachary Segal <zac@illproductions.com>
    7  * @version 1.6.3
     7 * @version 1.6.4
    88 * @package catablog
    99 */
  • catablog/trunk/lib/CataBlogItem.class.php

    r534363 r709309  
    55 * This file contains the class for each CataBlog Item that is fetched from the database.
    66 * @author Zachary Segal <zac@illproductions.com>
    7  * @version 1.6.3
     7 * @version 1.6.4
    88 * @package catablog
    99 */
  • catablog/trunk/lib/CataBlogWidget.class.php

    r534363 r709309  
    55 * This file contains the widget classes for the CataBlog WordPress Plugin.
    66 * @author Zachary Segal <zac@illproductions.com>
    7  * @version 1.6.3
     7 * @version 1.6.4
    88 * @package catablog
    99 */
  • catablog/trunk/localization/catablog-fr_FR.po

    r530838 r709309  
    66"Report-Msgid-Bugs-To: \n"
    77"POT-Creation-Date: 2012-04-13 14:48-0800\n"
    8 "PO-Revision-Date: 2012-04-13 14:48-0800\n"
     8"PO-Revision-Date: 2013-05-07 08:30-0800\n"
    99"Last-Translator: Zachary Segal <zac@illproductions.com>\n"
    1010"Language-Team: ezion <youpsee@gmail.com>\n"
     
    421421#: ../lib/CataBlog.class.php:2299
    422422msgid "You may also press &quot;N&quot; or the right arrow on your keyboard"
    423 msgstr "Vous pouvez également appuyer sur &quotN&quot; ou sur la flèche droite de votre clavier"
     423msgstr "Vous pouvez également appuyer sur &quot;N&quot; ou sur la flèche droite de votre clavier"
    424424
    425425#: ../lib/CataBlog.class.php:2300
  • catablog/trunk/readme.txt

    r653911 r709309  
    44Tags: plugin, admin, image, images, posts, Post, widget, links, catalog, gallery, portfolio, product catalog, discography, library, collection, store, organize, media, photo, thumbnail, product, listing, list, BuddyPress, ecommerce
    55Requires at least: 3.3
    6 Tested up to: 3.5
     6Tested up to: 3.5.1
    77Stable tag: 1.6.3
    88
     
    6464The CataBlog Admin section is made and tested to work best with these browsers:
    6565
    66 1. Internet Explorer 9
    67 1. FireFox 11
    68 1. Safari 5
    69 1. Chrome 17
     661. Internet Explorer 9+
     671. FireFox 11+
     681. Safari 5+
     691. Chrome 17+
    70701. JavaScript should be enabled for full support.
    7171
     
    103103
    104104== Changelog ==
     105
     106= 1.6.4 =
     107* New: Added Russian localization. (Thanks Дмитрий)
     108* Fix: Localized strings are properly escaped for JavaScript syntax.
    105109
    106110= 1.6.3 =
     
    390394= 1.6.3 =
    391395
    392 This version of CataBlog has patched some vital security holes, we recommend you upgrade to this version or better as soon as possible.
     396This version of CataBlog fixes a few security holes, we recommend you upgrade to this version or better as soon as possible.
    393397
    394398= 1.2.5 =
  • catablog/trunk/templates/admin-edit.php

    r524478 r709309  
    491491           
    492492            // confirm the deletion of the category
    493             if (!confirm('<?php _e("Are you sure you want to delete this category? You can not undo this.", "catablog") ?>')) {
     493            if (!confirm('<?php echo addslashes(__("Are you sure you want to delete this category? You can not undo this.", "catablog")); ?>')) {
    494494                return false;
    495495            }
     
    547547            var category_name = $('#catablog-new-category-input').val();
    548548            if (category_name == '') {
    549                 alert('<?php _e("Please make sure to enter a category name", "catablog") ?>');
     549                alert('<?php echo addslashes(__("Please make sure to enter a category name", "catablog")); ?>');
    550550                return false;
    551551            }
     
    572572                        html    += ' <input id="in-category-'+json.id+'" class="term-id" type="checkbox" name="categories[]" value="'+json.id+'" /> ';
    573573                        html    += ' <input class="term-slug" type="hidden" value="'+json.slug+'" />'
    574                         html    += ' <a href="#edit-category-'+json.id+'" class="catablog-category-edit hide"><small><?php _e("EDIT", "catablog"); ?></small></a>';
     574                        html    += ' <a href="#edit-category-'+json.id+'" class="catablog-category-edit hide"><small><?php echo addslashes(__("EDIT", "catablog")); ?></small></a>';
    575575                        html    += ' <span class="term-name">'+json.name+'</span> ';
    576576                        html    += '</label></li>';
     
    619619        // BIND DELETE SUB IMAGE
    620620        $('#catablog-sub-images .catablog-delete-subimage').bind('click', function(event) {
    621             if (!confirm('<?php _e("Are you sure you want to permanently delete this image?", "catablog") ?>')) {
     621            if (!confirm('<?php echo addslashes(__("Are you sure you want to permanently delete this image?", "catablog")); ?>')) {
    622622                return false;
    623623            }
  • catablog/trunk/templates/admin-galleries.php

    r534363 r709309  
    152152        // BIND TRASH CATALOG ITEM WARNING
    153153        $('.remove_link').bind('click', function(event) {
    154             return (confirm('<?php _e("Are you sure you want to permanently delete this gallery?", "catablog"); ?>'));
     154            return (confirm('<?php echo addslashes(__("Are you sure you want to permanently delete this gallery?", "catablog")); ?>'));
    155155        });
    156156       
  • catablog/trunk/templates/admin-library.php

    r534363 r709309  
    274274           
    275275            if ($('#bulk-action').val().length < 1) {
    276                 alert('<?php _e("Please select a bulk action to apply.", "catablog"); ?>');
     276                alert('<?php echo addslashes(__("Please select a bulk action to apply.", "catablog")); ?>');
    277277                return false;
    278278            }
     
    281281            var checked_catalog_items = $('#catablog_items input.bulk_selection:checked');
    282282            if (checked_catalog_items.size() < 1) {
    283                 alert('<?php _e("Please select at least one catalog item first.", "catablog"); ?>');
     283                alert('<?php echo addslashes(__("Please select at least one catalog item first.", "catablog")); ?>');
    284284                return false;
    285285            }
     
    328328                var message = '<?php printf(__("Image rendering is now complete, please clear your browser cache and %srefresh the page%s.", "catablog"), "<a href=\"admin.php?page=catablog\">", "</a>"); ?>';
    329329
    330                 discourage_leaving_page('<?php _e("Please allow the rendering to complete before leaving this page. Click cancel to go back and let the rendering complete.", "catablog"); ?>');
     330                discourage_leaving_page('<?php echo addslashes(__("Please allow the rendering to complete before leaving this page. Click cancel to go back and let the rendering complete.", "catablog")); ?>');
    331331
    332332                renderCataBlogItems(images, 'thumbnail', nonce, 'id', function() {
     
    353353            // delete multiple catalog items
    354354            if ($('#bulk-action').val() == 'delete') {
    355                 if (!confirm('<?php _e("Are you sure you want to delete multiple items?", "catablog"); ?>')) {
     355                if (!confirm('<?php echo addslashes(__("Are you sure you want to delete multiple items?", "catablog")); ?>')) {
    356356                    return false;
    357357                }
     
    382382        // BIND TRASH CATALOG ITEM WARNING
    383383        $('.remove_link').bind('click', function(event) {
    384             return (confirm('<?php _e("Are you sure you want to permanently delete this catalog items?", "catablog"); ?>'));
     384            return (confirm('<?php echo addslashes(__("Are you sure you want to permanently delete this catalog items?", "catablog")); ?>'));
    385385        });
    386386       
  • catablog/trunk/templates/admin-new.php

    r530481 r709309  
    259259        // if the button is disabled, stop the script
    260260        if (button.attr('disabled') != undefined) {
    261             alert("<?php _e('There are errors, please correct them before saving.', 'catablog'); ?>");
     261            alert("<?php echo addslashes(__('There are errors, please correct them before saving.', 'catablog')); ?>");
    262262            return false;
    263263        }
  • catablog/trunk/templates/admin-options.php

    r530838 r709309  
    578578        $('#catablog-options').bind('submit', function(event) {
    579579            if (jQuery('#catablog-options .catablog-form-field.error:not(.hidden)').size() > 0) {
    580                 alert("<?php _e('There are errors, please correct them before saving.', 'catablog'); ?>");
     580                alert("<?php echo addslashes(__('There are errors, please correct them before saving.', 'catablog')); ?>");
    581581                return false;
    582582            }
  • catablog/trunk/templates/admin-regenerate.php

    r530838 r709309  
    3939        var images  = ["<?php echo implode('", "', $image_names) ?>"];
    4040        var nonce   = '<?php echo wp_create_nonce("catablog-render-images") ?>';
    41         var message = '<?php _e("Image rendering is now complete, you may now go to any other admin panel you may want.", "catablog"); ?>';
     41        var message = '<?php echo addslashes(__("Image rendering is now complete, you may now go to any other admin panel you may want.", "catablog")); ?>';
    4242       
    43         discourage_leaving_page('<?php _e("Please allow the rendering to complete before leaving this page. Click cancel to go back and let the rendering complete.", "catablog"); ?>');
     43        discourage_leaving_page('<?php echo addslashes(__("Please allow the rendering to complete before leaving this page. Click cancel to go back and let the rendering complete.", "catablog")); ?>');
    4444       
    4545        renderCataBlogItems(images, 'thumbnail', nonce, 'img-name', function() {
  • catablog/trunk/templates/admin-rescan.php

    r383790 r709309  
    4747        <?php endif ?>
    4848       
    49         discourage_leaving_page('<?php _e("Please allow the rendering to complete before leaving this page. Click cancel to go back and let the rendering complete.", "catablog"); ?>');
     49        discourage_leaving_page('<?php echo addslashes(__("Please allow the rendering to complete before leaving this page. Click cancel to go back and let the rendering complete.", "catablog")); ?>');
    5050       
    5151        /****************************************
  • catablog/trunk/templates/admin-templates-editor.php

    r530838 r709309  
    166166       
    167167        $('#catablog-template-delete-form').submit(function() {
    168             if (false == confirm('<?php _e("Are you sure you want to delete this template?", "catablog"); ?>')) {
     168            if (false == confirm('<?php echo addslashes(__("Are you sure you want to delete this template?", "catablog")); ?>')) {
    169169                return false;
    170170            }
Note: See TracChangeset for help on using the changeset viewer.