Slideshow - Version 2.2.21

Version Description

  • Compatible with WordPress 3.9.
  • Added "Cross Fade" option to the animation settings.
  • Updated the API to support retrieving the direction of the animation on the animation event.
  • Fixed: Slideshow moving to next slide on keyboard navigation. By Ben Wetzel
  • Fixed: HTML5 validation issue.
  • Fixed: Permission check that checked for "edit_post" instead of "edit_slideshow".
Download this release

Release Info

Developer stefanboonstra
Plugin Icon 128x128 Slideshow
Version 2.2.21
Comparing to
See all releases

Code changes from version 2.2.20 to 2.2.21

classes/SlideshowPluginSlideshowSettingsHandler.php CHANGED
@@ -375,7 +375,7 @@ class SlideshowPluginSlideshowSettingsHandler
375
  // Verify nonce, check if user has sufficient rights and return on auto-save.
376
  if (get_post_type($postId) != SlideshowPluginPostType::$postType ||
377
  (!isset($_POST[self::$nonceName]) || !wp_verify_nonce($_POST[self::$nonceName], self::$nonceAction)) ||
378
- !current_user_can('edit_post', $postId) ||
379
  (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE))
380
  {
381
  return $postId;
@@ -544,7 +544,7 @@ class SlideshowPluginSlideshowSettingsHandler
544
  );
545
 
