Changeset 709309
- Timestamp:
- 05/07/2013 03:47:19 PM (13 years ago)
- Location:
- catablog/trunk
- Files:
-
- 2 added
- 16 edited
-
catablog.php (modified) (1 diff)
-
lib/CataBlog.class.php (modified) (3 diffs)
-
lib/CataBlogGallery.class.php (modified) (1 diff)
-
lib/CataBlogItem.class.php (modified) (1 diff)
-
lib/CataBlogWidget.class.php (modified) (1 diff)
-
localization/catablog-fr_FR.mo (modified) (previous)
-
localization/catablog-fr_FR.po (modified) (2 diffs)
-
localization/catablog-ru_RU.mo (added)
-
localization/catablog-ru_RU.po (added)
-
readme.txt (modified) (4 diffs)
-
templates/admin-edit.php (modified) (4 diffs)
-
templates/admin-galleries.php (modified) (1 diff)
-
templates/admin-library.php (modified) (5 diffs)
-
templates/admin-new.php (modified) (1 diff)
-
templates/admin-options.php (modified) (1 diff)
-
templates/admin-regenerate.php (modified) (1 diff)
-
templates/admin-rescan.php (modified) (1 diff)
-
templates/admin-templates-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
catablog/trunk/catablog.php
r534363 r709309 4 4 Plugin URI: http://catablog.illproductions.com/ 5 5 Description: 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. 36 Version: 1.6.4 7 7 Author: Zachary Segal 8 8 Author URI: http://catablog.illproductions.com/about/ -
catablog/trunk/lib/CataBlog.class.php
r534363 r709309 5 5 * This file contains the core class for the CataBlog WordPress Plugin. 6 6 * @author Zachary Segal <zac@illproductions.com> 7 * @version 1.6. 37 * @version 1.6.4 8 8 * @package catablog 9 9 */ … … 19 19 20 20 // plugin version number and blog url 21 private $version = "1.6. 3";21 private $version = "1.6.4"; 22 22 private $blog_url = 'http://catablog.illproductions.com/'; 23 23 private $debug = false; … … 2296 2296 2297 2297 $javascript[] = "var js_i18n=new Object;"; 2298 $javascript[] = 'js_i18n.prev_tip="'. __("You may also press "P" or the left arrow on your keyboard", 'catablog').'";';2299 $javascript[] = 'js_i18n.next_tip="'. __("You may also press "N" 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 "P" or the left arrow on your keyboard", 'catablog')).'";'; 2299 $javascript[] = 'js_i18n.next_tip="'.addslashes(__("You may also press "N" 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'))."';"; 2304 2304 2305 2305 $javascript[] = "jQuery(document).ready(function(){ jQuery('$selector').catablogLightbox($lightbox_navigation); });"; -
catablog/trunk/lib/CataBlogGallery.class.php
r534363 r709309 5 5 * This file contains the class for each CataBlog Item that is fetched from the database. 6 6 * @author Zachary Segal <zac@illproductions.com> 7 * @version 1.6. 37 * @version 1.6.4 8 8 * @package catablog 9 9 */ -
catablog/trunk/lib/CataBlogItem.class.php
r534363 r709309 5 5 * This file contains the class for each CataBlog Item that is fetched from the database. 6 6 * @author Zachary Segal <zac@illproductions.com> 7 * @version 1.6. 37 * @version 1.6.4 8 8 * @package catablog 9 9 */ -
catablog/trunk/lib/CataBlogWidget.class.php
r534363 r709309 5 5 * This file contains the widget classes for the CataBlog WordPress Plugin. 6 6 * @author Zachary Segal <zac@illproductions.com> 7 * @version 1.6. 37 * @version 1.6.4 8 8 * @package catablog 9 9 */ -
catablog/trunk/localization/catablog-fr_FR.po
r530838 r709309 6 6 "Report-Msgid-Bugs-To: \n" 7 7 "POT-Creation-Date: 2012-04-13 14:48-0800\n" 8 "PO-Revision-Date: 201 2-04-13 14:48-0800\n"8 "PO-Revision-Date: 2013-05-07 08:30-0800\n" 9 9 "Last-Translator: Zachary Segal <zac@illproductions.com>\n" 10 10 "Language-Team: ezion <youpsee@gmail.com>\n" … … 421 421 #: ../lib/CataBlog.class.php:2299 422 422 msgid "You may also press "N" or the right arrow on your keyboard" 423 msgstr "Vous pouvez également appuyer sur " N" ou sur la flèche droite de votre clavier"423 msgstr "Vous pouvez également appuyer sur "N" ou sur la flèche droite de votre clavier" 424 424 425 425 #: ../lib/CataBlog.class.php:2300 -
catablog/trunk/readme.txt
r653911 r709309 4 4 Tags: 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 5 5 Requires at least: 3.3 6 Tested up to: 3.5 6 Tested up to: 3.5.1 7 7 Stable tag: 1.6.3 8 8 … … 64 64 The CataBlog Admin section is made and tested to work best with these browsers: 65 65 66 1. Internet Explorer 9 67 1. FireFox 11 68 1. Safari 5 69 1. Chrome 17 66 1. Internet Explorer 9+ 67 1. FireFox 11+ 68 1. Safari 5+ 69 1. Chrome 17+ 70 70 1. JavaScript should be enabled for full support. 71 71 … … 103 103 104 104 == Changelog == 105 106 = 1.6.4 = 107 * New: Added Russian localization. (Thanks Дмитрий) 108 * Fix: Localized strings are properly escaped for JavaScript syntax. 105 109 106 110 = 1.6.3 = … … 390 394 = 1.6.3 = 391 395 392 This version of CataBlog has patched some vitalsecurity holes, we recommend you upgrade to this version or better as soon as possible.396 This version of CataBlog fixes a few security holes, we recommend you upgrade to this version or better as soon as possible. 393 397 394 398 = 1.2.5 = -
catablog/trunk/templates/admin-edit.php
r524478 r709309 491 491 492 492 // 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")); ?>')) { 494 494 return false; 495 495 } … … 547 547 var category_name = $('#catablog-new-category-input').val(); 548 548 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")); ?>'); 550 550 return false; 551 551 } … … 572 572 html += ' <input id="in-category-'+json.id+'" class="term-id" type="checkbox" name="categories[]" value="'+json.id+'" /> '; 573 573 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>'; 575 575 html += ' <span class="term-name">'+json.name+'</span> '; 576 576 html += '</label></li>'; … … 619 619 // BIND DELETE SUB IMAGE 620 620 $('#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")); ?>')) { 622 622 return false; 623 623 } -
catablog/trunk/templates/admin-galleries.php
r534363 r709309 152 152 // BIND TRASH CATALOG ITEM WARNING 153 153 $('.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")); ?>')); 155 155 }); 156 156 -
catablog/trunk/templates/admin-library.php
r534363 r709309 274 274 275 275 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")); ?>'); 277 277 return false; 278 278 } … … 281 281 var checked_catalog_items = $('#catablog_items input.bulk_selection:checked'); 282 282 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")); ?>'); 284 284 return false; 285 285 } … … 328 328 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>"); ?>'; 329 329 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")); ?>'); 331 331 332 332 renderCataBlogItems(images, 'thumbnail', nonce, 'id', function() { … … 353 353 // delete multiple catalog items 354 354 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")); ?>')) { 356 356 return false; 357 357 } … … 382 382 // BIND TRASH CATALOG ITEM WARNING 383 383 $('.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")); ?>')); 385 385 }); 386 386 -
catablog/trunk/templates/admin-new.php
r530481 r709309 259 259 // if the button is disabled, stop the script 260 260 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')); ?>"); 262 262 return false; 263 263 } -
catablog/trunk/templates/admin-options.php
r530838 r709309 578 578 $('#catablog-options').bind('submit', function(event) { 579 579 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')); ?>"); 581 581 return false; 582 582 } -
catablog/trunk/templates/admin-regenerate.php
r530838 r709309 39 39 var images = ["<?php echo implode('", "', $image_names) ?>"]; 40 40 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")); ?>'; 42 42 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")); ?>'); 44 44 45 45 renderCataBlogItems(images, 'thumbnail', nonce, 'img-name', function() { -
catablog/trunk/templates/admin-rescan.php
r383790 r709309 47 47 <?php endif ?> 48 48 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")); ?>'); 50 50 51 51 /**************************************** -
catablog/trunk/templates/admin-templates-editor.php
r530838 r709309 166 166 167 167 $('#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")); ?>')) { 169 169 return false; 170 170 }
Note: See TracChangeset
for help on using the changeset viewer.