Changeset 813937
- Timestamp:
- 12/02/2013 08:43:37 PM (12 years ago)
- Location:
- slideshow-jquery-image-gallery/trunk
- Files:
-
- 12 edited
-
classes/SlideshowPluginGeneralSettings.php (modified) (1 diff)
-
classes/SlideshowPluginPostType.php (modified) (1 diff)
-
classes/SlideshowPluginShortcode.php (modified) (1 diff)
-
classes/SlideshowPluginSlideInserter.php (modified) (5 diffs)
-
js/min/all.backend.min.js (modified) (1 diff)
-
js/min/all.frontend.min.js (modified) (1 diff)
-
languages/slideshow-plugin-fa_IR.mo (modified) (previous)
-
languages/slideshow-plugin-fa_IR.po (modified) (35 diffs)
-
languages/slideshow-plugin-original.mo (modified) (previous)
-
languages/slideshow-plugin-original.po (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
style/SlideshowPlugin/functional.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
slideshow-jquery-image-gallery/trunk/classes/SlideshowPluginGeneralSettings.php
r761395 r813937 61 61 62 62 // Localize 63 add_action('admin_enqueue_scripts', array(__CLASS__, 'localizeScript') );63 add_action('admin_enqueue_scripts', array(__CLASS__, 'localizeScript'), 11); 64 64 } 65 65 -
slideshow-jquery-image-gallery/trunk/classes/SlideshowPluginPostType.php
r761395 r813937 22 22 add_action('init' , array(__CLASS__, 'registerSlideshowPostType')); 23 23 add_action('save_post' , array('SlideshowPluginSlideshowSettingsHandler', 'save')); 24 add_action('admin_enqueue_scripts', array('SlideshowPluginSlideInserter', 'localizeScript') );24 add_action('admin_enqueue_scripts', array('SlideshowPluginSlideInserter', 'localizeScript'), 11); 25 25 } 26 26 -
slideshow-jquery-image-gallery/trunk/classes/SlideshowPluginShortcode.php
r772460 r813937 38 38 39 39 // Enqueue shortcode inserter script 40 add_action('admin_enqueue_scripts', array(__CLASS__, 'localizeScript') );40 add_action('admin_enqueue_scripts', array(__CLASS__, 'localizeScript'), 11); 41 41 } 42 42 } -
slideshow-jquery-image-gallery/trunk/classes/SlideshowPluginSlideInserter.php
r765971 r813937 11 11 class SlideshowPluginSlideInserter 12 12 { 13 /** @var bool $localizedScript Flag to see if localizeScript function has been called */14 private static $localizedScript;15 16 13 /** 17 14 * Returns the html for showing the image insert button. 18 * Localizes script unless $localizeScript is set to false. 19 * 20 * @since 2.0.0 21 * @param boolean $localizeScript 15 * 16 * @since 2.0.0 22 17 * @return String $button 23 18 */ 24 static function getImageSlideInsertButton($localizeScript = true) 25 { 26 if ($localizeScript) 27 { 28 self::localizeScript(); 29 } 30 19 static function getImageSlideInsertButton() 20 { 31 21 // Put popup html in footer 32 22 add_action('admin_footer', array(__CLASS__, 'includePopup')); … … 40 30 /** 41 31 * Returns the html for showing the text insert button. 42 * Localizes script unless $localizeScript is set to false. 43 * 44 * @since 2.0.0 45 * @param boolean $localizeScript 32 * 33 * @since 2.0.0 46 34 * @return String $button 47 35 */ 48 static function getTextSlideInsertButton($localizeScript = true) 49 { 50 if ($localizeScript) 51 { 52 self::localizeScript(); 53 } 54 36 static function getTextSlideInsertButton() 37 { 55 38 // Return button html 56 39 ob_start(); … … 61 44 /** 62 45 * Returns the html for showing the video insert button. 63 * Localizes script unless $localizeScript is set to false.64 46 * 65 47 * @since 2.1.0 66 * @param boolean $localizeScript67 48 * @return String $button 68 49 */ 69 static function getVideoSlideInsertButton($localizeScript = true) 70 { 71 if ($localizeScript) 72 { 73 self::localizeScript(); 74 } 75 50 static function getVideoSlideInsertButton() 51 { 76 52 // Return button html 77 53 ob_start(); … … 295 271 { 296 272 // Return if function doesn't exist 297 if (!function_exists('get_current_screen') || 298 self::$localizedScript) 273 if (!function_exists('get_current_screen')) 299 274 { 300 275 return; … … 320 295 ) 321 296 ); 322 323 // Set enqueued to true324 self::$localizedScript = true;325 297 } 326 298 } -
slideshow-jquery-image-gallery/trunk/js/min/all.backend.min.js
r778924 r813937 1 /** 2 * Slideshow backend script 3 * 4 * @author Stefan Boonstra 5 * @version 2.2.12 6 */ 7 slideshow_jquery_image_gallery_backend_script = function() 8 { 9 var $ = jQuery, 10 self = {}; 11 12 self.isBackendInitialized = false; 13 14 /** 15 * Called by either jQuery's document ready event or JavaScript's window load event in case document ready fails to 16 * fire. 17 * 18 * Triggers the slideshowBackendReady on the document to inform all backend scripts they can start. 19 */ 20 self.init = function() 21 { 22 if (self.isBackendInitialized) 23 { 24 return; 25 } 26 27 self.isBackendInitialized = true; 28 29 $(document).trigger('slideshowBackendReady'); 30 }; 31 32 $(document).ready(self.init); 33 34 $(window).load(self.init); 35 36 return self; 37 }(); 38 39 // @codekit-append backend/generalSettings.js 40 // @codekit-append backend/editSlideshow.js 41 // @codekit-append backend/shortcode.js 42 43 ///** 44 // * Simple logging function for Internet Explorer 45 // * 46 // * @param message 47 // */ 48 //function log(message) 49 //{ 50 // var $ = jQuery; 51 // 52 // $('body').prepend('<p style="color: red;">' + message + '</p>'); 53 //} 54 55 slideshow_jquery_image_gallery_backend_script.generalSettings = function() 56 { 57 var $ = jQuery, 58 self = { }; 59 60 self.isCurrentPage = false; 61 62 /** 63 * 64 */ 65 self.init = function() 66 { 67 if (window.pagenow === 'slideshow_page_general_settings') 68 { 69 self.isCurrentPage = true; 70 71 self.activateUserCapabilities(); 72 } 73 }; 74 75 /** 76 * When either the 'Add slideshows' capability or the 'Delete slideshow' capability is changed, the 'Edit slideshows' 77 * checkbox should also be checked. Un-checking the 'Edit slideshows' checkbox needs to do the opposite. 78 */ 79 self.activateUserCapabilities = function() 80 { 81 $('input').change(function(event) 82 { 83 var $this = $(event.currentTarget), 84 addSlideshowsCapability = 'slideshow-jquery-image-gallery-add-slideshows', 85 editSlideshowsCapability = 'slideshow-jquery-image-gallery-edit-slideshows', 86 deleteSlideshowsCapability = 'slideshow-jquery-image-gallery-delete-slideshows', 87 idArray, 88 capability, 89 role; 90 91 // Check if the type was a checkbox 92 if ($this.attr('type').toLowerCase() != 'checkbox') 93 { 94 return; 95 } 96 97 // Get capability and role 98 idArray = $this.attr('id').split('_'); 99 capability = idArray.shift(); 100 role = idArray.join('_'); 101 102 // When 'Edit slideshows' has been un-checked, set 'Add slideshows' and 'Delete slideshows' to un-checked as well 103 if (capability === editSlideshowsCapability && 104 !$this.attr('checked')) 105 { 106 $('#' + addSlideshowsCapability + '_' + role).attr('checked', false); 107 $('#' + deleteSlideshowsCapability + '_' + role).attr('checked', false); 108 } 109 // When 'Add slideshows' or 'Delete slideshows' is checked, 'Edit slideshows' must be checked as well 110 else if (capability === addSlideshowsCapability || 111 capability === deleteSlideshowsCapability) 112 { 113 $('#' + editSlideshowsCapability + '_' + role).attr('checked', true); 114 } 115 }); 116 }; 117 118 $(document).bind('slideshowBackendReady', self.init); 119 120 return self; 121 }(); 122 123 // @codekit-append generalSettings.navigation.js 124 // @codekit-append generalSettings.customStyles.js 125 126 slideshow_jquery_image_gallery_backend_script.editSlideshow = function() 127 { 128 var $ = jQuery, 129 self = { }; 130 131 self.isCurrentPage = false; 132 133 /** 134 * 135 */ 136 self.init = function() 137 { 138 if (window.pagenow === 'slideshow') 139 { 140 self.isCurrentPage = true; 141 142 self.activateSettingsVisibilityDependency(); 143 } 144 }; 145 146 /** 147 * Set fields, that depend on another field being a certain value, to show when that certain field becomes a certain 148 * value and to hide when that certain fields loses that certain value. 149 */ 150 self.activateSettingsVisibilityDependency = function() 151 { 152 $('.depends-on-field-value').each(function(key, field) 153 { 154 var $field = $(field), 155 attributes = $field.attr('class').split(' '), 156 $tr = $field.closest('tr'); 157 158 // Check whether or not field should be shown 159 if ($('input[name="' + attributes[1] + '"]:checked').val() == attributes[2]) 160 { 161 $tr.show(); 162 } 163 else 164 { 165 $tr.hide(); 166 } 167 168 // On change of the field that the current field depends on, set field's visibility 169 $('input[name="' + attributes[1] + '"]').change(attributes, function(event) 170 { 171 var $tr = $('.' + attributes[3]).closest('tr'); 172 173 if ($(event.currentTarget).val() == attributes[2]) 174 { 175 self.animateElementVisibility($tr, true); 176 } 177 else 178 { 179 self.animateElementVisibility($tr, false); 180 } 181 }); 182 }); 183 }; 184 185 /** 186 * Animate an element's visibility 187 * 188 * @param element 189 * @param setVisible Optional, defaults to the current opposite when left empty. 190 */ 191 self.animateElementVisibility = function(element, setVisible) 192 { 193 var $element = $(element); 194 195 if (setVisible === undefined) 196 { 197 // Finish animation before checking visibility 198 $element.stop(true, true); 199 200 setVisible = !$element.is(':visible'); 201 } 202 203 if (setVisible) 204 { 205 $element.stop(true, true).show().css('background-color', '#c0dd52'); 206 207 setTimeout( 208 function() 209 { 210 $element.stop(true, true).animate({ 'background-color': 'transparent' }, 1500); 211 }, 212 500 213 ); 214 } 215 else 216 { 217 $element.stop(true, true).css('background-color', '#d44f6e'); 218 219 setTimeout( 220 function() 221 { 222 $element.stop(true, true).hide(1500, function() 223 { 224 $element.css('background-color', 'transparent'); 225 }); 226 }, 227 500 228 ); 229 } 230 }; 231 232 $(document).bind('slideshowBackendReady', self.init); 233 234 return self; 235 }(); 236 237 // @codekit-append editSlideshow.slideManager.js 238 239 slideshow_jquery_image_gallery_backend_script.shortcode = function() 240 { 241 var $ = jQuery, 242 self = { }; 243 244 /** 245 * 246 */ 247 self.init = function() 248 { 249 self.activateShortcodeInserter(); 250 }; 251 252 /** 253 * 254 */ 255 self.activateShortcodeInserter = function() 256 { 257 $('.insertSlideshowShortcodeSlideshowInsertButton').click(function() 258 { 259 var undefinedSlideshowMessage = 'No slideshow selected.', 260 shortcode = 'slideshow_deploy', 261 slideshowID = parseInt($('#insertSlideshowShortcodeSlideshowSelect').val()), 262 extraData = window.slideshow_jquery_image_gallery_backend_script_shortcode; 263 264 if (typeof extraData === 'object') 265 { 266 if (typeof extraData.data === 'object' && 267 extraData.data.shortcode !== undefined && 268 extraData.data.shortcode.length > 0) 269 { 270 shortcode = extraData.data.shortcode; 271 } 272 273 if (typeof extraData.localization === 'object' && 274 extraData.localization.undefinedSlideshow !== undefined && 275 extraData.localization.undefinedSlideshow.length > 0) 276 { 277 undefinedSlideshowMessage = extraData.localization.undefinedSlideshow; 278 } 279 } 280 281 if (isNaN(slideshowID)) 282 { 283 alert(undefinedSlideshowMessage); 284 285 return false; 286 } 287 288 send_to_editor('[' + shortcode + ' id=\'' + slideshowID + '\']'); 289 290 tb_remove(); 291 292 return true; 293 }); 294 295 $('.insertSlideshowShortcodeCancelButton').click(function() 296 { 297 tb_remove(); 298 299 return false; 300 }); 301 }; 302 303 $(document).bind('slideshowBackendReady', self.init); 304 305 return self; 306 }(); 307 slideshow_jquery_image_gallery_backend_script.generalSettings.customStyles = function() 308 { 309 var $ = jQuery, 310 self = { }; 311 312 /** 313 * 314 */ 315 self.init = function() 316 { 317 if (!slideshow_jquery_image_gallery_backend_script.generalSettings.isCurrentPage) 318 { 319 return; 320 } 321 322 self.activateNavigation(); 323 }; 324 325 /** 326 * Binds functions to fire at click events on the navigation tabs 327 */ 328 self.activateNavigation = function() 329 { 330 // On click of navigation tab, show different settings page. 331 $('.nav-tab').click(function(event) 332 { 333 var $this = $(event.currentTarget), 334 $activeTab = $('.nav-tab-active'), 335 $referrer; 336 337 $activeTab.removeClass('nav-tab-active'); 338 $this.addClass('nav-tab-active'); 339 340 // Hide previously active tab's content 341 $($activeTab.attr('href').replace('#', '.')).hide(); 342 343 // Show newly activated tab 344 $($this.attr('href').replace('#', '.')).show(); 345 346 // Set referrer value to the current page to be able to return there after saving 347 $referrer = $('input[name=_wp_http_referer]'); 348 $referrer.attr('value', $referrer.attr('value').split('#').shift() + $this.attr('href')); 349 }); 350 351 // Navigate to correct tab by firing a click event on it. Click event needs to have already been registered on '.nav-tab'. 352 $('a[href="#' + document.URL.split('#').pop() + '"]').trigger('click'); 353 }; 354 355 $(document).bind('slideshowBackendReady', self.init); 356 357 return self; 358 }(); 359 slideshow_jquery_image_gallery_backend_script.generalSettings.customStyles = function() 360 { 361 var $ = jQuery, 362 self = { }; 363 364 /** 365 * 366 */ 367 self.init = function() 368 { 369 if (!slideshow_jquery_image_gallery_backend_script.generalSettings.isCurrentPage) 370 { 371 return; 372 } 373 374 self.activateActionButtons(); 375 self.activateDeleteButtons() 376 }; 377 378 /** 379 * 380 */ 381 self.activateActionButtons = function() 382 { 383 // On click of the customize default style button 384 $('.custom-styles-tab .styles-list .style-action.style-default').click(function(event) 385 { 386 var $this = $(event.currentTarget), 387 title = $this.closest('li').find('.style-title').html(), 388 content = $this.closest('li').find('.style-content').html(), 389 externalData = window.slideshow_jquery_image_gallery_backend_script_generalSettings, 390 customStylesKey = 'slideshow-jquery-image-gallery-custom-styles', 391 customStyleID, 392 $editor, 393 $li, 394 $customStyleTemplates, 395 $customStylesList; 396 397 if (typeof content !== 'string' || 398 content.length <= 0) 399 { 400 return; 401 } 402 403 if (typeof externalData === 'object') 404 { 405 // Prefix title with 'New' 406 if (typeof externalData.localization === 'object' && 407 externalData.localization.newCustomizationPrefix !== undefined && 408 externalData.localization.newCustomizationPrefix.length > 0) 409 { 410 title = externalData.localization.newCustomizationPrefix + ' - ' + title; 411 } 412 413 // Get custom styles key 414 if (typeof externalData.data === 'object' && 415 externalData.data.customStylesKey !== undefined && 416 externalData.data.customStylesKey.length > 0) 417 { 418 customStylesKey = externalData.data.customStylesKey; 419 } 420 } 421 422 customStyleID = customStylesKey + '_' + (self.getHighestCustomStyleID() + 1); 423 424 $customStyleTemplates = $('.custom-styles-tab .custom-style-templates'); 425 426 // Clone editor template 427 $editor = $customStyleTemplates.find('.style-editor').clone(); 428 429 // Add class to editor 430 $editor.addClass(customStyleID); 431 432 // Add value attributes 433 $editor.find('.new-custom-style-title').attr('value', title); 434 $editor.find('.new-custom-style-content').html(content); 435 436 // Add name attributes 437 $editor.find('.new-custom-style-title').attr('name', customStylesKey + '[' + customStyleID + '][title]'); 438 $editor.find('.new-custom-style-content').attr('name', customStylesKey + '[' + customStyleID + '][style]'); 439 440 // Add editor to DOM 441 $('.custom-styles-tab .style-editors').append($editor); 442 443 // Fade editor in 444 setTimeout( 445 function() 446 { 447 $editor.fadeIn(200); 448 }, 449 200 450 ); 451 452 // Clone custom styles list item (with events) 453 $li = $customStyleTemplates.find('.custom-styles-list-item').clone(true); 454 455 // Prepare 456 $li.removeClass('custom-styles-list-item'); 457 $li.find('.style-title').html(title); 458 $li.find('.style-action').addClass(customStyleID); 459 $li.find('.style-delete').addClass(customStyleID); 460 461 $customStylesList = $('.custom-styles-tab .styles-list .custom-styles-list'); 462 463 // Remove 'No custom stylesheets found message' 464 $customStylesList.find('.no-custom-styles-found').remove(); 465 466 // Add custom styles list item to DOM 467 $customStylesList.append($li); 468 }); 469 470 // On click of the edit custom style button 471 $('.custom-styles-tab .styles-list .style-action, .custom-styles-tab .custom-style-templates .custom-styles-list-item .style-action').click(function(event) 472 { 473 // Get custom style key 474 var customStyleKey = $(event.currentTarget).attr('class').split(' ')[1]; 475 476 // Return if no style key was found 477 if (customStyleKey === undefined) 478 { 479 return; 480 } 481 482 // Fade editors out 483 $('.custom-styles-tab .style-editors .style-editor').each(function(key, editor) 484 { 485 $(editor).fadeOut(200); 486 }); 487 488 // Fade active editor in 489 setTimeout( 490 function() 491 { 492 $('.style-editor.' + customStyleKey).fadeIn(200); 493 }, 494 200 495 ); 496 }); 497 }; 498 499 /** 500 * 501 */ 502 self.activateDeleteButtons = function() 503 { 504 $('.custom-styles-tab .styles-list .style-delete, .custom-styles-tab .custom-style-templates .custom-styles-list-item .style-delete').click(function(event) 505 { 506 // Get custom style key 507 var $this = $(event.currentTarget), 508 customStyleKey = $this.attr('class').split(' ')[1], 509 externalData = window.slideshow_jquery_image_gallery_backend_script_generalSettings, 510 confirmDeleteMessage = 'Are you sure you want to delete this custom style?'; 511 512 // Return if no style key was found 513 if(customStyleKey === undefined) 514 { 515 return; 516 } 517 518 if (typeof externalData === 'object' && 519 typeof externalData.localization === 'object' && 520 externalData.localization.confirmDeleteMessage !== undefined && 521 externalData.localization.confirmDeleteMessage.length > 0) 522 { 523 confirmDeleteMessage = externalData.localization.confirmDeleteMessage; 524 } 525 526 // Show confirm deletion message 527 if (!confirm(confirmDeleteMessage)) 528 { 529 return; 530 } 531 532 // Delete custom style 533 $('.custom-styles-tab .style-editors .style-editor.' + customStyleKey).remove(); 534 535 // Delete item from list 536 $this.closest('li').remove(); 537 }); 538 }; 539 540 /** 541 * Returns highest custom style id in existence 542 * 543 * @return int highestCustomStyleID 544 */ 545 self.getHighestCustomStyleID = function() 546 { 547 var highestCustomStyleID = 0; 548 549 // Loop through style editors 550 $('.custom-styles-tab .style-editors .style-editor').each(function(key, editor) 551 { 552 var customStyleID = parseInt($(editor).attr('class').split('_').pop()); 553 554 // Check if the ID is higher than any previously checked 555 if (customStyleID > highestCustomStyleID) 556 { 557 highestCustomStyleID = customStyleID; 558 } 559 }); 560 561 // Return 562 return parseInt(highestCustomStyleID); 563 }; 564 565 $(document).bind('slideshowBackendReady', self.init); 566 567 return self; 568 }(); 569 slideshow_jquery_image_gallery_backend_script.editSlideshow.slideManager = function() 570 { 571 var $ = jQuery, 572 self = { }; 573 574 self.uploader = null; 575 576 /** 577 * 578 */ 579 self.init = function() 580 { 581 if (slideshow_jquery_image_gallery_backend_script.editSlideshow.isCurrentPage) 582 { 583 // New 3.5 uploader 584 self.activateUploader(); 585 586 // Old pre-3.5 uploader 587 self.activate(); 588 } 589 }; 590 591 /** 592 * Activates the WordPress 3.5 uploader. 593 */ 594 self.activateUploader = function() 595 { 596 $('.slideshow-insert-image-slide').on('click', function(event) 597 { 598 event.preventDefault(); 599 600 var uploaderTitle, 601 externalData; 602 603 // Reopen file frame if it has already been created 604 if (self.uploader) 605 { 606 self.uploader.open(); 607 608 return; 609 } 610 611 externalData = window.slideshow_jquery_image_gallery_backend_script_editSlideshow; 612 613 uploaderTitle = ''; 614 615 if (typeof externalData === 'object' && 616 typeof externalData.localization === 'object' && 617 externalData.localization.uploaderTitle !== undefined && 618 externalData.localization.uploaderTitle.length > 0) 619 { 620 uploaderTitle = externalData.localization.uploaderTitle; 621 } 622 623 // Create the uploader 624 self.uploader = wp.media.frames.file_frame = wp.media({ 625 title : uploaderTitle, 626 multiple: true, 627 library : 628 { 629 type: 'image' 630 } 631 }); 632 633 // Create image slide on select 634 self.uploader.on('select', function() 635 { 636 var attachments = self.uploader.state().get('selection').toJSON(), 637 attachment, 638 attachmentID; 639 640 for (attachmentID in attachments) 641 { 642 if (!attachments.hasOwnProperty(attachmentID)) 643 { 644 continue; 645 } 646 647 attachment = attachments[attachmentID]; 648 649 self.insertImageSlide(attachment.id, attachment.title, attachment.description, attachment.url, attachment.alt); 650 } 651 }); 652 653 self.uploader.open(); 654 }); 655 }; 656 657 /** 658 * 659 */ 660 self.activate = function() 661 { 662 var $popup = $('#slideshow-slide-inserter-popup'), 663 $popupBackground = $('#slideshow-slide-inserter-popup-background'), 664 $searchBar = $popup.find('#search'); 665 666 // Index first 667 self.indexSlidesOrder(); 668 669 // Make list items in the sortables list sortable, exclude elements by using the cancel option 670 $('.sortable-slides-list').sortable({ 671 revert: true, 672 placeholder: 'sortable-placeholder', 673 forcePlaceholderSize: true, 674 stop: function() 675 { 676 self.indexSlidesOrder(); 677 }, 678 cancel: 'input, select, p' 679 }); 680 681 // Add the wp-color-picker plugin to the color fields 682 $('.wp-color-picker-field').wpColorPicker({ width: 234 }); 683 684 // Make the black background stretch all the way down the document 685 $popupBackground.height($(document).outerHeight(true)); 686 687 // Center the popup in the window 688 $popup.css({ 689 'top': parseInt(($(window).height() / 2) - ($popup.outerHeight(true) / 2), 10), 690 'left': parseInt(($(window).width() / 2) - ($popup.outerWidth(true) / 2), 10) 691 }); 692 693 // Focus on search bar 694 $searchBar.focus(); 695 696 // Preload attachments 697 self.getSearchResults(); 698 699 // Close popup when clicked on cross or background 700 $popup.find('#close').click(self.closePopup); 701 $popupBackground .click(self.closePopup); 702 703 // Send ajax request on click of the search button 704 $popup.find('#search-submit').click(self.getSearchResults); 705 706 // Make the 'enter' key do the same as the search button 707 $searchBar.keypress(function(event) 708 { 709 if (event.which == 13) 710 { 711 event.preventDefault(); 712 713 self.getSearchResults(); 714 } 715 }); 716 717 // Open popup by click on button 718 $('#slideshow-insert-image-slide').click(function() 719 { 720 $popup .css({ display: 'block' }); 721 $popupBackground.css({ display: 'block' }); 722 }); 723 724 // Insert text slide into the sortable list when the Insert Text Slide button is clicked 725 $('#slideshow-insert-text-slide').click(self.insertTextSlide); 726 727 // Insert video slide into the sortable list when the Insert Video Slide button is clicked 728 $('#slideshow-insert-video-slide').click(self.insertVideoSlide); 729 730 // Call self.deleteSlide on click 731 $('.slideshow-delete-slide').click(function(event) 732 { 733 self.deleteSlide($(event.currentTarget).closest('li')); 734 }); 735 }; 736 737 /** 738 * Deletes slide from DOM 739 * 740 * @param $slide 741 */ 742 self.deleteSlide = function($slide) 743 { 744 var confirmMessage = 'Are you sure you want to delete this slide?', 745 extraData = window.slideshow_jquery_image_gallery_backend_script_editSlideshow; 746 747 if (typeof extraData === 'object' && 748 typeof extraData.localization === 'object' && 749 extraData.localization.confirm !== undefined && 750 extraData.localization.confirm.length > 0) 751 { 752 confirmMessage = extraData.localization.confirm; 753 } 754 755 if(!confirm(confirmMessage)) 756 { 757 return; 758 } 759 760 // Remove slide from DOM 761 $slide.remove(); 762 }; 763 764 /** 765 * Loop through list items, setting slide orders 766 */ 767 self.indexSlidesOrder = function() 768 { 769 // Loop through sortables 770 $.each($('.sortable-slides-list').find('li'), function(slideID, slide) 771 { 772 // Loop through all fields to set their name attributes with the new index 773 $.each($(slide).find('input, select, textarea'), function(key, input) 774 { 775 var $input = $(input), 776 name = $input.attr('name'); 777 778 if (name === undefined || 779 name.length <= 0) 780 { 781 return; 782 } 783 784 name = name.replace(/[\[\]']+/g, ' ').split(' '); 785 786 // Put name with new order ID back on the page 787 $input.attr('name', name[0] + '[' + (slideID + 1) + '][' + name[2] + ']'); 788 }); 789 }); 790 }; 791 792 /** 793 * Sends an ajax post request with the search query and print retrieved html to the results table. 794 * 795 * If offset is set, append data to data that is already there 796 * 797 * @param offset (optional, defaults to 0) 798 */ 799 self.getSearchResults = function(offset) 800 { 801 var $popup = $('#slideshow-slide-inserter-popup'), 802 $resultsTable = $popup.find('#results'), 803 attachmentIDs = []; 804 805 offset = parseInt(offset); 806 807 if (isNaN(offset)) 808 { 809 offset = 0; 810 811 $resultsTable.html(''); 812 } 813 814 $.each($resultsTable.find('.result-table-row'), function(key, tr) 815 { 816 attachmentIDs.push(parseInt($(tr).attr('data-attachment-id'))); 817 }); 818 819 $.post( 820 window.ajaxurl, 821 { 822 action : 'slideshow_slide_inserter_search_query', 823 search : $popup.find('#search').attr('value'), 824 offset : offset, 825 attachmentIDs: attachmentIDs 826 }, 827 function(response) 828 { 829 var $loadMoreResultsButton; 830 831 // Fill table 832 $resultsTable.append(response); 833 834 // When the insert button is clicked, the function to build a slide should be called. Unbind first so old entries don't have the event twice. 835 $resultsTable.find('.insert-attachment').unbind('click').click(function(event) 836 { 837 var $tr = $(event.currentTarget).closest('tr'); 838 839 self.insertImageSlide( 840 $tr.attr('data-attachment-id'), 841 $tr.find('.title').text(), 842 $tr.find('.description').text(), 843 $tr.find('.image img').attr('src'), 844 $tr.find('.title').text() 845 ); 846 }); 847 848 // Load more results on click of the 'Load more results' button 849 $loadMoreResultsButton = $('.load-more-results'); 850 if($loadMoreResultsButton) 851 { 852 $loadMoreResultsButton.click(function(event) 853 { 854 // Get offset 855 var $this = $(event.currentTarget), 856 newOffset = $this.attr('data-offset'); 857 858 $this.closest('tr').hide(); 859 860 if (isNaN(parseInt(newOffset))) 861 { 862 return; 863 } 864 865 self.getSearchResults(newOffset); 866 }); 867 } 868 } 869 ); 870 }; 871 872 /** 873 * Inserts image slide into the slides list 874 * 875 * @param id 876 * @param title 877 * @param description 878 * @param src 879 * @param alternativeText 880 */ 881 self.insertImageSlide = function(id, title, description, src, alternativeText) 882 { 883 // Find and clone the image slide template 884 var $imageSlide = $('.image-slide-template').find('li').clone(); 885 886 // Fill slide with data 887 $imageSlide.find('.attachment').attr('src', src); 888 $imageSlide.find('.attachment').attr('title', title); 889 $imageSlide.find('.attachment').attr('alt', alternativeText); 890 $imageSlide.find('.title').attr('value', title); 891 $imageSlide.find('.description').html(description); 892 $imageSlide.find('.alternativeText').attr('value', alternativeText); 893 $imageSlide.find('.postId').attr('value', id); 894 895 // Set names to be saved to the database 896 $imageSlide.find('.title').attr('name', 'slides[0][title]'); 897 $imageSlide.find('.description').attr('name', 'slides[0][description]'); 898 $imageSlide.find('.url').attr('name', 'slides[0][url]'); 899 $imageSlide.find('.urlTarget').attr('name', 'slides[0][urlTarget]'); 900 $imageSlide.find('.alternativeText').attr('name', 'slides[0][alternativeText]'); 901 $imageSlide.find('.noFollow').attr('name', 'slides[0][noFollow]'); 902 $imageSlide.find('.type').attr('name', 'slides[0][type]'); 903 $imageSlide.find('.postId').attr('name', 'slides[0][postId]'); 904 905 // Register delete link 906 $imageSlide.find('.slideshow-delete-slide').click(function(event) 907 { 908 self.deleteSlide($(event.currentTarget).closest('li')); 909 }); 910 911 // Put slide in the sortables list. 912 $('.sortable-slides-list').prepend($imageSlide); 913 914 // Reindex 915 self.indexSlidesOrder(); 916 }; 917 918 /** 919 * Inserts text slide into the slides list 920 */ 921 self.insertTextSlide = function() 922 { 923 // Find and clone the text slide template 924 var $textSlide = $('.text-slide-template').find('li').clone(); 925 926 // Set names to be saved to the database 927 $textSlide.find('.title').attr('name', 'slides[0][title]'); 928 $textSlide.find('.description').attr('name', 'slides[0][description]'); 929 $textSlide.find('.textColor').attr('name', 'slides[0][textColor]'); 930 $textSlide.find('.color').attr('name', 'slides[0][color]'); 931 $textSlide.find('.url').attr('name', 'slides[0][url]'); 932 $textSlide.find('.urlTarget').attr('name', 'slides[0][urlTarget]'); 933 $textSlide.find('.noFollow').attr('name', 'slides[0][noFollow]'); 934 $textSlide.find('.type').attr('name', 'slides[0][type]'); 935 936 // Register delete link 937 $textSlide.find('.slideshow-delete-slide').click(function(event) 938 { 939 self.deleteSlide($(event.currentTarget).closest('li')); 940 }); 941 942 // Add color picker 943 $textSlide.find('.color, .textColor').wpColorPicker(); 944 945 // Put slide in the sortables list. 946 $('.sortable-slides-list').prepend($textSlide); 947 948 // Reindex slide orders 949 self.indexSlidesOrder(); 950 }; 951 952 /** 953 * Inserts video slide into the slides list 954 */ 955 self.insertVideoSlide = function() 956 { 957 // Find and clone the video slide template 958 var $videoSlide = $('.video-slide-template').find('li').clone(); 959 960 // Set names to be saved to the database 961 $videoSlide.find('.videoId').attr('name', 'slides[0][videoId]'); 962 $videoSlide.find('.showRelatedVideos').attr('name', 'slides[0][showRelatedVideos]'); 963 $videoSlide.find('.type').attr('name', 'slides[0][type]'); 964 965 // Register delete link 966 $videoSlide.find('.slideshow-delete-slide').click(function(event) 967 { 968 self.deleteSlide($(event.currentTarget).closest('li')); 969 }); 970 971 // Put slide in the sortables list. 972 $('.sortable-slides-list').prepend($videoSlide); 973 974 // Reindex slide orders 975 self.indexSlidesOrder(); 976 }; 977 978 /** 979 * Closes popup 980 */ 981 self.closePopup = function() 982 { 983 $('#slideshow-slide-inserter-popup, #slideshow-slide-inserter-popup-background').css({ display: 'none' }); 984 }; 985 986 $(document).bind('slideshowBackendReady', self.init); 987 988 return self; 989 }(); 1 slideshow_jquery_image_gallery_backend_script=function(){var i=jQuery,e={};return e.isBackendInitialized=!1,e.init=function(){e.isBackendInitialized||(e.isBackendInitialized=!0,i(document).trigger("slideshowBackendReady"))},i(document).ready(e.init),i(window).load(e.init),e}(); 2 slideshow_jquery_image_gallery_backend_script.generalSettings=function(){var e=jQuery,i={};return i.isCurrentPage=!1,i.init=function(){"slideshow_page_general_settings"===window.pagenow&&(i.isCurrentPage=!0,i.activateUserCapabilities())},i.activateUserCapabilities=function(){e("input").change(function(i){var t,a,s,r=e(i.currentTarget),n="slideshow-jquery-image-gallery-add-slideshows",d="slideshow-jquery-image-gallery-edit-slideshows",l="slideshow-jquery-image-gallery-delete-slideshows";"checkbox"==r.attr("type").toLowerCase()&&(t=r.attr("id").split("_"),a=t.shift(),s=t.join("_"),a!==d||r.attr("checked")?(a===n||a===l)&&e("#"+d+"_"+s).attr("checked",!0):(e("#"+n+"_"+s).attr("checked",!1),e("#"+l+"_"+s).attr("checked",!1)))})},e(document).bind("slideshowBackendReady",i.init),i}(); 3 slideshow_jquery_image_gallery_backend_script.editSlideshow=function(){var i=jQuery,e={};return e.isCurrentPage=!1,e.init=function(){"slideshow"===window.pagenow&&(e.isCurrentPage=!0,e.activateSettingsVisibilityDependency())},e.activateSettingsVisibilityDependency=function(){i(".depends-on-field-value").each(function(t,n){var s=i(n),a=s.attr("class").split(" "),o=s.closest("tr");i('input[name="'+a[1]+'"]:checked').val()==a[2]?o.show():o.hide(),i('input[name="'+a[1]+'"]').change(a,function(t){var n=i("."+a[3]).closest("tr");i(t.currentTarget).val()==a[2]?e.animateElementVisibility(n,!0):e.animateElementVisibility(n,!1)})})},e.animateElementVisibility=function(e,t){var n=i(e);void 0===t&&(n.stop(!0,!0),t=!n.is(":visible")),t?(n.stop(!0,!0).show().css("background-color","#c0dd52"),setTimeout(function(){n.stop(!0,!0).animate({"background-color":"transparent"},1500)},500)):(n.stop(!0,!0).css("background-color","#d44f6e"),setTimeout(function(){n.stop(!0,!0).hide(1500,function(){n.css("background-color","transparent")})},500))},i(document).bind("slideshowBackendReady",e.init),e}(); 4 slideshow_jquery_image_gallery_backend_script.shortcode=function(){var e=jQuery,o={};return o.init=function(){o.activateShortcodeInserter()},o.activateShortcodeInserter=function(){e(".insertSlideshowShortcodeSlideshowInsertButton").click(function(){var o="No slideshow selected.",t="slideshow_deploy",i=parseInt(e("#insertSlideshowShortcodeSlideshowSelect").val()),d=window.slideshow_jquery_image_gallery_backend_script_shortcode;return"object"==typeof d&&("object"==typeof d.data&&void 0!==d.data.shortcode&&d.data.shortcode.length>0&&(t=d.data.shortcode),"object"==typeof d.localization&&void 0!==d.localization.undefinedSlideshow&&d.localization.undefinedSlideshow.length>0&&(o=d.localization.undefinedSlideshow)),isNaN(i)?(alert(o),!1):(send_to_editor("["+t+" id='"+i+"']"),tb_remove(),!0)}),e(".insertSlideshowShortcodeCancelButton").click(function(){return tb_remove(),!1})},e(document).bind("slideshowBackendReady",o.init),o}(); 5 slideshow_jquery_image_gallery_backend_script.generalSettings.customStyles=function(){var e=jQuery,t={};return t.init=function(){slideshow_jquery_image_gallery_backend_script.generalSettings.isCurrentPage&&t.activateNavigation()},t.activateNavigation=function(){e(".nav-tab").click(function(t){var a,i=e(t.currentTarget),r=e(".nav-tab-active");r.removeClass("nav-tab-active"),i.addClass("nav-tab-active"),e(r.attr("href").replace("#",".")).hide(),e(i.attr("href").replace("#",".")).show(),a=e("input[name=_wp_http_referer]"),a.attr("value",a.attr("value").split("#").shift()+i.attr("href"))}),e('a[href="#'+document.URL.split("#").pop()+'"]').trigger("click")},e(document).bind("slideshowBackendReady",t.init),t}(); 6 slideshow_jquery_image_gallery_backend_script.generalSettings.customStyles=function(){var t=jQuery,e={};return e.init=function(){slideshow_jquery_image_gallery_backend_script.generalSettings.isCurrentPage&&(e.activateActionButtons(),e.activateDeleteButtons())},e.activateActionButtons=function(){t(".custom-styles-tab .styles-list .style-action.style-default").click(function(s){var l,i,o,n,a,c=t(s.currentTarget),y=c.closest("li").find(".style-title").html(),u=c.closest("li").find(".style-content").html(),r=window.slideshow_jquery_image_gallery_backend_script_generalSettings,m="slideshow-jquery-image-gallery-custom-styles";"string"!=typeof u||u.length<=0||("object"==typeof r&&("object"==typeof r.localization&&void 0!==r.localization.newCustomizationPrefix&&r.localization.newCustomizationPrefix.length>0&&(y=r.localization.newCustomizationPrefix+" - "+y),"object"==typeof r.data&&void 0!==r.data.customStylesKey&&r.data.customStylesKey.length>0&&(m=r.data.customStylesKey)),l=m+"_"+(e.getHighestCustomStyleID()+1),n=t(".custom-styles-tab .custom-style-templates"),i=n.find(".style-editor").clone(),i.addClass(l),i.find(".new-custom-style-title").attr("value",y),i.find(".new-custom-style-content").html(u),i.find(".new-custom-style-title").attr("name",m+"["+l+"][title]"),i.find(".new-custom-style-content").attr("name",m+"["+l+"][style]"),t(".custom-styles-tab .style-editors").append(i),setTimeout(function(){i.fadeIn(200)},200),o=n.find(".custom-styles-list-item").clone(!0),o.removeClass("custom-styles-list-item"),o.find(".style-title").html(y),o.find(".style-action").addClass(l),o.find(".style-delete").addClass(l),a=t(".custom-styles-tab .styles-list .custom-styles-list"),a.find(".no-custom-styles-found").remove(),a.append(o))}),t(".custom-styles-tab .styles-list .style-action, .custom-styles-tab .custom-style-templates .custom-styles-list-item .style-action").click(function(e){var s=t(e.currentTarget).attr("class").split(" ")[1];void 0!==s&&(t(".custom-styles-tab .style-editors .style-editor").each(function(e,s){t(s).fadeOut(200)}),setTimeout(function(){t(".style-editor."+s).fadeIn(200)},200))})},e.activateDeleteButtons=function(){t(".custom-styles-tab .styles-list .style-delete, .custom-styles-tab .custom-style-templates .custom-styles-list-item .style-delete").click(function(e){var s=t(e.currentTarget),l=s.attr("class").split(" ")[1],i=window.slideshow_jquery_image_gallery_backend_script_generalSettings,o="Are you sure you want to delete this custom style?";void 0!==l&&("object"==typeof i&&"object"==typeof i.localization&&void 0!==i.localization.confirmDeleteMessage&&i.localization.confirmDeleteMessage.length>0&&(o=i.localization.confirmDeleteMessage),confirm(o)&&(t(".custom-styles-tab .style-editors .style-editor."+l).remove(),s.closest("li").remove()))})},e.getHighestCustomStyleID=function(){var e=0;return t(".custom-styles-tab .style-editors .style-editor").each(function(s,l){var i=parseInt(t(l).attr("class").split("_").pop());i>e&&(e=i)}),parseInt(e)},t(document).bind("slideshowBackendReady",e.init),e}(); 7 slideshow_jquery_image_gallery_backend_script.editSlideshow.slideManager=function(){var e=jQuery,t={};return t.uploader=null,t.init=function(){slideshow_jquery_image_gallery_backend_script.editSlideshow.isCurrentPage&&(t.activateUploader(),t.activate())},t.activateUploader=function(){e(".slideshow-insert-image-slide").on("click",function(e){e.preventDefault();var i,l;return t.uploader?(t.uploader.open(),void 0):(l=window.slideshow_jquery_image_gallery_backend_script_editSlideshow,i="","object"==typeof l&&"object"==typeof l.localization&&void 0!==l.localization.uploaderTitle&&l.localization.uploaderTitle.length>0&&(i=l.localization.uploaderTitle),t.uploader=wp.media.frames.slideshow_jquery_image_galler_uploader=wp.media({frame:"select",title:i,multiple:!0,library:{type:"image"}}),t.uploader.on("select",function(){var e,i,l=t.uploader.state().get("selection").toJSON();for(i in l)l.hasOwnProperty(i)&&(e=l[i],t.insertImageSlide(e.id,e.title,e.description,e.url,e.alt))}),t.uploader.open(),void 0)})},t.activate=function(){var i=e("#slideshow-slide-inserter-popup"),l=e("#slideshow-slide-inserter-popup-background"),s=i.find("#search");t.indexSlidesOrder(),e(".sortable-slides-list").sortable({revert:!0,placeholder:"sortable-placeholder",forcePlaceholderSize:!0,stop:function(){t.indexSlidesOrder()},cancel:"input, select, p"}),e(".wp-color-picker-field").wpColorPicker({width:234}),l.height(e(document).outerHeight(!0)),i.css({top:parseInt(e(window).height()/2-i.outerHeight(!0)/2,10),left:parseInt(e(window).width()/2-i.outerWidth(!0)/2,10)}),s.focus(),t.getSearchResults(),i.find("#close").click(t.closePopup),l.click(t.closePopup),i.find("#search-submit").click(t.getSearchResults),s.keypress(function(e){13==e.which&&(e.preventDefault(),t.getSearchResults())}),e("#slideshow-insert-image-slide").click(function(){i.css({display:"block"}),l.css({display:"block"})}),e("#slideshow-insert-text-slide").click(t.insertTextSlide),e("#slideshow-insert-video-slide").click(t.insertVideoSlide),e(".slideshow-delete-slide").click(function(i){t.deleteSlide(e(i.currentTarget).closest("li"))})},t.deleteSlide=function(e){var t="Are you sure you want to delete this slide?",i=window.slideshow_jquery_image_gallery_backend_script_editSlideshow;"object"==typeof i&&"object"==typeof i.localization&&void 0!==i.localization.confirm&&i.localization.confirm.length>0&&(t=i.localization.confirm),confirm(t)&&e.remove()},t.indexSlidesOrder=function(){e.each(e(".sortable-slides-list").find("li"),function(t,i){e.each(e(i).find("input, select, textarea"),function(i,l){var s=e(l),d=s.attr("name");void 0===d||d.length<=0||(d=d.replace(/[\[\]']+/g," ").split(" "),s.attr("name",d[0]+"["+(t+1)+"]["+d[2]+"]"))})})},t.getSearchResults=function(i){var l=e("#slideshow-slide-inserter-popup"),s=l.find("#results"),d=[];i=parseInt(i),isNaN(i)&&(i=0,s.html("")),e.each(s.find(".result-table-row"),function(t,i){d.push(parseInt(e(i).attr("data-attachment-id")))}),e.post(window.ajaxurl,{action:"slideshow_slide_inserter_search_query",search:l.find("#search").attr("value"),offset:i,attachmentIDs:d},function(i){var l;s.append(i),s.find(".insert-attachment").unbind("click").click(function(i){var l=e(i.currentTarget).closest("tr");t.insertImageSlide(l.attr("data-attachment-id"),l.find(".title").text(),l.find(".description").text(),l.find(".image img").attr("src"),l.find(".title").text())}),l=e(".load-more-results"),l&&l.click(function(i){var l=e(i.currentTarget),s=l.attr("data-offset");l.closest("tr").hide(),isNaN(parseInt(s))||t.getSearchResults(s)})})},t.insertImageSlide=function(i,l,s,d,n){var r=e(".image-slide-template").find("li").clone();r.find(".attachment").attr("src",d),r.find(".attachment").attr("title",l),r.find(".attachment").attr("alt",n),r.find(".title").attr("value",l),r.find(".description").html(s),r.find(".alternativeText").attr("value",n),r.find(".postId").attr("value",i),r.find(".title").attr("name","slides[0][title]"),r.find(".description").attr("name","slides[0][description]"),r.find(".url").attr("name","slides[0][url]"),r.find(".urlTarget").attr("name","slides[0][urlTarget]"),r.find(".alternativeText").attr("name","slides[0][alternativeText]"),r.find(".noFollow").attr("name","slides[0][noFollow]"),r.find(".type").attr("name","slides[0][type]"),r.find(".postId").attr("name","slides[0][postId]"),r.find(".slideshow-delete-slide").click(function(i){t.deleteSlide(e(i.currentTarget).closest("li"))}),e(".sortable-slides-list").prepend(r),t.indexSlidesOrder()},t.insertTextSlide=function(){var i=e(".text-slide-template").find("li").clone();i.find(".title").attr("name","slides[0][title]"),i.find(".description").attr("name","slides[0][description]"),i.find(".textColor").attr("name","slides[0][textColor]"),i.find(".color").attr("name","slides[0][color]"),i.find(".url").attr("name","slides[0][url]"),i.find(".urlTarget").attr("name","slides[0][urlTarget]"),i.find(".noFollow").attr("name","slides[0][noFollow]"),i.find(".type").attr("name","slides[0][type]"),i.find(".slideshow-delete-slide").click(function(i){t.deleteSlide(e(i.currentTarget).closest("li"))}),i.find(".color, .textColor").wpColorPicker(),e(".sortable-slides-list").prepend(i),t.indexSlidesOrder()},t.insertVideoSlide=function(){var i=e(".video-slide-template").find("li").clone();i.find(".videoId").attr("name","slides[0][videoId]"),i.find(".showRelatedVideos").attr("name","slides[0][showRelatedVideos]"),i.find(".type").attr("name","slides[0][type]"),i.find(".slideshow-delete-slide").click(function(i){t.deleteSlide(e(i.currentTarget).closest("li"))}),e(".sortable-slides-list").prepend(i),t.indexSlidesOrder()},t.closePopup=function(){e("#slideshow-slide-inserter-popup, #slideshow-slide-inserter-popup-background").css({display:"none"})},e(document).bind("slideshowBackendReady",t.init),t}(); -
slideshow-jquery-image-gallery/trunk/js/min/all.frontend.min.js
r778924 r813937 1 function onYouTubeIframeAPIReady(){slideshow_jquery_image_gallery_script.youTubeAPIReady=!0}slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag=!1,slideshow_jquery_image_gallery_script=function(){var t=jQuery,i={};return i.slideshowInstances={},i.initialized=!1,i.youTubeAPIReady=!1,i.init=function(){slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag!==!0||i.initialized||(i.initialized=!0,i.loadYouTubeAPI(),i.repairStylesheetURLs(),i.activateSlideshows())},i.getSlideshowInstance=function(e){if(isNaN(parseInt(e,10))){if(e instanceof t&&e.length>0)for(var s in i.slideshowInstances)if(i.slideshowInstances.hasOwnProperty(s)){var n=i.slideshowInstances[s];if(n instanceof i.Slideshow&&n.$container.get(0)===e.get(0))return n}}else if(i.slideshowInstances[e]instanceof i.Slideshow)return i.slideshowInstances[e];return new i.Slideshow},i.activateSlideshows=function(){t.each(jQuery(".slideshow_container"),function(e,s){var n=t(s),o=n.data("sessionId");isNaN(parseInt(o,10))&&(o=n.attr("data-session-id")),i.slideshowInstances[o]instanceof i.Slideshow||(i.slideshowInstances[o]=new i.Slideshow(n))})},i.loadYouTubeAPI=function(){if(i.loadYouTubeAPICalled=!0,!(t(".slideshow_slide_video").length<=0)){var e=document.createElement("script"),s=document.getElementsByTagName("script")[0];e.src="//www.youtube.com/iframe_api",s.parentNode.insertBefore(e,s)}},i.repairStylesheetURLs=function(){var e=t('[id*="slideshow-jquery-image-gallery-ajax-stylesheet_"]');return e.length<=0?(i.generateStylesheetURLs(!1),void 0):(t.each(e,function(i,e){var s,n,o,a=t(e),h=t(e).attr("href");void 0!==h&&""!==h&&(s=a.attr("id").split("_"),n=s.splice(1,s.length-1).join("_").slice(0,-4),o=h.split("?"),(void 0===o[1]||""===o[1]||o[1].toLowerCase().indexOf("style=")<0)&&(o[1]="action=slideshow_jquery_image_gallery_load_stylesheet&style="+n+"&ver="+Math.round((new Date).getTime()/1e3),h=o.join("?"),a.attr("href",h)))}),void 0)},i.generateStylesheetURLs=function(i){var e=t(".slideshow_container"),s=window.slideshow_jquery_image_gallery_script_adminURL;e.length<=0||"string"!=typeof s||s.length<=0||t.each(e,function(e,n){var o,a,h=t(n),r=h.attr("data-style-name"),l=h.attr("data-style-version"),d="slideshow-jquery-image-gallery-ajax-stylesheet_"+r+"-css";if("string"==typeof r&&"string"==typeof l&&r.length>0&&l.length>0){if(!i&&"boolean"==typeof i&&(o=t("#"+d),o.length>0))return;a=s+"admin-ajax.php?action=slideshow_jquery_image_gallery_load_stylesheet&style="+r+"&ver="+l,t("head").append('<link rel="stylesheet" id="'+d+'" href="'+a+'" type="text/css" media="all">')}})},t(document).ready(function(){i.init()}),t(window).load(function(){i.init()}),t.fn.getSlideshowInstance=function(){return i.getSlideshowInstance(this)},i}();1 function onYouTubeIframeAPIReady(){slideshow_jquery_image_gallery_script.youTubeAPIReady=!0}slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag=!1,slideshow_jquery_image_gallery_script=function(){var e=jQuery,t={};return t.slideshowInstances={},t.initialized=!1,t.youTubeAPIReady=!1,t.init=function(){slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag!==!0||t.initialized||(t.initialized=!0,t.loadYouTubeAPI(),t.repairStylesheetURLs(),t.activateSlideshows())},t.getSlideshowInstance=function(s){if(isNaN(parseInt(s,10))){if(s instanceof e&&s.length>0)for(var i in t.slideshowInstances)if(t.slideshowInstances.hasOwnProperty(i)){var n=t.slideshowInstances[i];if(n instanceof t.Slideshow&&n.$container.get(0)===s.get(0))return n}}else if(t.slideshowInstances[s]instanceof t.Slideshow)return t.slideshowInstances[s];return new t.Slideshow},t.activateSlideshows=function(){e.each(jQuery(".slideshow_container"),function(s,i){var n=e(i),a=n.data("sessionId");isNaN(parseInt(a,10))&&(a=n.attr("data-session-id")),t.slideshowInstances[a]instanceof t.Slideshow||(t.slideshowInstances[a]=new t.Slideshow(n))})},t.loadYouTubeAPI=function(){if(t.loadYouTubeAPICalled=!0,!(e(".slideshow_slide_video").length<=0)){var s=document.createElement("script"),i=document.getElementsByTagName("script")[0];s.src="//www.youtube.com/iframe_api",i.parentNode.insertBefore(s,i)}},t.repairStylesheetURLs=function(){var s=e('[id*="slideshow-jquery-image-gallery-ajax-stylesheet_"]');return s.length<=0?(t.generateStylesheetURLs(!1),void 0):(e.each(s,function(t,s){var i,n,a,l=e(s),o=e(s).attr("href");void 0!==o&&""!==o&&(i=l.attr("id").split("_"),n=i.splice(1,i.length-1).join("_").slice(0,-4),a=o.split("?"),(void 0===a[1]||""===a[1]||a[1].toLowerCase().indexOf("style=")<0)&&(a[1]="action=slideshow_jquery_image_gallery_load_stylesheet&style="+n+"&ver="+Math.round((new Date).getTime()/1e3),o=a.join("?"),l.attr("href",o)))}),void 0)},t.generateStylesheetURLs=function(t){var s=e(".slideshow_container"),i=window.slideshow_jquery_image_gallery_script_adminURL;s.length<=0||"string"!=typeof i||i.length<=0||e.each(s,function(s,n){var a,l,o=e(n),r=o.attr("data-style-name"),d=o.attr("data-style-version"),c="slideshow-jquery-image-gallery-ajax-stylesheet_"+r+"-css";if("string"==typeof r&&"string"==typeof d&&r.length>0&&d.length>0){if(!t&&"boolean"==typeof t&&(a=e("#"+c),a.length>0))return;l=i+"admin-ajax.php?action=slideshow_jquery_image_gallery_load_stylesheet&style="+r+"&ver="+d,e("head").append('<link rel="stylesheet" id="'+c+'" href="'+l+'" type="text/css" media="all">')}})},e(document).ready(function(){t.init()}),e(window).load(function(){t.init()}),e.fn.getSlideshowInstance=function(){return t.getSlideshowInstance(this)},t}(); 2 2 3 3 slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag=!0; 4 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow=function(i){if(i instanceof t&&(this.$container=i,this.$content=this.$container.find(".slideshow_content"),this.$views=this.$container.find(".slideshow_view"),this.$slides=this.$container.find(".slideshow_slide"),this.$controlPanel=this.$container.find(".slideshow_controlPanel"),this.$togglePlayButton=this.$controlPanel.find(".slideshow_togglePlay"),this.$nextButton=this.$container.find(".slideshow_next"),this.$previousButton=this.$container.find(".slideshow_previous"),this.$pagination=this.$container.find(".slideshow_pagination"),this.$loadingIcon=this.$container.find(".slideshow_loading_icon"),this.ID=this.getID(),!isNaN(parseInt(this.ID,10)))){this.settings=window["SlideshowPluginSettings_"+this.ID],t.each(this.settings,t.proxy(function(t,i){"true"==i?this.settings[t]=!0:"false"==i&&(this.settings[t]=!1)},this)),this.$parentElement=this.$container.parent(),this.viewData=[],this.viewIDs=[],this.currentlyAnimating=!1,this.currentViewID=void 0,this.currentWidth=0,this.visibleViews=[],this.videoPlayers=[],this.PlayStates={UNSTARTED:-2,PAUSED:-1,TEMPORARILY_PAUSED:0,PLAYING:1},this.playState=this.PlayStates.UNSTARTED,this.interval=!1,this.pauseOnHoverTimer=!1,this.invisibilityTimer=!1,this.descriptionTimer=!1,this.randomNextHistoryViewIDs=[],this.randomPreviousHistoryViewIDs=[],this.randomAvailableViewIDs=[],t.each(this.$views,t.proxy(function(t){this.viewIDs.push(t)},this)),this.currentViewID=this.getNextViewID(),this.visibleViews=[this.currentViewID],this.recalculate(!1);var e=!0;t.each(this.$views,t.proxy(function(i,s){var n=t(s);i!=this.visibleViews[0]?n.css("top",this.$container.outerHeight(!0)):n.addClass("slideshow_currentView"),this.viewData[i]=[],t.each(n.find(".slideshow_slide"),t.proxy(function(s,n){var o=t(n);if(this.viewData[i][s]={},o.hasClass("slideshow_slide_image")){var a=o.find("img");a.length>0?a.get(0).complete?this.viewData[i][s].loaded=1:(i===this.currentViewID&&(e=!1),this.viewData[i][s].loaded=0,this.onImageLoad(a,t.proxy(function(t){this.viewData[i][s].loaded=t?1:2,this.settings.waitUntilLoaded&&i===this.currentViewID&&this.isViewLoaded(i)&&this.start()},this))):this.viewData[i][s].loaded=-1}else this.viewData[i][s].loaded=-1},this))},this)),t(window).load(t.proxy(function(){this.recalculateVisibleViews()},this)),parseFloat(this.settings.intervalSpeed)<parseFloat(this.settings.slideSpeed)+.1&&(this.settings.intervalSpeed=parseFloat(this.settings.slideSpeed)+.1),(!this.settings.waitUntilLoaded||this.settings.waitUntilLoaded&&e)&&this.start()}}}();5 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow.prototype.start=function(){this.activateDescriptions(),this.activateControlPanel(),this.activateNavigationButtons(),this.activatePagination(),this.activatePauseOnHover(),this.$loadingIcon.length>0&&this.$loadingIcon.remove(),this.$content.show(),this.recalculateViews(),this.settings.enableResponsiveness&&t(window).resize(t.proxy(function(){this.recalculate(!0)},this)),this.playState=this.PlayStates.PAUSED,this.$container.trigger("slideshowPlayStateChange",[this.playState]),this.settings.play&&this.play()},i.Slideshow.prototype.play=function(){this.interval||(this.playState=this.PlayStates.PLAYING,this.$container.trigger("slideshowPlayStateChange",[this.playState]),this.interval=setInterval(t.proxy(function i(e,s){void 0===s&&(s=this),void 0===e&&(e=s.getNextViewID()),s.isViewLoaded(e)?(s.animateTo(e,1),s.play()):(s.pause(this.PlayStates.TEMPORARILY_PAUSED),setTimeout(t.proxy(function(){i(e,s)},s),100))},this),1e3*this.settings.intervalSpeed))},i.Slideshow.prototype.pause=function(t){clearInterval(this.interval),this.interval=!1,t!==this.PlayStates.PAUSED&&t!==this.PlayStates.TEMPORARILY_PAUSED&&(t=this.PlayStates.PAUSED),this.playState=t,this.$container.trigger("slideshowPlayStateChange",[this.playState])},i.Slideshow.prototype.next=function(){this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getNextViewID(),1)},i.Slideshow.prototype.previous=function(){this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getPreviousViewID(),-1)},i.Slideshow.prototype.isVideoPlaying=function(){for(var t in this.videoPlayers)if(this.videoPlayers.hasOwnProperty(t)){var i=this.videoPlayers[t].state;if(1==i||3==i)return!0}return!1},i.Slideshow.prototype.pauseAllVideos=function(){for(var t in this.videoPlayers)if(this.videoPlayers.hasOwnProperty(t)){var i=this.videoPlayers[t].player;null!=i&&"function"==typeof i.pauseVideo&&(this.videoPlayers[t].state=2,i.pauseVideo())}},i.Slideshow.prototype.isViewLoaded=function(i){var e=!0;return isNaN(parseInt(i,10))?!1:(t.each(this.viewData[i],t.proxy(function(t,i){0==i.loaded&&(e=!1)},this)),e)},i.Slideshow.prototype.getNaturalImageSize=function(i,e,s){return i.length<=0||!(i instanceof t)||"string"!=typeof i.attr("src")?(e(-1,-1,s),void 0):(this.onImageLoad(i,t.proxy(function(t,i){e(i.width,i.height,s)},this)),void 0)},i.Slideshow.prototype.onImageLoad=function(i,e,s){var n=new Image;return i.length<=0||!(i instanceof t)||"string"!=typeof i.attr("src")?(e(!1,n,s),void 0):(n.onload=t.proxy(function(){e(!0,n,s)},this),n.src=i.attr("src"),void 0)},i.Slideshow.prototype.getNextViewID=function(){var t=this.currentViewID;if(this.settings.random){var i=t;if(t=this.getNextRandomViewID(),t!=i)return t}return isNaN(parseInt(t,10))?0:t>=this.$views.length-1?this.settings.loop?0:this.currentViewID:t+1},i.Slideshow.prototype.getPreviousViewID=function(){var t=this.currentViewID;if(isNaN(parseInt(t,10))&&(t=0),this.settings.random){var i=t;if(t=this.getPreviousRandomViewID(),t!=i)return t}return 0>=t?this.settings.loop?t=this.$views.length-1:this.currentViewID:t-=1},i.Slideshow.prototype.getNextRandomViewID=function(){if(isNaN(parseInt(this.currentViewID,10))||this.randomPreviousHistoryViewIDs.push(this.currentViewID),this.randomPreviousHistoryViewIDs.length>2*this.viewIDs.length&&this.randomPreviousHistoryViewIDs.shift(),this.randomNextHistoryViewIDs.length>0)return this.randomNextHistoryViewIDs.pop();if(void 0===this.randomAvailableViewIDs||this.randomAvailableViewIDs.length<=0){this.randomAvailableViewIDs=t.extend(!0,[],this.viewIDs);var i=t.inArray(this.currentViewID,this.randomAvailableViewIDs);i>=0&&this.randomAvailableViewIDs.splice(i,1)}return this.randomAvailableViewIDs.splice(Math.floor(Math.random()*this.randomAvailableViewIDs.length),1).pop()},i.Slideshow.prototype.getPreviousRandomViewID=function(){return isNaN(parseInt(this.currentViewID,10))||this.randomNextHistoryViewIDs.push(this.currentViewID),this.randomNextHistoryViewIDs.length>2*this.viewIDs.length&&this.randomNextHistoryViewIDs.shift(),this.randomPreviousHistoryViewIDs.length>0?this.randomPreviousHistoryViewIDs.pop():this.viewIDs[Math.floor(Math.random()*this.viewIDs.length)]},i.Slideshow.prototype.getID=function(){var t=this.$container.data("sessionId");return isNaN(parseInt(t,10))&&(t=this.$container.attr("data-session-id")),t}}();6 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow.prototype.animateTo=function(i,e){if(!(this.isVideoPlaying()||0>i||i>=this.$views.length||i==this.currentViewID)){if(this.currentlyAnimating===!0)return this.$container.one("slideshowAnimationEnd",t.proxy(function(){this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(i,e)},this)),void 0;this.currentlyAnimating=!0,(isNaN(parseInt(e,10))||0==e)&&(e=i<this.currentViewID?-1:1),this.visibleViews=[this.currentViewID,i];var s=this.settings.animation,n=["slide","slideRight","slideUp","slideDown","fade","directFade"];"random"==s&&(s=n[Math.floor(Math.random()*n.length)]);var o={slide:"slideRight",slideRight:"slide",slideUp:"slideDown",slideDown:"slideUp",fade:"fade",directFade:"directFade"};0>e&&(s=o[s]);var a=t(this.$views[this.currentViewID]),h=t(this.$views[i]);switch(a.stop(!0,!0),h.stop(!0,!0),h.addClass("slideshow_nextView"),this.recalculateVisibleViews(),this.currentViewID=i,this.$container.trigger("slideshowAnimationStart",[i,s]),s){case"slide":h.css({top:0,left:this.$content.width()}),a.animate({left:-a.outerWidth(!0)},1e3*this.settings.slideSpeed),h.animate({left:0},1e3*this.settings.slideSpeed),setTimeout(t.proxy(function(){a.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"slideRight":h.css({top:0,left:-this.$content.width()}),a.animate({left:a.outerWidth(!0)},1e3*this.settings.slideSpeed),h.animate({left:0},1e3*this.settings.slideSpeed),setTimeout(t.proxy(function(){a.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"slideUp":h.css({top:this.$content.height(),left:0}),a.animate({top:-a.outerHeight(!0)},1e3*this.settings.slideSpeed),h.animate({top:0},1e3*this.settings.slideSpeed),setTimeout(t.proxy(function(){a.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"slideDown":h.css({top:-this.$content.height(),left:0}),a.animate({top:a.outerHeight(!0)},1e3*this.settings.slideSpeed),h.animate({top:0},1e3*this.settings.slideSpeed),setTimeout(t.proxy(function(){a.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"fade":h.css({top:0,left:0,display:"none"}),a.fadeOut(1e3*this.settings.slideSpeed/2),setTimeout(t.proxy(function(){h.fadeIn(1e3*this.settings.slideSpeed/2),a.stop(!0,!0).css({top:this.$container.outerHeight(!0),display:"block"})},this),1e3*this.settings.slideSpeed/2);break;case"directFade":h.css({top:0,left:0,"z-index":0,display:"none"}),a.css({"z-index":1}),h.stop(!0,!0).fadeIn(1e3*this.settings.slideSpeed),a.stop(!0,!0).fadeOut(1e3*this.settings.slideSpeed),setTimeout(t.proxy(function(){h.stop(!0,!0).css({"z-index":0}),a.stop(!0,!0).css({top:this.$container.outerHeight(!0),display:"block","z-index":0})},this),1e3*this.settings.slideSpeed)}setTimeout(t.proxy(function(){a.removeClass("slideshow_currentView"),h.removeClass("slideshow_nextView"),h.addClass("slideshow_currentView"),this.visibleViews=[i],this.currentlyAnimating=!1,this.$container.trigger("slideshowAnimationEnd")},this),1e3*this.settings.slideSpeed)}}}();7 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow.prototype.recalculate=function(i){if(!this.$container.is(":visible"))return setTimeout(t.proxy(function(){this.recalculate(i)},this),500),void 0;for(var e=this.$parentElement, s=0;e.width()<=0&&(e=e.parent(),!(s>50));s++);if(this.currentWidth!=e.width()){this.currentWidth=e.width();var n=e.width()-(this.$container.outerWidth()-this.$container.width());if(parseInt(this.settings.maxWidth,10)>0&&parseInt(this.settings.maxWidth,10)<n&&(n=parseInt(this.settings.maxWidth,10)),this.$container.css("width",Math.floor(n)),this.$content.css("width",Math.floor(n)-(this.$content.outerWidth(!0)-this.$content.width())),this.settings.preserveSlideshowDimensions){var o=n*this.settings.dimensionHeight/this.settings.dimensionWidth;this.$container.css("height",Math.floor(o)),this.$content.css("height",Math.floor(o)-(this.$content.outerHeight(!0)-this.$content.height()))}else this.$container.css("height",Math.floor(this.settings.height)),this.$content.css("height",Math.floor(this.settings.height));this.$views.each(t.proxy(function(i,e){t.inArray(i,this.visibleViews)<0&&t(e).css("top",this.$container.outerHeight(!0))},this)),this.$container.trigger("slideshowResize"),(i||"boolean"!=typeof i)&&this.recalculateVisibleViews()}},i.Slideshow.prototype.recalculateViews=function(){t.each(this.$views,t.proxy(function(t){this.recalculateView(t,!1)},this))},i.Slideshow.prototype.recalculateVisibleViews=function(){t.each(this.visibleViews,t.proxy(function(t,i){this.recalculateView(i,!1)},this))},i.Slideshow.prototype.recalculateView=function(e,s){if(this.$content.width()<=0||this.$content.height()<=0)return setTimeout(t.proxy(function(){this.recalculateView(e,s)},this),500),void 0;var n=t(this.$views[e]);if("boolean"==typeof s&&s||this.$content.width()!=n.outerWidth(!0)){var o=n.find(".slideshow_slide");if(!(o.length<=0)){var a=this.$content.width()-(n.outerWidth(!0)-n.width()),h=this.$content.height()-(n.outerHeight(!0)-n.height()),r=Math.floor(a/o.length),l=h,d=a%o.length,c=0;t(o[0]).css("margin-left",0),t(o[o.length-1]).css("margin-right",0),t.each(o,t.proxy(function(s,n){var a=t(n),h=a.outerWidth(!0)-a.width(),u=a.outerHeight(!0)-a.height();if(s==o.length-1?a.width(r-h+d):a.width(r-h),a.height(l-u),a.hasClass("slideshow_slide_text")){var p=a.find(".slideshow_background_anchor");if(p.length<=0)return;var g=a.width()-(p.outerWidth(!0)-p.width()),w=a.height()-(p.outerHeight(!0)-p.height());p.css({width:g,height:w})}else if(a.hasClass("slideshow_slide_image")){var y=a.find("img");if(y.length<=0)return;var f,v,m=y.outerWidth(),I=y.outerHeight();f=isNaN(parseInt(m))?0:m-y.width(),v=isNaN(parseInt(I))?0:I-y.height();var S=a.width()-f,_=a.height()-v;"stretch"===this.settings.imageBehaviour?(y.css({width:S,height:_}),y.attr({width:S,height:_})):this.getNaturalImageSize(y,t.proxy(function(i,s){var n,o;return 0>=i||0>=s?(setTimeout(t.proxy(function(){this.recalculateView(e,!0)},this),500),void 0):(n=a.width()/a.height(),o=(i+f)/(s+v),o>=n?"natural"===this.settings.imageBehaviour?(y.css({margin:"0px",width:S,height:Math.floor(S/o)}),y.attr({width:S,height:Math.floor(S/o)})):"crop"===this.settings.imageBehaviour&&(y.css({"margin-top":"0px","margin-left":-Math.floor((_*o-S)/2),height:_,width:Math.floor(_*o)}),y.attr({width:Math.floor(_*o),height:_})):"natural"===this.settings.imageBehaviour?(y.css({"margin-left":"auto","margin-right":"auto",display:"block",width:Math.floor(_*o),height:_}),y.attr({width:Math.floor(_*o),height:_})):"crop"===this.settings.imageBehaviour&&(y.css({"margin-top":-Math.floor((S/o-_)/2),"margin-left":"0px",width:S,height:Math.floor(S/o)}),y.attr({width:S,height:Math.floor(S/o)})),void 0)},this))}else if(a.hasClass("slideshow_slide_video")){var P=a.find("iframe");if(P.length>0)P.attr({width:a.width(),height:a.height()});else var $=setInterval(t.proxy(function(){if(i.youTubeAPIReady){clearInterval($);var e=a.find(".slideshow_slide_video_id");e.attr("id","slideshow_slide_video_"+Math.floor(1e6*Math.random())+"_"+e.text());var s=e.attr("data-show-related-videos"),n=new YT.Player(e.attr("id"),{width:a.width(),height:a.height(),videoId:e.text(),playerVars:{wmode:"opaque",rel:s},events:{onReady:function(){},onStateChange:t.proxy(function(t){this.videoPlayers[e.attr("id")].state=t.data},this)}}),o=t("#"+e.attr("id"));o.show(),o.attr("src",o.attr("src")+"&wmode=opaque"),this.videoPlayers[e.attr("id")]={player:n,state:-1}}},this),500)}c+=a.outerWidth(!0)},this)),n.css({width:a,height:h})}}}}();8 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow.prototype.activateDescriptions=function(){this.settings.showDescription&&(t.each(this.$slides.find(".slideshow_description"),t.proxy(function(i, e){var s=t(e);s.show(),this.settings.hideDescription?s.css({position:"absolute",top:this.$container.outerHeight(!0)}):s.css({position:"absolute",bottom:0})},this)),this.settings.hideDescription&&(this.$container.bind("slideshowResize",t.proxy(function(){t.each(this.$container.find(".slideshow_description"),t.proxy(function(i,e){t(e).css("top",this.$container.outerHeight(!0))},this))},this)),this.$container.bind("slideshowAnimationStart",t.proxy(function(){void 0!=this.visibleViews[1]&&t.each(t(this.$views[this.visibleViews[1]]).find(".slideshow_description"),t.proxy(function(i,e){t(e).css("top",this.$container.outerHeight(!0))},this))},this)),this.$slides.mouseenter(t.proxy(function(i){var e=t(i.currentTarget).find(".slideshow_description");this.descriptionTimer=setTimeout(t.proxy(function(){this.descriptionTimer="",e.stop(!0,!1).animate({top:this.$container.outerHeight(!0)-e.outerHeight(!0)},parseInt(1e3*this.settings.descriptionSpeed,10))},this),200)},this)),this.$slides.mouseleave(t.proxy(function(i){this.descriptionTimer!==!1&&(clearInterval(this.descriptionTimer),this.descriptionTimer=!1),t(i.currentTarget).find(".slideshow_description").stop(!0,!1).animate({top:this.$container.outerHeight(!0)},parseInt(1e3*this.settings.descriptionSpeed,10))},this))))},i.Slideshow.prototype.activateNavigationButtons=function(){this.settings.controllable&&(this.$nextButton.click(t.proxy(function(){this.currentlyAnimating||(this.pauseAllVideos(),this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getNextViewID(),1))},this)),this.$previousButton.click(t.proxy(function(){this.currentlyAnimating||(this.pauseAllVideos(),this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getPreviousViewID(),-1))},this)),this.settings.hideNavigationButtons?(this.$container.mouseenter(t.proxy(function(){this.$nextButton.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$nextButton.stop(!0,!0).fadeOut(500)},this)),this.$container.mouseenter(t.proxy(function(){this.$previousButton.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$previousButton.stop(!0,!0).fadeOut(500)},this))):(this.$nextButton.show(),this.$previousButton.show()))},i.Slideshow.prototype.activateControlPanel=function(){this.settings.controlPanel&&(this.$container.bind("slideshowPlayStateChange",t.proxy(function(t,i){i===this.PlayStates.PLAYING?this.$togglePlayButton.attr("class","slideshow_pause"):i===this.PlayStates.PAUSED&&this.$togglePlayButton.attr("class","slideshow_play")},this)),this.$togglePlayButton.click(t.proxy(function(i){var e=t(i.currentTarget);e.hasClass("slideshow_play")?this.play():this.pause(this.PlayStates.PAUSED)},this)),this.settings.hideControlPanel?(this.$container.mouseenter(t.proxy(function(){this.$controlPanel.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$controlPanel.stop(!0,!0).fadeOut(500)},this))):this.$controlPanel.show())},i.Slideshow.prototype.activatePagination=function(){if(this.settings.showPagination){this.$pagination.find(".slideshow_pagination_center").html("<ul></ul>");var i=this.$pagination.find("ul");i.html(""),this.$views.each(t.proxy(function(t){var e="";t==this.currentViewID&&(e="slideshow_currentView"),i.append('<li class="slideshow_transparent '+e+'"><span style="display: none;">'+t+"</span></li>")},this)),this.$pagination.find("li").click(t.proxy(function(i){if(!this.currentlyAnimating){var e=t(i.currentTarget).find("span").text();isNaN(parseInt(e,10))||(this.pauseAllVideos(),this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(parseInt(e,10),0))}},this)),this.$container.bind("slideshowAnimationStart",t.proxy(function(){var i=this.$pagination.find("li");i.each(t.proxy(function(i,e){t(e).removeClass("slideshow_currentView")},this)),t(i[this.currentViewID]).addClass("slideshow_currentView")},this)),this.settings.hidePagination?(this.$container.mouseenter(t.proxy(function(){this.$pagination.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$pagination.stop(!0,!0).fadeOut(500)},this))):this.$pagination.show()}},i.Slideshow.prototype.activatePauseOnHover=function(){this.settings.pauseOnHover&&(this.$container.mouseenter(t.proxy(function(){clearTimeout(this.pauseOnHoverTimer),this.playState!==this.PlayStates.PAUSED&&(this.pauseOnHoverTimer=setTimeout(t.proxy(function(){this.pause(this.PlayStates.TEMPORARILY_PAUSED)},this),500))},this)),this.$container.mouseleave(t.proxy(function(){clearTimeout(this.pauseOnHoverTimer),this.playState!==this.PlayStates.PAUSED&&this.interval===!1&&this.play()},this)))}}();4 !function(){var i=jQuery,t=slideshow_jquery_image_gallery_script;t.Slideshow=function(t){if(t instanceof i&&(this.$container=t,this.$content=this.$container.find(".slideshow_content"),this.$views=this.$container.find(".slideshow_view"),this.$slides=this.$container.find(".slideshow_slide"),this.$controlPanel=this.$container.find(".slideshow_controlPanel"),this.$togglePlayButton=this.$controlPanel.find(".slideshow_togglePlay"),this.$nextButton=this.$container.find(".slideshow_next"),this.$previousButton=this.$container.find(".slideshow_previous"),this.$pagination=this.$container.find(".slideshow_pagination"),this.$loadingIcon=this.$container.find(".slideshow_loading_icon"),this.ID=this.getID(),!isNaN(parseInt(this.ID,10)))){this.settings=window["SlideshowPluginSettings_"+this.ID],i.each(this.settings,i.proxy(function(i,t){"true"==t?this.settings[i]=!0:"false"==t&&(this.settings[i]=!1)},this)),this.$parentElement=this.$container.parent(),this.viewData=[],this.viewIDs=[],this.currentlyAnimating=!1,this.currentViewID=void 0,this.currentWidth=0,this.visibleViews=[],this.videoPlayers=[],this.PlayStates={UNSTARTED:-2,PAUSED:-1,TEMPORARILY_PAUSED:0,PLAYING:1},this.playState=this.PlayStates.UNSTARTED,this.interval=!1,this.pauseOnHoverTimer=!1,this.descriptionTimer=!1,this.randomNextHistoryViewIDs=[],this.randomPreviousHistoryViewIDs=[],this.randomAvailableViewIDs=[],i.each(this.$views,i.proxy(function(i){this.viewIDs.push(i)},this)),this.currentViewID=this.getNextViewID(),this.visibleViews=[this.currentViewID],this.recalculate(!1);var s=i.proxy(function(t){(this.$container.width()<=0||this.$container.height()<=0)&&setTimeout(i.proxy(function(){t()},this),500),i.each(this.$views,i.proxy(function(t,s){var e=i(s);t!=this.visibleViews[0]?e.css("top",this.$container.outerHeight(!0)):e.addClass("slideshow_currentView")},this))},this);s(s);var e=!0;i.each(this.$views,i.proxy(function(t,s){var n=i(s);this.viewData[t]=[],i.each(n.find(".slideshow_slide"),i.proxy(function(s,n){var h=i(n);if(this.viewData[t][s]={},h.hasClass("slideshow_slide_image")){var a=h.find("img");a.length>0?a.get(0).complete?this.viewData[t][s].loaded=1:(t===this.currentViewID&&(e=!1),this.viewData[t][s].loaded=0,this.onImageLoad(a,i.proxy(function(i){this.viewData[t][s].loaded=i?1:2,this.settings.waitUntilLoaded&&t===this.currentViewID&&this.isViewLoaded(t)&&this.start()},this))):this.viewData[t][s].loaded=-1}else this.viewData[t][s].loaded=-1},this))},this)),i(window).load(i.proxy(function(){this.recalculateVisibleViews()},this)),parseFloat(this.settings.intervalSpeed)<parseFloat(this.settings.slideSpeed)+.1&&(this.settings.intervalSpeed=parseFloat(this.settings.slideSpeed)+.1),(!this.settings.waitUntilLoaded||this.settings.waitUntilLoaded&&e)&&this.start()}}}(); 5 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow.prototype.start=function(){this.activateDescriptions(),this.activateControlPanel(),this.activateNavigationButtons(),this.activatePagination(),this.activatePauseOnHover(),this.$loadingIcon.length>0&&this.$loadingIcon.remove(),this.$content.show(),this.recalculateViews(),this.settings.enableResponsiveness&&t(window).resize(t.proxy(function(){this.recalculate(!0)},this)),this.playState=this.PlayStates.PAUSED,this.$container.trigger("slideshowPlayStateChange",[this.playState]),this.settings.play&&this.play()},i.Slideshow.prototype.play=function(){this.interval||(this.playState=this.PlayStates.PLAYING,this.$container.trigger("slideshowPlayStateChange",[this.playState]),this.interval=setInterval(t.proxy(function i(e,s){void 0===s&&(s=this),void 0===e&&(e=s.getNextViewID()),s.isViewLoaded(e)?(s.animateTo(e,1),s.play()):(s.pause(this.PlayStates.TEMPORARILY_PAUSED),setTimeout(t.proxy(function(){i(e,s)},s),100))},this),1e3*this.settings.intervalSpeed))},i.Slideshow.prototype.pause=function(t){clearInterval(this.interval),this.interval=!1,t!==this.PlayStates.PAUSED&&t!==this.PlayStates.TEMPORARILY_PAUSED&&(t=this.PlayStates.PAUSED),this.playState=t,this.$container.trigger("slideshowPlayStateChange",[this.playState])},i.Slideshow.prototype.next=function(){this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getNextViewID(),1)},i.Slideshow.prototype.previous=function(){this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getPreviousViewID(),-1)},i.Slideshow.prototype.isVideoPlaying=function(){for(var t in this.videoPlayers)if(this.videoPlayers.hasOwnProperty(t)){var i=this.videoPlayers[t].state;if(1==i||3==i)return!0}return!1},i.Slideshow.prototype.pauseAllVideos=function(){for(var t in this.videoPlayers)if(this.videoPlayers.hasOwnProperty(t)){var i=this.videoPlayers[t].player;null!=i&&"function"==typeof i.pauseVideo&&(this.videoPlayers[t].state=2,i.pauseVideo())}},i.Slideshow.prototype.isViewLoaded=function(i){var e=!0;return isNaN(parseInt(i,10))?!1:(t.each(this.viewData[i],t.proxy(function(t,i){0==i.loaded&&(e=!1)},this)),e)},i.Slideshow.prototype.getNaturalImageSize=function(i,e,s){return i.length<=0||!(i instanceof t)||"string"!=typeof i.attr("src")?(e(-1,-1,s),void 0):(this.onImageLoad(i,t.proxy(function(t,i){e(i.width,i.height,s)},this)),void 0)},i.Slideshow.prototype.onImageLoad=function(i,e,s){var a=new Image;return i.length<=0||!(i instanceof t)||"string"!=typeof i.attr("src")?(e(!1,a,s),void 0):(a.onload=t.proxy(function(){e(!0,a,s)},this),a.src=i.attr("src"),void 0)},i.Slideshow.prototype.getNextViewID=function(){var t=this.currentViewID;if(this.settings.random){var i=t;if(t=this.getNextRandomViewID(),t!=i)return t}return isNaN(parseInt(t,10))?0:t>=this.$views.length-1?this.settings.loop?0:this.currentViewID:t+1},i.Slideshow.prototype.getPreviousViewID=function(){var t=this.currentViewID;if(isNaN(parseInt(t,10))&&(t=0),this.settings.random){var i=t;if(t=this.getPreviousRandomViewID(),t!=i)return t}return 0>=t?this.settings.loop?t=this.$views.length-1:this.currentViewID:t-=1},i.Slideshow.prototype.getNextRandomViewID=function(){if(isNaN(parseInt(this.currentViewID,10))||this.randomPreviousHistoryViewIDs.push(this.currentViewID),this.randomPreviousHistoryViewIDs.length>2*this.viewIDs.length&&this.randomPreviousHistoryViewIDs.shift(),this.randomNextHistoryViewIDs.length>0)return this.randomNextHistoryViewIDs.pop();if(void 0===this.randomAvailableViewIDs||this.randomAvailableViewIDs.length<=0){this.randomAvailableViewIDs=t.extend(!0,[],this.viewIDs);var i=t.inArray(this.currentViewID,this.randomAvailableViewIDs);i>=0&&this.randomAvailableViewIDs.splice(i,1)}return this.randomAvailableViewIDs.splice(Math.floor(Math.random()*this.randomAvailableViewIDs.length),1).pop()},i.Slideshow.prototype.getPreviousRandomViewID=function(){return isNaN(parseInt(this.currentViewID,10))||this.randomNextHistoryViewIDs.push(this.currentViewID),this.randomNextHistoryViewIDs.length>2*this.viewIDs.length&&this.randomNextHistoryViewIDs.shift(),this.randomPreviousHistoryViewIDs.length>0?this.randomPreviousHistoryViewIDs.pop():this.viewIDs[Math.floor(Math.random()*this.viewIDs.length)]},i.Slideshow.prototype.getID=function(){var t=this.$container.data("sessionId");return isNaN(parseInt(t,10))&&(t=this.$container.attr("data-session-id")),t}}(); 6 !function(){var e=jQuery,t=slideshow_jquery_image_gallery_script;t.Slideshow.prototype.animateTo=function(t,i){if(!(this.isVideoPlaying()||0>t||t>=this.$views.length||t==this.currentViewID)){if(this.currentlyAnimating===!0)return this.$container.one("slideshowAnimationEnd",e.proxy(function(){this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(t,i)},this)),void 0;this.currentlyAnimating=!0,(isNaN(parseInt(i,10))||0==i)&&(i=t<this.currentViewID?-1:1),this.visibleViews=[this.currentViewID,t];var s=this.settings.animation,n=["slide","slideRight","slideUp","slideDown","fade","directFade"];"random"==s&&(s=n[Math.floor(Math.random()*n.length)]);var o={slide:"slideRight",slideRight:"slide",slideUp:"slideDown",slideDown:"slideUp",fade:"fade",directFade:"directFade"};0>i&&(s=o[s]);var d=e(this.$views[this.currentViewID]),h=e(this.$views[t]);switch(d.stop(!0,!0),h.stop(!0,!0),h.addClass("slideshow_nextView"),this.recalculateVisibleViews(),this.currentViewID=t,this.$container.trigger("slideshowAnimationStart",[t,s]),s){case"slide":h.css({top:0,left:this.$content.width()}),d.animate({left:-d.outerWidth(!0)},1e3*this.settings.slideSpeed),h.animate({left:0},1e3*this.settings.slideSpeed),setTimeout(e.proxy(function(){d.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"slideRight":h.css({top:0,left:-this.$content.width()}),d.animate({left:d.outerWidth(!0)},1e3*this.settings.slideSpeed),h.animate({left:0},1e3*this.settings.slideSpeed),setTimeout(e.proxy(function(){d.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"slideUp":h.css({top:this.$content.height(),left:0}),d.animate({top:-d.outerHeight(!0)},1e3*this.settings.slideSpeed),h.animate({top:0},1e3*this.settings.slideSpeed),setTimeout(e.proxy(function(){d.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"slideDown":h.css({top:-this.$content.height(),left:0}),d.animate({top:d.outerHeight(!0)},1e3*this.settings.slideSpeed),h.animate({top:0},1e3*this.settings.slideSpeed),setTimeout(e.proxy(function(){d.stop(!0,!0).css("top",this.$container.outerHeight(!0))},this),1e3*this.settings.slideSpeed);break;case"fade":h.css({top:0,left:0,display:"none"}),d.fadeOut(1e3*this.settings.slideSpeed/2),setTimeout(e.proxy(function(){h.fadeIn(1e3*this.settings.slideSpeed/2),d.stop(!0,!0).css({top:this.$container.outerHeight(!0),display:"block"})},this),1e3*this.settings.slideSpeed/2);break;case"directFade":h.css({top:0,left:0,"z-index":0,display:"none"}),d.css({"z-index":1}),h.stop(!0,!0).fadeIn(1e3*this.settings.slideSpeed),d.stop(!0,!0).fadeOut(1e3*this.settings.slideSpeed),setTimeout(e.proxy(function(){h.stop(!0,!0).css({"z-index":0}),d.stop(!0,!0).css({top:this.$container.outerHeight(!0),display:"block","z-index":0})},this),1e3*this.settings.slideSpeed)}setTimeout(e.proxy(function(){d.removeClass("slideshow_currentView"),h.removeClass("slideshow_nextView"),h.addClass("slideshow_currentView"),this.visibleViews=[t],this.currentlyAnimating=!1,this.$container.trigger("slideshowAnimationEnd")},this),1e3*this.settings.slideSpeed)}}}(); 7 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow.prototype.recalculate=function(i){if(!this.$container.is(":visible"))return setTimeout(t.proxy(function(){this.recalculate(i)},this),500),void 0;for(var e=this.$parentElement,h=0;e.width()<=0&&(e=e.parent(),!(h>50));h++);if(this.currentWidth!=e.width()){this.currentWidth=e.width();var s=e.width()-(this.$container.outerWidth()-this.$container.width());if(parseInt(this.settings.maxWidth,10)>0&&parseInt(this.settings.maxWidth,10)<s&&(s=parseInt(this.settings.maxWidth,10)),this.$container.css("width",Math.floor(s)),this.$content.css("width",Math.floor(s)-(this.$content.outerWidth(!0)-this.$content.width())),this.settings.preserveSlideshowDimensions){var o=s*this.settings.dimensionHeight/this.settings.dimensionWidth;this.$container.css("height",Math.floor(o)),this.$content.css("height",Math.floor(o)-(this.$content.outerHeight(!0)-this.$content.height()))}else this.$container.css("height",Math.floor(this.settings.height)),this.$content.css("height",Math.floor(this.settings.height));this.$views.each(t.proxy(function(i,e){t.inArray(i,this.visibleViews)<0&&t(e).css("top",this.$container.outerHeight(!0))},this)),this.$container.trigger("slideshowResize"),(i||"boolean"!=typeof i)&&this.recalculateVisibleViews()}},i.Slideshow.prototype.recalculateViews=function(){t.each(this.$views,t.proxy(function(t){this.recalculateView(t,!1)},this))},i.Slideshow.prototype.recalculateVisibleViews=function(){t.each(this.visibleViews,t.proxy(function(t,i){this.recalculateView(i,!1)},this))},i.Slideshow.prototype.recalculateView=function(e,h){if(this.$content.width()<=0||this.$content.height()<=0)return setTimeout(t.proxy(function(){this.recalculateView(e,h)},this),500),void 0;var s=t(this.$views[e]);if("boolean"==typeof h&&h||this.$content.width()!=s.outerWidth(!0)){var o=s.find(".slideshow_slide");if(!(o.length<=0)){var r=this.$content.width()-(s.outerWidth(!0)-s.width()),a=this.$content.height()-(s.outerHeight(!0)-s.height()),n=Math.floor(r/o.length),d=a,l=r%o.length,c=0;t(o[0]).css("margin-left",0),t(o[o.length-1]).css("margin-right",0),t.each(o,t.proxy(function(h,s){var r=t(s),a=r.outerWidth(!0)-r.width(),g=r.outerHeight(!0)-r.height();if(h==o.length-1?r.width(n-a+l):r.width(n-a),r.height(d-g),r.hasClass("slideshow_slide_text")){var w=r.find(".slideshow_background_anchor");if(w.length<=0)return;var u=r.width()-(w.outerWidth(!0)-w.width()),f=r.height()-(w.outerHeight(!0)-w.height());w.css({width:u,height:f})}else if(r.hasClass("slideshow_slide_image")){var v=r.find("img");if(v.length<=0)return;var p,m,y=v.outerWidth(),$=v.outerHeight();p=isNaN(parseInt(y))?0:y-v.width(),m=isNaN(parseInt($))?0:$-v.height();var _=r.width()-p,x=r.height()-m;"stretch"===this.settings.imageBehaviour?(v.css({width:_,height:x}),v.attr({width:_,height:x})):this.getNaturalImageSize(v,t.proxy(function(i,h){var s,o;return 0>=i||0>=h?(setTimeout(t.proxy(function(){this.recalculateView(e,!0)},this),500),void 0):(s=r.width()/r.height(),o=(i+p)/(h+m),o>=s?"natural"===this.settings.imageBehaviour?(v.css({margin:"0px",width:_,height:Math.floor(_/o)}),v.attr({width:_,height:Math.floor(_/o)})):"crop"===this.settings.imageBehaviour&&(v.css({"margin-top":"0px","margin-left":-Math.floor((x*o-_)/2),height:x,width:Math.floor(x*o)}),v.attr({width:Math.floor(x*o),height:x})):"natural"===this.settings.imageBehaviour?(v.css({"margin-left":"auto","margin-right":"auto",display:"block",width:Math.floor(x*o),height:x}),v.attr({width:Math.floor(x*o),height:x})):"crop"===this.settings.imageBehaviour&&(v.css({"margin-top":-Math.floor((_/o-x)/2),"margin-left":"0px",width:_,height:Math.floor(_/o)}),v.attr({width:_,height:Math.floor(_/o)})),void 0)},this))}else if(r.hasClass("slideshow_slide_video")){var M=r.find("iframe");if(M.length>0)M.attr({width:r.width(),height:r.height()});else var W=setInterval(t.proxy(function(){if(i.youTubeAPIReady){clearInterval(W);var e=r.find(".slideshow_slide_video_id");e.attr("id","slideshow_slide_video_"+Math.floor(1e6*Math.random())+"_"+e.text());var h=e.attr("data-show-related-videos"),s=new YT.Player(e.attr("id"),{width:r.width(),height:r.height(),videoId:e.text(),playerVars:{wmode:"opaque",rel:h},events:{onReady:function(){},onStateChange:t.proxy(function(t){this.videoPlayers[e.attr("id")].state=t.data},this)}}),o=t("#"+e.attr("id"));o.show(),o.attr("src",o.attr("src")+"&wmode=opaque"),this.videoPlayers[e.attr("id")]={player:s,state:-1}}},this),500)}c+=r.outerWidth(!0)},this)),s.css({width:r,height:a})}}}}(); 8 !function(){var t=jQuery,i=slideshow_jquery_image_gallery_script;i.Slideshow.prototype.activateDescriptions=function(){this.settings.showDescription&&(t.each(this.$slides.find(".slideshow_description"),t.proxy(function(i,s){var e=t(s);e.show(),this.settings.hideDescription?e.css({position:"absolute",top:this.$container.outerHeight(!0)}):e.css({position:"absolute",bottom:0})},this)),this.settings.hideDescription&&(this.$container.bind("slideshowResize",t.proxy(function(){t.each(this.$container.find(".slideshow_description"),t.proxy(function(i,s){t(s).css("top",this.$container.outerHeight(!0))},this))},this)),this.$container.bind("slideshowAnimationStart",t.proxy(function(){void 0!=this.visibleViews[1]&&t.each(t(this.$views[this.visibleViews[1]]).find(".slideshow_description"),t.proxy(function(i,s){t(s).css("top",this.$container.outerHeight(!0))},this))},this)),this.$slides.mouseenter(t.proxy(function(i){var s=t(i.currentTarget).find(".slideshow_description");this.descriptionTimer=setTimeout(t.proxy(function(){this.descriptionTimer="",s.stop(!0,!1).animate({top:this.$container.outerHeight(!0)-s.outerHeight(!0)},parseInt(1e3*this.settings.descriptionSpeed,10))},this),200)},this)),this.$slides.mouseleave(t.proxy(function(i){this.descriptionTimer!==!1&&(clearInterval(this.descriptionTimer),this.descriptionTimer=!1),t(i.currentTarget).find(".slideshow_description").stop(!0,!1).animate({top:this.$container.outerHeight(!0)},parseInt(1e3*this.settings.descriptionSpeed,10))},this))))},i.Slideshow.prototype.activateNavigationButtons=function(){this.settings.controllable&&(this.$nextButton.click(t.proxy(function(){this.currentlyAnimating||(this.pauseAllVideos(),this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getNextViewID(),1))},this)),this.$previousButton.click(t.proxy(function(){this.currentlyAnimating||(this.pauseAllVideos(),this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(this.getPreviousViewID(),-1))},this)),this.settings.hideNavigationButtons?(this.$container.mouseenter(t.proxy(function(){this.$nextButton.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$nextButton.stop(!0,!0).fadeOut(500)},this)),this.$container.mouseenter(t.proxy(function(){this.$previousButton.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$previousButton.stop(!0,!0).fadeOut(500)},this))):(this.$nextButton.show(),this.$previousButton.show()))},i.Slideshow.prototype.activateControlPanel=function(){this.settings.controlPanel&&(this.$container.bind("slideshowPlayStateChange",t.proxy(function(t,i){i===this.PlayStates.PLAYING?this.$togglePlayButton.attr("class","slideshow_pause"):i===this.PlayStates.PAUSED&&this.$togglePlayButton.attr("class","slideshow_play")},this)),this.$togglePlayButton.click(t.proxy(function(i){var s=t(i.currentTarget);s.hasClass("slideshow_play")?this.play():this.pause(this.PlayStates.PAUSED)},this)),this.settings.hideControlPanel?(this.$container.mouseenter(t.proxy(function(){this.$controlPanel.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$controlPanel.stop(!0,!0).fadeOut(500)},this))):this.$controlPanel.show())},i.Slideshow.prototype.activatePagination=function(){if(this.settings.showPagination){this.$pagination.find(".slideshow_pagination_center").html("<ul></ul>");var i=this.$pagination.find("ul");i.html(""),this.$views.each(t.proxy(function(t){var s="";t==this.currentViewID&&(s="slideshow_currentView"),i.append('<li class="slideshow_transparent '+s+'"><span style="display: none;">'+t+"</span></li>")},this)),this.$pagination.find("li").click(t.proxy(function(i){if(!this.currentlyAnimating){var s=t(i.currentTarget).find("span").text();isNaN(parseInt(s,10))||(this.pauseAllVideos(),this.playState===this.PlayStates.PLAYING&&(this.pause(this.PlayStates.TEMPORARILY_PAUSED),this.play()),this.animateTo(parseInt(s,10),0))}},this)),this.$container.bind("slideshowAnimationStart",t.proxy(function(){var i=this.$pagination.find("li");i.each(t.proxy(function(i,s){t(s).removeClass("slideshow_currentView")},this)),t(i[this.currentViewID]).addClass("slideshow_currentView")},this)),this.settings.hidePagination?(this.$container.mouseenter(t.proxy(function(){this.$pagination.stop(!0,!0).fadeIn(100)},this)),this.$container.mouseleave(t.proxy(function(){this.$pagination.stop(!0,!0).fadeOut(500)},this))):this.$pagination.show()}},i.Slideshow.prototype.activatePauseOnHover=function(){this.settings.pauseOnHover&&(this.$container.mouseenter(t.proxy(function(){clearTimeout(this.pauseOnHoverTimer),this.playState!==this.PlayStates.PAUSED&&(this.pauseOnHoverTimer=setTimeout(t.proxy(function(){this.pause(this.PlayStates.TEMPORARILY_PAUSED)},this),500))},this)),this.$container.mouseleave(t.proxy(function(){clearTimeout(this.pauseOnHoverTimer),this.playState!==this.PlayStates.PAUSED&&this.interval===!1&&this.play()},this)))}}(); -
slideshow-jquery-image-gallery/trunk/languages/slideshow-plugin-fa_IR.po
r772460 r813937 3 3 "Project-Id-Version: Slideshow Plugin\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2013- 09-09 23:58+0100\n"6 "PO-Revision-Date: 2013- 09-09 23:59+0100\n"7 "Last-Translator: Maziar Moradpour < [email protected]>\n"5 "POT-Creation-Date: 2013-10-02 21:00+0100\n" 6 "PO-Revision-Date: 2013-10-02 21:00+0100\n" 7 "Last-Translator: Maziar Moradpour <[email protected]>\n" 8 8 "Language-Team: Stefan Boonstra <[email protected]>\n" 9 9 "MIME-Version: 1.0\n" … … 78 78 #: classes/SlideshowPluginSlideshowSettingsHandler.php:518 79 79 msgid "Animation used for transition between slides" 80 msgstr "انیمیشن برای انتقال بین اسلایدها استفاده می شود"80 msgstr "انیمیشن برای حرکت اسلایدها" 81 81 82 82 #: classes/SlideshowPluginInstaller.php:716 … … 103 103 #: classes/SlideshowPluginSlideshowSettingsHandler.php:519 104 104 msgid "Number of seconds the slide takes to slide in" 105 msgstr " تعداد اسلاید ثانیه طول می کشد به اسلاید"105 msgstr "مدت زمان حرکت به اسلاید بعدی" 106 106 107 107 #: classes/SlideshowPluginInstaller.php:718 108 108 #: classes/SlideshowPluginSlideshowSettingsHandler.php:520 109 109 msgid "Number of seconds the description takes to slide in" 110 msgstr " تعداد ثانیه توضیحات طول می کشد به اسلاید"110 msgstr "مدت زمان نمایش توضیحات اساید" 111 111 112 112 #: classes/SlideshowPluginInstaller.php:719 113 113 #: classes/SlideshowPluginSlideshowSettingsHandler.php:521 114 114 msgid "Seconds between changing slides" 115 msgstr " ثانیه بین تغییر اسلاید"115 msgstr "مدت زمان وقفه برای هر اسلاید" 116 116 117 117 #: classes/SlideshowPluginInstaller.php:720 118 118 #: classes/SlideshowPluginSlideshowSettingsHandler.php:522 119 119 msgid "Number of slides to fit into one slide" 120 msgstr "تعداد اسلایدها ب ه جا را بهیک اسلاید"120 msgstr "تعداد اسلایدها برای جا دادن داخل یک اسلاید" 121 121 122 122 #: classes/SlideshowPluginInstaller.php:720 … … 141 141 #: classes/SlideshowPluginInstaller.php:721 142 142 msgid "Width of the slideshow, set to parent's width on 0" 143 msgstr "عرض تصاویر به صورت خودکار، به عرض مادر بر روی 0 تنظیم شده است"143 msgstr "عرض نمایشگر اسلاید با تگ اصلی وقتی که روی 0 تنظیم کنید، ست می شود." 144 144 145 145 #: classes/SlideshowPluginInstaller.php:722 146 146 msgid "Height of the slideshow" 147 msgstr "ارتفاع تصاویر به صورت خودکار"147 msgstr "ارتفاع نمایشگر اسلاید" 148 148 149 149 #: classes/SlideshowPluginInstaller.php:723 … … 163 163 msgid "Hide description box, it will pop up when a mouse hovers over the slide" 164 164 msgstr "" 165 "پنهان کردن جعبه توضیحات، این پاپ تا زمانی که قراردادن موشواره ماوس بر روی " 166 "اسلاید" 165 "پنهان کردن جعبه توضیحات تا زمانی که موشواره ماوس بر روی اسلاید حرکت کند" 167 166 168 167 #: classes/SlideshowPluginInstaller.php:727 169 168 #: classes/SlideshowPluginSlideshowSettingsHandler.php:531 170 169 msgid "Automatically slide to the next slide" 171 msgstr " به طور خودکار به اسلاید بعدی اسلاید"170 msgstr "حرکت خودکار اسلاید به اسلاید بعدی" 172 171 173 172 #: classes/SlideshowPluginInstaller.php:727 … … 190 189 #: classes/SlideshowPluginSlideshowSettingsHandler.php:532 191 190 msgid "Return to the beginning of the slideshow after last slide" 192 msgstr "بازگشت به ابتدای تصاویر به صورت خودکار پس از اسلاید آخرین"191 msgstr "بازگشت خودکار به ابتدا پس از نمایش آخرین اسلاید" 193 192 194 193 #: classes/SlideshowPluginInstaller.php:729 195 194 msgid "Activate buttons (so the user can scroll through the slides)" 196 msgstr " دکمه های فعال کردن (به طوری که کاربر می تواند از طریق اسلاید حرکت)"195 msgstr "فعال کردن دکمه ها (به طوری که کاربر می تواند اسلایدها را حرکت دهد)" 197 196 198 197 #: classes/SlideshowPluginInstaller.php:730 199 198 msgid "Show control panel (play and pause button)" 200 msgstr "نمایش کنترل پانل (روی دکمه پخش و مکث)"199 msgstr "نمایش دکمه های حرکت خودکار و مکث" 201 200 202 201 #: classes/SlideshowPluginPostType.php:38 203 202 msgid "Slideshows" 204 msgstr "نمایشگر اسلاید"203 msgstr "نمایشگرها" 205 204 206 205 #: classes/SlideshowPluginPostType.php:39 207 206 #: views/SlideshowPluginWidget/form.php:7 208 207 msgid "Slideshow" 209 msgstr "نمایش به صورت اسلاید"208 msgstr "نمایشگر" 210 209 211 210 #: classes/SlideshowPluginPostType.php:40 212 211 msgid "Add New Slideshow" 213 msgstr "اضافه کردن نمایشگر اسلایدجدید"212 msgstr "اضافه کردن نمایشگر جدید" 214 213 215 214 #: classes/SlideshowPluginPostType.php:41 216 215 msgid "Edit slideshow" 217 msgstr "ویرایش نمایشگر اسلاید"216 msgstr "ویرایش نمایشگر" 218 217 219 218 #: classes/SlideshowPluginPostType.php:42 220 219 msgid "New slideshow" 221 msgstr "نمایشگر اسلایدجدید"220 msgstr "نمایشگر جدید" 222 221 223 222 #: classes/SlideshowPluginPostType.php:43 224 223 msgid "View slideshow" 225 msgstr "مشاهده نمایشگر اسلاید"224 msgstr "مشاهده نمایشگر" 226 225 227 226 #: classes/SlideshowPluginPostType.php:44 228 227 msgid "Search slideshows" 229 msgstr " نمایشگر اسلاید جستجو"228 msgstr "جستجوی نمایشگر" 230 229 231 230 #: classes/SlideshowPluginPostType.php:45 232 231 #: classes/SlideshowPluginPostType.php:46 233 232 msgid "No slideshows found" 234 msgstr "نمایشگر اسلایدیافت نشد"233 msgstr "نمایشگری یافت نشد" 235 234 236 235 #: classes/SlideshowPluginPostType.php:91 … … 240 239 #: classes/SlideshowPluginPostType.php:100 241 240 msgid "Slides List" 242 msgstr "فهرست اسلاید "241 msgstr "فهرست اسلایدها" 243 242 244 243 #: classes/SlideshowPluginPostType.php:109 245 244 msgid "Slideshow Style" 246 msgstr "سبک نمایشگر اسلاید"245 msgstr "سبک نمایشگر" 247 246 248 247 #: classes/SlideshowPluginPostType.php:118 249 248 msgid "Slideshow Settings" 250 msgstr "تنظیمات نمایشگر اسلاید"249 msgstr "تنظیمات نمایشگر" 251 250 252 251 #: classes/SlideshowPluginPostType.php:174 253 #: classes/SlideshowPluginSlideInserter.php: 222252 #: classes/SlideshowPluginSlideInserter.php:198 254 253 #: views/SlideshowPluginPostType/slides.php:2 255 254 msgid "Insert" … … 259 258 #: views/SlideshowPluginPostType/slides.php:10 260 259 msgid "Add slides to this slideshow by using one of the buttons above." 261 msgstr "" 262 "افزودن اسلاید به این نمایشگر اسلاید به صورت خودکار با استفاده از یکی از دکمه " 263 "های بالا." 260 msgstr "افزودن اسلاید به این نمایشگر با استفاده از یکی از دکمه های بالا." 264 261 265 262 #: classes/SlideshowPluginShortcode.php:148 266 263 msgid "No slideshow selected." 267 msgstr "نمایشگر اسلایدی انتخاب نشده"268 269 #: classes/SlideshowPluginSlideInserter.php:1 78264 msgstr "نمایشگری انتخاب نشده" 265 266 #: classes/SlideshowPluginSlideInserter.php:154 270 267 msgid "More results loaded" 271 268 msgstr "نتایج بیشتر لود شده" 272 269 273 #: classes/SlideshowPluginSlideInserter.php:2 33270 #: classes/SlideshowPluginSlideInserter.php:209 274 271 msgid "Load more results" 275 272 msgstr "بارگیری نتایج بیشتر" 276 273 277 #: classes/SlideshowPluginSlideInserter.php:2 44274 #: classes/SlideshowPluginSlideInserter.php:220 278 275 msgid "No images were found, click here to upload some." 279 276 msgstr "تصویری یافت نشد، برای آپلود تصاویر جدید اینجا را کلیک کنید." 280 277 281 #: classes/SlideshowPluginSlideInserter.php: 317278 #: classes/SlideshowPluginSlideInserter.php:292 282 279 msgid "Are you sure you want to delete this slide?" 283 280 msgstr "آیا شما مطمئن هستید که میخواهید این اسلاید را حذف کنید؟" 284 281 285 #: classes/SlideshowPluginSlideInserter.php: 318282 #: classes/SlideshowPluginSlideInserter.php:293 286 283 msgid "Insert image slide" 287 msgstr " "284 msgstr "درج تصویر اسلاید" 288 285 289 286 #: classes/SlideshowPluginSlideshowSettingsHandler.php:523 290 287 msgid "Maximum width. When maximum width is 0, maximum width is ignored" 291 msgstr "حداکثر عرض. وقتی حداکثر عرض 0،حداکثر عرض نادیده گرفته می شود"288 msgstr "حداکثر عرض. با تنظیم حداکثر عرض روی 0 حداکثر عرض نادیده گرفته می شود" 292 289 293 290 #: classes/SlideshowPluginSlideshowSettingsHandler.php:524 … … 308 305 #: classes/SlideshowPluginSlideshowSettingsHandler.php:525 309 306 msgid "Slideshow's height" 310 msgstr " نمایشگر اسلاید تصاویر به صورت اسلاید ارتفاع"307 msgstr "ارتفاع نمایشگر" 311 308 312 309 #: classes/SlideshowPluginSlideshowSettingsHandler.php:526 313 310 msgid "Image behaviour" 314 msgstr " "311 msgstr "نحوه نمایش تصویر" 315 312 316 313 #: classes/SlideshowPluginSlideshowSettingsHandler.php:527 317 314 msgid "Shrink slideshow's height when width shrinks" 318 msgstr "کوچک ارتفاع نمایشگر اسلاید زمانی صورت کاهش عرض"315 msgstr "کوچک کردن ارتفاع نمایشگر وقتی که عرض آن کم می شود" 319 316 320 317 #: classes/SlideshowPluginSlideshowSettingsHandler.php:528 321 318 msgid "" 322 319 "Enable responsiveness (Shrink slideshow's width when page's width shrinks)" 323 msgstr "فعال کردن واکنش (کوچک عرض نمایشگر اسلاید زمانی که کاهش عرض صفحه)"320 msgstr "فعال کردن واکنش (کوچک کردن عرض نمایشگر وقتی عرض صفحه کم می شود)" 324 321 325 322 #: classes/SlideshowPluginSlideshowSettingsHandler.php:530 326 323 msgid "Hide description box, pop up when mouse hovers over" 327 msgstr "پنهان کردن توضیحات، ظاهر شدن زمانی که موشواره موس بر روی آن حرکت کرد."324 msgstr "پنهان بودن توضیحات تا زمانی که موشواره موس بر روی آن حرکت کند" 328 325 329 326 #: classes/SlideshowPluginSlideshowSettingsHandler.php:533 330 327 msgid "Pause slideshow when mouse hovers over" 331 msgstr "توقف نمایشگر اسلایدهنگامی که موشواره موس بر روی آن حرکت کرد"328 msgstr "توقف نمایشگر هنگامی که موشواره موس بر روی آن حرکت کرد" 332 329 333 330 #: classes/SlideshowPluginSlideshowSettingsHandler.php:534 334 331 msgid "Activate navigation buttons" 335 msgstr "دکمه های ناوبریفعال"332 msgstr "دکمه های هدایتگر چپ و راست فعال" 336 333 337 334 #: classes/SlideshowPluginSlideshowSettingsHandler.php:535 338 335 msgid "Hide navigation buttons, show when mouse hovers over" 339 336 msgstr "" 340 "پنهان کردن دکمه های ناوبری، نشان دادن هنگامی که موشواره ماوس بر روی آن حرکت " 341 "کرد." 337 "پنهان بودن دکمه های هدایتگر تا وقتی که موشواره ماوس بر روی آن حرکت کرد." 342 338 343 339 #: classes/SlideshowPluginSlideshowSettingsHandler.php:536 … … 347 343 #: classes/SlideshowPluginSlideshowSettingsHandler.php:537 348 344 msgid "Hide pagination, show when mouse hovers over" 349 msgstr "" 350 "پنهان کردن صفحه بندی، نشان دادن هنگامی که موشواره ماوس بر روی آن حرکت کرد." 345 msgstr "پنهان بودن صفحه بندی تا وقتی که موشواره ماوس بر روی آن حرکت کرد." 351 346 352 347 #: classes/SlideshowPluginSlideshowSettingsHandler.php:538 353 348 msgid "Activate control panel (play and pause button)" 354 msgstr "فعال شدن صفحه کنترل (دکمه پخش و توقف )"349 msgstr "فعال شدن دکمه های حرکت خودکار و مکث" 355 350 356 351 #: classes/SlideshowPluginSlideshowSettingsHandler.php:539 357 352 msgid "Hide control panel, show when mouse hovers over" 358 msgstr "پنهان شدن صفحه کنترل،وقتی که موشواره موس بر روی آن حرکت کرد."353 msgstr "پنهان بودن صفحه کنترل تا وقتی که موشواره موس بر روی آن حرکت کرد." 359 354 360 355 #: classes/SlideshowPluginSlideshowSettingsHandler.php:540 361 356 msgid "Wait until the next slide has loaded before showing it" 362 msgstr " "357 msgstr "مکث کوتاه برای بارگذاری و نمایش تصویر بعدی" 363 358 364 359 #: classes/SlideshowPluginSlideshowSettingsHandler.php:541 365 360 msgid "Show a loading icon until the first slide appears" 366 msgstr " "361 msgstr "نمایش آیکون بارگذاری قبل از نمایش اولین اسلاید" 367 362 368 363 #: classes/SlideshowPluginSlideshowSettingsHandler.php:542 … … 377 372 #: classes/SlideshowPluginSlideshowSettingsHandler.php:547 378 373 msgid "Slide Left" 379 msgstr "کشویی سمتچپ"374 msgstr "کشویی به چپ" 380 375 381 376 #: classes/SlideshowPluginSlideshowSettingsHandler.php:547 382 377 msgid "Slide Right" 383 msgstr "کشویی سمتراست"378 msgstr "کشویی به راست" 384 379 385 380 #: classes/SlideshowPluginSlideshowSettingsHandler.php:547 … … 401 396 #: classes/SlideshowPluginSlideshowSettingsHandler.php:555 402 397 msgid "Natural and centered" 403 msgstr " "398 msgstr "طبیعی در وسط کادر" 404 399 405 400 #: classes/SlideshowPluginSlideshowSettingsHandler.php:555 406 401 msgid "Crop to fit" 407 msgstr " "402 msgstr "حذف بخش های خارج از کادر" 408 403 409 404 #: classes/SlideshowPluginSlideshowSettingsHandler.php:555 410 405 msgid "Stretch to fit" 411 msgstr " "406 msgstr "کشش به اندازه کادر" 412 407 413 408 #: classes/SlideshowPluginSlideshowSettingsHandler.php:569 … … 434 429 #: views/SlideshowPluginGeneralSettings/custom-styles-tab.php:60 435 430 msgid "Create a new custom style from this style" 436 msgstr "ایجاد استایل جدید از روی این استایل"431 msgstr "ایجاد استایل جدید از روی این" 437 432 438 433 #: views/SlideshowPluginGeneralSettings/custom-styles-tab.php:62 … … 447 442 #: views/SlideshowPluginGeneralSettings/custom-styles-tab.php:168 448 443 msgid "Edit this style" 449 msgstr "و ارایش این استایل"444 msgstr "ویرایش این استایل" 450 445 451 446 #: views/SlideshowPluginGeneralSettings/custom-styles-tab.php:91 … … 505 500 msgstr "" 506 501 "تنظیمات در این صفحه فقط روی به نمایشگر اسلایدهایی که از این پس ایجاد می شود " 507 "اعمال خواهد شد و هیچ کدام از نمایشگرهای اسلاید موجود را تغییر نخواهد داد."508 " برای انطباق تنظیمات روی همه نمایشگرهای اسلاید%sاینجا کلیک کنید%s."502 "اعمال خواهد شد و هیچ کدام از نمایشگرهای موجود را تغییر نخواهد داد. برای " 503 "انطباق تنظیمات روی همه نمایشگرها %sاینجا کلیک کنید%s." 509 504 510 505 #: views/SlideshowPluginGeneralSettings/default-slideshow-settings-tab.php:29 … … 520 515 #: views/SlideshowPluginGeneralSettings/default-slideshow-settings-tab.php:77 521 516 msgid "Default Slideshow Stylesheet" 522 msgstr "پیش فرض سبک نمایشگر اسلاید"517 msgstr "پیش فرض سبک نمایشگر" 523 518 524 519 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:11 525 520 msgid "Add slideshows" 526 msgstr "افزودن نمایشگر اسلاید"521 msgstr "افزودن نمایشگر" 527 522 528 523 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:12 529 524 msgid "Edit slideshows" 530 msgstr "ویرایش نمایشگر اسلاید"525 msgstr "ویرایش نمایشگر" 531 526 532 527 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:13 533 528 msgid "Delete slideshows" 534 msgstr "حذف نمایشگر اسلاید"529 msgstr "حذف نمایشگر" 535 530 536 531 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:20 … … 540 535 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:22 541 536 msgid "Select the user roles that will able to perform certain actions." 542 msgstr " نقش های کاربر است قادر خواهد بود به انجام اقدامات خاصی انتخاب."537 msgstr "با تعیین نقش کاربران، آنها قادر به انجام اقدامات خاص خواهند بود." 543 538 544 539 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:38 … … 552 547 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:69 553 548 msgid "Stylesheet location" 554 msgstr " "549 msgstr "محل شیوه نامه" 555 550 556 551 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:72 557 552 msgid "top" 558 msgstr " "553 msgstr "بالا" 559 554 560 555 #: views/SlideshowPluginGeneralSettings/general-settings-tab.php:73 561 556 msgid "bottom" 562 msgstr " "557 msgstr "پائین" 563 558 564 559 #: views/SlideshowPluginGeneralSettings/general-settings.php:16 … … 570 565 "To use this slideshow in your website either add this piece of shortcode to " 571 566 "your posts or pages" 572 msgstr "پستها یا برگههای شما" 567 msgstr "" 568 "برای استفاده از این نمایشگر، می توانید این کد کوتاه شده را در برگه یا نوشته " 569 "های خود اضافه کنید" 573 570 574 571 #: views/SlideshowPluginPostType/information.php:5 … … 576 573 "Or add this piece of code to where ever in your website you want to place " 577 574 "the slideshow" 578 msgstr "نمایشگر اسلاید" 575 msgstr "" 576 "و یا با اضافه کردن این کد، می توانید این نمایشگر را در هرکجای سایت خود قرار " 577 "دهید" 579 578 580 579 #: views/SlideshowPluginPostType/information.php:9 581 580 #, php-format 582 581 msgid "Or go to the %swidgets page%s and show the slideshow as a widget." 583 msgstr "یا استفاده در %sبخش ابزارک%s و نمایش آندر ابزارک"582 msgstr "یا در %sبخش ابزارک%s و استفاده از نمایشگر در ابزارک" 584 583 585 584 #: views/SlideshowPluginPostType/settings.php:26 … … 594 593 #: views/SlideshowPluginSlideshowSlide/backend_text.php:48 595 594 msgid "Text slide" 596 msgstr " متن"595 msgstr "اسلاید متن" 597 596 598 597 #: views/SlideshowPluginPostType/slides.php:61 … … 623 622 #: views/SlideshowPluginSlideshowSlide/backend_text.php:71 624 623 msgid "URL" 625 msgstr "آدرس URL"624 msgstr "آدرس وب" 626 625 627 626 #: views/SlideshowPluginPostType/slides.php:70 … … 634 633 #: views/SlideshowPluginSlideshowSlide/backend_text.php:74 635 634 msgid "Open URL in" 636 msgstr "باز کردن آدرس URLدر"635 msgstr "باز کردن آدرس وب در" 637 636 638 637 #: views/SlideshowPluginPostType/slides.php:72 … … 645 644 #: views/SlideshowPluginSlideshowSlide/backend_text.php:76 646 645 msgid "Same window" 647 msgstr " همان پنجره"646 msgstr "پنجره جاری" 648 647 649 648 #: views/SlideshowPluginPostType/slides.php:73 … … 664 663 #: views/SlideshowPluginSlideshowSlide/backend_video.php:23 665 664 msgid "Video slide" 666 msgstr " ویدیو"665 msgstr "اسلاید ویدیو" 667 666 668 667 #: views/SlideshowPluginPostType/slides.php:95 … … 680 679 #: views/SlideshowPluginSlideshowSlide/backend_templates.php:89 681 680 msgid "Image slide" 682 msgstr " تصویر"681 msgstr "اسلاید تصویر" 683 682 684 683 #: views/SlideshowPluginPostType/slides.php:171 … … 686 685 "An error occurred while loading this slide, and it will not be present in " 687 686 "the slideshow" 688 msgstr " نمایشگر اسلاید"687 msgstr "هنگام بارگذاری این اسلاید خطا رخ داد و در نمایشگر اضافه نشد." 689 688 690 689 #: views/SlideshowPluginPostType/slides.php:177 … … 704 703 #, php-format 705 704 msgid "Custom styles can be created and customized %shere%s." 706 msgstr "استایلها به صورت سفارشی را می توان ایجاد و سفارشی %shere%s" 705 msgstr "" 706 "استایل سفارشی را در %s اینجا %s می توان ایجاد و در آن تغییرات اعمال کرد" 707 707 708 708 #: views/SlideshowPluginPostType/support-plugin.php:3 … … 717 717 "Wordpress.org. Thank you in advance!" 718 718 msgstr "" 719 "درود بر شما. برای توسعه بیشتر و رفع اشکال این افزونه، به انگیزه بیشتری " 720 "نیازمندیم. شما می توانید با مراجعه به wordpress.org و اعطای رتبه 5 ستاره به " 721 "ما انگیزه بیشتری دهید. بی گمان مهرورزی شما با ارائه زود هنگام نسخه های بعدی " 722 "به بهترین شکل پاسخ داده خواهد شد." 719 723 720 724 #: views/SlideshowPluginPostType/support-plugin.php:15 … … 730 734 #: views/SlideshowPluginShortcode/shortcode-inserter.php:18 731 735 msgid "Insert a Slideshow" 732 msgstr " درج یک نمایشگر اسلاید"736 msgstr "قراردادن یک نمایشگر" 733 737 734 738 #: views/SlideshowPluginShortcode/shortcode-inserter.php:12 735 739 #: views/SlideshowPluginShortcode/shortcode-inserter.php:51 736 740 msgid "Insert Slideshow" 737 msgstr " درج نمایشگر اسلاید"741 msgstr "قراردادن نمایشگر" 738 742 739 743 #: views/SlideshowPluginShortcode/shortcode-inserter.php:27 740 744 msgid "Select a slideshow" 741 msgstr "انتخاب یک نمایشگر اسلاید"745 msgstr "انتخاب یک نمایشگر" 742 746 743 747 #: views/SlideshowPluginShortcode/shortcode-inserter.php:36 744 748 #: views/SlideshowPluginWidget/form.php:12 745 749 msgid "Untitled slideshow" 746 msgstr "نمایشگر اسلایدبدون عنوان"750 msgstr "نمایشگر بدون عنوان" 747 751 748 752 #: views/SlideshowPluginShortcode/shortcode-inserter.php:56 … … 756 760 "slideshow here!%s" 757 761 msgstr "" 758 "به نظر می رسد هنوز هیچ نمایشگر اسلاید ایجاد نکرده اید. %sشما می توانید یک"759 " نمایشگر اسلایدایجاد کنید.%s"762 "به نظر می رسد هنوز هیچ نمایشگری ایجاد نکرده اید. %sشما می توانید یک نمایشگر " 763 "ایجاد کنید.%s" 760 764 761 765 #: views/SlideshowPluginSlideInserter/search-popup.php:6 … … 765 769 #: views/SlideshowPluginSlideInserter/search-popup.php:7 766 770 msgid "Search images by title or ID" 767 msgstr "تصاویر جستجو صورت اساس عنوان یا ID"771 msgstr "تصاویر جستجو صورت اساس عنوان یا شناسه" 768 772 769 773 #: views/SlideshowPluginSlideshowSlide/backend_attachment.php:120 … … 772 776 #: views/SlideshowPluginSlideshowSlide/backend_text.php:81 773 777 msgid "Don't let search engines follow link" 774 msgstr " "778 msgstr "موتورهای جستجو اجازه ندارند این لینک را دنبال کنند" 775 779 776 780 #: views/SlideshowPluginSlideshowSlide/backend_attachment.php:126 777 781 #: views/SlideshowPluginSlideshowSlide/backend_templates.php:131 778 782 msgid "Alternative text" 779 msgstr " "783 msgstr "متن جایگزین" 780 784 781 785 #: views/SlideshowPluginSlideshowSlide/backend_templates.php:18 … … 787 791 #: views/SlideshowPluginSlideshowSlide/backend_video.php:36 788 792 msgid "Show related videos" 789 msgstr " "793 msgstr "نمایش ویدیوهای مرتبط" 790 794 791 795 #: views/SlideshowPluginSlideshowSlide/backend_text.php:65 … … 804 808 805 809 #~ msgid "Leave any field open to use default value." 806 #~ msgstr "Een veld dat open wordt gelaten neemt de standaardwaarde aan." 810 #~ msgstr "" 811 #~ "ترک هر آیتم تغییر دادن نشده با استفاده از مقدار پیش فرض تکمیل می شود." -
slideshow-jquery-image-gallery/trunk/languages/slideshow-plugin-original.po
r772460 r813937 3 3 "Project-Id-Version: Slideshow Plugin\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2013- 09-09 23:55+0100\n"6 "PO-Revision-Date: 2013- 09-09 23:55+0100\n"5 "POT-Creation-Date: 2013-11-27 22:02+0100\n" 6 "PO-Revision-Date: 2013-11-27 22:02+0100\n" 7 7 "Last-Translator: Stefan Boonstra <[email protected]>\n" 8 8 "Language-Team: Stefan Boonstra <[email protected]>\n" … … 249 249 250 250 #: classes/SlideshowPluginPostType.php:174 251 #: classes/SlideshowPluginSlideInserter.php: 222251 #: classes/SlideshowPluginSlideInserter.php:198 252 252 #: views/SlideshowPluginPostType/slides.php:2 253 253 msgid "Insert" … … 263 263 msgstr "" 264 264 265 #: classes/SlideshowPluginSlideInserter.php:1 78265 #: classes/SlideshowPluginSlideInserter.php:154 266 266 msgid "More results loaded" 267 267 msgstr "" 268 268 269 #: classes/SlideshowPluginSlideInserter.php:2 33269 #: classes/SlideshowPluginSlideInserter.php:209 270 270 msgid "Load more results" 271 271 msgstr "" 272 272 273 #: classes/SlideshowPluginSlideInserter.php:2 44273 #: classes/SlideshowPluginSlideInserter.php:220 274 274 msgid "No images were found, click here to upload some." 275 275 msgstr "" 276 276 277 #: classes/SlideshowPluginSlideInserter.php: 317277 #: classes/SlideshowPluginSlideInserter.php:292 278 278 msgid "Are you sure you want to delete this slide?" 279 279 msgstr "" 280 280 281 #: classes/SlideshowPluginSlideInserter.php: 318281 #: classes/SlideshowPluginSlideInserter.php:293 282 282 msgid "Insert image slide" 283 283 msgstr "" -
slideshow-jquery-image-gallery/trunk/readme.txt
r794149 r813937 5 5 Tags: responsive, slideshow, slider, slide show, images, image, photo, video, text, gallery, galleries, jquery, javascript 6 6 Requires at least: 3.5 7 Tested up to: 3.7 7 Tested up to: 3.7.1 8 8 Stable tag: 2.2.19 9 9 License: GPLv2 … … 182 182 * Compatible with WordPress 3.7. 183 183 * Improved functional stylesheet. 184 * Fixed: When the slideshow would not have any height, slides would not hide outside of the slideshow. 184 185 * Updated Persian translation by W3Design. 185 186 -
slideshow-jquery-image-gallery/trunk/style/SlideshowPlugin/functional.css
r778924 r813937 65 65 position: absolute; 66 66 top: 0; 67 } 68 .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_image img { 69 float: none; 67 70 } 68 71 .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_image .slideshow_description {
Note: See TracChangeset
for help on using the changeset viewer.