546
  $data = array(
547
- 'animation' => array('type' => 'select', 'default' => $data['animation'] , 'description' => $descriptions['animation'] , 'group' => __('Animation', 'slideshow-plugin') , 'options' => array('slide' => __('Slide Left', 'slideshow-plugin'), 'slideRight' => __('Slide Right', 'slideshow-plugin'), 'slideUp' => __('Slide Up', 'slideshow-plugin'), 'slideDown' => __('Slide Down', 'slideshow-plugin'), 'directFade' => __('Direct Fade', 'slideshow-plugin'), 'fade' => __('Fade', 'slideshow-plugin'), 'random' => __('Random Animation', 'slideshow-plugin'))),
548
  'slideSpeed' => array('type' => 'text' , 'default' => $data['slideSpeed'] , 'description' => $descriptions['slideSpeed'] , 'group' => __('Animation', 'slideshow-plugin')),
549
  'descriptionSpeed' => array('type' => 'text' , 'default' => $data['descriptionSpeed'] , 'description' => $descriptions['descriptionSpeed'] , 'group' => __('Animation', 'slideshow-plugin')),
550
  'intervalSpeed' => array('type' => 'text' , 'default' => $data['intervalSpeed'] , 'description' => $descriptions['intervalSpeed'] , 'group' => __('Animation', 'slideshow-plugin')),
375
  // Verify nonce, check if user has sufficient rights and return on auto-save.
376
  if (get_post_type($postId) != SlideshowPluginPostType::$postType ||
377
  (!isset($_POST[self::$nonceName]) || !wp_verify_nonce($_POST[self::$nonceName], self::$nonceAction)) ||
378
+ !current_user_can('slideshow-jquery-image-gallery-edit-slideshows', $postId) ||
379
  (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE))
380
  {
381
  return $postId;
544
  );
545
 
546
  $data = array(
547
+ 'animation' => array('type' => 'select', 'default' => $data['animation'] , 'description' => $descriptions['animation'] , 'group' => __('Animation', 'slideshow-plugin') , 'options' => array('slide' => __('Slide Left', 'slideshow-plugin'), 'slideRight' => __('Slide Right', 'slideshow-plugin'), 'slideUp' => __('Slide Up', 'slideshow-plugin'), 'slideDown' => __('Slide Down', 'slideshow-plugin'), 'crossFade' => __('Cross Fade', 'slideshow-plugin'), 'directFade' => __('Direct Fade', 'slideshow-plugin'), 'fade' => __('Fade', 'slideshow-plugin'), 'random' => __('Random Animation', 'slideshow-plugin'))),
548
  'slideSpeed' => array('type' => 'text' , 'default' => $data['slideSpeed'] , 'description' => $descriptions['slideSpeed'] , 'group' => __('Animation', 'slideshow-plugin')),
549
  'descriptionSpeed' => array('type' => 'text' , 'default' => $data['descriptionSpeed'] , 'description' => $descriptions['descriptionSpeed'] , 'group' => __('Animation', 'slideshow-plugin')),
550
  'intervalSpeed' => array('type' => 'text' , 'default' => $data['intervalSpeed'] , 'description' => $descriptions['intervalSpeed'] , 'group' => __('Animation', 'slideshow-plugin')),
css/all.backend.css CHANGED
@@ -1,155 +1,155 @@
1
- #settings.postbox table tr {
2
- height: 31px;
3
- }
4
- .sortable-slides-list .sortable-slides-list-item div.hndle {
5
- padding: 8px 12px;
6
- margin: 0;
7
- font-size: 14px;
8
- line-height: 1.4;
9
- border-bottom: 1px solid #eee;
10
- }
11
- .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon,
12
- .sortable-slides-list .sortable-slides-list-item div.hndle .slide-title {
13
- float: left;
14
- margin-right: 8px;
15
- }
16
- .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon {
17
- width: 1.4em;
18
- height: 1.4em;
19
- }
20
- .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon.image-slide-icon {
21
- background: url('../images/SlideshowPluginPostType/fa-camera.svg') no-repeat left center;
22
- }
23
- .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon.text-slide-icon {
24
- background: url('../images/SlideshowPluginPostType/fa-align-left.svg') no-repeat left center;
25
- }
26
- .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon.video-slide-icon {
27
- background: url('../images/SlideshowPluginPostType/fa-video-camera.svg') no-repeat left center;
28
- }
29
- .sortable-slides-list .sortable-slides-list-item div.inside {
30
- width: auto;
31
- }
32
- .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group {
33
- margin: 5px 0;
34
- }
35
- .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group input[type="checkbox"] {
36
- margin-top: 8px;
37
- }
38
- .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group .slideshow-label {
39
- font-style: italic;
40
- line-height: 30px;
41
- }
42
- .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group.slideshow-delete-slide,
43
- .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group.slideshow-delete-new-slide {
44
- color: red;
45
- cursor: pointer;
46
- }
47
- .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group .slideshow-left {
48
- float: left;
49
- }
50
- .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group .slideshow-right {
51
- float: right;
52
- }
53
- .sortable-slides-list .sortable-slides-list-item div.inside.widefat {
54
- border-color: #dfdfdf;
55
- }
56
- #slideshow-slide-inserter-popup-background {
57
- background: #000;
58
- display: none;
59
- position: absolute;
60
- top: 0;
61
- left: 0;
62
- width: 100%;
63
- z-index: 10000;
64
- zoom: 1;
65
- filter: alpha(opacity = 50);
66
- opacity: 0.5;
67
- }
68
- #slideshow-slide-inserter-popup {
69
- background: #fff;
70
- display: none;
71
- position: absolute;
72
- padding: 20px;
73
- line-height: 23px;
74
- z-index: 10001;
75
- width: 600px;
76
- }
77
- #slideshow-slide-inserter-popup #search {
78
- float: left;
79
- width: 200px;
80
- }
81
- #slideshow-slide-inserter-popup #close {
82
- float: right;
83
- width: 32px;
84
- height: 32px;
85
- background: url('../images/SlideshowPluginSlideInserter/close.png') no-repeat;
86
- }
87
- #slideshow-slide-inserter-popup #close:hover {
88
- cursor: pointer;
89
- }
90
- #slideshow-slide-inserter-popup #search-results {
91
- height: 400px;
92
- overflow-y: scroll;
93
- }
94
- .feature-filter {
95
- padding: 0 10px 10px;
96
- margin: 10px;
97
- }
98
- .general-settings-tab {
99
- float: left;
100
- }
101
- .general-settings-tab td {
102
- line-height: 1.5em;
103
- padding: 0 10px;
104
- }
105
- .general-settings-tab h4 {
106
- text-align: center;
107
- }
108
- .default-slideshow-settings-tab {
109
- width: auto !important;
110
- float: left;
111
- }
112
- .default-slideshow-settings-tab tr {
113
- height: 31px;
114
- }
115
- .default-slideshow-settings-tab tr td {
116
- padding: 0 10px !important;
117
- }
118
- .default-slideshow-settings-tab tr h4 {
119
- text-align: center;
120
- }
121
- .custom-styles-tab.feature-filter {
122
- padding-bottom: 0;
123
- }
124
- .custom-styles-tab .styles-list ul {
125
- margin-left: 10px;
126
- }
127
- .custom-styles-tab .styles-list li {
128
- float: none;
129
- }
130
- .custom-styles-tab .styles-list li .style-title {
131
- float: left;
132
- padding-right: 10px;
133
- }
134
- .custom-styles-tab .styles-list li .style-action {
135
- float: right;
136
- color: #21759B;
137
- }
138
- .custom-styles-tab .styles-list li .style-action:hover {
139
- cursor: pointer;
140
- color: #D54E21;
141
- }
142
- .custom-styles-tab .styles-list li .style-delete {
143
- float: right;
144
- color: #BC0B0B;
145
- }
146
- .custom-styles-tab .styles-list li .style-delete:hover {
147
- cursor: pointer;
148
- color: red;
149
- }
150
- .custom-styles-tab .styles-list span {
151
- padding: 0 2px;
152
- }
153
- .custom-styles-tab .style-editors .style-editor textarea {
154
- width: 100%;
155
- }
1
+ #settings.postbox table tr {
2
+ height: 31px;
3
+ }
4
+ .sortable-slides-list .sortable-slides-list-item div.hndle {
5
+ padding: 8px 12px;
6
+ margin: 0;
7
+ font-size: 14px;
8
+ line-height: 1.4;
9
+ border-bottom: 1px solid #eee;
10
+ }
11
+ .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon,
12
+ .sortable-slides-list .sortable-slides-list-item div.hndle .slide-title {
13
+ float: left;
14
+ margin-right: 8px;
15
+ }
16
+ .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon {
17
+ width: 1.4em;
18
+ height: 1.4em;
19
+ }
20
+ .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon.image-slide-icon {
21
+ background: url('../images/SlideshowPluginPostType/fa-camera.svg') no-repeat left center;
22
+ }
23
+ .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon.text-slide-icon {
24
+ background: url('../images/SlideshowPluginPostType/fa-align-left.svg') no-repeat left center;
25
+ }
26
+ .sortable-slides-list .sortable-slides-list-item div.hndle .slide-icon.video-slide-icon {
27
+ background: url('../images/SlideshowPluginPostType/fa-video-camera.svg') no-repeat left center;
28
+ }
29
+ .sortable-slides-list .sortable-slides-list-item div.inside {
30
+ width: auto;
31
+ }
32
+ .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group {
33
+ margin: 5px 0;
34
+ }
35
+ .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group input[type="checkbox"] {
36
+ margin-top: 8px;
37
+ }
38
+ .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group .slideshow-label {
39
+ font-style: italic;
40
+ line-height: 30px;
41
+ }
42
+ .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group.slideshow-delete-slide,
43
+ .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group.slideshow-delete-new-slide {
44
+ color: red;
45
+ cursor: pointer;
46
+ }
47
+ .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group .slideshow-left {
48
+ float: left;
49
+ }
50
+ .sortable-slides-list .sortable-slides-list-item div.inside .slideshow-group .slideshow-right {
51
+ float: right;
52
+ }
53
+ .sortable-slides-list .sortable-slides-list-item div.inside.widefat {
54
+ border-color: #dfdfdf;
55
+ }
56
+ #slideshow-slide-inserter-popup-background {
57
+ background: #000;
58
+ display: none;
59
+ position: absolute;
60
+ top: 0;
61
+ left: 0;
62
+ width: 100%;
63
+ z-index: 10000;
64
+ zoom: 1;
65
+ filter: alpha(opacity = 50);
66
+ opacity: 0.5;
67
+ }
68
+ #slideshow-slide-inserter-popup {
69
+ background: #fff;
70
+ display: none;
71
+ position: absolute;
72
+ padding: 20px;
73
+ line-height: 23px;
74
+ z-index: 10001;
75
+ width: 600px;
76
+ }
77
+ #slideshow-slide-inserter-popup #search {
78
+ float: left;
79
+ width: 200px;
80
+ }
81
+ #slideshow-slide-inserter-popup #close {
82
+ float: right;
83
+ width: 32px;
84
+ height: 32px;
85
+ background: url('../images/SlideshowPluginSlideInserter/close.png') no-repeat;
86
+ }
87
+ #slideshow-slide-inserter-popup #close:hover {
88
+ cursor: pointer;
89
+ }
90
+ #slideshow-slide-inserter-popup #search-results {
91
+ height: 400px;
92
+ overflow-y: scroll;
93
+ }
94
+ .feature-filter {
95
+ padding: 0 10px 10px;
96
+ margin: 10px;
97
+ }
98
+ .general-settings-tab {
99
+ float: left;
100
+ }
101
+ .general-settings-tab td {
102
+ line-height: 1.5em;
103
+ padding: 0 10px;
104
+ }
105
+ .general-settings-tab h4 {
106
+ text-align: center;
107
+ }
108
+ .default-slideshow-settings-tab {
109
+ width: auto !important;
110
+ float: left;
111
+ }
112
+ .default-slideshow-settings-tab tr {
113
+ height: 31px;
114
+ }
115
+ .default-slideshow-settings-tab tr td {
116
+ padding: 0 10px !important;
117
+ }
118
+ .default-slideshow-settings-tab tr h4 {
119
+ text-align: center;
120
+ }
121
+ .custom-styles-tab.feature-filter {
122
+ padding-bottom: 0;
123
+ }
124
+ .custom-styles-tab .styles-list ul {
125
+ margin-left: 10px;
126
+ }
127
+ .custom-styles-tab .styles-list li {
128
+ float: none;
129
+ }
130
+ .custom-styles-tab .styles-list li .style-title {
131
+ float: left;
132
+ padding-right: 10px;
133
+ }
134
+ .custom-styles-tab .styles-list li .style-action {
135
+ float: right;
136
+ color: #21759B;
137
+ }
138
+ .custom-styles-tab .styles-list li .style-action:hover {
139
+ cursor: pointer;
140
+ color: #D54E21;
141
+ }
142
+ .custom-styles-tab .styles-list li .style-delete {
143
+ float: right;
144
+ color: #BC0B0B;
145
+ }
146
+ .custom-styles-tab .styles-list li .style-delete:hover {
147
+ cursor: pointer;
148
+ color: red;
149
+ }
150
+ .custom-styles-tab .styles-list span {
151
+ padding: 0 2px;
152
+ }
153
+ .custom-styles-tab .style-editors .style-editor textarea {
154
+ width: 100%;
155
+ }
images/SlideshowPluginPostType/fa-align-left.svg ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ viewBox="0 -256 1850 1850"
11
+ id="svg3001"
12
+ version="1.1"
13
+ inkscape:version="0.48.3.1 r9886"
14
+ width="100%"
15
+ height="100%"
16
+ sodipodi:docname="align_left_font_awesome.svg">
17
+ <metadata
18
+ id="metadata3011">
19
+ <rdf:RDF>
20
+ <cc:Work
21
+ rdf:about="">
22
+ <dc:format>image/svg+xml</dc:format>
23
+ <dc:type
24
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25
+ </cc:Work>
26
+ </rdf:RDF>
27
+ </metadata>
28
+ <defs
29
+ id="defs3009" />
30
+ <sodipodi:namedview
31
+ pagecolor="#ffffff"
32
+ bordercolor="#666666"
33
+ borderopacity="1"
34
+ objecttolerance="10"
35
+ gridtolerance="10"
36
+ guidetolerance="10"
37
+ inkscape:pageopacity="0"
38
+ inkscape:pageshadow="2"
39
+ inkscape:window-width="640"
40
+ inkscape:window-height="480"
41
+ id="namedview3007"
42
+ showgrid="false"
43
+ inkscape:zoom="0.13169643"
44
+ inkscape:cx="896"
45
+ inkscape:cy="896"
46
+ inkscape:window-x="0"
47
+ inkscape:window-y="25"
48
+ inkscape:window-maximized="0"
49
+ inkscape:current-layer="svg3001" />
50
+ <g
51
+ transform="matrix(1,0,0,-1,37.966102,1381.3898)"
52
+ id="g3003">
53
+ <path
54
+ d="M 1792,192 V 64 Q 1792,38 1773,19 1754,0 1728,0 H 64 Q 38,0 19,19 0,38 0,64 v 128 q 0,26 19,45 19,19 45,19 h 1664 q 26,0 45,-19 19,-19 19,-45 z M 1408,576 V 448 q 0,-26 -19,-45 -19,-19 -45,-19 H 64 Q 38,384 19,403 0,422 0,448 v 128 q 0,26 19,45 19,19 45,19 h 1280 q 26,0 45,-19 19,-19 19,-45 z m 256,384 V 832 q 0,-26 -19,-45 -19,-19 -45,-19 H 64 Q 38,768 19,787 0,806 0,832 v 128 q 0,26 19,45 19,19 45,19 h 1536 q 26,0 45,-19 19,-19 19,-45 z m -384,384 v -128 q 0,-26 -19,-45 -19,-19 -45,-19 H 64 q -26,0 -45,19 -19,19 -19,45 v 128 q 0,26 19,45 19,19 45,19 h 1152 q 26,0 45,-19 19,-19 19,-45 z"
55
+ id="path3005"
56
+ inkscape:connector-curvature="0"
57
+ style="fill:currentColor" />
58
+ </g>
59
+ </svg>
images/SlideshowPluginPostType/fa-arrows-v.svg ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ viewBox="0 -256 1800 1800"
11
+ id="svg3025"
12
+ version="1.1"
13
+ inkscape:version="0.48.3.1 r9886"
14
+ width="100%"
15
+ height="100%"
16
+ sodipodi:docname="resize_vertical_font_awesome.svg">
17
+ <metadata
18
+ id="metadata3035">
19
+ <rdf:RDF>
20
+ <cc:Work
21
+ rdf:about="">
22
+ <dc:format>image/svg+xml</dc:format>
23
+ <dc:type
24
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25
+ </cc:Work>
26
+ </rdf:RDF>
27
+ </metadata>
28
+ <defs
29
+ id="defs3033" />
30
+ <sodipodi:namedview
31
+ pagecolor="#ffffff"
32
+ bordercolor="#666666"
33
+ borderopacity="1"
34
+ objecttolerance="10"
35
+ gridtolerance="10"
36
+ guidetolerance="10"
37
+ inkscape:pageopacity="0"
38
+ inkscape:pageshadow="2"
39
+ inkscape:window-width="640"
40
+ inkscape:window-height="480"
41
+ id="namedview3031"
42
+ showgrid="false"
43
+ inkscape:zoom="3.3714286"
44
+ inkscape:cx="900"
45
+ inkscape:cy="-15.828719"
46
+ inkscape:window-x="0"
47
+ inkscape:window-y="25"
48
+ inkscape:window-maximized="0"
49
+ inkscape:current-layer="svg3025" />
50
+ <g
51
+ transform="matrix(1,0,0,-1,531.52542,1285.8305)"
52
+ id="g3027">
53
+ <path
54
+ d="m 704,1216 q 0,-26 -19,-45 -19,-19 -45,-19 H 512 V 128 h 128 q 26,0 45,-19 19,-19 19,-45 0,-26 -19,-45 L 429,-237 q -19,-19 -45,-19 -26,0 -45,19 L 83,19 q -19,19 -19,45 0,26 19,45 19,19 45,19 H 256 V 1152 H 128 q -26,0 -45,19 -19,19 -19,45 0,26 19,45 l 256,256 q 19,19 45,19 26,0 45,-19 l 256,-256 q 19,-19 19,-45 z"
55
+ id="path3029"
56
+ inkscape:connector-curvature="0"
57
+ style="fill:currentColor" />
58
+ </g>
59
+ </svg>
images/SlideshowPluginPostType/fa-camera.svg ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ viewBox="0 -256 1950 1950"
11
+ id="svg3037"
12
+ version="1.1"
13
+ inkscape:version="0.48.3.1 r9886"
14
+ width="100%"
15
+ height="100%"
16
+ sodipodi:docname="camera_font_awesome.svg">
17
+ <metadata
18
+ id="metadata3047">
19
+ <rdf:RDF>
20
+ <cc:Work
21
+ rdf:about="">
22
+ <dc:format>image/svg+xml</dc:format>
23
+ <dc:type
24
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25
+ </cc:Work>
26
+ </rdf:RDF>
27
+ </metadata>
28
+ <defs
29
+ id="defs3045" />
30
+ <sodipodi:namedview
31
+ pagecolor="#ffffff"
32
+ bordercolor="#666666"
33
+ borderopacity="1"
34
+ objecttolerance="10"
35
+ gridtolerance="10"
36
+ guidetolerance="10"
37
+ inkscape:pageopacity="0"
38
+ inkscape:pageshadow="2"
39
+ inkscape:window-width="640"
40
+ inkscape:window-height="480"
41
+ id="namedview3043"
42
+ showgrid="false"
43
+ inkscape:zoom="0.13169643"
44
+ inkscape:cx="960"
45
+ inkscape:cy="896"
46
+ inkscape:window-x="0"
47
+ inkscape:window-y="25"
48
+ inkscape:window-maximized="0"
49
+ inkscape:current-layer="svg3037" />
50
+ <g
51
+ transform="matrix(1,0,0,-1,15.186441,1413.0508)"
52
+ id="g3039">
53
+ <path
54
+ d="m 960,864 q 119,0 203.5,-84.5 Q 1248,695 1248,576 1248,457 1163.5,372.5 1079,288 960,288 841,288 756.5,372.5 672,457 672,576 672,695 756.5,779.5 841,864 960,864 z m 704,416 q 106,0 181,-75 75,-75 75,-181 V 128 q 0,-106 -75,-181 -75,-75 -181,-75 H 256 Q 150,-128 75,-53 0,22 0,128 v 896 q 0,106 75,181 75,75 181,75 h 224 l 51,136 q 19,49 69.5,84.5 Q 651,1536 704,1536 h 512 q 53,0 103.5,-35.5 50.5,-35.5 69.5,-84.5 l 51,-136 h 224 z M 960,128 q 185,0 316.5,131.5 Q 1408,391 1408,576 1408,761 1276.5,892.5 1145,1024 960,1024 775,1024 643.5,892.5 512,761 512,576 512,391 643.5,259.5 775,128 960,128 z"
55
+ id="path3041"
56
+ inkscape:connector-curvature="0"
57
+ style="fill:currentColor" />
58
+ </g>
59
+ </svg>
images/SlideshowPluginPostType/fa-video-camera.svg ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ viewBox="0 -256 1950 1950"
11
+ id="svg3001"
12
+ version="1.1"
13
+ inkscape:version="0.48.3.1 r9886"
14
+ width="100%"
15
+ height="100%"
16
+ sodipodi:docname="facetime_video_font_awesome.svg">
17
+ <metadata
18
+ id="metadata3011">
19
+ <rdf:RDF>
20
+ <cc:Work
21
+ rdf:about="">
22
+ <dc:format>image/svg+xml</dc:format>
23
+ <dc:type
24
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25
+ </cc:Work>
26
+ </rdf:RDF>
27
+ </metadata>
28
+ <defs
29
+ id="defs3009" />
30
+ <sodipodi:namedview
31
+ pagecolor="#ffffff"
32
+ bordercolor="#666666"
33
+ borderopacity="1"
34
+ objecttolerance="10"
35
+ gridtolerance="10"
36
+ guidetolerance="10"
37
+ inkscape:pageopacity="0"
38
+ inkscape:pageshadow="2"
39
+ inkscape:window-width="640"
40
+ inkscape:window-height="480"
41
+ id="namedview3007"
42
+ showgrid="false"
43
+ inkscape:zoom="0.13169643"
44
+ inkscape:cx="960"
45
+ inkscape:cy="896"
46
+ inkscape:window-x="0"
47
+ inkscape:window-y="25"
48
+ inkscape:window-maximized="0"
49
+ inkscape:current-layer="svg3001" />
50
+ <g
51
+ transform="matrix(1,0,0,-1,22.779661,1397.8644)"
52
+ id="g3003">
53
+ <path
54
+ d="m 1900,1278 q 20,-8 20,-30 V 32 q 0,-22 -20,-30 -8,-2 -12,-2 -12,0 -23,9 L 1280,595 V 288 Q 1280,169 1195.5,84.5 1111,0 992,0 H 288 Q 169,0 84.5,84.5 0,169 0,288 V 992 Q 0,1111 84.5,1195.5 169,1280 288,1280 h 704 q 119,0 203.5,-84.5 Q 1280,1111 1280,992 V 685 l 585,586 q 16,15 35,7 z"
55
+ id="path3005"
56
+ inkscape:connector-curvature="0"
57
+ style="fill:currentColor" />
58
+ </g>
59
+ </svg>
js/min/all.backend.min.js CHANGED
@@ -1,7 +1,7 @@
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.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}();
4
- 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(),10);i>e&&(e=i)}),parseInt(e,10)},t(document).bind("slideshowBackendReady",e.init),e}();
5
- 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}();
6
- 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.activeOldUploader())},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.activeOldUploader=function(){var i=e("#slideshow-slide-inserter-popup"),l=e("#slideshow-slide-inserter-popup-background"),s=i.find("#search");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(".sortable-slides-list-item"))})},t.activate=function(){t.indexSlidesOrder(),e(".sortable-slides-list").sortable({revert:!0,placeholder:"sortable-placeholder",forcePlaceholderSize:!0,stop:function(){t.indexSlidesOrder()},cancel:"input, select, textarea"}),e(".wp-color-picker-field").wpColorPicker({width:234}),e(".open-slides-button").on("click",function(t){t.preventDefault(),e(".sortable-slides-list .sortable-slides-list-item").each(function(t,i){var l=e(i);l.find(".inside").is(":visible")||l.find(".handlediv").trigger("click")})}),e(".close-slides-button").on("click",function(t){t.preventDefault(),e(".sortable-slides-list .sortable-slides-list-item").each(function(t,i){var l=e(i);l.find(".inside").is(":visible")&&l.find(".handlediv").trigger("click")})})},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(".sortable-slides-list .sortable-slides-list-item").each(function(t,i){e.each(e(i).find("input, select, textarea"),function(i,l){var s=e(l),n=s.attr("name");void 0===n||n.length<=0||(n=n.replace(/[\[\]']+/g," ").split(" "),s.attr("name",n[0]+"["+(t+1)+"]["+n[2]+"]"))})})},t.getSearchResults=function(i){var l=e("#slideshow-slide-inserter-popup"),s=l.find("#results"),n=[];i=parseInt(i,10),isNaN(i)&&(i=0,s.html("")),e.each(s.find(".result-table-row"),function(t,i){n.push(parseInt(e(i).attr("data-attachment-id"),10))}),e.post(window.ajaxurl,{action:"slideshow_slide_inserter_search_query",search:l.find("#search").attr("value"),offset:i,attachmentIDs:n},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,10))||t.getSearchResults(s)})})},t.insertImageSlide=function(i,l,s,n,a){var d=e(".image-slide-template").find(".sortable-slides-list-item").clone(!0,!0);d.find(".attachment").attr("src",n),d.find(".attachment").attr("title",l),d.find(".attachment").attr("alt",a),d.find(".title").attr("value",l),d.find(".description").html(s),d.find(".alternativeText").attr("value",a),d.find(".postId").attr("value",i),d.find(".title").attr("name","slides[0][title]"),d.find(".titleElementTagID").attr("name","slides[0][titleElementTagID]"),d.find(".description").attr("name","slides[0][description]"),d.find(".descriptionElementTagID").attr("name","slides[0][descriptionElementTagID]"),d.find(".url").attr("name","slides[0][url]"),d.find(".urlTarget").attr("name","slides[0][urlTarget]"),d.find(".alternativeText").attr("name","slides[0][alternativeText]"),d.find(".noFollow").attr("name","slides[0][noFollow]"),d.find(".type").attr("name","slides[0][type]"),d.find(".postId").attr("name","slides[0][postId]"),e(".sortable-slides-list").prepend(d),t.indexSlidesOrder()},t.insertTextSlide=function(){var i=e(".text-slide-template").find(".sortable-slides-list-item").clone(!0,!0);i.find(".title").attr("name","slides[0][title]"),i.find(".titleElementTagID").attr("name","slides[0][titleElementTagID]"),i.find(".description").attr("name","slides[0][description]"),i.find(".descriptionElementTagID").attr("name","slides[0][descriptionElementTagID]"),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(".color, .textColor").wpColorPicker(),e(".sortable-slides-list").prepend(i),t.indexSlidesOrder()},t.insertVideoSlide=function(){var i=e(".video-slide-template").find(".sortable-slides-list-item").clone(!0,!0);i.find(".videoId").attr("name","slides[0][videoId]"),i.find(".showRelatedVideos").attr("name","slides[0][showRelatedVideos]"),i.find(".type").attr("name","slides[0][type]"),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}();
7
  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(),10),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}();
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.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}();
4
+ 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(),10);i>e&&(e=i)}),parseInt(e,10)},t(document).bind("slideshowBackendReady",e.init),e}();
5
+ 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}();
6
+ 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.activeOldUploader())},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.activeOldUploader=function(){var i=e("#slideshow-slide-inserter-popup"),l=e("#slideshow-slide-inserter-popup-background"),s=i.find("#search");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(".sortable-slides-list-item"))})},t.activate=function(){t.indexSlidesOrder(),e(".sortable-slides-list").sortable({revert:!0,placeholder:"sortable-placeholder",forcePlaceholderSize:!0,stop:function(){t.indexSlidesOrder()},cancel:"input, select, textarea"}),e(".wp-color-picker-field").wpColorPicker({width:234}),e(".open-slides-button").on("click",function(t){t.preventDefault(),e(".sortable-slides-list .sortable-slides-list-item").each(function(t,i){var l=e(i);l.find(".inside").is(":visible")||l.find(".handlediv").trigger("click")})}),e(".close-slides-button").on("click",function(t){t.preventDefault(),e(".sortable-slides-list .sortable-slides-list-item").each(function(t,i){var l=e(i);l.find(".inside").is(":visible")&&l.find(".handlediv").trigger("click")})})},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(".sortable-slides-list .sortable-slides-list-item").each(function(t,i){e.each(e(i).find("input, select, textarea"),function(i,l){var s=e(l),n=s.attr("name");void 0===n||n.length<=0||(n=n.replace(/[\[\]']+/g," ").split(" "),s.attr("name",n[0]+"["+(t+1)+"]["+n[2]+"]"))})})},t.getSearchResults=function(i){var l=e("#slideshow-slide-inserter-popup"),s=l.find("#results"),n=[];i=parseInt(i,10),isNaN(i)&&(i=0,s.html("")),e.each(s.find(".result-table-row"),function(t,i){n.push(parseInt(e(i).attr("data-attachment-id"),10))}),e.post(window.ajaxurl,{action:"slideshow_slide_inserter_search_query",search:l.find("#search").attr("value"),offset:i,attachmentIDs:n},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,10))||t.getSearchResults(s)})})},t.insertImageSlide=function(i,l,s,n,a){var d=e(".image-slide-template").find(".sortable-slides-list-item").clone(!0,!0);d.find(".attachment").attr("src",n),d.find(".attachment").attr("title",l),d.find(".attachment").attr("alt",a),d.find(".title").attr("value",l),d.find(".description").html(s),d.find(".alternativeText").attr("value",a),d.find(".postId").attr("value",i),d.find(".title").attr("name","slides[0][title]"),d.find(".titleElementTagID").attr("name","slides[0][titleElementTagID]"),d.find(".description").attr("name","slides[0][description]"),d.find(".descriptionElementTagID").attr("name","slides[0][descriptionElementTagID]"),d.find(".url").attr("name","slides[0][url]"),d.find(".urlTarget").attr("name","slides[0][urlTarget]"),d.find(".alternativeText").attr("name","slides[0][alternativeText]"),d.find(".noFollow").attr("name","slides[0][noFollow]"),d.find(".type").attr("name","slides[0][type]"),d.find(".postId").attr("name","slides[0][postId]"),e(".sortable-slides-list").prepend(d),t.indexSlidesOrder()},t.insertTextSlide=function(){var i=e(".text-slide-template").find(".sortable-slides-list-item").clone(!0,!0);i.find(".title").attr("name","slides[0][title]"),i.find(".titleElementTagID").attr("name","slides[0][titleElementTagID]"),i.find(".description").attr("name","slides[0][description]"),i.find(".descriptionElementTagID").attr("name","slides[0][descriptionElementTagID]"),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(".color, .textColor").wpColorPicker(),e(".sortable-slides-list").prepend(i),t.indexSlidesOrder()},t.insertVideoSlide=function(){var i=e(".video-slide-template").find(".sortable-slides-list-item").clone(!0,!0);i.find(".videoId").attr("name","slides[0][videoId]"),i.find(".showRelatedVideos").attr("name","slides[0][showRelatedVideos]"),i.find(".type").attr("name","slides[0][type]"),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}();
7
  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(),10),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}();
js/min/all.frontend.min.js CHANGED
@@ -1,8 +1,8 @@
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
 
3
- !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(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()}}}();
4
  !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},i.Slideshow.prototype.bindSubmitListener=function(i){i.keypress(t.proxy(function(i){var e=i.keyCode||i.which;13===e&&(i.preventDefault(),t(i.currentTarget).click())},this))}}();
5
- !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)}}}();
6
  !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,10))?0:y-v.width(),m=isNaN(parseInt($,10))?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})}}}}();
