Version Description
- Fixed: A bug in the width calculations caused slideshows in width-less elements to be hidden.
- Fixed: The functional stylesheet defined the last five header elements for the entire page, instead of just for the slideshow.
- Fixed: Pagination bullets were showing multiple times because of a CSS bug.
- Padding and margin in unordered lists set to 0 by default.
- Videos can now be played in full-screen.
- Functional stylesheet temporarily moved to the head section of the page until the stylesheets can be loaded beneath it.
Download this release
Release Info
Developer | stefanboonstra |
Plugin | Slideshow |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- classes/SlideshowPlugin.php +0 -8
- classes/SlideshowPluginGeneralSettings.php +1 -1
- classes/SlideshowPluginInstaller.php +1 -1
- classes/SlideshowPluginPostType.php +24 -3
- classes/SlideshowPluginSecurity.php +1 -1
- classes/SlideshowPluginShortcode.php +1 -1
- classes/SlideshowPluginSlideInserter.php +1 -1
- classes/SlideshowPluginSlideshowSettingsHandler.php +5 -7
- classes/SlideshowPluginSlideshowSlide.php +1 -1
- classes/SlideshowPluginSlideshowView.php +1 -1
- classes/SlideshowPluginWidget.php +1 -1
- js/SlideshowPlugin/slideshow.min.js +1 -1
- languages/slideshow-plugin-es_ES.mo +0 -0
- languages/slideshow-plugin-es_ES.po +12 -10
- languages/slideshow-plugin-fr_FR.mo +0 -0
- languages/slideshow-plugin-fr_FR.po +12 -10
- languages/slideshow-plugin-nl_NL.mo +0 -0
- languages/slideshow-plugin-nl_NL.po +20 -16
- languages/slideshow-plugin-ru_RU.mo +0 -0
- languages/slideshow-plugin-ru_RU.po +12 -10
- languages/slideshow-plugin-zh_CN.mo +0 -0
- languages/slideshow-plugin-zh_CN.po +12 -10
- readme.txt +10 -2
- slideshow.php +3 -3
- style/SlideshowPlugin/functional.css +1 -1
- style/SlideshowPlugin/style-dark.css +1 -1
- style/SlideshowPlugin/style-light.css +1 -1
classes/SlideshowPlugin.php
CHANGED
@@ -82,14 +82,6 @@ class SlideshowPlugin {
|
|
82 |
$settings = SlideshowPluginSlideshowSettingsHandler::getSettings($post->ID);
|
83 |
$styleSettings = SlideshowPluginSlideshowSettingsHandler::getStyleSettings($post->ID);
|
84 |
|
85 |
-
// Enqueue functional sheet
|
86 |
-
wp_enqueue_style(
|
87 |
-
'slideshow_functional_style',
|
88 |
-
SlideshowPluginMain::getPluginUrl() . '/style/' . __CLASS__ . '/functional.css',
|
89 |
-
array(),
|
90 |
-
SlideshowPluginMain::$version
|
91 |
-
);
|
92 |
-
|
93 |
// The slideshow's session ID, allows JavaScript and CSS to distinguish between multiple slideshows
|
94 |
$sessionID = self::$sessionCounter++;
|
95 |
|
82 |
$settings = SlideshowPluginSlideshowSettingsHandler::getSettings($post->ID);
|
83 |
$styleSettings = SlideshowPluginSlideshowSettingsHandler::getStyleSettings($post->ID);
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
// The slideshow's session ID, allows JavaScript and CSS to distinguish between multiple slideshows
|
86 |
$sessionID = self::$sessionCounter++;
|
87 |
|
classes/SlideshowPluginGeneralSettings.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @since 2.1.22
|
7 |
* @author Stefan Boonstra
|
8 |
-
* @version
|
9 |
*/
|
10 |
class SlideshowPluginGeneralSettings {
|
11 |
|
5 |
*
|
6 |
* @since 2.1.22
|
7 |
* @author Stefan Boonstra
|
8 |
+
* @version 01-02-2013
|
9 |
*/
|
10 |
class SlideshowPluginGeneralSettings {
|
11 |
|
classes/SlideshowPluginInstaller.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @since 2.1.20
|
7 |
* @author Stefan Boonstra
|
8 |
-
* @version
|
9 |
*/
|
10 |
class SlideshowPluginInstaller {
|
11 |
|
5 |
*
|
6 |
* @since 2.1.20
|
7 |
* @author Stefan Boonstra
|
8 |
+
* @version 01-02-2013
|
9 |
*/
|
10 |
class SlideshowPluginInstaller {
|
11 |
|
classes/SlideshowPluginPostType.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @since 1.0.0
|
7 |
* @author: Stefan Boonstra
|
8 |
-
* @version:
|
9 |
*/
|
10 |
class SlideshowPluginPostType {
|
11 |
|
@@ -20,7 +20,8 @@ class SlideshowPluginPostType {
|
|
20 |
*/
|
21 |
static function init(){
|
22 |
add_action('init', array(__CLASS__, 'registerSlideshowPostType'));
|
23 |
-
add_action('
|
|
|
24 |
add_action('save_post', array('SlideshowPluginSlideshowSettingsHandler', 'save'));
|
25 |
}
|
26 |
|
@@ -78,13 +79,33 @@ class SlideshowPluginPostType {
|
|
78 |
);
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
/**
|
82 |
* Enqueues scripts and stylesheets for when the admin page
|
83 |
* is a slideshow edit page.
|
84 |
*
|
85 |
* @since 2.1.11
|
86 |
*/
|
87 |
-
static function
|
|
|
88 |
// Return when not on a slideshow edit page.
|
89 |
$currentScreen = get_current_screen();
|
90 |
if($currentScreen->post_type != self::$postType)
|
5 |
*
|
6 |
* @since 1.0.0
|
7 |
* @author: Stefan Boonstra
|
8 |
+
* @version: 01-02-2013
|
9 |
*/
|
10 |
class SlideshowPluginPostType {
|
11 |
|
20 |
*/
|
21 |
static function init(){
|
22 |
add_action('init', array(__CLASS__, 'registerSlideshowPostType'));
|
23 |
+
add_action('wp_print_styles', array(__CLASS__, 'enqueue'));
|
24 |
+
add_action('admin_enqueue_scripts', array(__CLASS__, 'enqueueAdmin'));
|
25 |
add_action('save_post', array('SlideshowPluginSlideshowSettingsHandler', 'save'));
|
26 |
}
|
27 |
|
79 |
);
|
80 |
}
|
81 |
|
82 |
+
/**
|
83 |
+
* Enqueues the styles that have to be placed in the header
|
84 |
+
*
|
85 |
+
* TODO The functional stylesheet needs to move to the bottom of the page again, once the stylesheets of the plugin
|
86 |
+
* TODO can be loaded beneath the functional stylesheet.
|
87 |
+
*
|
88 |
+
* @since 2.2.0
|
89 |
+
*/
|
90 |
+
static function enqueue(){
|
91 |
+
|
92 |
+
// Functional stylesheet
|
93 |
+
wp_enqueue_style(
|
94 |
+
'slideshow_functional_style',
|
95 |
+
SlideshowPluginMain::getPluginUrl() . '/style/SlideshowPlugin/functional.css',
|
96 |
+
array(),
|
97 |
+
SlideshowPluginMain::$version
|
98 |
+
);
|
99 |
+
}
|
100 |
+
|
101 |
/**
|
102 |
* Enqueues scripts and stylesheets for when the admin page
|
103 |
* is a slideshow edit page.
|
104 |
*
|
105 |
* @since 2.1.11
|
106 |
*/
|
107 |
+
static function enqueueAdmin(){
|
108 |
+
|
109 |
// Return when not on a slideshow edit page.
|
110 |
$currentScreen = get_current_screen();
|
111 |
if($currentScreen->post_type != self::$postType)
|
classes/SlideshowPluginSecurity.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @since 2.1.16
|
6 |
* @author Stefan Boonstra
|
7 |
-
* @version
|
8 |
*/
|
9 |
class SlideshowPluginSecurity {
|
10 |
|
4 |
*
|
5 |
* @since 2.1.16
|
6 |
* @author Stefan Boonstra
|
7 |
+
* @version 01-02-2013
|
8 |
*/
|
9 |
class SlideshowPluginSecurity {
|
10 |
|
classes/SlideshowPluginShortcode.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
*
|
8 |
* @since 1.2.0
|
9 |
* @author: Stefan Boonstra
|
10 |
-
* @version:
|
11 |
*/
|
12 |
class SlideshowPluginShortcode {
|
13 |
|
7 |
*
|
8 |
* @since 1.2.0
|
9 |
* @author: Stefan Boonstra
|
10 |
+
* @version: 01-02-2013
|
11 |
*/
|
12 |
class SlideshowPluginShortcode {
|
13 |
|
classes/SlideshowPluginSlideInserter.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* TODO than just inserting slides. (Show and delete functionality should be applied here as well)
|
7 |
* @since 2.0.0
|
8 |
* @author Stefan Boonstra
|
9 |
-
* @version
|
10 |
*/
|
11 |
class SlideshowPluginSlideInserter {
|
12 |
|
6 |
* TODO than just inserting slides. (Show and delete functionality should be applied here as well)
|
7 |
* @since 2.0.0
|
8 |
* @author Stefan Boonstra
|
9 |
+
* @version 01-02-2013
|
10 |
*/
|
11 |
class SlideshowPluginSlideInserter {
|
12 |
|
classes/SlideshowPluginSlideshowSettingsHandler.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @since 2.1.20
|
6 |
* @author Stefan Boonstra
|
7 |
-
* @version
|
8 |
*/
|
9 |
class SlideshowPluginSlideshowSettingsHandler {
|
10 |
|
@@ -383,13 +383,12 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
383 |
'slidesPerView' => '1',
|
384 |
'maxWidth' => '0',
|
385 |
'preserveSlideshowDimensions' => 'true',
|
386 |
-
'aspectRatio' => '
|
387 |
'height' => '200',
|
388 |
'stretchImages' => 'true',
|
389 |
'showDescription' => 'true',
|
390 |
'hideDescription' => 'true',
|
391 |
'enableResponsiveness' => 'true',
|
392 |
-
// 'descriptionHeight' => '50',
|
393 |
'play' => 'true',
|
394 |
'loop' => 'true',
|
395 |
'pauseOnHover' => 'true',
|
@@ -419,14 +418,13 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
419 |
'intervalSpeed' => array('type' => 'text', 'default' => $data['intervalSpeed'], 'description' => __('Seconds between changing slides', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
420 |
'slidesPerView' => array('type' => 'text', 'default' => $data['slidesPerView'], 'description' => __('Number of slides to fit into one slide', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
421 |
'maxWidth' => array('type' => 'text', 'default' => $data['maxWidth'], 'description' => __('Maximum width. When maximum width is 0, maximum width is ignored', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
422 |
-
'preserveSlideshowDimensions' => array('type' => 'radio', 'default' => $data['preserveSlideshowDimensions'], 'description' => __('Shrink height when width shrinks (Fixed height can be defined when setting this value to \'No\')', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
423 |
-
'aspectRatio' => array('type' => 'text', 'default' => $data['aspectRatio'], 'description' => sprintf('<a href="' . __('http://en.wikipedia.org/wiki/Aspect_ratio_(image)', 'slideshow-plugin') . '" title="' . __('More info', 'slideshow-plugin') . '" target="_blank">' . __('Proportional relationship%s between width and height (width:height)', 'slideshow-plugin'), '</a>'), 'dependsOn' => array('settings[preserveSlideshowDimensions]', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
424 |
'height' => array('type' => 'text', 'default' => $data['height'], 'description' => __('Slideshow\'s height', 'slideshow-plugin'), 'dependsOn' => array('settings[preserveSlideshowDimensions]', 'false'), 'group' => __('Display', 'slideshow-plugin')),
|
425 |
'stretchImages' => array('type' => 'radio', 'default' => $data['stretchImages'], 'description' => __('Fit image into slide (Stretch image)', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
|
|
426 |
'showDescription' => array('type' => 'radio', 'default' => $data['showDescription'], 'description' => __('Show title and description', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
427 |
'hideDescription' => array('type' => 'radio', 'default' => $data['hideDescription'], 'description' => __('Hide description box, pop up when mouse hovers over', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'dependsOn' => array('settings[showDescription]', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
428 |
-
'enableResponsiveness' => array('type' => 'radio', 'default' => $data['enableResponsiveness'], 'description' => __('Enable responsiveness (Shrink slideshow\'s width when page\'s width shrinks)', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'dependsOn' => array('settings[showDescription]', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
429 |
-
// 'descriptionHeight' => array('type' => 'text', 'default' => $data['descriptionHeight'], 'description' => __('Height of the description boxes', 'slideshow-plugin'), 'dependsOn' => array('settings[hideDescription]', 'false'), 'group' => __('Display', 'slideshow-plugin')),
|
430 |
'play' => array('type' => 'radio', 'default' => $data['play'], 'description' => __('Automatically slide to the next slide', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
431 |
'loop' => array('type' => 'radio', 'default' => $data['loop'], 'description' => __('Return to the beginning of the slideshow after last slide', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
432 |
'pauseOnHover' => array('type' => 'radio', 'default' => $data['loop'], 'description' => __('Pause slideshow when mouse hovers over', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
4 |
*
|
5 |
* @since 2.1.20
|
6 |
* @author Stefan Boonstra
|
7 |
+
* @version 01-02-2013
|
8 |
*/
|
9 |
class SlideshowPluginSlideshowSettingsHandler {
|
10 |
|
383 |
'slidesPerView' => '1',
|
384 |
'maxWidth' => '0',
|
385 |
'preserveSlideshowDimensions' => 'true',
|
386 |
+
'aspectRatio' => '3:1',
|
387 |
'height' => '200',
|
388 |
'stretchImages' => 'true',
|
389 |
'showDescription' => 'true',
|
390 |
'hideDescription' => 'true',
|
391 |
'enableResponsiveness' => 'true',
|
|
|
392 |
'play' => 'true',
|
393 |
'loop' => 'true',
|
394 |
'pauseOnHover' => 'true',
|
418 |
'intervalSpeed' => array('type' => 'text', 'default' => $data['intervalSpeed'], 'description' => __('Seconds between changing slides', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
419 |
'slidesPerView' => array('type' => 'text', 'default' => $data['slidesPerView'], 'description' => __('Number of slides to fit into one slide', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
420 |
'maxWidth' => array('type' => 'text', 'default' => $data['maxWidth'], 'description' => __('Maximum width. When maximum width is 0, maximum width is ignored', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
421 |
+
'preserveSlideshowDimensions' => array('type' => 'radio', 'default' => $data['preserveSlideshowDimensions'], 'description' => __('Shrink slideshow\'s height when width shrinks (Fixed height can be defined when setting this value to \'No\')', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
422 |
+
'aspectRatio' => array('type' => 'text', 'default' => $data['aspectRatio'], 'description' => sprintf('<a href="' . __('http://en.wikipedia.org/wiki/Aspect_ratio_(image)', 'slideshow-plugin') . '" title="' . __('More info', 'slideshow-plugin') . '" target="_blank">' . __('Proportional relationship%s between slideshow\'s width and height (width:height)', 'slideshow-plugin'), '</a>'), 'dependsOn' => array('settings[preserveSlideshowDimensions]', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
423 |
'height' => array('type' => 'text', 'default' => $data['height'], 'description' => __('Slideshow\'s height', 'slideshow-plugin'), 'dependsOn' => array('settings[preserveSlideshowDimensions]', 'false'), 'group' => __('Display', 'slideshow-plugin')),
|
424 |
'stretchImages' => array('type' => 'radio', 'default' => $data['stretchImages'], 'description' => __('Fit image into slide (Stretch image)', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
425 |
+
'enableResponsiveness' => array('type' => 'radio', 'default' => $data['enableResponsiveness'], 'description' => __('Enable responsiveness (Shrink slideshow\'s width when page\'s width shrinks)', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'dependsOn' => array('settings[showDescription]', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
426 |
'showDescription' => array('type' => 'radio', 'default' => $data['showDescription'], 'description' => __('Show title and description', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
427 |
'hideDescription' => array('type' => 'radio', 'default' => $data['hideDescription'], 'description' => __('Hide description box, pop up when mouse hovers over', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'dependsOn' => array('settings[showDescription]', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
|
|
|
|
428 |
'play' => array('type' => 'radio', 'default' => $data['play'], 'description' => __('Automatically slide to the next slide', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
429 |
'loop' => array('type' => 'radio', 'default' => $data['loop'], 'description' => __('Return to the beginning of the slideshow after last slide', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
430 |
'pauseOnHover' => array('type' => 'radio', 'default' => $data['loop'], 'description' => __('Pause slideshow when mouse hovers over', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
classes/SlideshowPluginSlideshowSlide.php
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
*
|
29 |
* @since 2.2.0
|
30 |
* @author Stefan Boonstra
|
31 |
-
* @version
|
32 |
*/
|
33 |
class SlideshowPluginSlideshowSlide {
|
34 |
|
28 |
*
|
29 |
* @since 2.2.0
|
30 |
* @author Stefan Boonstra
|
31 |
+
* @version 01-02-2013
|
32 |
*/
|
33 |
class SlideshowPluginSlideshowSlide {
|
34 |
|
classes/SlideshowPluginSlideshowView.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @since 2.2.0
|
7 |
* @author Stefan Boonstra
|
8 |
-
* @version
|
9 |
*/
|
10 |
class SlideshowPluginSlideshowView {
|
11 |
|
5 |
*
|
6 |
* @since 2.2.0
|
7 |
* @author Stefan Boonstra
|
8 |
+
* @version 01-02-2013
|
9 |
*/
|
10 |
class SlideshowPluginSlideshowView {
|
11 |
|
classes/SlideshowPluginWidget.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @since 1.2.0
|
6 |
* @author: Stefan Boonstra
|
7 |
-
* @version:
|
8 |
*/
|
9 |
class SlideshowPluginWidget extends WP_Widget {
|
10 |
|
4 |
*
|
5 |
* @since 1.2.0
|
6 |
* @author: Stefan Boonstra
|
7 |
+
* @version: 01-02-2013
|
8 |
*/
|
9 |
class SlideshowPluginWidget extends WP_Widget {
|
10 |
|
js/SlideshowPlugin/slideshow.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery.fn.slideshow_jquery_image_gallery_script=function(){var $=jQuery;var $container=$(this),$content=$container.find('.slideshow_content'),$views=$container.find('.slideshow_view'),$slides=$container.find('.slideshow_slide'),$descriptions=$container.find('.slideshow_description'),$controllers=$container.find('.slideshow_controllers'),$controlPanel=$container.find('.slideshow_controlPanel'),$togglePlayButton=$controlPanel.find('.slideshow_togglePlay'),$nextButton=$container.find('.slideshow_next'),$previousButton=$container.find('.slideshow_previous'),$pagination=$container.find('.slideshow_pagination'),$ID=getID();var $settings=window['SlideshowPluginSettings_'+$ID];$.each($settings,function(setting,value){if(value=='true')$settings[setting]=true;else if(value=='false')$settings[setting]=false});var $parentElement=$container.parent();if($parentElement.width()<=0)$parentElement=$parentElement.closest('div').width();var $viewData=[],$navigationActive=true,$interval='',$mouseEnterTimer='',$currentViewId=getNextViewId(),$currentWidth=0,$visibleViews=[$currentViewId],$youtubePlayerIds=[];init();function init(){recalculate(false);$.each($views,function(viewId,view){recalculateView(view);if(viewId!=$visibleViews[0])$(view).css('top',$container.outerHeight(true));$viewData[viewId]=[];$.each($(view).find('.slideshow_slide'),function(slideId,slide){$viewData[viewId][slideId]={'imageDimension':''}})});$container.show();$(window).load(function(){recalculateVisibleViews()});if($settings['enableResponsiveness']){$(window).resize(function(){recalculate()})}if(parseFloat($settings['intervalSpeed'])<parseFloat($settings['slideSpeed'])+0.1)$settings['intervalSpeed']=parseFloat($settings['slideSpeed'])+0.1;activateDescriptions();activateControlPanel();activateNavigationButtons();activatePagination();activatePauseOnHover();start()}function start(){if(!$settings['play'])return;$interval=setInterval(function(){animateTo(getNextViewId(),1)},$settings['intervalSpeed']*1000)}function stop(){clearInterval($interval);$interval=false}function animateTo(viewId,direction){if(videoIsPlaying()||viewId<0||viewId>=$views.length||viewId==$currentViewId)return;$navigationActive=false;if(direction==0||direction==undefined){if(viewId<$currentViewId)direction=-1;else direction=1}$visibleViews=[$currentViewId,viewId];var animation=$settings['animation'];var animations=['slide','slideRight','slideUp','slideDown','fade','directFade'];if(animation=='random')animation=animations[Math.floor(Math.random()*animations.length)];var animationOpposites={'slide':'slideRight','slideRight':'slide','slideUp':'slideDown','slideDown':'slideUp','fade':'fade','directFade':'directFade'};if(direction<0)animation=animationOpposites[animation];var currentView=$($views[$currentViewId]);var nextView=$($views[viewId]);currentView.stop(true,true);nextView.stop(true,true);recalculateVisibleViews();$currentViewId=viewId;$container.trigger('onSlideshowAnimate');switch(animation){case'slide':recalculateVisibleViews();nextView.css({top:0,left:$content.width()});currentView.animate({left:-currentView.outerWidth(true)},$settings['slideSpeed']*1000);nextView.animate({left:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'slideRight':nextView.css({top:0,left:-$content.width()});currentView.animate({left:currentView.outerWidth(true)},$settings['slideSpeed']*1000);nextView.animate({left:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'slideUp':nextView.css({top:$content.height(),left:0});currentView.animate({top:-currentView.outerHeight(true)},$settings['slideSpeed']*1000);nextView.animate({top:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'slideDown':nextView.css({top:-$content.height(),left:0});currentView.animate({top:currentView.outerHeight(true)},$settings['slideSpeed']*1000);nextView.animate({top:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'fade':nextView.css({top:0,left:0,display:'none'});currentView.fadeOut(($settings['slideSpeed']*1000)/2);setTimeout(function(){nextView.fadeIn(($settings['slideSpeed']*1000)/2);currentView.stop(true,true).css({top:$container.outerHeight(true),display:'block'})},($settings['slideSpeed']*1000)/2);break;case'directFade':nextView.css({top:0,left:0,'z-index':0,display:'none'});currentView.css({'z-index':1});nextView.fadeIn($settings['slideSpeed']*1000);currentView.fadeOut($settings['slideSpeed']*1000);setTimeout(function(){nextView.stop(true,true).css({'z-index':'auto'});currentView.stop(true,true).css({top:$container.outerHeight(true),display:'block','z-index':'auto'})},$settings['slideSpeed']*1000);break}setTimeout(function(){$visibleViews=[viewId]},$settings['slideSpeed']*1000);setTimeout(function(){$navigationActive=true},$settings['slideSpeed']*1000)}function recalculate(recalculateViews){if($currentWidth==$parentElement.width())return;$currentWidth=$parentElement.width();var width=$parentElement.width()-($container.outerWidth(true)-$container.width());$container.css('width',Math.floor(width));$content.css('width',Math.floor(width)-($content.outerWidth(true)-$content.width()));if($settings['preserveSlideshowDimensions']){var height=(width*$settings['dimensionHeight'])/$settings['dimensionWidth'];$container.css('height',Math.floor(height));$content.css('height',Math.floor(height)-($content.outerHeight(true)-$content.height()))}else{$container.css('height',Math.floor($settings['height']));$content.css('height',Math.floor($settings['height']))}$views.each(function(viewId,view){if($.inArray(viewId,$visibleViews)<0)$(view).css('top',$container.outerHeight(true))});if(recalculateViews||recalculateViews==undefined){recalculateVisibleViews()}}function recalculateVisibleViews(){$.each($visibleViews,function(key,viewId){recalculateView(viewId)})}function recalculateView(viewId){view=$($views[viewId]);var slides=view.find('.slideshow_slide');if(slides.length<=0)return;var viewWidth=$content.width()-(view.outerWidth(true)-view.width());var viewHeight=$content.height()-(view.outerHeight(true)-view.height());var slideWidth=Math.floor(viewWidth/slides.length);var slideHeight=viewHeight;var spareWidth=viewWidth%slides.length;var totalWidth=0;$(slides[0]).css('margin-left',0);$(slides[slides.length-1]).css('margin-right',0);$.each(slides,function(slideId,slide){slide=$(slide);var outerWidth=slide.outerWidth(true)-slide.width();var outerHeight=slide.outerHeight(true)-slide.height();if(slideId==(slides.length-1))slide.width((slideWidth-outerWidth)+spareWidth);else slide.width(slideWidth-outerWidth);slide.height(slideHeight-outerHeight);if(slide.hasClass('slideshow_slide_text')){var anchor=slide.find('a');if(anchor.length<=0)return;var anchorWidth=slide.width()-(anchor.outerWidth(true)-anchor.width());var anchorHeight=slide.height()-(anchor.outerHeight(true)-anchor.height());anchor.css({'width':anchorWidth,'height':anchorHeight})}else if(slide.hasClass('slideshow_slide_image')){var image=slide.find('img');if(image.length<=0)return;var maxImageWidth=slide.width()-(image.outerWidth(true)-image.width());var maxImageHeight=slide.height()-(image.outerHeight(true)-image.height());if($settings['stretchImages']){image.css({width:maxImageWidth,height:maxImageHeight})}else if(image.width()>0&&image.height()>0){var imageDimension=$viewData[viewId][slideId]['imageDimension'];if(imageDimension=='')imageDimension=$viewData[viewId][slideId]['imageDimension']=image.outerWidth(true)/image.outerHeight(true);var slideDimension=slide.width()/slide.height();if(imageDimension>slideDimension){image.css({'margin':'0px'});image.css({width:maxImageWidth,height:Math.floor(maxImageWidth/imageDimension)})}else if(imageDimension<slideDimension){image.css({width:Math.floor(maxImageHeight*imageDimension),height:maxImageHeight,'margin':'auto','margin-right':'auto','display':'block'})}}}else if(slide.hasClass('slideshow_slide_video')){var videoElement=slide.find('object');if(videoElement.length>0){videoElement.attr({width:slide.width(),height:slide.height()})}else{var element=slide.find('div');element.attr('id','slideshow_slide_video_'+Math.floor(Math.random()*1000000)+'_'+element.text());swfobject.embedSWF('http://www.youtube.com/v/'+element.text()+'?version=3&enablejsapi=1&playerapiid='+element.attr('id'),element.attr('id'),jQuery(slide).width(),jQuery(slide).height(),'9',null,null,{allowScriptAccess:'always',wmode:'opaque'},{id:element.attr('id')});$youtubePlayerIds.push(element.attr('id'))}}totalWidth+=slide.outerWidth(true)});view.css({'width':viewWidth,'height':viewHeight})}function videoIsPlaying(){var videoIsPlaying=false;$.each($youtubePlayerIds,function(key,playerId){var state=-1;var player=document.getElementById(playerId);if(player!=null&&typeof player.getPlayerState==='function')state=player.getPlayerState();if(state==1||state==3)videoIsPlaying=true});return videoIsPlaying}function activateDescriptions(){if(!$settings['showDescription'])return;$.each($slides.find('.slideshow_description'),function(key,description){$(description).show();if($settings['hideDescription'])$(description).css({'position':'absolute','bottom':-$(description).outerHeight(true)})});if(!$settings['hideDescription'])return;$container.bind('onSlideshowAnimate',function(){if($visibleViews[1]==undefined)return;$.each($($views[$visibleViews[1]]).find('.slideshow_description'),function(key,description){$(description).css('bottom',-$(description).outerHeight(true))})});$slides.mouseenter(function(){$(this).find('.slideshow_description').stop(true,true).animate({'bottom':0},parseInt($settings['descriptionSpeed']*1000))});$slides.mouseleave(function(){$(this).find('.slideshow_description').stop(true,true).animate({'bottom':-$(this).outerHeight(true)},parseInt($settings['descriptionSpeed']*1000))})}function activateNavigationButtons(){if(!$settings['controllable'])return;$nextButton.click(function(){if(!$navigationActive)return;stop();animateTo(getNextViewId(),1);start()});$previousButton.click(function(){if(!$navigationActive)return;stop();animateTo(getPreviousViewId(),-1);start()});if($settings['hideNavigationButtons']){$container.mouseenter(function(){$nextButton.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$nextButton.stop(true,true).fadeOut(500)});$container.mouseenter(function(){$previousButton.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$previousButton.stop(true,true).fadeOut(500)})}else{$nextButton.show();$previousButton.show()}}function activateControlPanel(){if(!$settings['controlPanel'])return;if($settings['play'])$togglePlayButton.attr('class','slideshow_pause');else $togglePlayButton.attr('class','slideshow_play');$togglePlayButton.click(function(){if($settings['play']){$settings['play']=false;$(this).attr('class','slideshow_play');stop()}else{$settings['play']=true;$(this).attr('class','slideshow_pause');start()}});if($settings['hideControlPanel']){$container.mouseenter(function(){$controlPanel.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$controlPanel.stop(true,true).fadeOut(500)})}else{$controlPanel.show()}}function activatePagination(){if(!$settings['showPagination'])return;var ul=$pagination.find('ul');ul.html('');$views.each(function(key,view){var currentView='';if(key==$currentViewId)currentView='slideshow_currentView';ul.append('<li class="slideshow_transparent '+currentView+'">'+'<span style="display: none;">'+key+'</span>'+'</li>')});$pagination.find('li').click(function(){if(!$navigationActive)return;var viewId=$(this).find('span').text();if(viewId==''||viewId==undefined)return;stop();animateTo(parseInt(viewId),0);start()});$container.bind('onSlideshowAnimate',function(){var bullets=$pagination.find('li');bullets.each(function(key,bullet){$(bullet).removeClass('slideshow_currentView')});$(bullets[$currentViewId]).addClass('slideshow_currentView')});if($settings['hidePagination']){$container.mouseenter(function(){$pagination.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$pagination.stop(true,true).fadeOut(500)})}else{$pagination.show()}}function activatePauseOnHover(){if(!$settings['pauseOnHover'])return;$container.mouseenter(function(){clearTimeout($mouseEnterTimer);$mouseEnterTimer=setTimeout(function(){stop()},500)});$container.mouseleave(function(){clearTimeout($mouseEnterTimer);if($interval===false)start()})}function getNextViewId(){if($settings['random']){var oldViewId=viewId;viewId=Math.floor(Math.random()*$views.length);if(viewId!=oldViewId)return viewId}var viewId=$currentViewId;if(viewId==undefined)return 0;if(viewId>=$views.length-1){if($settings['loop'])return viewId=0;else return $currentViewId}return viewId+=1}function getPreviousViewId(){var viewId=$currentViewId;if(viewId==undefined)viewId=0;if($settings['random']){var oldViewId=viewId;viewId=Math.floor(Math.random()*$views.length);if(viewId!=oldViewId)return viewId}if(viewId<=0){if($settings['loop'])return viewId=$views.length-1;else return $currentViewId}return viewId-=1}function getID(){var splitClasses=$container.attr('class').split('_');return splitClasses[splitClasses.length-1]}};jQuery(document).ready(function(){jQuery.each(jQuery('.slideshow_container'),function(key,slideshow){jQuery(slideshow).slideshow_jquery_image_gallery_script()})});
|
1 |
+
jQuery.fn.slideshow_jquery_image_gallery_script=function(){var $=jQuery;var $container=$(this),$content=$container.find('.slideshow_content'),$views=$container.find('.slideshow_view'),$slides=$container.find('.slideshow_slide'),$descriptions=$container.find('.slideshow_description'),$controllers=$container.find('.slideshow_controllers'),$controlPanel=$container.find('.slideshow_controlPanel'),$togglePlayButton=$controlPanel.find('.slideshow_togglePlay'),$nextButton=$container.find('.slideshow_next'),$previousButton=$container.find('.slideshow_previous'),$pagination=$container.find('.slideshow_pagination');var $ID=getID();var $settings=window['SlideshowPluginSettings_'+$ID];$.each($settings,function(setting,value){if(value=='true')$settings[setting]=true;else if(value=='false')$settings[setting]=false});var $parentElement=$container.parent(),$viewData=[],$navigationActive=true,$interval='',$mouseEnterTimer='',$currentViewId=getNextViewId(),$currentWidth=0,$visibleViews=[$currentViewId],$youtubePlayerIds=[];init();function init(){recalculate(false);$.each($views,function(viewId,view){recalculateView(view);if(viewId!=$visibleViews[0])$(view).css('top',$container.outerHeight(true));$viewData[viewId]=[];$.each($(view).find('.slideshow_slide'),function(slideId,slide){$viewData[viewId][slideId]={'imageDimension':''}})});$container.show();$(window).load(function(){recalculateVisibleViews()});if($settings['enableResponsiveness']){$(window).resize(function(){recalculate()})}if(parseFloat($settings['intervalSpeed'])<parseFloat($settings['slideSpeed'])+0.1)$settings['intervalSpeed']=parseFloat($settings['slideSpeed'])+0.1;activateDescriptions();activateControlPanel();activateNavigationButtons();activatePagination();activatePauseOnHover();start()}function start(){if(!$settings['play'])return;$interval=setInterval(function(){animateTo(getNextViewId(),1)},$settings['intervalSpeed']*1000)}function stop(){clearInterval($interval);$interval=false}function animateTo(viewId,direction){if(videoIsPlaying()||viewId<0||viewId>=$views.length||viewId==$currentViewId)return;$navigationActive=false;if(direction==0||direction==undefined){if(viewId<$currentViewId)direction=-1;else direction=1}$visibleViews=[$currentViewId,viewId];var animation=$settings['animation'];var animations=['slide','slideRight','slideUp','slideDown','fade','directFade'];if(animation=='random')animation=animations[Math.floor(Math.random()*animations.length)];var animationOpposites={'slide':'slideRight','slideRight':'slide','slideUp':'slideDown','slideDown':'slideUp','fade':'fade','directFade':'directFade'};if(direction<0)animation=animationOpposites[animation];var currentView=$($views[$currentViewId]);var nextView=$($views[viewId]);currentView.stop(true,true);nextView.stop(true,true);recalculateVisibleViews();$currentViewId=viewId;$container.trigger('onSlideshowAnimate');switch(animation){case'slide':recalculateVisibleViews();nextView.css({top:0,left:$content.width()});currentView.animate({left:-currentView.outerWidth(true)},$settings['slideSpeed']*1000);nextView.animate({left:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'slideRight':nextView.css({top:0,left:-$content.width()});currentView.animate({left:currentView.outerWidth(true)},$settings['slideSpeed']*1000);nextView.animate({left:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'slideUp':nextView.css({top:$content.height(),left:0});currentView.animate({top:-currentView.outerHeight(true)},$settings['slideSpeed']*1000);nextView.animate({top:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'slideDown':nextView.css({top:-$content.height(),left:0});currentView.animate({top:currentView.outerHeight(true)},$settings['slideSpeed']*1000);nextView.animate({top:0},$settings['slideSpeed']*1000);setTimeout(function(){currentView.stop(true,true).css('top',$container.outerHeight(true))},$settings['slideSpeed']*1000);break;case'fade':nextView.css({top:0,left:0,display:'none'});currentView.fadeOut(($settings['slideSpeed']*1000)/2);setTimeout(function(){nextView.fadeIn(($settings['slideSpeed']*1000)/2);currentView.stop(true,true).css({top:$container.outerHeight(true),display:'block'})},($settings['slideSpeed']*1000)/2);break;case'directFade':nextView.css({top:0,left:0,'z-index':0,display:'none'});currentView.css({'z-index':1});nextView.fadeIn($settings['slideSpeed']*1000);currentView.fadeOut($settings['slideSpeed']*1000);setTimeout(function(){nextView.stop(true,true).css({'z-index':'auto'});currentView.stop(true,true).css({top:$container.outerHeight(true),display:'block','z-index':'auto'})},$settings['slideSpeed']*1000);break}setTimeout(function(){$visibleViews=[viewId]},$settings['slideSpeed']*1000);setTimeout(function(){$navigationActive=true},$settings['slideSpeed']*1000)}function recalculate(recalculateViews){var parentElement=$parentElement;for(var i=0;parentElement.width()<=0;i++){parentElement=parentElement.parent();if(i>50)break}if($currentWidth==parentElement.width())return;$currentWidth=parentElement.width();var width=parentElement.width()-($container.outerWidth(true)-$container.width());$container.css('width',Math.floor(width));$content.css('width',Math.floor(width)-($content.outerWidth(true)-$content.width()));if($settings['preserveSlideshowDimensions']){var height=(width*$settings['dimensionHeight'])/$settings['dimensionWidth'];$container.css('height',Math.floor(height));$content.css('height',Math.floor(height)-($content.outerHeight(true)-$content.height()))}else{$container.css('height',Math.floor($settings['height']));$content.css('height',Math.floor($settings['height']))}$views.each(function(viewId,view){if($.inArray(viewId,$visibleViews)<0)$(view).css('top',$container.outerHeight(true))});if(recalculateViews||recalculateViews==undefined){recalculateVisibleViews()}}function recalculateVisibleViews(){$.each($visibleViews,function(key,viewId){recalculateView(viewId)})}function recalculateView(viewId){view=$($views[viewId]);var slides=view.find('.slideshow_slide');if(slides.length<=0)return;var viewWidth=$content.width()-(view.outerWidth(true)-view.width());var viewHeight=$content.height()-(view.outerHeight(true)-view.height());var slideWidth=Math.floor(viewWidth/slides.length);var slideHeight=viewHeight;var spareWidth=viewWidth%slides.length;var totalWidth=0;$(slides[0]).css('margin-left',0);$(slides[slides.length-1]).css('margin-right',0);$.each(slides,function(slideId,slide){slide=$(slide);var outerWidth=slide.outerWidth(true)-slide.width();var outerHeight=slide.outerHeight(true)-slide.height();if(slideId==(slides.length-1))slide.width((slideWidth-outerWidth)+spareWidth);else slide.width(slideWidth-outerWidth);slide.height(slideHeight-outerHeight);if(slide.hasClass('slideshow_slide_text')){var anchor=slide.find('a');if(anchor.length<=0)return;var anchorWidth=slide.width()-(anchor.outerWidth(true)-anchor.width());var anchorHeight=slide.height()-(anchor.outerHeight(true)-anchor.height());anchor.css({'width':anchorWidth,'height':anchorHeight})}else if(slide.hasClass('slideshow_slide_image')){var image=slide.find('img');if(image.length<=0)return;var maxImageWidth=slide.width()-(image.outerWidth(true)-image.width());var maxImageHeight=slide.height()-(image.outerHeight(true)-image.height());if($settings['stretchImages']){image.css({width:maxImageWidth,height:maxImageHeight})}else if(image.width()>0&&image.height()>0){var imageDimension=$viewData[viewId][slideId]['imageDimension'];if(imageDimension=='')imageDimension=$viewData[viewId][slideId]['imageDimension']=image.outerWidth(true)/image.outerHeight(true);var slideDimension=slide.width()/slide.height();if(imageDimension>slideDimension){image.css({'margin':'0px'});image.css({width:maxImageWidth,height:Math.floor(maxImageWidth/imageDimension)})}else if(imageDimension<slideDimension){image.css({width:Math.floor(maxImageHeight*imageDimension),height:maxImageHeight,'margin':'auto','margin-right':'auto','display':'block'})}}}else if(slide.hasClass('slideshow_slide_video')){var videoElement=slide.find('object');if(videoElement.length>0){videoElement.attr({width:slide.width(),height:slide.height()})}else{var element=slide.find('div');element.attr('id','slideshow_slide_video_'+Math.floor(Math.random()*1000000)+'_'+element.text());swfobject.embedSWF('http://www.youtube.com/v/'+element.text()+'?version=3&enablejsapi=1&playerapiid='+element.attr('id'),element.attr('id'),jQuery(slide).width(),jQuery(slide).height(),'9',null,null,{allowScriptAccess:'always',allowFullScreen:true,wmode:'opaque'},{id:element.attr('id')});$youtubePlayerIds.push(element.attr('id'))}}totalWidth+=slide.outerWidth(true)});view.css({'width':viewWidth,'height':viewHeight})}function videoIsPlaying(){var videoIsPlaying=false;$.each($youtubePlayerIds,function(key,playerId){var state=-1;var player=document.getElementById(playerId);if(player!=null&&typeof player.getPlayerState==='function')state=player.getPlayerState();if(state==1||state==3)videoIsPlaying=true});return videoIsPlaying}function activateDescriptions(){if(!$settings['showDescription'])return;$.each($slides.find('.slideshow_description'),function(key,description){$(description).show();if($settings['hideDescription'])$(description).css({'position':'absolute','bottom':-$(description).outerHeight(true)})});if(!$settings['hideDescription'])return;$container.bind('onSlideshowAnimate',function(){if($visibleViews[1]==undefined)return;$.each($($views[$visibleViews[1]]).find('.slideshow_description'),function(key,description){$(description).css('bottom',-$(description).outerHeight(true))})});$slides.mouseenter(function(){$(this).find('.slideshow_description').stop(true,true).animate({'bottom':0},parseInt($settings['descriptionSpeed']*1000))});$slides.mouseleave(function(){$(this).find('.slideshow_description').stop(true,true).animate({'bottom':-$(this).outerHeight(true)},parseInt($settings['descriptionSpeed']*1000))})}function activateNavigationButtons(){if(!$settings['controllable'])return;$nextButton.click(function(){if(!$navigationActive)return;stop();animateTo(getNextViewId(),1);start()});$previousButton.click(function(){if(!$navigationActive)return;stop();animateTo(getPreviousViewId(),-1);start()});if($settings['hideNavigationButtons']){$container.mouseenter(function(){$nextButton.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$nextButton.stop(true,true).fadeOut(500)});$container.mouseenter(function(){$previousButton.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$previousButton.stop(true,true).fadeOut(500)})}else{$nextButton.show();$previousButton.show()}}function activateControlPanel(){if(!$settings['controlPanel'])return;if($settings['play'])$togglePlayButton.attr('class','slideshow_pause');else $togglePlayButton.attr('class','slideshow_play');$togglePlayButton.click(function(){if($settings['play']){$settings['play']=false;$(this).attr('class','slideshow_play');stop()}else{$settings['play']=true;$(this).attr('class','slideshow_pause');start()}});if($settings['hideControlPanel']){$container.mouseenter(function(){$controlPanel.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$controlPanel.stop(true,true).fadeOut(500)})}else{$controlPanel.show()}}function activatePagination(){if(!$settings['showPagination'])return;var ul=$pagination.find('ul');ul.html('');$views.each(function(key,view){var currentView='';if(key==$currentViewId)currentView='slideshow_currentView';ul.append('<li class="slideshow_transparent '+currentView+'">'+'<span style="display: none;">'+key+'</span>'+'</li>')});$pagination.find('li').click(function(){if(!$navigationActive)return;var viewId=$(this).find('span').text();if(viewId==''||viewId==undefined)return;stop();animateTo(parseInt(viewId),0);start()});$container.bind('onSlideshowAnimate',function(){var bullets=$pagination.find('li');bullets.each(function(key,bullet){$(bullet).removeClass('slideshow_currentView')});$(bullets[$currentViewId]).addClass('slideshow_currentView')});if($settings['hidePagination']){$container.mouseenter(function(){$pagination.stop(true,true).fadeIn(100)});$container.mouseleave(function(){$pagination.stop(true,true).fadeOut(500)})}else{$pagination.show()}}function activatePauseOnHover(){if(!$settings['pauseOnHover'])return;$container.mouseenter(function(){clearTimeout($mouseEnterTimer);$mouseEnterTimer=setTimeout(function(){stop()},500)});$container.mouseleave(function(){clearTimeout($mouseEnterTimer);if($interval===false)start()})}function getNextViewId(){if($settings['random']){var oldViewId=viewId;viewId=Math.floor(Math.random()*$views.length);if(viewId!=oldViewId)return viewId}var viewId=$currentViewId;if(viewId==undefined)return 0;if(viewId>=$views.length-1){if($settings['loop'])return viewId=0;else return $currentViewId}return viewId+=1}function getPreviousViewId(){var viewId=$currentViewId;if(viewId==undefined)viewId=0;if($settings['random']){var oldViewId=viewId;viewId=Math.floor(Math.random()*$views.length);if(viewId!=oldViewId)return viewId}if(viewId<=0){if($settings['loop'])return viewId=$views.length-1;else return $currentViewId}return viewId-=1}function getID(){var splitClasses=$container.attr('class').split('_');return splitClasses[splitClasses.length-1]}};jQuery(document).ready(function(){jQuery.each(jQuery('.slideshow_container'),function(key,slideshow){jQuery(slideshow).slideshow_jquery_image_gallery_script()})});
|
languages/slideshow-plugin-es_ES.mo
CHANGED
Binary file
|
languages/slideshow-plugin-es_ES.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-01
|
6 |
-
"PO-Revision-Date: 2013-01
|
7 |
"Last-Translator: Violeta Rosales <ellaes@violetarosales.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: fr_FR\n"
|
@@ -153,7 +153,7 @@ msgid "Fit image into slide (stretching it)"
|
|
153 |
msgstr "Adaptar la diapositiva (estirarla)"
|
154 |
|
155 |
#: classes/SlideshowPluginInstaller.php:399
|
156 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
157 |
msgid "Show title and description"
|
158 |
msgstr "Mostrar título y descripción"
|
159 |
|
@@ -306,8 +306,8 @@ msgstr ""
|
|
306 |
|
307 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
308 |
msgid ""
|
309 |
-
"Shrink height when width shrinks (Fixed height can be defined
|
310 |
-
"this value to 'No')"
|
311 |
msgstr ""
|
312 |
|
313 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
@@ -320,7 +320,9 @@ msgstr ""
|
|
320 |
|
321 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
322 |
#, php-format
|
323 |
-
msgid "
|
|
|
|
|
324 |
msgstr ""
|
325 |
|
326 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
@@ -331,13 +333,13 @@ msgstr ""
|
|
331 |
msgid "Fit image into slide (Stretch image)"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
335 |
-
msgid "
|
|
|
336 |
msgstr ""
|
337 |
|
338 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
339 |
-
msgid ""
|
340 |
-
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
341 |
msgstr ""
|
342 |
|
343 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-02-01 15:06+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-02-01 15:06+0100\n"
|
7 |
"Last-Translator: Violeta Rosales <ellaes@violetarosales.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: fr_FR\n"
|
153 |
msgstr "Adaptar la diapositiva (estirarla)"
|
154 |
|
155 |
#: classes/SlideshowPluginInstaller.php:399
|
156 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:427
|
157 |
msgid "Show title and description"
|
158 |
msgstr "Mostrar título y descripción"
|
159 |
|
306 |
|
307 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
308 |
msgid ""
|
309 |
+
"Shrink slideshow's height when width shrinks (Fixed height can be defined "
|
310 |
+
"when setting this value to 'No')"
|
311 |
msgstr ""
|
312 |
|
313 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
320 |
|
321 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
322 |
#, php-format
|
323 |
+
msgid ""
|
324 |
+
"Proportional relationship%s between slideshow's width and height (width:"
|
325 |
+
"height)"
|
326 |
msgstr ""
|
327 |
|
328 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
333 |
msgid "Fit image into slide (Stretch image)"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:426
|
337 |
+
msgid ""
|
338 |
+
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
339 |
msgstr ""
|
340 |
|
341 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
342 |
+
msgid "Hide description box, pop up when mouse hovers over"
|
|
|
343 |
msgstr ""
|
344 |
|
345 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
languages/slideshow-plugin-fr_FR.mo
CHANGED
Binary file
|
languages/slideshow-plugin-fr_FR.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-01
|
6 |
-
"PO-Revision-Date: 2013-01
|
7 |
"Last-Translator: Murat Demir <demir.murat1@gmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: fr_FR\n"
|
@@ -152,7 +152,7 @@ msgid "Fit image into slide (stretching it)"
|
|
152 |
msgstr "Adapter l'image dans la diapo (en l'étirant)"
|
153 |
|
154 |
#: classes/SlideshowPluginInstaller.php:399
|
155 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
156 |
msgid "Show title and description"
|
157 |
msgstr "Montrer le titre et la description"
|
158 |
|
@@ -304,8 +304,8 @@ msgstr ""
|
|
304 |
|
305 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
306 |
msgid ""
|
307 |
-
"Shrink height when width shrinks (Fixed height can be defined
|
308 |
-
"this value to 'No')"
|
309 |
msgstr ""
|
310 |
|
311 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
@@ -318,7 +318,9 @@ msgstr ""
|
|
318 |
|
319 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
320 |
#, php-format
|
321 |
-
msgid "
|
|
|
|
|
322 |
msgstr ""
|
323 |
|
324 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
@@ -329,13 +331,13 @@ msgstr ""
|
|
329 |
msgid "Fit image into slide (Stretch image)"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
333 |
-
msgid "
|
|
|
334 |
msgstr ""
|
335 |
|
336 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
337 |
-
msgid ""
|
338 |
-
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
339 |
msgstr ""
|
340 |
|
341 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-02-01 15:06+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-02-01 15:06+0100\n"
|
7 |
"Last-Translator: Murat Demir <demir.murat1@gmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: fr_FR\n"
|
152 |
msgstr "Adapter l'image dans la diapo (en l'étirant)"
|
153 |
|
154 |
#: classes/SlideshowPluginInstaller.php:399
|
155 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:427
|
156 |
msgid "Show title and description"
|
157 |
msgstr "Montrer le titre et la description"
|
158 |
|
304 |
|
305 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
306 |
msgid ""
|
307 |
+
"Shrink slideshow's height when width shrinks (Fixed height can be defined "
|
308 |
+
"when setting this value to 'No')"
|
309 |
msgstr ""
|
310 |
|
311 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
318 |
|
319 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
320 |
#, php-format
|
321 |
+
msgid ""
|
322 |
+
"Proportional relationship%s between slideshow's width and height (width:"
|
323 |
+
"height)"
|
324 |
msgstr ""
|
325 |
|
326 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
331 |
msgid "Fit image into slide (Stretch image)"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:426
|
335 |
+
msgid ""
|
336 |
+
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
337 |
msgstr ""
|
338 |
|
339 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
340 |
+
msgid "Hide description box, pop up when mouse hovers over"
|
|
|
341 |
msgstr ""
|
342 |
|
343 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
languages/slideshow-plugin-nl_NL.mo
CHANGED
Binary file
|
languages/slideshow-plugin-nl_NL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-01
|
6 |
-
"PO-Revision-Date: 2013-01
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: nl_NL\n"
|
@@ -154,7 +154,7 @@ msgid "Fit image into slide (stretching it)"
|
|
154 |
msgstr "Pas afbeelding in de slideshow (oprekken)"
|
155 |
|
156 |
#: classes/SlideshowPluginInstaller.php:399
|
157 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
158 |
msgid "Show title and description"
|
159 |
msgstr "Toon titel en beschrijving"
|
160 |
|
@@ -306,11 +306,11 @@ msgstr ""
|
|
306 |
|
307 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
308 |
msgid ""
|
309 |
-
"Shrink height when width shrinks (Fixed height can be defined
|
310 |
-
"this value to 'No')"
|
311 |
msgstr ""
|
312 |
-
"
|
313 |
-
"worden ingesteld als deze instelling op 'Nee' staat)"
|
314 |
|
315 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
316 |
msgid "http://en.wikipedia.org/wiki/Aspect_ratio_(image)"
|
@@ -322,8 +322,12 @@ msgstr "Meer informatie"
|
|
322 |
|
323 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
324 |
#, php-format
|
325 |
-
msgid "
|
326 |
-
|
|
|
|
|
|
|
|
|
327 |
|
328 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
329 |
msgid "Slideshow's height"
|
@@ -333,19 +337,19 @@ msgstr "Slideshow's hoogte"
|
|
333 |
msgid "Fit image into slide (Stretch image)"
|
334 |
msgstr "Pas afbeelding in de slideshow (Afbeedling uitrekken)"
|
335 |
|
336 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
337 |
-
msgid "Hide description box, pop up when mouse hovers over"
|
338 |
-
msgstr ""
|
339 |
-
"Verbeg beschrijving, toon deze alleen wanneer de muisaanwijzer boven de "
|
340 |
-
"slideshow is"
|
341 |
-
|
342 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
343 |
msgid ""
|
344 |
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
345 |
msgstr ""
|
346 |
"Gebruik responsiviteit (Maak slideshow smaller wanneer de pagina smaller "
|
347 |
"wordt)"
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
350 |
msgid "Pause slideshow when mouse hovers over"
|
351 |
msgstr "Pauzeer slideshow wanneer de muisaanwijzer boven de slideshow is"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-02-01 15:06+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-02-01 15:08+0100\n"
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: nl_NL\n"
|
154 |
msgstr "Pas afbeelding in de slideshow (oprekken)"
|
155 |
|
156 |
#: classes/SlideshowPluginInstaller.php:399
|
157 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:427
|
158 |
msgid "Show title and description"
|
159 |
msgstr "Toon titel en beschrijving"
|
160 |
|
306 |
|
307 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
308 |
msgid ""
|
309 |
+
"Shrink slideshow's height when width shrinks (Fixed height can be defined "
|
310 |
+
"when setting this value to 'No')"
|
311 |
msgstr ""
|
312 |
+
"Krimp de slideshow's hoogte wanneer de breedte kleiner wordt (Vastgestelde "
|
313 |
+
"hoogte kan worden ingesteld als deze instelling op 'Nee' staat)"
|
314 |
|
315 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
316 |
msgid "http://en.wikipedia.org/wiki/Aspect_ratio_(image)"
|
322 |
|
323 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
324 |
#, php-format
|
325 |
+
msgid ""
|
326 |
+
"Proportional relationship%s between slideshow's width and height (width:"
|
327 |
+
"height)"
|
328 |
+
msgstr ""
|
329 |
+
"Proportionele verhouding%s tussen de slideshow's breedte en hoogte (breedte:"
|
330 |
+
"hoogte)"
|
331 |
|
332 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
333 |
msgid "Slideshow's height"
|
337 |
msgid "Fit image into slide (Stretch image)"
|
338 |
msgstr "Pas afbeelding in de slideshow (Afbeedling uitrekken)"
|
339 |
|
340 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:426
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
msgid ""
|
342 |
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
343 |
msgstr ""
|
344 |
"Gebruik responsiviteit (Maak slideshow smaller wanneer de pagina smaller "
|
345 |
"wordt)"
|
346 |
|
347 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
348 |
+
msgid "Hide description box, pop up when mouse hovers over"
|
349 |
+
msgstr ""
|
350 |
+
"Verbeg beschrijving, toon deze alleen wanneer de muisaanwijzer boven de "
|
351 |
+
"slideshow is"
|
352 |
+
|
353 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
354 |
msgid "Pause slideshow when mouse hovers over"
|
355 |
msgstr "Pauzeer slideshow wanneer de muisaanwijzer boven de slideshow is"
|
languages/slideshow-plugin-ru_RU.mo
CHANGED
Binary file
|
languages/slideshow-plugin-ru_RU.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-01
|
6 |
-
"PO-Revision-Date: 2013-01
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: ru_UA\n"
|
@@ -153,7 +153,7 @@ msgid "Fit image into slide (stretching it)"
|
|
153 |
msgstr "Уместить изображение в слайд (растянуть его)"
|
154 |
|
155 |
#: classes/SlideshowPluginInstaller.php:399
|
156 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
157 |
msgid "Show title and description"
|
158 |
msgstr "Показать заголовок и описание"
|
159 |
|
@@ -304,8 +304,8 @@ msgstr ""
|
|
304 |
|
305 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
306 |
msgid ""
|
307 |
-
"Shrink height when width shrinks (Fixed height can be defined
|
308 |
-
"this value to 'No')"
|
309 |
msgstr ""
|
310 |
|
311 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
@@ -318,7 +318,9 @@ msgstr ""
|
|
318 |
|
319 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
320 |
#, php-format
|
321 |
-
msgid "
|
|
|
|
|
322 |
msgstr ""
|
323 |
|
324 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
@@ -329,13 +331,13 @@ msgstr ""
|
|
329 |
msgid "Fit image into slide (Stretch image)"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
333 |
-
msgid "
|
|
|
334 |
msgstr ""
|
335 |
|
336 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
337 |
-
msgid ""
|
338 |
-
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
339 |
msgstr ""
|
340 |
|
341 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-02-01 15:08+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-02-01 15:08+0100\n"
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: ru_UA\n"
|
153 |
msgstr "Уместить изображение в слайд (растянуть его)"
|
154 |
|
155 |
#: classes/SlideshowPluginInstaller.php:399
|
156 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:427
|
157 |
msgid "Show title and description"
|
158 |
msgstr "Показать заголовок и описание"
|
159 |
|
304 |
|
305 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
306 |
msgid ""
|
307 |
+
"Shrink slideshow's height when width shrinks (Fixed height can be defined "
|
308 |
+
"when setting this value to 'No')"
|
309 |
msgstr ""
|
310 |
|
311 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
318 |
|
319 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
320 |
#, php-format
|
321 |
+
msgid ""
|
322 |
+
"Proportional relationship%s between slideshow's width and height (width:"
|
323 |
+
"height)"
|
324 |
msgstr ""
|
325 |
|
326 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
331 |
msgid "Fit image into slide (Stretch image)"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:426
|
335 |
+
msgid ""
|
336 |
+
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
337 |
msgstr ""
|
338 |
|
339 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
340 |
+
msgid "Hide description box, pop up when mouse hovers over"
|
|
|
341 |
msgstr ""
|
342 |
|
343 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
languages/slideshow-plugin-zh_CN.mo
CHANGED
Binary file
|
languages/slideshow-plugin-zh_CN.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-01
|
6 |
-
"PO-Revision-Date: 2013-01
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Kevin Tell\n"
|
9 |
"Language: zh_CN\n"
|
@@ -152,7 +152,7 @@ msgid "Fit image into slide (stretching it)"
|
|
152 |
msgstr "图片适应显示 (即拉伸图片"
|
153 |
|
154 |
#: classes/SlideshowPluginInstaller.php:399
|
155 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
156 |
msgid "Show title and description"
|
157 |
msgstr "显示标题和描述"
|
158 |
|
@@ -301,8 +301,8 @@ msgstr ""
|
|
301 |
|
302 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
303 |
msgid ""
|
304 |
-
"Shrink height when width shrinks (Fixed height can be defined
|
305 |
-
"this value to 'No')"
|
306 |
msgstr ""
|
307 |
|
308 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
@@ -315,7 +315,9 @@ msgstr ""
|
|
315 |
|
316 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
317 |
#, php-format
|
318 |
-
msgid "
|
|
|
|
|
319 |
msgstr ""
|
320 |
|
321 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
@@ -326,13 +328,13 @@ msgstr ""
|
|
326 |
msgid "Fit image into slide (Stretch image)"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
330 |
-
msgid "
|
|
|
331 |
msgstr ""
|
332 |
|
333 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
334 |
-
msgid ""
|
335 |
-
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
336 |
msgstr ""
|
337 |
|
338 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-02-01 15:08+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-02-01 15:08+0100\n"
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Kevin Tell\n"
|
9 |
"Language: zh_CN\n"
|
152 |
msgstr "图片适应显示 (即拉伸图片"
|
153 |
|
154 |
#: classes/SlideshowPluginInstaller.php:399
|
155 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:427
|
156 |
msgid "Show title and description"
|
157 |
msgstr "显示标题和描述"
|
158 |
|
301 |
|
302 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:422
|
303 |
msgid ""
|
304 |
+
"Shrink slideshow's height when width shrinks (Fixed height can be defined "
|
305 |
+
"when setting this value to 'No')"
|
306 |
msgstr ""
|
307 |
|
308 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
315 |
|
316 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:423
|
317 |
#, php-format
|
318 |
+
msgid ""
|
319 |
+
"Proportional relationship%s between slideshow's width and height (width:"
|
320 |
+
"height)"
|
321 |
msgstr ""
|
322 |
|
323 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:424
|
328 |
msgid "Fit image into slide (Stretch image)"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:426
|
332 |
+
msgid ""
|
333 |
+
"Enable responsiveness (Shrink slideshow's width when page's width shrinks)"
|
334 |
msgstr ""
|
335 |
|
336 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:428
|
337 |
+
msgid "Hide description box, pop up when mouse hovers over"
|
|
|
338 |
msgstr ""
|
339 |
|
340 |
#: classes/SlideshowPluginSlideshowSettingsHandler.php:432
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://stefanboonstra.com/donate-to-slideshow/
|
|
5 |
Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
|
6 |
Requires at least: 3.3
|
7 |
Tested up to: 3.5.1
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv2
|
10 |
|
11 |
Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
|
@@ -27,7 +27,7 @@ different images, settings and styles for each one of them.
|
|
27 |
- Image slides
|
28 |
- Text slides
|
29 |
- Video slides
|
30 |
-
-
|
31 |
- Place it anywhere on your website
|
32 |
- Run multiple slideshows on the same page
|
33 |
- Change animations and handling
|
@@ -164,6 +164,14 @@ personal taste.
|
|
164 |
|
165 |
== Changelog ==
|
166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
= 2.2.0 =
|
168 |
* The slideshow script has been completely renewed, making it more lightweight, more versatile and responsive altogether.
|
169 |
* Slideshow now has a continuing loop.
|
5 |
Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
|
6 |
Requires at least: 3.3
|
7 |
Tested up to: 3.5.1
|
8 |
+
Stable tag: 2.2.1
|
9 |
License: GPLv2
|
10 |
|
11 |
Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
|
27 |
- Image slides
|
28 |
- Text slides
|
29 |
- Video slides
|
30 |
+
- Completely responsive
|
31 |
- Place it anywhere on your website
|
32 |
- Run multiple slideshows on the same page
|
33 |
- Change animations and handling
|
164 |
|
165 |
== Changelog ==
|
166 |
|
167 |
+
= 2.2.1 =
|
168 |
+
* Fixed: A bug in the width calculations caused slideshows in width-less elements to be hidden.
|
169 |
+
* Fixed: The functional stylesheet defined the last five header elements for the entire page, instead of just for the slideshow.
|
170 |
+
* Fixed: Pagination bullets were showing multiple times because of a CSS bug.
|
171 |
+
* Padding and margin in unordered lists set to 0 by default.
|
172 |
+
* Videos can now be played in full-screen.
|
173 |
+
* Functional stylesheet temporarily moved to the head section of the page until the stylesheets can be loaded beneath it.
|
174 |
+
|
175 |
= 2.2.0 =
|
176 |
* The slideshow script has been completely renewed, making it more lightweight, more versatile and responsive altogether.
|
177 |
* Slideshow now has a continuing loop.
|
slideshow.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Slideshow
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
|
5 |
Description: The slideshow plugin is easily deployable on your website. Add any image that has already been uploaded to add to your slideshow, add text slides, or even add a video. Options and styles are customizable for every single slideshow on your website.
|
6 |
-
Version: 2.2.
|
7 |
Requires at least: 3.3
|
8 |
Author: StefanBoonstra
|
9 |
Author URI: http://stefanboonstra.com/
|
@@ -17,12 +17,12 @@
|
|
17 |
*
|
18 |
* @since 1.0.0
|
19 |
* @author Stefan Boonstra
|
20 |
-
* @version
|
21 |
*/
|
22 |
class SlideshowPluginMain {
|
23 |
|
24 |
/** Variables */
|
25 |
-
static $version = '2.2.
|
26 |
|
27 |
/**
|
28 |
* Bootstraps the application by assigning the right functions to
|
3 |
Plugin Name: Slideshow
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
|
5 |
Description: The slideshow plugin is easily deployable on your website. Add any image that has already been uploaded to add to your slideshow, add text slides, or even add a video. Options and styles are customizable for every single slideshow on your website.
|
6 |
+
Version: 2.2.1
|
7 |
Requires at least: 3.3
|
8 |
Author: StefanBoonstra
|
9 |
Author URI: http://stefanboonstra.com/
|
17 |
*
|
18 |
* @since 1.0.0
|
19 |
* @author Stefan Boonstra
|
20 |
+
* @version 01-02-2013
|
21 |
*/
|
22 |
class SlideshowPluginMain {
|
23 |
|
24 |
/** Variables */
|
25 |
+
static $version = '2.2.1';
|
26 |
|
27 |
/**
|
28 |
* Bootstraps the application by assigning the right functions to
|
style/SlideshowPlugin/functional.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.slideshow_container{margin:0;position:relative}.slideshow_container div{clear:none!important;max-width:none;padding:0}.slideshow_container img{border:0;margin:0;padding:0}.slideshow_container
|
1 |
+
.slideshow_container{margin:0;position:relative}.slideshow_container div{clear:none!important;max-width:none;padding:0}.slideshow_container img{border:0;margin:0;padding:0}.slideshow_container p{margin:0;padding:10px}.slideshow_container a{margin:0;display:block}.slideshow_container ul{margin:0;padding:0}.slideshow_container ul li{margin:0;padding:0}.slideshow_container h1,.slideshow_container h2,.slideshow_container h3,.slideshow_container h4,.slideshow_container h5,.slideshow_container h6{margin:0;padding:10px}.slideshow_container .slideshow_content{position:relative;overflow:hidden}.slideshow_container .slideshow_view{position:absolute;width:0;height:0;overflow:hidden}.slideshow_container .slideshow_slide{position:relative;float:left!important;overflow:hidden}.slideshow_container .slideshow_description{display:none;position:absolute;bottom:0}.slideshow_container .transparent{zoom:1}.slideshow_container .transparent:hover{zoom:1}.slideshow_container .slideshow_controlPanel{position:absolute;top:5px;left:50%;display:none;z-index:2}.slideshow_container .slideshow_controlPanel ul{list-style:none;margin:0;padding:0}.slideshow_container .slideshow_controlPanel ul li{float:left}.slideshow_container .slideshow_controlPanel ul li:hover{cursor:pointer}.slideshow_container .slideshow_button{padding:0;position:absolute;top:50%;cursor:pointer;display:none;z-index:2}.slideshow_container .slideshow_previous{left:5px}.slideshow_container .slideshow_next{right:5px}.slideshow_container .slideshow_pagination{height:0;position:absolute;width:100%;display:none;z-index:2}.slideshow_container .slideshow_pagination_center{display:table;margin:0 auto}.slideshow_container .slideshow_pagination ul{list-style:none;margin:0;padding:0}.slideshow_container .slideshow_pagination ul li{display:inline;float:left}.slideshow_container .slideshow_pagination ul li:hover{cursor:pointer}.slideshow_container .slideshow_plugin_manufacturer{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}
|
style/SlideshowPlugin/style-dark.css
CHANGED
@@ -66,5 +66,5 @@
|
|
66 |
margin: 0 2px;
|
67 |
width: 15px;
|
68 |
height: 15px;
|
69 |
-
background: url('%plugin-url%/images/SlideshowPlugin/dark-bullet.png');
|
70 |
}
|
66 |
margin: 0 2px;
|
67 |
width: 15px;
|
68 |
height: 15px;
|
69 |
+
background: url('%plugin-url%/images/SlideshowPlugin/dark-bullet.png') no-repeat;
|
70 |
}
|
style/SlideshowPlugin/style-light.css
CHANGED
@@ -70,5 +70,5 @@
|
|
70 |
margin: 0 2px;
|
71 |
width: 11px;
|
72 |
height: 11px;
|
73 |
-
background: url('%plugin-url%/images/SlideshowPlugin/light-bullet.png');
|
74 |
}
|
70 |
margin: 0 2px;
|
71 |
width: 11px;
|
72 |
height: 11px;
|
73 |
+
background: url('%plugin-url%/images/SlideshowPlugin/light-bullet.png') no-repeat;
|
74 |
}
|