7
- !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_box"),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_box"),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_box"),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_box");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_box").stop(!0,!1).animate({top:this.$container.outerHeight(!0)},parseInt(1e3*this.settings.descriptionSpeed,10))},this))))},i.Slideshow.prototype.activateNavigationButtons=function(){var i,s;this.settings.controllable&&(i=this.$nextButton.data("nextText"),s=this.$previousButton.data("previousText"),("string"!=typeof i||"string"!=typeof s||i.length<=0||s.length<=0)&&(i=this.$nextButton.attr("data-next-text"),s=this.$previousButton.attr("data-previous-text")),this.$nextButton.html('<span class="assistive-text hide-text">'+i+"</span>").attr({tabindex:"0",title:i}),this.$previousButton.html('<span class="assistive-text hide-text">'+s+"</span>").attr({tabindex:"0",title:s}),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.bindSubmitListener(this.$nextButton),this.bindSubmitListener(this.$previousButton),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.$togglePlayButton.attr("tabindex","0"),this.$container.bind("slideshowPlayStateChange",t.proxy(function(t,i){var s,e;s=this.$togglePlayButton.data("playText"),e=this.$togglePlayButton.data("pauseText"),("string"!=typeof s||"string"!=typeof e||s.length<=0||e.length<=0)&&(s=this.$nextButton.attr("data-play-text"),e=this.$previousButton.attr("data-pause-text")),i===this.PlayStates.PLAYING?this.$togglePlayButton.html('<span class="assistive-text hide-text">'+e+"</span>").attr({"class":"slideshow_pause",title:e}):i===this.PlayStates.PAUSED&&this.$togglePlayButton.html('<span class="assistive-text hide-text">'+s+"</span>").attr({"class":"slideshow_play",title:s})},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.bindSubmitListener(this.$togglePlayButton),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="",e=parseInt(t,10)+1,n=this.$pagination.data("goToText");("string"!=typeof n||n.length<=0)&&(n=this.$pagination.attr("data-go-to-text")),t==this.currentViewID&&(s="slideshow_currentView"),i.append('<li class="slideshow_transparent '+s+'" data-view-id="'+t+'" role="button" title="'+n+" "+e+'"><span class="assistive-text hide-text">'+n+" "+e+"</span></li>")},this)),this.$pagination.find("li").attr("tabindex","0").click(t.proxy(function(i){var s,e=t(i.currentTarget);this.currentlyAnimating||(s=e.data("viewId"),isNaN(parseInt(s,10))&&(s=e.attr("data-view-id"),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.bindSubmitListener(this.$pagination.find("li")),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)))}}();
8
  slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag=!0;
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,e(document).trigger("slideshow_jquery_image_gallery_script_ready"),t.loadYouTubeAPI(),t.repairStylesheetURLs(),t.activateSlideshows(),e(document).trigger("slideshow_jquery_image_gallery_slideshows_ready"))},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
 
3
+ !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(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)).find("a").attr("tabindex","-1"):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()}}}();
4
  !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},i.Slideshow.prototype.bindSubmitListener=function(i){i.keypress(t.proxy(function(i){var e=i.keyCode||i.which;13===e&&(i.preventDefault(),t(i.currentTarget).click())},this))}}();
5
+ !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]),a=e(this.$views[t]);switch(d.stop(!0,!0),a.stop(!0,!0),a.addClass("slideshow_nextView"),this.recalculateVisibleViews(),this.currentViewID=t,this.$container.trigger("slideshowAnimationStart",[t,s,i]),s){case"slide":a.css({top:0,left:this.$content.width()}),d.animate({left:-d.outerWidth(!0)},1e3*this.settings.slideSpeed),a.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":a.css({top:0,left:-this.$content.width()}),d.animate({left:d.outerWidth(!0)},1e3*this.settings.slideSpeed),a.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":a.css({top:this.$content.height(),left:0}),d.animate({top:-d.outerHeight(!0)},1e3*this.settings.slideSpeed),a.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":a.css({top:-this.$content.height(),left:0}),d.animate({top:d.outerHeight(!0)},1e3*this.settings.slideSpeed),a.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":a.css({top:0,left:0,display:"none"}),d.fadeOut(1e3*this.settings.slideSpeed/2),setTimeout(e.proxy(function(){a.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":a.css({top:0,left:0,"z-index":0,display:"none"}),d.css({"z-index":1}),a.stop(!0,!0).fadeIn(1e3*this.settings.slideSpeed),d.stop(!0,!0).fadeOut(1e3*this.settings.slideSpeed),setTimeout(e.proxy(function(){a.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);break;case"crossFade":a.css({top:0,left:0,"z-index":1,display:"none"}),d.css({"z-index":0}),a.stop(!0,!0).fadeIn(1e3*this.settings.slideSpeed),setTimeout(e.proxy(function(){d.css({top:this.$container.outerHeight(!0)}),a.css({"z-index":1})},this),1e3*this.settings.slideSpeed)}setTimeout(e.proxy(function(){d.removeClass("slideshow_currentView").find("a").attr("tabindex","-1"),a.removeClass("slideshow_nextView"),a.addClass("slideshow_currentView").find("a").attr("tabindex","0"),this.visibleViews=[t],this.currentlyAnimating=!1,this.$container.trigger("slideshowAnimationEnd")},this),1e3*this.settings.slideSpeed)}}}();
6
  !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,10))?0:y-v.width(),m=isNaN(parseInt($,10))?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})}}}}();
7
+ !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_box"),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_box"),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_box"),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_box");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_box").stop(!0,!1).animate({top:this.$container.outerHeight(!0)},parseInt(1e3*this.settings.descriptionSpeed,10))},this))))},i.Slideshow.prototype.activateNavigationButtons=function(){var i,s;this.settings.controllable&&(i=this.$nextButton.data("nextText"),s=this.$previousButton.data("previousText"),("string"!=typeof i||"string"!=typeof s||i.length<=0||s.length<=0)&&(i=this.$nextButton.attr("data-next-text"),s=this.$previousButton.attr("data-previous-text")),this.$nextButton.html('<span class="assistive-text hide-text">'+i+"</span>").attr({tabindex:"0",title:i}),this.$previousButton.html('<span class="assistive-text hide-text">'+s+"</span>").attr({tabindex:"0",title:s}),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.bindSubmitListener(this.$nextButton),this.bindSubmitListener(this.$previousButton),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.$togglePlayButton.attr("tabindex","0"),this.$container.bind("slideshowPlayStateChange",t.proxy(function(t,i){var s,e;this.$togglePlayButton.attr("role","button"),s=this.$togglePlayButton.data("playText"),e=this.$togglePlayButton.data("pauseText"),("string"!=typeof s||"string"!=typeof e||s.length<=0||e.length<=0)&&(s=this.$nextButton.attr("data-play-text"),e=this.$previousButton.attr("data-pause-text")),i===this.PlayStates.PLAYING?this.$togglePlayButton.html('<span class="assistive-text hide-text">'+e+"</span>").attr({"class":"slideshow_pause",title:e}):i===this.PlayStates.PAUSED&&this.$togglePlayButton.html('<span class="assistive-text hide-text">'+s+"</span>").attr({"class":"slideshow_play",title:s})},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.bindSubmitListener(this.$togglePlayButton),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="",e=parseInt(t,10)+1,n=this.$pagination.data("goToText");("string"!=typeof n||n.length<=0)&&(n=this.$pagination.attr("data-go-to-text")),t==this.currentViewID&&(s="slideshow_currentView"),i.append('<li class="slideshow_transparent '+s+'" data-view-id="'+t+'" role="button" title="'+n+" "+e+'"><span class="assistive-text hide-text">'+n+" "+e+"</span></li>")},this)),this.$pagination.find("li").attr("tabindex","0").click(t.proxy(function(i){var s,e=t(i.currentTarget);this.currentlyAnimating||(s=e.data("viewId"),isNaN(parseInt(s,10))&&(s=e.attr("data-view-id"),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.bindSubmitListener(this.$pagination.find("li")),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)))}}();
8
  slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag=!0;
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: stefanboonstra
4
  Donate link: http://stefanboonstra.com/donate-to-slideshow/
5
  Tags: responsive, slideshow, slider, slide show, images, image, photo, video, text, gallery, galleries, jquery, javascript
6
  Requires at least: 3.5
7
- Tested up to: 3.8.1
8
- Stable tag: 2.2.20
9
  License: GPLv2
10
 
11
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
@@ -180,9 +180,17 @@ personal taste.
180
 
181
  == Changelog ==
182
 
 
 
 
 
 
 
 
 
183
  = 2.2.20 =
184
  * Compatible with WordPress 3.8.
185
- * Accessibility improvements by [bensashi](https://github.com/bensashi)
186
  * Title and description element types can now be set from backend and anchor tags are omitted when no URL is set.
187
  * Improved functional stylesheet.
188
  * Post published/updated message doesn't show a link to a non-existant page anymore.
4
  Donate link: http://stefanboonstra.com/donate-to-slideshow/
5
  Tags: responsive, slideshow, slider, slide show, images, image, photo, video, text, gallery, galleries, jquery, javascript
6
  Requires at least: 3.5
7
+ Tested up to: 3.9
8
+ Stable tag: 2.2.21
9
  License: GPLv2
10
 
11
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
180
 
181
  == Changelog ==
182
 
183
+ = 2.2.21 =
184
+ * Compatible with WordPress 3.9.
185
+ * Added "Cross Fade" option to the animation settings.
186
+ * Updated the API to support retrieving the direction of the animation on the animation event.
187
+ * Fixed: Slideshow moving to next slide on keyboard navigation. By [Ben Wetzel](https://github.com/bensashi)
188
+ * Fixed: HTML5 validation issue.
189
+ * Fixed: Permission check that checked for "edit_post" instead of "edit_slideshow".
190
+
191
  = 2.2.20 =
192
  * Compatible with WordPress 3.8.
193
+ * Accessibility improvements by [Ben Wetzel](https://github.com/bensashi)
194
  * Title and description element types can now be set from backend and anchor tags are omitted when no URL is set.
195
  * Improved functional stylesheet.
196
  * Post published/updated message doesn't show a link to a non-existant page anymore.
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.20
7
  Requires at least: 3.5
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com/
@@ -22,7 +22,7 @@
22
  class SlideshowPluginMain
23
  {
24
  /** @var string $version */
25
- static $version = '2.2.20';
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.21
7
  Requires at least: 3.5
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com/
22
  class SlideshowPluginMain
23
  {
24
  /** @var string $version */
25
+ static $version = '2.2.21';
26
 
27
  /**
28
  * Bootstraps the application by assigning the right functions to
style/SlideshowPlugin/functional.css CHANGED
@@ -1,149 +1,149 @@
1
- .slideshow_container {
2
- margin: 0;
3
- position: relative;
4
- width: 100%;
5
- }
6
- .slideshow_container div {
7
- clear: none !important;
8
- max-width: none !important;
9
- padding: 0;
10
- }
11
- .slideshow_container img {
12
- border: none;
13
- margin: 0;
14
- padding: 0;
15
- max-width: none !important;
16
- }
17
- .slideshow_container p {
18
- margin: 0;
19
- padding: 10px;
20
- }
21
- .slideshow_container a {
22
- margin: 0 !important;
23
- padding: 0 !important;
24
- display: block !important;
25
- }
26
- .slideshow_container ul {
27
- margin: 0;
28
- padding: 0;
29
- }
30
- .slideshow_container ul li {
31
- margin: 0;
32
- padding: 0;
33
- }
34
- .slideshow_container h1,
35
- .slideshow_container h2,
36
- .slideshow_container h3,
37
- .slideshow_container h4,
38
- .slideshow_container h5,
39
- .slideshow_container h6 {
40
- margin: 0;
41
- padding: 10px;
42
- }
43
- .slideshow_container .slideshow_transparent,
44
- .slideshow_container .slideshow_transparent:hover {
45
- zoom: 1;
46
- }
47
- .slideshow_container .slideshow_content {
48
- position: relative !important;
49
- overflow: hidden !important;
50
- }
51
- .slideshow_container .slideshow_view {
52
- position: absolute !important;
53
- top: 0;
54
- left: 0;
55
- width: 0;
56
- height: 0;
57
- overflow: hidden !important;
58
- }
59
- .slideshow_container .slideshow_view .slideshow_slide {
60
- position: relative !important;
61
- float: left !important;
62
- overflow: hidden !important;
63
- }
64
- .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_text .slideshow_background_anchor {
65
- position: absolute;
66
- top: 0;
67
- }
68
- .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_image img {
69
- float: none;
70
- }
71
- .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_image .slideshow_description_box {
72
- display: none;
73
- position: absolute;
74
- width: 100%;
75
- }
76
- .slideshow_container .slideshow_controlPanel {
77
- position: absolute;
78
- top: 5px;
79
- left: 50%;
80
- display: none;
81
- z-index: 2;
82
- }
83
- .slideshow_container .slideshow_controlPanel ul {
84
- list-style: none;
85
- margin: 0;
86
- padding: 0;
87
- }
88
- .slideshow_container .slideshow_controlPanel ul li {
89
- float: left;
90
- }
91
- .slideshow_container .slideshow_controlPanel ul li:hover {
92
- cursor: pointer;
93
- }
94
- .slideshow_container .slideshow_button {
95
- padding: 0;
96
- position: absolute;
97
- top: 50%;
98
- cursor: pointer;
99
- display: none;
100
- z-index: 2;
101
- }
102
- .slideshow_container .slideshow_button.slideshow_previous {
103
- left: 5px;
104
- }
105
- .slideshow_container .slideshow_button.slideshow_next {
106
- right: 5px;
107
- }
108
- .slideshow_container .slideshow_pagination {
109
- height: 0;
110
- position: absolute;
111
- width: 100%;
112
- display: none;
113
- z-index: 2;
114
- }
115
- .slideshow_container .slideshow_pagination .slideshow_pagination_center {
116
- display: table;
117
- margin: 0 auto;
118
- }
119
- .slideshow_container .slideshow_pagination .slideshow_pagination_center ul {
120
- list-style: none;
121
- margin: 0;
122
- padding: 0;
123
- }
124
- .slideshow_container .slideshow_pagination .slideshow_pagination_center ul li {
125
- display: inline;
126
- float: left;
127
- }
128
- .slideshow_container .slideshow_pagination .slideshow_pagination_center ul li:hover {
129
- cursor: pointer;
130
- }
131
- .slideshow_container .assistive-text {
132
- clip: rect(1px, 1px, 1px, 1px);
133
- position: absolute !important;
134
- }
135
- .slideshow_container .hide-text {
136
- font: 0/0 a;
137
- color: rgba(0, 0, 0, 0);
138
- text-shadow: none;
139
- background-color: rgba(0, 0, 0, 0);
140
- border: 0;
141
- }
142
- .slideshow_container .slideshow_manufacturer {
143
- position: absolute !important;
144
- height: 1px;
145
- width: 1px;
146
- overflow: hidden;
147
- clip: rect(1px 1px 1px 1px);
148
- clip: rect(1px, 1px, 1px, 1px);
149
- }
1
+ .slideshow_container {
2
+ margin: 0;
3
+ position: relative;
4
+ width: 100%;
5
+ }
6
+ .slideshow_container div {
7
+ clear: none !important;
8
+ max-width: none !important;
9
+ padding: 0;
10
+ }
11
+ .slideshow_container img {
12
+ border: none;
13
+ margin: 0;
14
+ padding: 0;
15
+ max-width: none !important;
16
+ }
17
+ .slideshow_container p {
18
+ margin: 0;
19
+ padding: 10px;
20
+ }
21
+ .slideshow_container a {
22
+ margin: 0 !important;
23
+ padding: 0 !important;
24
+ display: block !important;
25
+ }
26
+ .slideshow_container ul {
27
+ margin: 0;
28
+ padding: 0;
29
+ }
30
+ .slideshow_container ul li {
31
+ margin: 0;
32
+ padding: 0;
33
+ }
34
+ .slideshow_container h1,
35
+ .slideshow_container h2,
36
+ .slideshow_container h3,
37
+ .slideshow_container h4,
38
+ .slideshow_container h5,
39
+ .slideshow_container h6 {
40
+ margin: 0;
41
+ padding: 10px;
42
+ }
43
+ .slideshow_container .slideshow_transparent,
44
+ .slideshow_container .slideshow_transparent:hover {
45
+ zoom: 1;
46
+ }
47
+ .slideshow_container .slideshow_content {
48
+ position: relative !important;
49
+ overflow: hidden !important;
50
+ }
51
+ .slideshow_container .slideshow_view {
52
+ position: absolute !important;
53
+ top: 0;
54
+ left: 0;
55
+ width: 0;
56
+ height: 0;
57
+ overflow: hidden !important;
58
+ }
59
+ .slideshow_container .slideshow_view .slideshow_slide {
60
+ position: relative !important;
61
+ float: left !important;
62
+ overflow: hidden !important;
63
+ }
64
+ .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_text .slideshow_background_anchor {
65
+ position: absolute;
66
+ top: 0;
67
+ }
68
+ .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_image img {
69
+ float: none;
70
+ }
71
+ .slideshow_container .slideshow_view .slideshow_slide.slideshow_slide_image .slideshow_description_box {
72
+ display: none;
73
+ position: absolute;
74
+ width: 100%;
75
+ }
76
+ .slideshow_container .slideshow_controlPanel {
77
+ position: absolute;
78
+ top: 5px;
79
+ left: 50%;
80
+ display: none;
81
+ z-index: 2;
82
+ }
83
+ .slideshow_container .slideshow_controlPanel ul {
84
+ list-style: none;
85
+ margin: 0;
86
+ padding: 0;
87
+ }
88
+ .slideshow_container .slideshow_controlPanel ul li {
89
+ float: left;
90
+ }
91
+ .slideshow_container .slideshow_controlPanel ul li:hover {
92
+ cursor: pointer;
93
+ }
94
+ .slideshow_container .slideshow_button {
95
+ padding: 0;
96
+ position: absolute;
97
+ top: 50%;
98
+ cursor: pointer;
99
+ display: none;
100
+ z-index: 2;
101
+ }
102
+ .slideshow_container .slideshow_button.slideshow_previous {
103
+ left: 5px;
104
+ }
105
+ .slideshow_container .slideshow_button.slideshow_next {
106
+ right: 5px;
107
+ }
108
+ .slideshow_container .slideshow_pagination {
109
+ height: 0;
110
+ position: absolute;
111
+ width: 100%;
112
+ display: none;
113
+ z-index: 2;
114
+ }
115
+ .slideshow_container .slideshow_pagination .slideshow_pagination_center {
116
+ display: table;
117
+ margin: 0 auto;
118
+ }
119
+ .slideshow_container .slideshow_pagination .slideshow_pagination_center ul {
120
+ list-style: none;
121
+ margin: 0;
122
+ padding: 0;
123
+ }
124
+ .slideshow_container .slideshow_pagination .slideshow_pagination_center ul li {
125
+ display: inline;
126
+ float: left;
127
+ }
128
+ .slideshow_container .slideshow_pagination .slideshow_pagination_center ul li:hover {
129
+ cursor: pointer;
130
+ }
131
+ .slideshow_container .assistive-text {
132
+ clip: rect(1px, 1px, 1px, 1px);
133
+ position: absolute !important;
134
+ }
135
+ .slideshow_container .hide-text {
136
+ font: 0/0 a;
137
+ color: rgba(0, 0, 0, 0);
138
+ text-shadow: none;
139
+ background-color: rgba(0, 0, 0, 0);
140
+ border: 0;
141
+ }
142
+ .slideshow_container .slideshow_manufacturer {
143
+ position: absolute !important;
144
+ height: 1px;
145
+ width: 1px;
146
+ overflow: hidden;
147
+ clip: rect(1px 1px 1px 1px);
148
+ clip: rect(1px, 1px, 1px, 1px);
149
+ }
views/SlideshowPlugin/slideshow.php CHANGED
@@ -20,7 +20,7 @@
20
 
21
  </div>
22
 
23
- <div class="slideshow_controlPanel slideshow_transparent" style="display: none;"><ul><li role="button" class="slideshow_togglePlay" data-play-text="<?php _e('Play', 'slideshow-plugin'); ?>" data-pause-text="<?php _e('Pause', 'slideshow-plugin'); ?>"></li></ul></div>
24
 
25
  <div class="slideshow_button slideshow_previous slideshow_transparent" role="button" data-previous-text="<?php _e('Previous', 'slideshow-plugin'); ?>" style="display: none;"></div>
26
  <div class="slideshow_button slideshow_next slideshow_transparent" role="button" data-next-text="<?php _e('Next', 'slideshow-plugin'); ?>" style="display: none;"></div>
20
 
21
  </div>
22
 
23
+ <div class="slideshow_controlPanel slideshow_transparent" style="display: none;"><ul><li class="slideshow_togglePlay" data-play-text="<?php _e('Play', 'slideshow-plugin'); ?>" data-pause-text="<?php _e('Pause', 'slideshow-plugin'); ?>"></li></ul></div>
24
 
25
  <div class="slideshow_button slideshow_previous slideshow_transparent" role="button" data-previous-text="<?php _e('Previous', 'slideshow-plugin'); ?>" style="display: none;"></div>
26
  <div class="slideshow_button slideshow_next slideshow_transparent" role="button" data-next-text="<?php _e('Next', 'slideshow-plugin'); ?>" style="display: none;"></div>