Version Description
- ADD: Full retina/high definition compatibility
- ADD: Setting to hide thumbnails bar on mobile
- ADD: Show thumbnails in order list for slides
- ADD: Information Bar position
- ADD: Show info bar only on hover
- ADD: Fade the information bar after a few seconds
- IMPROVE: Remove auto slide on slideshow with single image
- IMPROVE: CSS Selectors Resize images setting for responsive slideshows as well
- IMPROVE: Ensure that autoheight always works even with responsive height set
- IMPROVE: Generate images/thumbnails on remote URLs as well
- IMPROVE: Compatibility with new PHP OOP such as PHP7
- FIX: Paging broken in admin sections, database error
Download this release
Release Info
Developer | contrid |
Plugin | Slideshow Gallery |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
- css/admin.css +25 -3
- helpers/db.php +1 -1
- helpers/form.php +1 -1
- helpers/html.php +25 -11
- models/gallery.php +2 -2
- models/galleryslides.php +2 -2
- models/slide.php +14 -39
- readme.txt +16 -2
- slideshow-gallery-plugin.php +8 -21
- slideshow-gallery.php +16 -6
- vendors/class.paginate.php +2 -1
- vendors/otf_regen_thumbs.php +183 -0
- views/admin/galleries/index.php +7 -7
- views/admin/metaboxes/settings-general.php +71 -9
- views/admin/metaboxes/settings-styles.php +23 -23
- views/admin/slides/loop.php +14 -14
- views/admin/slides/order.php +1 -1
- views/admin/slides/save.php +3 -3
- views/default/css-responsive.php +13 -3
- views/default/css.php +15 -2
- views/default/gallery.php +23 -27
- views/default/js/gallery.js +87 -16
css/admin.css
CHANGED
@@ -240,6 +240,26 @@ span.gallery_slides_convert_grid a{
|
|
240 |
border-spacing:0;
|
241 |
}
|
242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
.gallery_slides_grid #slidelist li.gallerylineitem {
|
244 |
width:90px !important;
|
245 |
min-width:90px !important;
|
@@ -282,6 +302,7 @@ span.gallery_slides_convert_grid a{
|
|
282 |
margin-bottom:10px;
|
283 |
margin-right:10px;
|
284 |
clear:none !important;
|
|
|
285 |
}
|
286 |
|
287 |
.sortable-form-table-element table td, .sortable-form-table-headings table td{
|
@@ -313,14 +334,15 @@ span.gallery_slides_convert_grid a{
|
|
313 |
|
314 |
.gallery-placeholder {
|
315 |
float:left;
|
316 |
-
|
317 |
-
|
|
|
318 |
border:1px dashed #c9c9c9;
|
319 |
background:#f9f9f9;
|
320 |
-moz-border-radius:3px;
|
321 |
-webkit-border-radius:3px;
|
322 |
border-radius:3px;
|
323 |
-
margin-bottom:
|
324 |
}
|
325 |
|
326 |
#slidelist .gallery-placeholder {
|
240 |
border-spacing:0;
|
241 |
}
|
242 |
|
243 |
+
.gallery_slides_list #slidelist li.gallerylineitem {
|
244 |
+
height: 50px;
|
245 |
+
line-height: 50px;
|
246 |
+
padding: 0;
|
247 |
+
}
|
248 |
+
|
249 |
+
.gallery_slides_list #slidelist li.gallerylineitem .gallery_slide_image {
|
250 |
+
display: block !important;
|
251 |
+
float: left;
|
252 |
+
margin: 0 15px 0 0;
|
253 |
+
}
|
254 |
+
|
255 |
+
.gallery_slides_list #slidelist li.gallerylineitem .gallery_slide_image img {
|
256 |
+
width: 50px;
|
257 |
+
height: 50px;
|
258 |
+
}
|
259 |
+
|
260 |
+
.gallery_slides_list .gallery_slide_title {
|
261 |
+
}
|
262 |
+
|
263 |
.gallery_slides_grid #slidelist li.gallerylineitem {
|
264 |
width:90px !important;
|
265 |
min-width:90px !important;
|
302 |
margin-bottom:10px;
|
303 |
margin-right:10px;
|
304 |
clear:none !important;
|
305 |
+
padding: 0 13px !important;
|
306 |
}
|
307 |
|
308 |
.sortable-form-table-element table td, .sortable-form-table-headings table td{
|
334 |
|
335 |
.gallery-placeholder {
|
336 |
float:left;
|
337 |
+
height:50px;
|
338 |
+
width: 100%;
|
339 |
+
padding: 0 !important;
|
340 |
border:1px dashed #c9c9c9;
|
341 |
background:#f9f9f9;
|
342 |
-moz-border-radius:3px;
|
343 |
-webkit-border-radius:3px;
|
344 |
border-radius:3px;
|
345 |
+
margin-bottom:12px;
|
346 |
}
|
347 |
|
348 |
#slidelist .gallery-placeholder {
|
helpers/db.php
CHANGED
@@ -275,7 +275,7 @@ class GalleryDbHelper extends GalleryPlugin {
|
|
275 |
$wpdb -> query($query);
|
276 |
break;
|
277 |
case 'Slide' :
|
278 |
-
$imagepath =
|
279 |
@unlink($imagepath);
|
280 |
$query = "DELETE FROM `" . $wpdb -> prefix . strtolower($this -> pre) . "_galleriesslides` WHERE `slide_id` = '" . $record_id . "'";
|
281 |
$wpdb -> query($query);
|
275 |
$wpdb -> query($query);
|
276 |
break;
|
277 |
case 'Slide' :
|
278 |
+
$imagepath = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS . $record -> image;
|
279 |
@unlink($imagepath);
|
280 |
$query = "DELETE FROM `" . $wpdb -> prefix . strtolower($this -> pre) . "_galleriesslides` WHERE `slide_id` = '" . $record_id . "'";
|
281 |
$wpdb -> query($query);
|
helpers/form.php
CHANGED
@@ -28,7 +28,7 @@ class GalleryFormHelper extends GalleryPlugin {
|
|
28 |
'width' => '100%',
|
29 |
'class' => "widefat",
|
30 |
'error' => true,
|
31 |
-
'value' => (empty($args['value'])) ?
|
32 |
'autocomplete' => "on",
|
33 |
);
|
34 |
|
28 |
'width' => '100%',
|
29 |
'class' => "widefat",
|
30 |
'error' => true,
|
31 |
+
'value' => (empty($args['value'])) ? $this -> Html -> field_value($name) : $args['value'],
|
32 |
'autocomplete' => "on",
|
33 |
);
|
34 |
|
helpers/html.php
CHANGED
@@ -37,7 +37,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
37 |
return false;
|
38 |
}
|
39 |
|
40 |
-
|
41 |
if ($upload_dir = wp_upload_dir()) {
|
42 |
return str_replace("\\", "/", $upload_dir['basedir']);
|
43 |
}
|
@@ -45,7 +45,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
45 |
return str_replace("\\", "/", WP_CONTENT_DIR . '/uploads');
|
46 |
}
|
47 |
|
48 |
-
|
49 |
if ($upload_dir = wp_upload_dir()) {
|
50 |
return $upload_dir['baseurl'];
|
51 |
}
|
@@ -154,13 +154,27 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
154 |
return $tt_image;
|
155 |
}
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
function bfithumb_url() {
|
158 |
return plugins_url() . '/' . $this -> plugin_name . '/vendors/bfithumb.php';
|
159 |
}
|
160 |
|
161 |
function image_url($filename = null) {
|
162 |
if (!empty($filename)) {
|
163 |
-
return
|
164 |
}
|
165 |
|
166 |
return false;
|
@@ -180,7 +194,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
180 |
|
181 |
switch ($slide -> type) {
|
182 |
case 'media' :
|
183 |
-
$image_path = $slide -> image_url;
|
184 |
break;
|
185 |
case 'file' :
|
186 |
case 'url' :
|
@@ -216,7 +230,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
216 |
|
217 |
switch ($mn[1]) {
|
218 |
case 'Slide' :
|
219 |
-
$errors = GallerySlide
|
220 |
break;
|
221 |
}
|
222 |
|
@@ -241,15 +255,15 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
241 |
return false;
|
242 |
}
|
243 |
|
244 |
-
|
245 |
|
246 |
$ret = "";
|
247 |
foreach ($params as $key => $val) {
|
248 |
if (is_array($val)) {
|
249 |
if ($name == null) {
|
250 |
-
$ret .=
|
251 |
} else {
|
252 |
-
$ret .=
|
253 |
}
|
254 |
} else {
|
255 |
if ($name != null) {
|
@@ -263,7 +277,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
263 |
return rtrim($ret, "&");
|
264 |
}
|
265 |
|
266 |
-
|
267 |
$url = (empty($old_url)) ? $_SERVER['REQUEST_URI'] : rtrim($old_url, '&');
|
268 |
$urls = @explode("?", $url);
|
269 |
$add = ltrim($add, '&');
|
@@ -283,7 +297,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
283 |
}
|
284 |
}
|
285 |
|
286 |
-
$querystring =
|
287 |
|
288 |
$urls[1] = preg_replace("/[\&|\?]Gallerymessage\=([0-9a-z-_+]*)/i", "", $urls[1]);
|
289 |
$urls[1] = preg_replace("/[\&|\?]page\=/si", "", $urls[1]);
|
@@ -322,7 +336,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
322 |
return false;
|
323 |
}
|
324 |
|
325 |
-
|
326 |
$time = (empty($time)) ? time() : $time;
|
327 |
$date = date($format, $time);
|
328 |
|
37 |
return false;
|
38 |
}
|
39 |
|
40 |
+
function uploads_path() {
|
41 |
if ($upload_dir = wp_upload_dir()) {
|
42 |
return str_replace("\\", "/", $upload_dir['basedir']);
|
43 |
}
|
45 |
return str_replace("\\", "/", WP_CONTENT_DIR . '/uploads');
|
46 |
}
|
47 |
|
48 |
+
function uploads_url() {
|
49 |
if ($upload_dir = wp_upload_dir()) {
|
50 |
return $upload_dir['baseurl'];
|
51 |
}
|
154 |
return $tt_image;
|
155 |
}
|
156 |
|
157 |
+
function otf_image_src($slide = null, $width = null, $height = null, $quality = 100) {
|
158 |
+
$objectname = get_class($slide);
|
159 |
+
|
160 |
+
if (!empty($slide -> attachment_id)) {
|
161 |
+
$image_src = wp_get_attachment_image_src($slide -> attachment_id, array($width, $height), false);
|
162 |
+
return $image_src[0];
|
163 |
+
} elseif (!empty($objectname) && $objectname == "WP_Post" && !empty($slide -> ID)) {
|
164 |
+
$image_src = wp_get_attachment_image_src($slide -> ID, array($width, $height), false);
|
165 |
+
return $image_src[0];
|
166 |
+
}
|
167 |
+
|
168 |
+
return $this -> bfithumb_image_src($slide -> image_path, $width, $height, $quality);
|
169 |
+
}
|
170 |
+
|
171 |
function bfithumb_url() {
|
172 |
return plugins_url() . '/' . $this -> plugin_name . '/vendors/bfithumb.php';
|
173 |
}
|
174 |
|
175 |
function image_url($filename = null) {
|
176 |
if (!empty($filename)) {
|
177 |
+
return $this -> uploads_url() . '/' . $this -> plugin_name . '/' . $filename;
|
178 |
}
|
179 |
|
180 |
return false;
|
194 |
|
195 |
switch ($slide -> type) {
|
196 |
case 'media' :
|
197 |
+
$image_path = $slide -> image_url;
|
198 |
break;
|
199 |
case 'file' :
|
200 |
case 'url' :
|
230 |
|
231 |
switch ($mn[1]) {
|
232 |
case 'Slide' :
|
233 |
+
$errors = $this -> GallerySlide() -> validate($_POST);
|
234 |
break;
|
235 |
}
|
236 |
|
255 |
return false;
|
256 |
}
|
257 |
|
258 |
+
function queryString($params, $name = null) {
|
259 |
|
260 |
$ret = "";
|
261 |
foreach ($params as $key => $val) {
|
262 |
if (is_array($val)) {
|
263 |
if ($name == null) {
|
264 |
+
$ret .= $this -> queryString($val, $key);
|
265 |
} else {
|
266 |
+
$ret .= $this -> queryString($val, $name . "[$key]");
|
267 |
}
|
268 |
} else {
|
269 |
if ($name != null) {
|
277 |
return rtrim($ret, "&");
|
278 |
}
|
279 |
|
280 |
+
function retainquery($add = null, $old_url = null, $endslash = true) {
|
281 |
$url = (empty($old_url)) ? $_SERVER['REQUEST_URI'] : rtrim($old_url, '&');
|
282 |
$urls = @explode("?", $url);
|
283 |
$add = ltrim($add, '&');
|
297 |
}
|
298 |
}
|
299 |
|
300 |
+
$querystring = $this -> queryString($path_parts);
|
301 |
|
302 |
$urls[1] = preg_replace("/[\&|\?]Gallerymessage\=([0-9a-z-_+]*)/i", "", $urls[1]);
|
303 |
$urls[1] = preg_replace("/[\&|\?]page\=/si", "", $urls[1]);
|
336 |
return false;
|
337 |
}
|
338 |
|
339 |
+
function gen_date($format = "Y-m-d H:i:s", $time = false) {
|
340 |
$time = (empty($time)) ? time() : $time;
|
341 |
$date = date($format, $time);
|
342 |
|
models/gallery.php
CHANGED
@@ -62,8 +62,8 @@ class GalleryGallery extends GalleryDbHelper {
|
|
62 |
|
63 |
function defaults() {
|
64 |
$defaults = array(
|
65 |
-
'created' =>
|
66 |
-
'modified' =>
|
67 |
);
|
68 |
|
69 |
return $defaults;
|
62 |
|
63 |
function defaults() {
|
64 |
$defaults = array(
|
65 |
+
'created' => $this -> Html -> gen_date(),
|
66 |
+
'modified' => $this -> Html -> gen_date(),
|
67 |
);
|
68 |
|
69 |
return $defaults;
|
models/galleryslides.php
CHANGED
@@ -45,8 +45,8 @@ class GalleryGallerySlides extends GalleryDbHelper {
|
|
45 |
|
46 |
function defaults() {
|
47 |
$defaults = array(
|
48 |
-
'created' =>
|
49 |
-
'modified' =>
|
50 |
);
|
51 |
|
52 |
return $defaults;
|
45 |
|
46 |
function defaults() {
|
47 |
$defaults = array(
|
48 |
+
'created' => $this -> Html -> gen_date(),
|
49 |
+
'modified' => $this -> Html -> gen_date(),
|
50 |
);
|
51 |
|
52 |
return $defaults;
|
models/slide.php
CHANGED
@@ -36,6 +36,7 @@ class GallerySlide extends GalleryDbHelper {
|
|
36 |
global $wpdb;
|
37 |
$this -> plugin_name = basename(dirname(dirname(__FILE__)));
|
38 |
$this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
|
|
|
39 |
if (is_admin()) { $this -> check_table($this -> model); }
|
40 |
|
41 |
if (!empty($data)) {
|
@@ -67,7 +68,7 @@ class GallerySlide extends GalleryDbHelper {
|
|
67 |
}
|
68 |
}
|
69 |
|
70 |
-
$this -> image_path =
|
71 |
}
|
72 |
|
73 |
return true;
|
@@ -77,8 +78,8 @@ class GallerySlide extends GalleryDbHelper {
|
|
77 |
$defaults = array(
|
78 |
'galleries' => false,
|
79 |
'order' => 0,
|
80 |
-
'created' =>
|
81 |
-
'modified' =>
|
82 |
);
|
83 |
|
84 |
return $defaults;
|
@@ -109,19 +110,19 @@ class GallerySlide extends GalleryDbHelper {
|
|
109 |
} elseif ($type == "file") {
|
110 |
if (!empty($image_oldfile) && empty($_FILES['image_file']['name'])) {
|
111 |
$imagename = $image_oldfile;
|
112 |
-
$imagepath =
|
113 |
$imagefull = $imagepath . $imagename;
|
114 |
|
115 |
$this -> data -> image = $imagename;
|
116 |
-
|
117 |
} else {
|
118 |
if ($_FILES['image_file']['error'] <= 0) {
|
119 |
$imagename = $_FILES['image_file']['name'];
|
120 |
-
$image_name =
|
121 |
-
$image_ext =
|
122 |
-
$imagename =
|
123 |
|
124 |
-
$imagepath =
|
125 |
$imagefull = $imagepath . $imagename;
|
126 |
|
127 |
$issafe = false;
|
@@ -132,34 +133,9 @@ class GallerySlide extends GalleryDbHelper {
|
|
132 |
}
|
133 |
}
|
134 |
|
135 |
-
/*$this -> debug($imagename);
|
136 |
-
$this -> debug($imagefull);
|
137 |
-
|
138 |
-
exit();*/
|
139 |
-
|
140 |
-
/*$uploadedfile = $_FILES['image'];
|
141 |
-
$upload_overrides = array( 'test_form' => false );
|
142 |
-
$movefile = wp_handle_upload( $uploadedfile, $upload_overrides );
|
143 |
-
|
144 |
-
if (empty($movefile['error'])) {
|
145 |
-
$file = _wp_relative_upload_path($movefile['file']);
|
146 |
-
$this -> data -> image = $file;
|
147 |
-
} else {
|
148 |
-
$this -> errors['image'] = $movefile['error'];
|
149 |
-
}*/
|
150 |
-
|
151 |
if (empty($issafe) || $issafe == false) {
|
152 |
$this -> errors['image_file'] = __('This file type is not allowed for security reasons', $this -> plugin_name);
|
153 |
-
} else {
|
154 |
-
/*if (!is_uploaded_file($_FILES['image_file']['tmp_name'])) { $this -> errors['image_file'] = __('The image did not upload, please try again', $this -> plugin_name); }
|
155 |
-
elseif (!move_uploaded_file($_FILES['image_file']['tmp_name'], $imagefull)) { $this -> errors['image_file'] = __('Image could not be moved from TMP to "wp-content/uploads/", please check permissions', $this -> plugin_name); }
|
156 |
-
else {
|
157 |
-
@chmod($imagefull, 0644);
|
158 |
-
|
159 |
-
$this -> data -> image = $imagename;
|
160 |
-
GalleryHtmlHelper::image_path($this -> data);
|
161 |
-
}*/
|
162 |
-
|
163 |
$uploadedfile = $_FILES['image_file'];
|
164 |
$upload_overrides = array('test_form' => false);
|
165 |
$movefile = wp_handle_upload($uploadedfile, $upload_overrides);
|
@@ -197,11 +173,10 @@ class GallerySlide extends GalleryDbHelper {
|
|
197 |
else {
|
198 |
if ($image = wp_remote_fopen(str_replace(" ", "%20", $image_url))) {
|
199 |
$filename = basename($image_url);
|
200 |
-
$file_name =
|
201 |
-
$file_ext =
|
202 |
-
//$filename = GalleryHtmlHelper::sanitize($file_name) . '.' . $file_ext;
|
203 |
$filename = $file_name . '.' . $file_ext;
|
204 |
-
$filepath =
|
205 |
$filefull = $filepath . $filename;
|
206 |
|
207 |
$issafe = false;
|
36 |
global $wpdb;
|
37 |
$this -> plugin_name = basename(dirname(dirname(__FILE__)));
|
38 |
$this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
|
39 |
+
|
40 |
if (is_admin()) { $this -> check_table($this -> model); }
|
41 |
|
42 |
if (!empty($data)) {
|
68 |
}
|
69 |
}
|
70 |
|
71 |
+
$this -> image_path = $this -> Html -> image_path($data);
|
72 |
}
|
73 |
|
74 |
return true;
|
78 |
$defaults = array(
|
79 |
'galleries' => false,
|
80 |
'order' => 0,
|
81 |
+
'created' => $this -> Html -> gen_date(),
|
82 |
+
'modified' => $this -> Html -> gen_date(),
|
83 |
);
|
84 |
|
85 |
return $defaults;
|
110 |
} elseif ($type == "file") {
|
111 |
if (!empty($image_oldfile) && empty($_FILES['image_file']['name'])) {
|
112 |
$imagename = $image_oldfile;
|
113 |
+
$imagepath = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS;
|
114 |
$imagefull = $imagepath . $imagename;
|
115 |
|
116 |
$this -> data -> image = $imagename;
|
117 |
+
$this -> Html -> image_path($this -> data);
|
118 |
} else {
|
119 |
if ($_FILES['image_file']['error'] <= 0) {
|
120 |
$imagename = $_FILES['image_file']['name'];
|
121 |
+
$image_name = $this -> Html -> strip_ext($imagename, "name");
|
122 |
+
$image_ext = $this -> Html -> strip_ext($imagename, "ext");
|
123 |
+
$imagename = $this -> Html -> sanitize($image_name) . '.' . $image_ext;
|
124 |
|
125 |
+
$imagepath = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS;
|
126 |
$imagefull = $imagepath . $imagename;
|
127 |
|
128 |
$issafe = false;
|
133 |
}
|
134 |
}
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
if (empty($issafe) || $issafe == false) {
|
137 |
$this -> errors['image_file'] = __('This file type is not allowed for security reasons', $this -> plugin_name);
|
138 |
+
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
$uploadedfile = $_FILES['image_file'];
|
140 |
$upload_overrides = array('test_form' => false);
|
141 |
$movefile = wp_handle_upload($uploadedfile, $upload_overrides);
|
173 |
else {
|
174 |
if ($image = wp_remote_fopen(str_replace(" ", "%20", $image_url))) {
|
175 |
$filename = basename($image_url);
|
176 |
+
$file_name = $this -> Html -> strip_ext($filename, "name");
|
177 |
+
$file_ext = $this -> Html -> strip_ext($filename, "ext");
|
|
|
178 |
$filename = $file_name . '.' . $file_ext;
|
179 |
+
$filepath = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS;
|
180 |
$filefull = $filepath . $filename;
|
181 |
|
182 |
$issafe = false;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: contrid
|
|
3 |
Donate link: http://tribulant.com/
|
4 |
Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
|
5 |
Requires at least: 3.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.6.
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
@@ -175,6 +175,20 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
= 1.6.3 =
|
179 |
* IMPROVE: Allow html in description of slides
|
180 |
* IMPROVE: Set line-height on icons
|
3 |
Donate link: http://tribulant.com/
|
4 |
Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
|
5 |
Requires at least: 3.1
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 1.6.4
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 1.6.4 =
|
179 |
+
* ADD: Full retina/high definition compatibility
|
180 |
+
* ADD: Setting to hide thumbnails bar on mobile
|
181 |
+
* ADD: Show thumbnails in order list for slides
|
182 |
+
* ADD: Information Bar position
|
183 |
+
* ADD: Show info bar only on hover
|
184 |
+
* ADD: Fade the information bar after a few seconds
|
185 |
+
* IMPROVE: Remove auto slide on slideshow with single image
|
186 |
+
* IMPROVE: CSS Selectors Resize images setting for responsive slideshows as well
|
187 |
+
* IMPROVE: Ensure that autoheight always works even with responsive height set
|
188 |
+
* IMPROVE: Generate images/thumbnails on remote URLs as well
|
189 |
+
* IMPROVE: Compatibility with new PHP OOP such as PHP7
|
190 |
+
* FIX: Paging broken in admin sections, database error
|
191 |
+
|
192 |
= 1.6.3 =
|
193 |
* IMPROVE: Allow html in description of slides
|
194 |
* IMPROVE: Set line-height on icons
|
slideshow-gallery-plugin.php
CHANGED
@@ -4,7 +4,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
4 |
|
5 |
class GalleryPlugin extends GalleryCheckinit {
|
6 |
|
7 |
-
var $version = '1.6.
|
8 |
var $plugin_name;
|
9 |
var $plugin_base;
|
10 |
var $pre = 'Gallery';
|
@@ -246,24 +246,6 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
246 |
}
|
247 |
|
248 |
include_once(dirname(__FILE__) . DS . 'models' . DS . 'slideshow.php');
|
249 |
-
|
250 |
-
/*if (!empty($this -> models)) {
|
251 |
-
foreach ($this -> models as $model) {
|
252 |
-
$mfile = dirname(__FILE__) . DS . 'models' . DS . strtolower($model) . '.php';
|
253 |
-
|
254 |
-
if (file_exists($mfile)) {
|
255 |
-
require_once($mfile);
|
256 |
-
|
257 |
-
if (empty($this -> {$model}) || !is_object($this -> {$model})) {
|
258 |
-
$classname = $this -> pre . $model;
|
259 |
-
|
260 |
-
if (class_exists($classname)) {
|
261 |
-
$this -> {$model} = new $classname;
|
262 |
-
}
|
263 |
-
}
|
264 |
-
}
|
265 |
-
}
|
266 |
-
}*/
|
267 |
}
|
268 |
|
269 |
function updating_plugin() {
|
@@ -300,10 +282,10 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
300 |
$version = "1.5.3";
|
301 |
}
|
302 |
|
303 |
-
if (version_compare($cur_version, "1.6.
|
304 |
$this -> initialize_options();
|
305 |
|
306 |
-
$version = "1.6.
|
307 |
}
|
308 |
|
309 |
//the current version is older.
|
@@ -342,6 +324,7 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
342 |
$this -> add_option('navopacity', 25);
|
343 |
$this -> add_option('navhover', 75);
|
344 |
$this -> add_option('information', "Y");
|
|
|
345 |
$this -> add_option('infospeed', 10);
|
346 |
$this -> add_option('infohideonmobile', 1);
|
347 |
$this -> add_option('thumbnails', "N");
|
@@ -352,6 +335,7 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
352 |
$this -> add_option('thumbscrollspeed', 5);
|
353 |
$this -> add_option('thumbspacing', 5);
|
354 |
$this -> add_option('thumbactive', "#FFFFFF");
|
|
|
355 |
$this -> add_option('autoslide', "Y");
|
356 |
$this -> add_option('autospeed', 10);
|
357 |
$this -> add_option('alwaysauto', "true");
|
@@ -617,6 +601,7 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
617 |
}
|
618 |
|
619 |
add_thickbox();
|
|
|
620 |
}
|
621 |
|
622 |
wp_enqueue_script('colorbox', $this -> render_url('js/colorbox.js', "admin"), array('jquery'), '1.6.3');
|
@@ -742,6 +727,8 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
742 |
|
743 |
function check_table($model = null) {
|
744 |
global $wpdb;
|
|
|
|
|
745 |
|
746 |
if (!empty($model)) {
|
747 |
if (!empty($this -> fields) && is_array($this -> fields)) {
|
4 |
|
5 |
class GalleryPlugin extends GalleryCheckinit {
|
6 |
|
7 |
+
var $version = '1.6.4';
|
8 |
var $plugin_name;
|
9 |
var $plugin_base;
|
10 |
var $pre = 'Gallery';
|
246 |
}
|
247 |
|
248 |
include_once(dirname(__FILE__) . DS . 'models' . DS . 'slideshow.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
}
|
250 |
|
251 |
function updating_plugin() {
|
282 |
$version = "1.5.3";
|
283 |
}
|
284 |
|
285 |
+
if (version_compare($cur_version, "1.6.4") < 0) {
|
286 |
$this -> initialize_options();
|
287 |
|
288 |
+
$version = "1.6.4";
|
289 |
}
|
290 |
|
291 |
//the current version is older.
|
324 |
$this -> add_option('navopacity', 25);
|
325 |
$this -> add_option('navhover', 75);
|
326 |
$this -> add_option('information', "Y");
|
327 |
+
$this -> add_option('infoposition', "bottom");
|
328 |
$this -> add_option('infospeed', 10);
|
329 |
$this -> add_option('infohideonmobile', 1);
|
330 |
$this -> add_option('thumbnails', "N");
|
335 |
$this -> add_option('thumbscrollspeed', 5);
|
336 |
$this -> add_option('thumbspacing', 5);
|
337 |
$this -> add_option('thumbactive', "#FFFFFF");
|
338 |
+
$this -> add_option('thumbhideonmobile', 1);
|
339 |
$this -> add_option('autoslide', "Y");
|
340 |
$this -> add_option('autospeed', 10);
|
341 |
$this -> add_option('alwaysauto', "true");
|
601 |
}
|
602 |
|
603 |
add_thickbox();
|
604 |
+
wp_deregister_script('select2');
|
605 |
}
|
606 |
|
607 |
wp_enqueue_script('colorbox', $this -> render_url('js/colorbox.js', "admin"), array('jquery'), '1.6.3');
|
727 |
|
728 |
function check_table($model = null) {
|
729 |
global $wpdb;
|
730 |
+
|
731 |
+
$this -> initialize_classes();
|
732 |
|
733 |
if (!empty($model)) {
|
734 |
if (!empty($this -> fields) && is_array($this -> fields)) {
|
slideshow-gallery.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://tribulant.com/plugins/view/13/wordpress-slideshow-gallery
|
|
6 |
Author: Tribulant Software
|
7 |
Author URI: http://tribulant.com
|
8 |
Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[tribulant_slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code><?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?></code>.
|
9 |
-
Version: 1.6.
|
10 |
License: GNU General Public License v2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
|
@@ -23,6 +23,7 @@ if (file_exists($path)) {
|
|
23 |
require_once(dirname(__FILE__) . DS . 'includes' . DS . 'checkinit.php');
|
24 |
require_once(dirname(__FILE__) . DS . 'includes' . DS . 'constants.php');
|
25 |
require_once($path);
|
|
|
26 |
}
|
27 |
|
28 |
if (!class_exists('Gallery')) {
|
@@ -340,8 +341,8 @@ if (!class_exists('Gallery')) {
|
|
340 |
'featuredtype' => "post",
|
341 |
'gallery_id' => false,
|
342 |
'orderby' => array('order', "ASC"),
|
343 |
-
'orderf' => false,
|
344 |
-
'orderd' => false,
|
345 |
'resizeimages' => (($styles['resizeimages'] == "Y") ? "true" : "false"),
|
346 |
'imagesoverlay' => (($this -> get_option('imagesthickbox') == "Y") ? "true" : "false"),
|
347 |
'layout' => ($styles['layout']),
|
@@ -362,8 +363,12 @@ if (!class_exists('Gallery')) {
|
|
362 |
'navopacity' => ($this -> get_option('navopacity')),
|
363 |
'navhoveropacity' => ($this -> get_option('navhover')),
|
364 |
'showinfo' => (($this -> get_option('information') == "Y") ? "true" : "false"),
|
|
|
|
|
365 |
'infospeed' => ($this -> get_option('infospeed')),
|
366 |
'infodelay' => ($this -> get_option('infodelay')),
|
|
|
|
|
367 |
'showthumbs' => (($this -> get_option('thumbnails') == "Y") ? "true" : "false"),
|
368 |
'thumbsposition' => ($this -> get_option('thumbposition')),
|
369 |
'thumbsborder' => ($styles['thumbactive']),
|
@@ -741,7 +746,7 @@ if (!class_exists('Gallery')) {
|
|
741 |
$perpage = (isset($_COOKIE[$this -> pre . 'slidesperpage'])) ? $_COOKIE[$this -> pre . 'slidesperpage'] : 25;
|
742 |
$orderfield = (empty($_GET['orderby'])) ? 'modified' : esc_html($_GET['orderby']);
|
743 |
$orderdirection = (empty($_GET['order'])) ? 'DESC' : strtoupper(esc_html($_GET['order']));
|
744 |
-
$order = array($
|
745 |
$data = $this -> paginate('Slide', false, false, false, false, $perpage, $order);
|
746 |
$this -> render('slides' . DS . 'index', array('slides' => $data[$this -> Slide() -> model], 'paginate' => $data['Paginate']), true, 'admin');
|
747 |
break;
|
@@ -779,7 +784,7 @@ if (!class_exists('Gallery')) {
|
|
779 |
$perpage = (isset($_COOKIE[$this -> pre . 'slidesperpage'])) ? $_COOKIE[$this -> pre . 'slidesperpage'] : 25;
|
780 |
$orderfield = (empty($_GET['orderby'])) ? 'modified' : esc_html($_GET['orderby']);
|
781 |
$orderdirection = (empty($_GET['order'])) ? 'DESC' : strtoupper(esc_html($_GET['order']));
|
782 |
-
$order = array($
|
783 |
$data = $this -> paginate('GallerySlides', "*", $this -> sections -> galleries . '&method=view&id=' . $gallery -> id, array('gallery_id' => $gallery -> id), false, $perpage, $order);
|
784 |
|
785 |
$data['Slide'] = array();
|
@@ -842,7 +847,7 @@ if (!class_exists('Gallery')) {
|
|
842 |
$perpage = (isset($_COOKIE[$this -> pre . 'galleriesperpage'])) ? $_COOKIE[$this -> pre . 'galleriesperpage'] : 10;
|
843 |
$orderfield = (empty($_GET['orderby'])) ? 'modified' : esc_html($_GET['orderby']);
|
844 |
$orderdirection = (empty($_GET['order'])) ? 'DESC' : strtoupper(esc_html($_GET['order']));
|
845 |
-
$order = array($
|
846 |
$data = $this -> paginate('Gallery', false, false, false, false, $perpage, $order);
|
847 |
$this -> render('galleries' . DS . 'index', array('galleries' => $data[$this -> Gallery() -> model], 'paginate' => $data['Paginate']), true, 'admin');
|
848 |
break;
|
@@ -901,6 +906,10 @@ if (!class_exists('Gallery')) {
|
|
901 |
$this -> delete_option('autoheight');
|
902 |
$this -> delete_option('language_external');
|
903 |
$this -> delete_option('excerptsettings');
|
|
|
|
|
|
|
|
|
904 |
|
905 |
foreach ($_POST as $pkey => $pval) {
|
906 |
switch ($pkey) {
|
@@ -973,6 +982,7 @@ if (!class_exists('Gallery')) {
|
|
973 |
$this -> delete_option('infohideonmobile');
|
974 |
$this -> delete_option('excerptsettings');
|
975 |
$this -> update_option('imagesthickbox', "N");
|
|
|
976 |
}
|
977 |
|
978 |
$message = __('Configuration has been saved', $this -> plugin_name);
|
6 |
Author: Tribulant Software
|
7 |
Author URI: http://tribulant.com
|
8 |
Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[tribulant_slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code><?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?></code>.
|
9 |
+
Version: 1.6.4
|
10 |
License: GNU General Public License v2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
|
23 |
require_once(dirname(__FILE__) . DS . 'includes' . DS . 'checkinit.php');
|
24 |
require_once(dirname(__FILE__) . DS . 'includes' . DS . 'constants.php');
|
25 |
require_once($path);
|
26 |
+
require_once(dirname(__FILE__) . DS . 'vendors' . DS . 'otf_regen_thumbs.php');
|
27 |
}
|
28 |
|
29 |
if (!class_exists('Gallery')) {
|
341 |
'featuredtype' => "post",
|
342 |
'gallery_id' => false,
|
343 |
'orderby' => array('order', "ASC"),
|
344 |
+
'orderf' => false, // order field
|
345 |
+
'orderd' => false, // order direction (ASC/DESC)
|
346 |
'resizeimages' => (($styles['resizeimages'] == "Y") ? "true" : "false"),
|
347 |
'imagesoverlay' => (($this -> get_option('imagesthickbox') == "Y") ? "true" : "false"),
|
348 |
'layout' => ($styles['layout']),
|
363 |
'navopacity' => ($this -> get_option('navopacity')),
|
364 |
'navhoveropacity' => ($this -> get_option('navhover')),
|
365 |
'showinfo' => (($this -> get_option('information') == "Y") ? "true" : "false"),
|
366 |
+
'infoposition' => ($this -> get_option('infoposition')),
|
367 |
+
'infoonhover' => ($this -> get_option('infoonhover')),
|
368 |
'infospeed' => ($this -> get_option('infospeed')),
|
369 |
'infodelay' => ($this -> get_option('infodelay')),
|
370 |
+
'infofade' => ($this -> get_option ('infofade')),
|
371 |
+
'infofadedelay' => ($this -> get_option ('infofadedelay')),
|
372 |
'showthumbs' => (($this -> get_option('thumbnails') == "Y") ? "true" : "false"),
|
373 |
'thumbsposition' => ($this -> get_option('thumbposition')),
|
374 |
'thumbsborder' => ($styles['thumbactive']),
|
746 |
$perpage = (isset($_COOKIE[$this -> pre . 'slidesperpage'])) ? $_COOKIE[$this -> pre . 'slidesperpage'] : 25;
|
747 |
$orderfield = (empty($_GET['orderby'])) ? 'modified' : esc_html($_GET['orderby']);
|
748 |
$orderdirection = (empty($_GET['order'])) ? 'DESC' : strtoupper(esc_html($_GET['order']));
|
749 |
+
$order = array($orderfield, $orderdirection);
|
750 |
$data = $this -> paginate('Slide', false, false, false, false, $perpage, $order);
|
751 |
$this -> render('slides' . DS . 'index', array('slides' => $data[$this -> Slide() -> model], 'paginate' => $data['Paginate']), true, 'admin');
|
752 |
break;
|
784 |
$perpage = (isset($_COOKIE[$this -> pre . 'slidesperpage'])) ? $_COOKIE[$this -> pre . 'slidesperpage'] : 25;
|
785 |
$orderfield = (empty($_GET['orderby'])) ? 'modified' : esc_html($_GET['orderby']);
|
786 |
$orderdirection = (empty($_GET['order'])) ? 'DESC' : strtoupper(esc_html($_GET['order']));
|
787 |
+
$order = array($orderfield, $orderdirection);
|
788 |
$data = $this -> paginate('GallerySlides', "*", $this -> sections -> galleries . '&method=view&id=' . $gallery -> id, array('gallery_id' => $gallery -> id), false, $perpage, $order);
|
789 |
|
790 |
$data['Slide'] = array();
|
847 |
$perpage = (isset($_COOKIE[$this -> pre . 'galleriesperpage'])) ? $_COOKIE[$this -> pre . 'galleriesperpage'] : 10;
|
848 |
$orderfield = (empty($_GET['orderby'])) ? 'modified' : esc_html($_GET['orderby']);
|
849 |
$orderdirection = (empty($_GET['order'])) ? 'DESC' : strtoupper(esc_html($_GET['order']));
|
850 |
+
$order = array($orderfield, $orderdirection);
|
851 |
$data = $this -> paginate('Gallery', false, false, false, false, $perpage, $order);
|
852 |
$this -> render('galleries' . DS . 'index', array('galleries' => $data[$this -> Gallery() -> model], 'paginate' => $data['Paginate']), true, 'admin');
|
853 |
break;
|
906 |
$this -> delete_option('autoheight');
|
907 |
$this -> delete_option('language_external');
|
908 |
$this -> delete_option('excerptsettings');
|
909 |
+
$this -> delete_option('infofade');
|
910 |
+
$this -> delete_option('fadedelay');
|
911 |
+
$this -> delete_option('infoonhover');
|
912 |
+
$this -> delete_option('thumbhideonmobile');
|
913 |
|
914 |
foreach ($_POST as $pkey => $pval) {
|
915 |
switch ($pkey) {
|
982 |
$this -> delete_option('infohideonmobile');
|
983 |
$this -> delete_option('excerptsettings');
|
984 |
$this -> update_option('imagesthickbox', "N");
|
985 |
+
$this -> delete_option('thumbhideonmobile');
|
986 |
}
|
987 |
|
988 |
$message = __('Configuration has been saved', $this -> plugin_name);
|
vendors/class.paginate.php
CHANGED
@@ -161,7 +161,8 @@ class GalleryPaginate extends GalleryPlugin {
|
|
161 |
|
162 |
$this -> doberecords();
|
163 |
list($osortby, $osort) = $this -> order;
|
164 |
-
|
|
|
165 |
//echo $query;
|
166 |
|
167 |
$query_hash = md5($query);
|
161 |
|
162 |
$this -> doberecords();
|
163 |
list($osortby, $osort) = $this -> order;
|
164 |
+
|
165 |
+
$query .= " ORDER BY " . $this -> table . "." . $osortby . " " . $osort . " LIMIT " . $this -> begRecord . " , " . $this -> per_page . ";";
|
166 |
//echo $query;
|
167 |
|
168 |
$query_hash = md5($query);
|
vendors/otf_regen_thumbs.php
ADDED
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Simple but effectively resizes images on the fly. Doesn't upsize, just downsizes like how WordPress likes it.
|
5 |
+
* If the image already exists, it's served. If not, the image is resized to the specified size, saved for
|
6 |
+
* future use, then served.
|
7 |
+
*
|
8 |
+
* @author Benjamin Intal - Gambit Technologies Inc
|
9 |
+
* @see https://wordpress.stackexchange.com/questions/53344/how-to-generate-thumbnails-when-needed-only/124790#124790
|
10 |
+
* @see http://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
|
11 |
+
*/
|
12 |
+
if ( ! function_exists( 'gambit_otf_regen_thumbs_media_downsize' ) ) {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* The downsizer. This only does something if the existing image size doesn't exist yet.
|
16 |
+
*
|
17 |
+
* @param $out boolean false
|
18 |
+
* @param $id int Attachment ID
|
19 |
+
* @param $size mixed The size name, or an array containing the width & height
|
20 |
+
* @return mixed False if the custom downsize failed, or an array of the image if successful
|
21 |
+
*/
|
22 |
+
function gambit_otf_regen_thumbs_media_downsize( $out, $id, $size ) {
|
23 |
+
|
24 |
+
// Gather all the different image sizes of WP (thumbnail, medium, large) and,
|
25 |
+
// all the theme/plugin-introduced sizes.
|
26 |
+
global $_gambit_otf_regen_thumbs_all_image_sizes;
|
27 |
+
if ( ! isset( $_gambit_otf_regen_thumbs_all_image_sizes ) ) {
|
28 |
+
global $_wp_additional_image_sizes;
|
29 |
+
|
30 |
+
$_gambit_otf_regen_thumbs_all_image_sizes = array();
|
31 |
+
$interimSizes = get_intermediate_image_sizes();
|
32 |
+
|
33 |
+
foreach ( $interimSizes as $sizeName ) {
|
34 |
+
if ( in_array( $sizeName, array( 'thumbnail', 'medium', 'large' ) ) ) {
|
35 |
+
|
36 |
+
$_gambit_otf_regen_thumbs_all_image_sizes[ $sizeName ]['width'] = get_option( $sizeName . '_size_w' );
|
37 |
+
$_gambit_otf_regen_thumbs_all_image_sizes[ $sizeName ]['height'] = get_option( $sizeName . '_size_h' );
|
38 |
+
$_gambit_otf_regen_thumbs_all_image_sizes[ $sizeName ]['crop'] = (bool) get_option( $sizeName . '_crop' );
|
39 |
+
|
40 |
+
} elseif ( isset( $_wp_additional_image_sizes[ $sizeName ] ) ) {
|
41 |
+
|
42 |
+
$_gambit_otf_regen_thumbs_all_image_sizes[ $sizeName ] = $_wp_additional_image_sizes[ $sizeName ];
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
// This now contains all the data that we have for all the image sizes
|
48 |
+
$allSizes = $_gambit_otf_regen_thumbs_all_image_sizes;
|
49 |
+
|
50 |
+
// If image size exists let WP serve it like normally
|
51 |
+
$imagedata = wp_get_attachment_metadata( $id );
|
52 |
+
|
53 |
+
// Image attachment doesn't exist
|
54 |
+
if ( ! is_array( $imagedata ) ) {
|
55 |
+
return false;
|
56 |
+
}
|
57 |
+
|
58 |
+
// If the size given is a string / a name of a size
|
59 |
+
if ( is_string( $size ) ) {
|
60 |
+
|
61 |
+
// If WP doesn't know about the image size name, then we can't really do any resizing of our own
|
62 |
+
if ( empty( $allSizes[ $size ] ) ) {
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
|
66 |
+
// If the size has already been previously created, use it
|
67 |
+
if ( ! empty( $imagedata['sizes'][ $size ] ) && ! empty( $allSizes[ $size ] ) ) {
|
68 |
+
|
69 |
+
// But only if the size remained the same
|
70 |
+
if ( $allSizes[ $size ]['width'] == $imagedata['sizes'][ $size ]['width']
|
71 |
+
&& $allSizes[ $size ]['height'] == $imagedata['sizes'][ $size ]['height'] ) {
|
72 |
+
return false;
|
73 |
+
}
|
74 |
+
|
75 |
+
// Or if the size is different and we found out before that the size really was different
|
76 |
+
if ( ! empty( $imagedata['sizes'][ $size ][ 'width_query' ] )
|
77 |
+
&& ! empty( $imagedata['sizes'][ $size ]['height_query'] ) ) {
|
78 |
+
if ( $imagedata['sizes'][ $size ]['width_query'] == $allSizes[ $size ]['width']
|
79 |
+
&& $imagedata['sizes'][ $size ]['height_query'] == $allSizes[ $size ]['height'] ) {
|
80 |
+
return false;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
}
|
85 |
+
|
86 |
+
// Resize the image
|
87 |
+
$resized = image_make_intermediate_size(
|
88 |
+
get_attached_file( $id ),
|
89 |
+
$allSizes[ $size ]['width'],
|
90 |
+
$allSizes[ $size ]['height'],
|
91 |
+
$allSizes[ $size ]['crop']
|
92 |
+
);
|
93 |
+
|
94 |
+
// Resize somehow failed
|
95 |
+
if ( ! $resized ) {
|
96 |
+
return false;
|
97 |
+
}
|
98 |
+
|
99 |
+
// Save the new size in WP
|
100 |
+
$imagedata['sizes'][ $size ] = $resized;
|
101 |
+
|
102 |
+
// Save some additional info so that we'll know next time whether we've resized this before
|
103 |
+
$imagedata['sizes'][ $size ]['width_query'] = $allSizes[ $size ]['width'];
|
104 |
+
$imagedata['sizes'][ $size ]['height_query'] = $allSizes[ $size ]['height'];
|
105 |
+
|
106 |
+
wp_update_attachment_metadata( $id, $imagedata );
|
107 |
+
|
108 |
+
// Serve the resized image
|
109 |
+
$att_url = wp_get_attachment_url( $id );
|
110 |
+
return array( dirname( $att_url ) . '/' . $resized['file'], $resized['width'], $resized['height'], true );
|
111 |
+
|
112 |
+
|
113 |
+
// If the size given is a custom array size
|
114 |
+
} else if ( is_array( $size ) ) {
|
115 |
+
$imagePath = get_attached_file( $id );
|
116 |
+
|
117 |
+
$crop = array_key_exists(2, $size) ? $size[2] : true;
|
118 |
+
$new_width = $size[0];
|
119 |
+
$new_height = $size[1];
|
120 |
+
|
121 |
+
// If crop is false, calculate new image dimensions
|
122 |
+
if (!$crop) {
|
123 |
+
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
|
124 |
+
add_filter( 'jetpack_photon_override_image_downsize', '__return_true' );
|
125 |
+
$trueData = wp_get_attachment_image_src($id, 'large');
|
126 |
+
remove_filter( 'jetpack_photon_override_image_downsize', '__return_true' );
|
127 |
+
}
|
128 |
+
else {
|
129 |
+
$trueData = wp_get_attachment_image_src($id, 'large');
|
130 |
+
}
|
131 |
+
|
132 |
+
if ($trueData[1] > $trueData[2]) {
|
133 |
+
// Width > height
|
134 |
+
$ratio = $trueData[1] / $size[0];
|
135 |
+
$new_height = round($trueData[2] / $ratio);
|
136 |
+
$new_width = $size[0];
|
137 |
+
}
|
138 |
+
else {
|
139 |
+
// Height > width
|
140 |
+
$ratio = $trueData[2] / $size[1];
|
141 |
+
$new_height = $size[1];
|
142 |
+
$new_width = round($trueData[1] / $ratio);
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
// This would be the path of our resized image if the dimensions existed
|
147 |
+
$imageExt = pathinfo( $imagePath, PATHINFO_EXTENSION );
|
148 |
+
$imagePath = preg_replace( '/^(.*)\.' . $imageExt . '$/', sprintf( '$1-%sx%s.%s', $new_width, $new_height, $imageExt ) , $imagePath );
|
149 |
+
$att_url = wp_get_attachment_url( $id );
|
150 |
+
|
151 |
+
// If it already exists, serve it
|
152 |
+
if ( file_exists( $imagePath ) ) {
|
153 |
+
return array( dirname( $att_url ) . '/' . basename( $imagePath ), $new_width, $new_height, $crop );
|
154 |
+
}
|
155 |
+
|
156 |
+
// If not, resize the image...
|
157 |
+
$resized = image_make_intermediate_size(
|
158 |
+
get_attached_file( $id ),
|
159 |
+
$size[0],
|
160 |
+
$size[1],
|
161 |
+
$crop
|
162 |
+
);
|
163 |
+
|
164 |
+
// Get attachment meta so we can add new size
|
165 |
+
$imagedata = wp_get_attachment_metadata( $id );
|
166 |
+
|
167 |
+
// Save the new size in WP so that it can also perform actions on it
|
168 |
+
$imagedata['sizes'][ $size[0] . 'x' . $size[1] ] = $resized;
|
169 |
+
wp_update_attachment_metadata( $id, $imagedata );
|
170 |
+
|
171 |
+
// Resize somehow failed
|
172 |
+
if ( ! $resized ) {
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
// Then serve it
|
177 |
+
return array( dirname( $att_url ) . '/' . $resized['file'], $resized['width'], $resized['height'], $crop );
|
178 |
+
}
|
179 |
+
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
add_filter( 'image_downsize', 'gambit_otf_regen_thumbs_media_downsize', 10, 3 );
|
183 |
+
}
|
views/admin/galleries/index.php
CHANGED
@@ -44,13 +44,13 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
44 |
<tr>
|
45 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
46 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
47 |
-
<a href="<?php echo
|
48 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
49 |
<span class="sorting-indicator"></span>
|
50 |
</a>
|
51 |
</th>
|
52 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
53 |
-
<a href="<?php echo
|
54 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
55 |
<span class="sorting-indicator"></span>
|
56 |
</a>
|
@@ -58,7 +58,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
58 |
<th><?php _e('Slides', $this -> plugin_name); ?></th>
|
59 |
<th><?php _e('Shortcode', $this -> plugin_name); ?></th>
|
60 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
61 |
-
<a href="<?php echo
|
62 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
63 |
<span class="sorting-indicator"></span>
|
64 |
</a>
|
@@ -69,13 +69,13 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
69 |
<tr>
|
70 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
71 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
72 |
-
<a href="<?php echo
|
73 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
74 |
<span class="sorting-indicator"></span>
|
75 |
</a>
|
76 |
</th>
|
77 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
78 |
-
<a href="<?php echo
|
79 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
80 |
<span class="sorting-indicator"></span>
|
81 |
</a>
|
@@ -83,7 +83,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
83 |
<th><?php _e('Slides', $this -> plugin_name); ?></th>
|
84 |
<th><?php _e('Shortcode', $this -> plugin_name); ?></th>
|
85 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
86 |
-
<a href="<?php echo
|
87 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
88 |
<span class="sorting-indicator"></span>
|
89 |
</a>
|
@@ -144,7 +144,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
144 |
<script type="text/javascript">
|
145 |
function change_perpage(perpage) {
|
146 |
if (perpage != "") {
|
147 |
-
document.cookie = "<?php echo $this -> pre; ?>galleriesperpage=" + perpage + "; expires=<?php echo
|
148 |
window.location = "<?php echo preg_replace("/\&?" . $this -> pre . "page\=(.*)?/si", "", $_SERVER['REQUEST_URI']); ?>";
|
149 |
}
|
150 |
}
|
44 |
<tr>
|
45 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
46 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
47 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=id&order=' . (($orderby == "id") ? $otherorder : "asc")); ?>">
|
48 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
49 |
<span class="sorting-indicator"></span>
|
50 |
</a>
|
51 |
</th>
|
52 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
53 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=title&order=' . (($orderby == "title") ? $otherorder : "asc")); ?>">
|
54 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
55 |
<span class="sorting-indicator"></span>
|
56 |
</a>
|
58 |
<th><?php _e('Slides', $this -> plugin_name); ?></th>
|
59 |
<th><?php _e('Shortcode', $this -> plugin_name); ?></th>
|
60 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
61 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=modified&order=' . (($orderby == "modified") ? $otherorder : "asc")); ?>">
|
62 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
63 |
<span class="sorting-indicator"></span>
|
64 |
</a>
|
69 |
<tr>
|
70 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
71 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
72 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=id&order=' . (($orderby == "id") ? $otherorder : "asc")); ?>">
|
73 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
74 |
<span class="sorting-indicator"></span>
|
75 |
</a>
|
76 |
</th>
|
77 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
78 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=title&order=' . (($orderby == "title") ? $otherorder : "asc")); ?>">
|
79 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
80 |
<span class="sorting-indicator"></span>
|
81 |
</a>
|
83 |
<th><?php _e('Slides', $this -> plugin_name); ?></th>
|
84 |
<th><?php _e('Shortcode', $this -> plugin_name); ?></th>
|
85 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
86 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=modified&order=' . (($orderby == "modified") ? $otherorder : "asc")); ?>">
|
87 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
88 |
<span class="sorting-indicator"></span>
|
89 |
</a>
|
144 |
<script type="text/javascript">
|
145 |
function change_perpage(perpage) {
|
146 |
if (perpage != "") {
|
147 |
+
document.cookie = "<?php echo $this -> pre; ?>galleriesperpage=" + perpage + "; expires=<?php echo $this -> Html -> gen_date($this -> get_option('cookieformat'), strtotime("+30 days")); ?> UTC; path=/";
|
148 |
window.location = "<?php echo preg_replace("/\&?" . $this -> pre . "page\=(.*)?/si", "", $_SERVER['REQUEST_URI']); ?>";
|
149 |
}
|
150 |
}
|
views/admin/metaboxes/settings-general.php
CHANGED
@@ -16,7 +16,10 @@ $infodelay = $this -> get_option('infodelay');
|
|
16 |
$infohideonmobile = $this -> get_option('infohideonmobile');
|
17 |
$thumbopacity = $this -> get_option('thumbopacity');
|
18 |
$thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
19 |
-
|
|
|
|
|
|
|
20 |
?>
|
21 |
|
22 |
<h3><?php _e('Slide Effects', $this -> plugin_name); ?></h3>
|
@@ -308,6 +311,64 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
308 |
</table>
|
309 |
|
310 |
<div id="information_div" style="display:<?php echo ($this -> get_option('information') == "Y") ? 'block' : 'none'; ?>;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
<table class="form-table">
|
312 |
<tbody>
|
313 |
<tr>
|
@@ -332,14 +393,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
332 |
</script>
|
333 |
<span class="howto"><?php _e('Speed at which the information bar will slide in and out.', $this -> plugin_name); ?></span>
|
334 |
</td>
|
335 |
-
</tr>
|
336 |
-
<tr>
|
337 |
-
<th><label for="infodelay"><?php _e('Information Delay', $this -> plugin_name); ?></label></th>
|
338 |
-
<td>
|
339 |
-
<label><input <?php echo (!$this -> ci_serial_valid()) ? 'disabled="disabled"' : ''; ?> class="widefat" style="width:65px;" type="text" name="infodelay" value="<?php echo esc_attr(stripslashes($infodelay)); ?>" id="infodelay" /> <?php _e('seconds', $this -> plugin_name); ?></label>
|
340 |
-
<span class="howto"><?php _e('Delay the information bar in seconds or leave empty/zero for immediate display.', $this -> plugin_name); ?></span>
|
341 |
-
</td>
|
342 |
-
</tr>
|
343 |
<tr>
|
344 |
<th><label for="infohideonmobile"><?php _e('Hide On Mobiles', $this -> plugin_name); ?></label>
|
345 |
<?php echo $this -> Html -> help(__('With a responsive layout turned on, the slideshow will respond in width on mobile devices and the information bar tends to overlap the entire slide since it increases in height as it reduces in width. You can tick/check this setting to hide the information bar on mobile devices so that the slides remain fully visible.', $this -> plugin_name)); ?></th>
|
@@ -446,6 +500,14 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
446 |
<span class="howto"><?php _e('Horizontal margin/spacing in pixels between thumbnail images.', $this -> plugin_name); ?></span>
|
447 |
</td>
|
448 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
</tbody>
|
450 |
</table>
|
451 |
</div>
|
16 |
$infohideonmobile = $this -> get_option('infohideonmobile');
|
17 |
$thumbopacity = $this -> get_option('thumbopacity');
|
18 |
$thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
19 |
+
$infofade = $this -> get_option('infofade');
|
20 |
+
$infofadedelay = $this -> get_option('infofadedelay');
|
21 |
+
$infoonhover = $this -> get_option('infoonhover');
|
22 |
+
$thumbhideonmobile = $this -> get_option ('thumbhideonmobile');
|
23 |
?>
|
24 |
|
25 |
<h3><?php _e('Slide Effects', $this -> plugin_name); ?></h3>
|
311 |
</table>
|
312 |
|
313 |
<div id="information_div" style="display:<?php echo ($this -> get_option('information') == "Y") ? 'block' : 'none'; ?>;">
|
314 |
+
<table class="form-table">
|
315 |
+
<tbody>
|
316 |
+
<tr>
|
317 |
+
<th><label for="infopositionbottom"><?php _e('Information Bar Position', $this -> plugin_name); ?></label>
|
318 |
+
<?php echo $this -> Html -> help(__('With the Information Bar turned on with the setting above, you can now specify the position of the information bar. Either above or below the slideshow is available.', $this -> plugin_name)); ?></th>
|
319 |
+
<td>
|
320 |
+
<label><input <?php echo ($this -> get_option('infoposition') == "top") ? 'checked="checked"' : ''; ?> type="radio" name="infoposition" value="top" id="infopositiontop" /> <?php _e('Top', $this -> plugin_name); ?></label>
|
321 |
+
<label><input <?php echo ($this -> get_option('infoposition') == "bottom") ? 'checked="checked"' : ''; ?> type="radio" name="infoposition" value="bottom" id="infopositionbottom" /> <?php _e('Bottom', $this -> plugin_name); ?></label>
|
322 |
+
<span class="howto"><?php _e('Choose your preferred position of the information bar relative to the slideshow.', $this -> plugin_name); ?></span>
|
323 |
+
</td>
|
324 |
+
</tr>
|
325 |
+
<tr>
|
326 |
+
<th><label for="infoonhover"><?php _e('Show Only On Hover', $this -> plugin_name); ?></label>
|
327 |
+
<?php echo $this -> Html -> help(__('Checking this option will only show the information bar on hover', $this -> plugin_name)); ?></th>
|
328 |
+
<td>
|
329 |
+
<label><input onclick="if (jQuery(this).is(':checked')) { jQuery('#infoonhover_div').hide(); } else { jQuery('#infoonhover_div').show(); }" <?php echo (!empty($infoonhover)) ? 'checked="checked"' : ''; ?> type="checkbox" name="infoonhover" value="1" id="infoonhover" /> <?php _e('Yes, only show the info bar on hover', $this -> plugin_name); ?></label>
|
330 |
+
<span class="howto"><?php _e('Tick/check this to only show the information bar on hover.', $this -> plugin_name); ?></span>
|
331 |
+
</td>
|
332 |
+
</tr>
|
333 |
+
</tbody>
|
334 |
+
</table>
|
335 |
+
|
336 |
+
<div id="infoonhover_div" style="display:<?php echo (empty($infoonhover)) ? 'block' : 'none'; ?>;">
|
337 |
+
<table class="form-table">
|
338 |
+
<tbody>
|
339 |
+
<tr>
|
340 |
+
<th><label for="infodelay"><?php _e('Information Delay', $this -> plugin_name); ?></label></th>
|
341 |
+
<td>
|
342 |
+
<label><input <?php echo (!$this -> ci_serial_valid()) ? 'disabled="disabled"' : ''; ?> class="widefat" style="width:65px;" type="text" name="infodelay" value="<?php echo esc_attr(stripslashes($infodelay)); ?>" id="infodelay" /> <?php _e('seconds', $this -> plugin_name); ?></label>
|
343 |
+
<span class="howto"><?php _e('Delay the information bar in seconds or leave empty/zero for immediate display.', $this -> plugin_name); ?></span>
|
344 |
+
</td>
|
345 |
+
</tr>
|
346 |
+
<tr>
|
347 |
+
<th><label for="infofade"><?php _e('Fade Information Bar', $this -> plugin_name); ?></label>
|
348 |
+
<?php echo $this -> Html -> help(__('Fade the information bar after a few seconds.', $this -> plugin_name)); ?></th>
|
349 |
+
<td>
|
350 |
+
<label><input <?php echo (!empty($infofade)) ? 'checked="checked"' : ''; ?> onclick="if (jQuery(this).is(':checked')) { jQuery('#informationfade_div').show(); } else { jQuery('#informationfade_div').hide(); }"type="checkbox" name="infofade" value="1" id="infofade" /> <?php _e('Yes, fade the information bar', $this -> plugin_name); ?></label>
|
351 |
+
<span class="howto"><?php _e('Do you want the information bar to fade?', $this -> plugin_name); ?></span>
|
352 |
+
</td>
|
353 |
+
</tr>
|
354 |
+
</tbody>
|
355 |
+
</table>
|
356 |
+
|
357 |
+
<div id="informationfade_div" style="display:<?php echo (!empty($infofade)) ? 'block' : 'none'; ?>;">
|
358 |
+
<table class="form-table">
|
359 |
+
<tbody>
|
360 |
+
<tr>
|
361 |
+
<th><label for="infofadedelay"><?php _e('Fade Delay', $this -> plugin_name); ?></label></th>
|
362 |
+
<td>
|
363 |
+
<label><input class="widefat" style="width:65px;" type="text" name="infofadedelay" value="<?php echo esc_attr(stripslashes($infofadedelay)); ?>" id="infofadedelay" /> <?php _e('seconds', $this -> plugin_name); ?></label>
|
364 |
+
<span class="howto"><?php _e('Enter time in seconds for the information bar to fade.', $this -> plugin_name); ?></span>
|
365 |
+
</td>
|
366 |
+
</tr>
|
367 |
+
</tbody>
|
368 |
+
</table>
|
369 |
+
</div>
|
370 |
+
</div>
|
371 |
+
|
372 |
<table class="form-table">
|
373 |
<tbody>
|
374 |
<tr>
|
393 |
</script>
|
394 |
<span class="howto"><?php _e('Speed at which the information bar will slide in and out.', $this -> plugin_name); ?></span>
|
395 |
</td>
|
396 |
+
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
<tr>
|
398 |
<th><label for="infohideonmobile"><?php _e('Hide On Mobiles', $this -> plugin_name); ?></label>
|
399 |
<?php echo $this -> Html -> help(__('With a responsive layout turned on, the slideshow will respond in width on mobile devices and the information bar tends to overlap the entire slide since it increases in height as it reduces in width. You can tick/check this setting to hide the information bar on mobile devices so that the slides remain fully visible.', $this -> plugin_name)); ?></th>
|
500 |
<span class="howto"><?php _e('Horizontal margin/spacing in pixels between thumbnail images.', $this -> plugin_name); ?></span>
|
501 |
</td>
|
502 |
</tr>
|
503 |
+
<tr>
|
504 |
+
<th><label for="thumbhideonmobile"><?php _e('Hide On Mobile', $this -> plugin_name); ?></label>
|
505 |
+
<?php echo $this -> Html -> help(__('With a responsive layout turned on, the slideshow will respond in width on mobile devices. You can tick/check this setting to hide the thumbnail bar.', $this -> plugin_name)); ?></th>
|
506 |
+
<td>
|
507 |
+
<label><input <?php echo (!$this -> ci_serial_valid()) ? 'disabled="disabled"' : ''; ?> <?php echo (!empty($thumbhideonmobile) && $this -> ci_serial_valid()) ? 'checked="checked"' : ''; ?> type="checkbox" name="thumbhideonmobile" value="1" id="thumbhideonmobile" /> <?php _e('Yes, hide the thumbnail bar on mobiles', $this -> plugin_name); ?></label>
|
508 |
+
<span class="howto"><?php _e('Tick/check this to hide the thumbnail bar on mobiles', $this -> plugin_name); ?></span>
|
509 |
+
</td>
|
510 |
+
</tr>
|
511 |
</tbody>
|
512 |
</table>
|
513 |
</div>
|
views/admin/metaboxes/settings-styles.php
CHANGED
@@ -44,7 +44,7 @@ $resizeimagescrop = $this -> get_option('resizeimagescrop');
|
|
44 |
</tbody>
|
45 |
</table>
|
46 |
|
47 |
-
<div id="autoheight_div" style="display:<?php echo (!empty($autoheight)) ? 'block' : ''; ?>;">
|
48 |
<table class="form-table">
|
49 |
<tbody>
|
50 |
<tr>
|
@@ -77,36 +77,36 @@ $resizeimagescrop = $this -> get_option('resizeimagescrop');
|
|
77 |
</table>
|
78 |
</div>
|
79 |
|
80 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
<table class="form-table">
|
82 |
<tbody>
|
83 |
<tr>
|
84 |
-
<th><label for="
|
85 |
-
<?php echo $this -> Html -> help(__('Should images be automatically resized? If you specify No, the images will be used in the slideshow as you originally upload them. If you specify Yes, the images will be cropped/resized to fit the slideshow better which is the recommended setting.', $this -> plugin_name)); ?></th>
|
86 |
<td>
|
87 |
-
<label><input <?php echo (empty($
|
88 |
-
<label><input <?php echo ($
|
89 |
-
<span class="howto"><?php _e('Should images be
|
90 |
</td>
|
91 |
</tr>
|
92 |
</tbody>
|
93 |
</table>
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
<tbody>
|
98 |
-
<tr>
|
99 |
-
<th><label for="resizeimagescrop_Y"><?php _e('Crop', $this -> plugin_name); ?></label></th>
|
100 |
-
<td>
|
101 |
-
<label><input <?php echo (!empty($resizeimagescrop) && $resizeimagescrop == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="resizeimagescrop" value="Y" id="resizeimagescrop_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
102 |
-
<label><input <?php echo (!empty($resizeimagescrop) && $resizeimagescrop == "N") ? 'checked="checked"' : ''; ?> type="radio" name="resizeimagescrop" value="N" id="resizeimagescrop_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
103 |
-
<span class="howto"><?php _e('Should images be cropped?', $this -> plugin_name); ?></span>
|
104 |
-
</td>
|
105 |
-
</tr>
|
106 |
-
</tbody>
|
107 |
-
</table>
|
108 |
-
</div>
|
109 |
-
|
110 |
<table class="form-table">
|
111 |
<tbody>
|
112 |
<tr>
|
44 |
</tbody>
|
45 |
</table>
|
46 |
|
47 |
+
<div id="autoheight_div" style="display:<?php echo (!empty($autoheight)) ? 'block' : 'none'; ?>;">
|
48 |
<table class="form-table">
|
49 |
<tbody>
|
50 |
<tr>
|
77 |
</table>
|
78 |
</div>
|
79 |
|
80 |
+
<table class="form-table">
|
81 |
+
<tbody>
|
82 |
+
<tr>
|
83 |
+
<th><label for="styles.resizeimages"><?php _e('Resize Images', $this -> plugin_name); ?></label>
|
84 |
+
<?php echo $this -> Html -> help(__('Should images be automatically resized? If you specify No, the images will be used in the slideshow as you originally upload them. If you specify Yes, the images will be cropped/resized to fit the slideshow better which is the recommended setting.', $this -> plugin_name)); ?></th>
|
85 |
+
<td>
|
86 |
+
<label><input onclick="jQuery('#resizeimages_div').show();" <?php echo (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="styles[resizeimages]" value="Y" id="styles.resizeimages_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
87 |
+
<label><input onclick="jQuery('#resizeimages_div').hide();" <?php echo ($styles['resizeimages'] == "N") ? 'checked="checked"' : ''; ?> type="radio" name="styles[resizeimages]" value="N" id="styles.resizeimages_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
88 |
+
<span class="howto"><?php _e('Should images be resized proportionally to fit the width of the slideshow area?', $this -> plugin_name); ?></span>
|
89 |
+
</td>
|
90 |
+
</tr>
|
91 |
+
</tbody>
|
92 |
+
</table>
|
93 |
+
|
94 |
+
<div id="resizeimages_div" style="display:<?php echo (!empty($styles['resizeimages']) && $styles['resizeimages'] == "Y") ? 'block' : 'none'; ?>;">
|
95 |
<table class="form-table">
|
96 |
<tbody>
|
97 |
<tr>
|
98 |
+
<th><label for="resizeimagescrop_Y"><?php _e('Crop', $this -> plugin_name); ?></label></th>
|
|
|
99 |
<td>
|
100 |
+
<label><input <?php echo (!empty($resizeimagescrop) && $resizeimagescrop == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="resizeimagescrop" value="Y" id="resizeimagescrop_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
101 |
+
<label><input <?php echo (!empty($resizeimagescrop) && $resizeimagescrop == "N") ? 'checked="checked"' : ''; ?> type="radio" name="resizeimagescrop" value="N" id="resizeimagescrop_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
102 |
+
<span class="howto"><?php _e('Should images be cropped?', $this -> plugin_name); ?></span>
|
103 |
</td>
|
104 |
</tr>
|
105 |
</tbody>
|
106 |
</table>
|
107 |
+
</div>
|
108 |
+
|
109 |
+
<div id="layout_specific_div" style="display:<?php echo (empty($styles['layout']) || $styles['layout'] == "specific") ? 'block' : 'none'; ?>;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
<table class="form-table">
|
111 |
<tbody>
|
112 |
<tr>
|
views/admin/slides/loop.php
CHANGED
@@ -70,38 +70,38 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
70 |
<tr>
|
71 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
72 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
73 |
-
<a href="<?php echo
|
74 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
75 |
<span class="sorting-indicator"></span>
|
76 |
</a>
|
77 |
</th>
|
78 |
<th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
79 |
-
<a href="<?php echo
|
80 |
<span><?php _e('Image', $this -> plugin_name); ?></span>
|
81 |
<span class="sorting-indicator"></span>
|
82 |
</a>
|
83 |
</th>
|
84 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
85 |
-
<a href="<?php echo
|
86 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
87 |
<span class="sorting-indicator"></span>
|
88 |
</a>
|
89 |
</th>
|
90 |
<th><?php _e('Galleries', $this -> plugin_name); ?></th>
|
91 |
<th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
92 |
-
<a href="<?php echo
|
93 |
<span><?php _e('Link', $this -> plugin_name); ?></span>
|
94 |
<span class="sorting-indicator"></span>
|
95 |
</a>
|
96 |
</th>
|
97 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
98 |
-
<a href="<?php echo
|
99 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
100 |
<span class="sorting-indicator"></span>
|
101 |
</a>
|
102 |
</th>
|
103 |
<th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
104 |
-
<a href="<?php echo
|
105 |
<span><?php _e('Order', $this -> plugin_name); ?></span>
|
106 |
<span class="sorting-indicator"></span>
|
107 |
</a>
|
@@ -112,38 +112,38 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
112 |
<tr>
|
113 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
114 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
115 |
-
<a href="<?php echo
|
116 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
117 |
<span class="sorting-indicator"></span>
|
118 |
</a>
|
119 |
</th>
|
120 |
<th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
121 |
-
<a href="<?php echo
|
122 |
<span><?php _e('Image', $this -> plugin_name); ?></span>
|
123 |
<span class="sorting-indicator"></span>
|
124 |
</a>
|
125 |
</th>
|
126 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
127 |
-
<a href="<?php echo
|
128 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
129 |
<span class="sorting-indicator"></span>
|
130 |
</a>
|
131 |
</th>
|
132 |
<th><?php _e('Galleries', $this -> plugin_name); ?></th>
|
133 |
<th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
134 |
-
<a href="<?php echo
|
135 |
<span><?php _e('Link', $this -> plugin_name); ?></span>
|
136 |
<span class="sorting-indicator"></span>
|
137 |
</a>
|
138 |
</th>
|
139 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
140 |
-
<a href="<?php echo
|
141 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
142 |
<span class="sorting-indicator"></span>
|
143 |
</a>
|
144 |
</th>
|
145 |
<th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
146 |
-
<a href="<?php echo
|
147 |
<span><?php _e('Order', $this -> plugin_name); ?></span>
|
148 |
<span class="sorting-indicator"></span>
|
149 |
</a>
|
@@ -158,7 +158,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
158 |
<td><label for="checklist<?php echo $slide -> id; ?>"><?php echo $slide -> id; ?></label></td>
|
159 |
<td style="width:75px;">
|
160 |
<?php $image = $slide -> image; ?>
|
161 |
-
<a href="<?php echo $slide -> image_path; ?>" title="<?php echo __($slide -> title); ?>" class="colorbox" rel="slides"><img class="img-rounded" src="<?php echo $this -> Html ->
|
162 |
</td>
|
163 |
<td>
|
164 |
<a class="row-title" href="<?php echo $this -> url; ?>&method=save&id=<?php echo $slide -> id; ?>" title=""><?php echo __($slide -> title); ?></a>
|
@@ -220,7 +220,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
220 |
<script type="text/javascript">
|
221 |
function change_perpage(perpage) {
|
222 |
if (perpage != "") {
|
223 |
-
document.cookie = "<?php echo $this -> pre; ?>slidesperpage=" + perpage + "; expires=<?php echo
|
224 |
window.location = "<?php echo preg_replace("/\&?" . $this -> pre . "page\=(.*)?/si", "", $_SERVER['REQUEST_URI']); ?>";
|
225 |
}
|
226 |
}
|
70 |
<tr>
|
71 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
72 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
73 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=id&order=' . (($orderby == "id") ? $otherorder : "asc")); ?>">
|
74 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
75 |
<span class="sorting-indicator"></span>
|
76 |
</a>
|
77 |
</th>
|
78 |
<th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
79 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=image&order=' . (($orderby == "image") ? $otherorder : "asc")); ?>">
|
80 |
<span><?php _e('Image', $this -> plugin_name); ?></span>
|
81 |
<span class="sorting-indicator"></span>
|
82 |
</a>
|
83 |
</th>
|
84 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
85 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=title&order=' . (($orderby == "title") ? $otherorder : "asc")); ?>">
|
86 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
87 |
<span class="sorting-indicator"></span>
|
88 |
</a>
|
89 |
</th>
|
90 |
<th><?php _e('Galleries', $this -> plugin_name); ?></th>
|
91 |
<th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
92 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=uselink&order=' . (($orderby == "uselink") ? $otherorder : "asc")); ?>">
|
93 |
<span><?php _e('Link', $this -> plugin_name); ?></span>
|
94 |
<span class="sorting-indicator"></span>
|
95 |
</a>
|
96 |
</th>
|
97 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
98 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=modified&order=' . (($orderby == "modified") ? $otherorder : "asc")); ?>">
|
99 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
100 |
<span class="sorting-indicator"></span>
|
101 |
</a>
|
102 |
</th>
|
103 |
<th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
104 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=order&order=' . (($orderby == "order") ? $otherorder : "asc")); ?>">
|
105 |
<span><?php _e('Order', $this -> plugin_name); ?></span>
|
106 |
<span class="sorting-indicator"></span>
|
107 |
</a>
|
112 |
<tr>
|
113 |
<td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
|
114 |
<th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
115 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=id&order=' . (($orderby == "id") ? $otherorder : "asc")); ?>">
|
116 |
<span><?php _e('ID', $this -> plugin_name); ?></span>
|
117 |
<span class="sorting-indicator"></span>
|
118 |
</a>
|
119 |
</th>
|
120 |
<th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
121 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=image&order=' . (($orderby == "image") ? $otherorder : "asc")); ?>">
|
122 |
<span><?php _e('Image', $this -> plugin_name); ?></span>
|
123 |
<span class="sorting-indicator"></span>
|
124 |
</a>
|
125 |
</th>
|
126 |
<th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
127 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=title&order=' . (($orderby == "title") ? $otherorder : "asc")); ?>">
|
128 |
<span><?php _e('Title', $this -> plugin_name); ?></span>
|
129 |
<span class="sorting-indicator"></span>
|
130 |
</a>
|
131 |
</th>
|
132 |
<th><?php _e('Galleries', $this -> plugin_name); ?></th>
|
133 |
<th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
134 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=uselink&order=' . (($orderby == "uselink") ? $otherorder : "asc")); ?>">
|
135 |
<span><?php _e('Link', $this -> plugin_name); ?></span>
|
136 |
<span class="sorting-indicator"></span>
|
137 |
</a>
|
138 |
</th>
|
139 |
<th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
140 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=modified&order=' . (($orderby == "modified") ? $otherorder : "asc")); ?>">
|
141 |
<span><?php _e('Date', $this -> plugin_name); ?></span>
|
142 |
<span class="sorting-indicator"></span>
|
143 |
</a>
|
144 |
</th>
|
145 |
<th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
|
146 |
+
<a href="<?php echo $this -> Html -> retainquery('orderby=order&order=' . (($orderby == "order") ? $otherorder : "asc")); ?>">
|
147 |
<span><?php _e('Order', $this -> plugin_name); ?></span>
|
148 |
<span class="sorting-indicator"></span>
|
149 |
</a>
|
158 |
<td><label for="checklist<?php echo $slide -> id; ?>"><?php echo $slide -> id; ?></label></td>
|
159 |
<td style="width:75px;">
|
160 |
<?php $image = $slide -> image; ?>
|
161 |
+
<a href="<?php echo $slide -> image_path; ?>" title="<?php echo __($slide -> title); ?>" class="colorbox" rel="slides"><img class="img-rounded" src="<?php echo $this -> Html -> otf_image_src($slide, 50, 50, 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> title)); ?>" /></a>
|
162 |
</td>
|
163 |
<td>
|
164 |
<a class="row-title" href="<?php echo $this -> url; ?>&method=save&id=<?php echo $slide -> id; ?>" title=""><?php echo __($slide -> title); ?></a>
|
220 |
<script type="text/javascript">
|
221 |
function change_perpage(perpage) {
|
222 |
if (perpage != "") {
|
223 |
+
document.cookie = "<?php echo $this -> pre; ?>slidesperpage=" + perpage + "; expires=<?php echo $this -> Html -> gen_date($this -> get_option('cookieformat'), strtotime("+30 days")); ?> UTC; path=/";
|
224 |
window.location = "<?php echo preg_replace("/\&?" . $this -> pre . "page\=(.*)?/si", "", $_SERVER['REQUEST_URI']); ?>";
|
225 |
}
|
226 |
}
|
views/admin/slides/order.php
CHANGED
@@ -23,7 +23,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
23 |
<ul id="slidelist">
|
24 |
<?php foreach ($slides as $slide) : ?>
|
25 |
<li class="gallerylineitem" id="item_<?php echo $slide -> id; ?>">
|
26 |
-
<span class="gallery_slide_image" style="display:none;"><img src="<?php echo $this -> Html ->
|
27 |
<span class="gallery_slide_title"><?php echo __($slide -> title); ?></span>
|
28 |
</li>
|
29 |
<?php endforeach; ?>
|
23 |
<ul id="slidelist">
|
24 |
<?php foreach ($slides as $slide) : ?>
|
25 |
<li class="gallerylineitem" id="item_<?php echo $slide -> id; ?>">
|
26 |
+
<span class="gallery_slide_image" style="display:none;"><img src="<?php echo $this -> Html -> otf_image_src($slide, 89, 89, 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> title)); ?>" /></span>
|
27 |
<span class="gallery_slide_title"><?php echo __($slide -> title); ?></span>
|
28 |
</li>
|
29 |
<?php endforeach; ?>
|
views/admin/slides/save.php
CHANGED
@@ -156,12 +156,12 @@ if ($this -> language_do()) {
|
|
156 |
<div id="Slide_mediaupload_image">
|
157 |
<!-- image goes here -->
|
158 |
<?php if (!empty($this -> Slide() -> data -> image_url)) : ?>
|
159 |
-
<a href="<?php echo $this -> Slide() -> data -> image_url; ?>" title="<?php echo __($this -> Slide() -> data -> title); ?>" class="colorbox"><img class="img-rounded" src="<?php echo $this -> Html ->
|
160 |
<?php endif; ?>
|
161 |
</div>
|
162 |
|
163 |
<input type="button" name="Slide_mediaupload" value="<?php _e('Choose File', $this -> plugin_name); ?>" id="Slide_mediaupload" class="button button-secondary" />
|
164 |
-
<input type="text" name="Slide[media_file]" style="width:50%;" id="Slide_image_file" value="<?php echo esc_attr(stripslashes($this -> Slide() -> data -> image_url)); ?>" />
|
165 |
<input type="hidden" name="Slide[attachment_id]" value="<?php echo esc_attr(stripslashes($this -> Slide() -> data -> attachment_id)); ?>" id="Slide_attachment_id" />
|
166 |
|
167 |
<?php echo (!empty($this -> Slide() -> errors['media_file'])) ? '<div class="slideshow_error">' . $this -> Slide() -> errors['media_file'] . '</div>' : ''; ?>
|
@@ -230,7 +230,7 @@ if ($this -> language_do()) {
|
|
230 |
|
231 |
<input type="hidden" name="Slide[image_oldfile]" value="<?php echo esc_attr(stripslashes($this -> Slide() -> data -> image)); ?>" />
|
232 |
<p><small><?php _e('Current image. Leave the field above blank to keep this image.', $this -> plugin_name); ?></small></p>
|
233 |
-
<p><a title="<?php echo esc_attr($this -> Slide() -> data -> title); ?>" class="colorbox" href="<?php echo $this -> Slide() -> data -> image_path; ?>"><img src="<?php echo $this -> Html ->
|
234 |
|
235 |
<?php
|
236 |
}
|
156 |
<div id="Slide_mediaupload_image">
|
157 |
<!-- image goes here -->
|
158 |
<?php if (!empty($this -> Slide() -> data -> image_url)) : ?>
|
159 |
+
<a href="<?php echo $this -> Slide() -> data -> image_url; ?>" title="<?php echo __($this -> Slide() -> data -> title); ?>" class="colorbox"><img class="img-rounded" src="<?php echo $this -> Html -> otf_image_src($this -> Slide() -> data, 100, 100, 100); ?>" /></a>
|
160 |
<?php endif; ?>
|
161 |
</div>
|
162 |
|
163 |
<input type="button" name="Slide_mediaupload" value="<?php _e('Choose File', $this -> plugin_name); ?>" id="Slide_mediaupload" class="button button-secondary" />
|
164 |
+
<input type="text" name="Slide[media_file]" readonly="readonly" style="width:50%;" id="Slide_image_file" value="<?php echo esc_attr(stripslashes($this -> Slide() -> data -> image_url)); ?>" />
|
165 |
<input type="hidden" name="Slide[attachment_id]" value="<?php echo esc_attr(stripslashes($this -> Slide() -> data -> attachment_id)); ?>" id="Slide_attachment_id" />
|
166 |
|
167 |
<?php echo (!empty($this -> Slide() -> errors['media_file'])) ? '<div class="slideshow_error">' . $this -> Slide() -> errors['media_file'] . '</div>' : ''; ?>
|
230 |
|
231 |
<input type="hidden" name="Slide[image_oldfile]" value="<?php echo esc_attr(stripslashes($this -> Slide() -> data -> image)); ?>" />
|
232 |
<p><small><?php _e('Current image. Leave the field above blank to keep this image.', $this -> plugin_name); ?></small></p>
|
233 |
+
<p><a title="<?php echo esc_attr($this -> Slide() -> data -> title); ?>" class="colorbox" href="<?php echo $this -> Slide() -> data -> image_path; ?>"><img src="<?php echo $this -> Html -> otf_image_src($this -> Slide() -> data, 100, 100, 100); ?>" alt="" class="slideshow" /></a></p>
|
234 |
|
235 |
<?php
|
236 |
}
|
views/default/css-responsive.php
CHANGED
@@ -17,12 +17,19 @@ $unique = $styles['unique'];
|
|
17 |
#<?php echo $styles['wrapperid']; ?> { overflow: hidden; position:relative; width:100%; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
|
18 |
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
19 |
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo $unique; ?> { position:relative; z-index:1; overflow:hidden; width:100%; height:<?php echo $resheight; ?>; clear:both; border: none; }
|
20 |
-
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute;
|
21 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
22 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
23 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
|
24 |
-
#<?php echo $styles['wrapperid']; ?>
|
25 |
-
#<?php echo $styles['wrapperid']; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
27 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f053"; font-size:30px; color:white; visibility:visible; left:0; text-align:left; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:0 10px 10px 0; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
28 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; left:0; font-size:0px; }
|
@@ -49,4 +56,7 @@ $unique = $styles['unique'];
|
|
49 |
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
50 |
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
51 |
<?php endif; ?>
|
|
|
|
|
|
|
52 |
<?php endif; ?>
|
17 |
#<?php echo $styles['wrapperid']; ?> { overflow: hidden; position:relative; width:100%; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
|
18 |
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
19 |
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo $unique; ?> { position:relative; z-index:1; overflow:hidden; width:100%; height:<?php echo $resheight; ?>; clear:both; border: none; }
|
20 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; width:100%; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
|
21 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
22 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
23 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
|
24 |
+
#<?php echo $styles['wrapperid']; ?> .infotop { margin-bottom:8px !important; top:0!important; }
|
25 |
+
#<?php echo $styles['wrapperid']; ?> .infobottom { margin-top:8px !important; bottom:0!important; }
|
26 |
+
<?php if (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") : ?>
|
27 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
28 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> img { border:none; border-radius:0; box-shadow:none; position:absolute; height:auto; width:100%; margin:0 auto; display:block; }
|
29 |
+
<?php else : ?>
|
30 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
31 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> img { border:none; border-radius:0; box-shadow:none; position:absolute; left:0%; right:0%; max-height:100%; max-width:100%; margin:0 auto; display:block; }
|
32 |
+
<?php endif; ?>
|
33 |
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
34 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f053"; font-size:30px; color:white; visibility:visible; left:0; text-align:left; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:0 10px 10px 0; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
35 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; left:0; font-size:0px; }
|
56 |
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
57 |
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
58 |
<?php endif; ?>
|
59 |
+
<?php if (!empty($styles['thumbhideonmobile'])) : ?>
|
60 |
+
@media (max-width:480px) { .slideshow-thumbnails { display: none !important; } }
|
61 |
+
<?php endif; ?>
|
62 |
<?php endif; ?>
|
views/default/css.php
CHANGED
@@ -21,8 +21,15 @@ $unique = $styles['unique'];
|
|
21 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
22 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
23 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
|
24 |
-
#<?php echo $styles['wrapperid']; ?>
|
25 |
-
#<?php echo $styles['wrapperid']; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
27 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f053"; font-size:30px; color:white; visibility:visible; left:0; text-align:left; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:0 10px 10px 0; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
28 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; left:0; font-size:0px; }
|
@@ -45,4 +52,10 @@ $unique = $styles['unique'];
|
|
45 |
#<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
|
46 |
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
|
47 |
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
<?php endif; ?>
|
21 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
22 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
23 |
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
|
24 |
+
#<?php echo $styles['wrapperid']; ?> .infotop { margin-bottom:8px !important; top:0; }
|
25 |
+
#<?php echo $styles['wrapperid']; ?> .infobottom { margin-top:8px !important; bottom:0; }
|
26 |
+
<?php if (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") : ?>
|
27 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; }
|
28 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> img { border:none; border-radius:0; box-shadow:none; position:absolute; height:auto; max-width:100%; margin:0 auto; display:block; }
|
29 |
+
<?php else : ?>
|
30 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; }
|
31 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> img { border:none; border-radius:0; box-shadow:none; position:absolute; left:0%; right:0%; max-height:100%; max-width:100%; margin:0 auto; display:block; }
|
32 |
+
<?php endif; ?>
|
33 |
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
34 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f053"; font-size:30px; color:white; visibility:visible; left:0; text-align:left; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:0 10px 10px 0; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
35 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; left:0; font-size:0px; }
|
52 |
#<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
|
53 |
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
|
54 |
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
|
55 |
+
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
56 |
+
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
57 |
+
<?php endif; ?>
|
58 |
+
<?php if (!empty($styles['thumbhideonmobile'])) : ?>
|
59 |
+
@media (max-width:480px) { .slideshow-thumbnails { display: none !important; } }
|
60 |
+
<?php endif; ?>
|
61 |
<?php endif; ?>
|
views/default/gallery.php
CHANGED
@@ -15,24 +15,19 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
15 |
<li>
|
16 |
<h3 style="opacity:70;"><?php echo __($slide -> post_title); ?></h3>
|
17 |
<?php $full_image_href = wp_get_attachment_image_src($slide -> ID, 'full', false); ?>
|
18 |
-
<?php $full_image_path = get_attached_file($slide -> ID); ?>
|
19 |
<?php $full_image_url = wp_get_attachment_url($slide -> ID); ?>
|
20 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
21 |
-
<span><?php echo $this -> Html ->
|
22 |
<?php else : ?>
|
23 |
<span><?php echo $full_image_href[0]; ?></span>
|
24 |
<?php endif; ?>
|
25 |
<p><?php echo __(get_the_excerpt()); ?></p>
|
26 |
<?php $thumbnail_link = wp_get_attachment_image_src($slide -> ID, 'thumbnail', false); ?>
|
27 |
-
<?php if ($
|
28 |
-
<?php if (
|
29 |
-
<
|
30 |
-
<?php else : ?>
|
31 |
-
<a id="<?php echo $unique; ?>imglink<?php echo $slide -> ID; ?>" <?php if ($this -> Html -> is_image($full_image_url)) : ?>class="colorboxslideshow<?php echo $unique; ?>" data-rel="slideshowgroup<?php echo $unique; ?>"<?php endif; ?>><img src="<?php echo $this -> Html -> bfithumb_image_src($full_image_url, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" /></a>
|
32 |
<?php endif; ?>
|
33 |
-
|
34 |
-
<a id="<?php echo $unique; ?>imglink<?php echo $slide -> ID; ?>" <?php if ($this -> Html -> is_image($slide -> guid)) : ?>class="colorboxslideshow<?php echo $unique; ?>" data-rel="slideshowgroup<?php echo $unique; ?>"<?php endif; ?> href="<?php echo $slide -> guid; ?>" title="<?php echo __($slide -> post_title); ?>"></a>
|
35 |
-
<?php endif; ?>
|
36 |
</li>
|
37 |
<?php wp_reset_postdata(); ?>
|
38 |
<?php endforeach; ?>
|
@@ -49,10 +44,9 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
49 |
<li>
|
50 |
<h3 style="opacity:70;"><a target="_self" href="<?php echo get_permalink($slide -> ID); ?>"><?php echo stripslashes(__($slide -> post_title)); ?></a></h3>
|
51 |
<?php $full_image_href = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'full', false); ?>
|
52 |
-
<?php $full_image_path = get_attached_file(get_post_thumbnail_id($slide -> ID)); ?>
|
53 |
<?php $full_image_url = wp_get_attachment_url(get_post_thumbnail_id($slide -> ID)); ?>
|
54 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
55 |
-
<span><?php echo $this -> Html ->
|
56 |
<?php else : ?>
|
57 |
<span><?php echo $full_image_href[0]; ?></span>
|
58 |
<?php endif; ?>
|
@@ -60,9 +54,9 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
60 |
<?php $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'thumbnail', false); ?>
|
61 |
<?php if ($options['showthumbs'] == "true") : ?>
|
62 |
<?php if (!empty($slide -> guid)) : ?>
|
63 |
-
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr(__($slide -> post_title)); ?>"><img src="<?php echo $this -> Html ->
|
64 |
<?php else : ?>
|
65 |
-
<a id="<?php echo $unique; ?>imglink<?php echo $slide -> ID; ?>" <?php if ($this -> Html -> is_image($full_image_url)) : ?>class="colorboxslideshow<?php echo $unique; ?>" data-rel="slideshowgroup<?php echo $unique; ?>"<?php endif; ?>><img src="<?php echo $this -> Html ->
|
66 |
<?php endif; ?>
|
67 |
<?php else : ?>
|
68 |
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo __($slide -> post_title); ?>"></a>
|
@@ -76,16 +70,16 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
76 |
<li>
|
77 |
<h3 style="opacity:70;"><?php echo stripslashes(__($slide -> title)); ?></h3>
|
78 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
79 |
-
<span><?php echo $this -> Html ->
|
80 |
<?php else : ?>
|
81 |
<span><?php echo site_url() . '/' . $slide -> image_url; ?></span>
|
82 |
<?php endif; ?>
|
83 |
<p><?php echo substr(stripslashes(__($slide -> description)), 0, 255); ?></p>
|
84 |
<?php if ($options['showthumbs'] == "true") : ?>
|
85 |
<?php if (!empty($slide -> post_id)) : ?>
|
86 |
-
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr(__($slide -> title)); ?>"><img src="<?php echo $this -> Html ->
|
87 |
<?php else : ?>
|
88 |
-
<a><img src="<?php echo $this -> Html ->
|
89 |
<?php endif; ?>
|
90 |
<?php else : ?>
|
91 |
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr(__($slide -> title)); ?>"></a>
|
@@ -98,18 +92,18 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
98 |
<li>
|
99 |
<h3 style="opacity:<?php echo (!empty($slide -> iopacity)) ? ($slide -> iopacity) : 70; ?>;"><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "title")) ? __($slide -> title) : ''; ?></h3>
|
100 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
101 |
-
<span><?php echo $this -> Html ->
|
102 |
<?php else : ?>
|
103 |
<span><?php echo $slide -> image_path; ?></span>
|
104 |
<?php endif; ?>
|
105 |
<p><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "description")) ? __($slide -> description) : ''; ?></p>
|
106 |
<?php if ($options['showthumbs'] == "true") : ?>
|
107 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
108 |
-
<a href="<?php echo __($slide -> link); ?>" title="<?php echo esc_attr(__($slide -> title)); ?>" target="_<?php echo $slide -> linktarget; ?>"><img src="<?php echo $this -> Html ->
|
109 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
110 |
-
<a href="<?php echo $slide -> image_path; ?>" id="<?php echo $unique; ?>imglink<?php echo $slide -> id; ?>" <?php if ($this -> Html -> is_image($slide -> image_path)) : ?>class="colorboxslideshow<?php echo $unique; ?>" data-rel="slideshowgroup<?php echo $unique; ?>"<?php endif; ?> target="_<?php echo $slide -> linktarget; ?>" title="<?php echo __($slide -> title); ?>"><img src="<?php echo $this -> Html ->
|
111 |
<?php else : ?>
|
112 |
-
<a><img src="<?php echo $this -> Html ->
|
113 |
<?php endif; ?>
|
114 |
<?php else : ?>
|
115 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
@@ -149,12 +143,10 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
149 |
<div id="imgnext<?php echo $unique; ?>" class="slideshow-imgnext imgnav" title="<?php _e('Next Image', $this -> plugin_name); ?>"><?php _e('Next Image', $this -> plugin_name); ?></div>
|
150 |
<?php endif; ?>
|
151 |
<div id="image<?php echo $unique; ?>" class="slideshow-image"></div>
|
152 |
-
<?php
|
153 |
-
<
|
154 |
-
|
155 |
-
|
156 |
-
</div>
|
157 |
-
<?php endif; ?>
|
158 |
</div>
|
159 |
|
160 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "bottom" && count($slides) > 1) : ?>
|
@@ -196,8 +188,11 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
196 |
slideshow<?php echo $unique; ?>.linkclass = "linkhover";
|
197 |
slideshow<?php echo $unique; ?>.imagesid = "images<?php echo $unique; ?>";
|
198 |
slideshow<?php echo $unique; ?>.info = "<?php echo ($options['showinfo'] == "true") ? 'information' . $unique : ''; ?>";
|
|
|
199 |
slideshow<?php echo $unique; ?>.infoSpeed = <?php echo $options['infospeed']; ?>;
|
200 |
slideshow<?php echo $unique; ?>.infodelay = <?php echo (empty($options['infodelay'])) ? 0 : $options['infodelay']; ?>;
|
|
|
|
|
201 |
slideshow<?php echo $unique; ?>.thumbs = "<?php echo ($options['showthumbs'] == "true" && count($slides) > 1) ? 'slider' . $unique : ''; ?>";
|
202 |
slideshow<?php echo $unique; ?>.thumbOpacity = <?php echo (empty($thumbopacity)) ? 0 : $thumbopacity; ?>;
|
203 |
slideshow<?php echo $unique; ?>.left = "slideleft<?php echo $unique; ?>";
|
@@ -243,6 +238,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
243 |
$cssattr['thumbheight'] = $this -> get_option('thumbheight');
|
244 |
$cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + $options['thumbsspacing'] + 6) * count($slides)) + 60);
|
245 |
$cssattr['infohideonmobile'] = $this -> get_option('infohideonmobile');
|
|
|
246 |
|
247 |
$javascript = ob_get_clean();
|
248 |
global $slideshow_javascript;
|
15 |
<li>
|
16 |
<h3 style="opacity:70;"><?php echo __($slide -> post_title); ?></h3>
|
17 |
<?php $full_image_href = wp_get_attachment_image_src($slide -> ID, 'full', false); ?>
|
|
|
18 |
<?php $full_image_url = wp_get_attachment_url($slide -> ID); ?>
|
19 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
20 |
+
<span><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
|
21 |
<?php else : ?>
|
22 |
<span><?php echo $full_image_href[0]; ?></span>
|
23 |
<?php endif; ?>
|
24 |
<p><?php echo __(get_the_excerpt()); ?></p>
|
25 |
<?php $thumbnail_link = wp_get_attachment_image_src($slide -> ID, 'thumbnail', false); ?>
|
26 |
+
<a href="<?php echo $full_image_url; ?>" id="<?php echo $unique; ?>imglink<?php echo $slide -> ID; ?>" <?php if ($this -> Html -> is_image($full_image_url)) : ?>class="colorboxslideshow<?php echo $unique; ?>" data-rel="slideshowgroup<?php echo $unique; ?>"<?php endif; ?> title="<?php echo __($slide -> post_title); ?>">
|
27 |
+
<?php if ($options['showthumbs'] == "true") : ?>
|
28 |
+
<img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" />
|
|
|
|
|
29 |
<?php endif; ?>
|
30 |
+
</a>
|
|
|
|
|
31 |
</li>
|
32 |
<?php wp_reset_postdata(); ?>
|
33 |
<?php endforeach; ?>
|
44 |
<li>
|
45 |
<h3 style="opacity:70;"><a target="_self" href="<?php echo get_permalink($slide -> ID); ?>"><?php echo stripslashes(__($slide -> post_title)); ?></a></h3>
|
46 |
<?php $full_image_href = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'full', false); ?>
|
|
|
47 |
<?php $full_image_url = wp_get_attachment_url(get_post_thumbnail_id($slide -> ID)); ?>
|
48 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
49 |
+
<span><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
|
50 |
<?php else : ?>
|
51 |
<span><?php echo $full_image_href[0]; ?></span>
|
52 |
<?php endif; ?>
|
54 |
<?php $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'thumbnail', false); ?>
|
55 |
<?php if ($options['showthumbs'] == "true") : ?>
|
56 |
<?php if (!empty($slide -> guid)) : ?>
|
57 |
+
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr(__($slide -> post_title)); ?>"><img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" /></a>
|
58 |
<?php else : ?>
|
59 |
+
<a id="<?php echo $unique; ?>imglink<?php echo $slide -> ID; ?>" <?php if ($this -> Html -> is_image($full_image_url)) : ?>class="colorboxslideshow<?php echo $unique; ?>" data-rel="slideshowgroup<?php echo $unique; ?>"<?php endif; ?>><img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" /></a>
|
60 |
<?php endif; ?>
|
61 |
<?php else : ?>
|
62 |
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo __($slide -> post_title); ?>"></a>
|
70 |
<li>
|
71 |
<h3 style="opacity:70;"><?php echo stripslashes(__($slide -> title)); ?></h3>
|
72 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
73 |
+
<span><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
|
74 |
<?php else : ?>
|
75 |
<span><?php echo site_url() . '/' . $slide -> image_url; ?></span>
|
76 |
<?php endif; ?>
|
77 |
<p><?php echo substr(stripslashes(__($slide -> description)), 0, 255); ?></p>
|
78 |
<?php if ($options['showthumbs'] == "true") : ?>
|
79 |
<?php if (!empty($slide -> post_id)) : ?>
|
80 |
+
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr(__($slide -> title)); ?>"><img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" /></a>
|
81 |
<?php else : ?>
|
82 |
+
<a><img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" /></a>
|
83 |
<?php endif; ?>
|
84 |
<?php else : ?>
|
85 |
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr(__($slide -> title)); ?>"></a>
|
92 |
<li>
|
93 |
<h3 style="opacity:<?php echo (!empty($slide -> iopacity)) ? ($slide -> iopacity) : 70; ?>;"><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "title")) ? __($slide -> title) : ''; ?></h3>
|
94 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
95 |
+
<span><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
|
96 |
<?php else : ?>
|
97 |
<span><?php echo $slide -> image_path; ?></span>
|
98 |
<?php endif; ?>
|
99 |
<p><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "description")) ? __($slide -> description) : ''; ?></p>
|
100 |
<?php if ($options['showthumbs'] == "true") : ?>
|
101 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
102 |
+
<a href="<?php echo __($slide -> link); ?>" title="<?php echo esc_attr(__($slide -> title)); ?>" target="_<?php echo $slide -> linktarget; ?>"><img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> title)); ?>" /></a>
|
103 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
104 |
+
<a href="<?php echo $slide -> image_path; ?>" id="<?php echo $unique; ?>imglink<?php echo $slide -> id; ?>" <?php if ($this -> Html -> is_image($slide -> image_path)) : ?>class="colorboxslideshow<?php echo $unique; ?>" data-rel="slideshowgroup<?php echo $unique; ?>"<?php endif; ?> target="_<?php echo $slide -> linktarget; ?>" title="<?php echo __($slide -> title); ?>"><img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> title)); ?>" /></a>
|
105 |
<?php else : ?>
|
106 |
+
<a><img src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> title)); ?>" /></a>
|
107 |
<?php endif; ?>
|
108 |
<?php else : ?>
|
109 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
143 |
<div id="imgnext<?php echo $unique; ?>" class="slideshow-imgnext imgnav" title="<?php _e('Next Image', $this -> plugin_name); ?>"><?php _e('Next Image', $this -> plugin_name); ?></div>
|
144 |
<?php endif; ?>
|
145 |
<div id="image<?php echo $unique; ?>" class="slideshow-image"></div>
|
146 |
+
<div class="slideshow-information info<?php echo $options['infoposition']; ?>" id="information<?php echo $unique; ?>">
|
147 |
+
<h3 class="slideshow-info-heading">info heading</h3>
|
148 |
+
<p class="slideshow-info-content">info content</p>
|
149 |
+
</div>
|
|
|
|
|
150 |
</div>
|
151 |
|
152 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "bottom" && count($slides) > 1) : ?>
|
188 |
slideshow<?php echo $unique; ?>.linkclass = "linkhover";
|
189 |
slideshow<?php echo $unique; ?>.imagesid = "images<?php echo $unique; ?>";
|
190 |
slideshow<?php echo $unique; ?>.info = "<?php echo ($options['showinfo'] == "true") ? 'information' . $unique : ''; ?>";
|
191 |
+
slideshow<?php echo $unique; ?>.infoonhover = <?php echo (empty($options['infoonhover'])) ? 0 : $options['infoonhover']; ?>;
|
192 |
slideshow<?php echo $unique; ?>.infoSpeed = <?php echo $options['infospeed']; ?>;
|
193 |
slideshow<?php echo $unique; ?>.infodelay = <?php echo (empty($options['infodelay'])) ? 0 : $options['infodelay']; ?>;
|
194 |
+
slideshow<?php echo $unique; ?>.infofade = <?php echo (empty($options['infofade'])) ? 0 : $options['infofade']; ?>;
|
195 |
+
slideshow<?php echo $unique; ?>.infofadedelay = <?php echo (empty($options['infofadedelay'])) ? 0 : $options['infofadedelay']; ?>;
|
196 |
slideshow<?php echo $unique; ?>.thumbs = "<?php echo ($options['showthumbs'] == "true" && count($slides) > 1) ? 'slider' . $unique : ''; ?>";
|
197 |
slideshow<?php echo $unique; ?>.thumbOpacity = <?php echo (empty($thumbopacity)) ? 0 : $thumbopacity; ?>;
|
198 |
slideshow<?php echo $unique; ?>.left = "slideleft<?php echo $unique; ?>";
|
238 |
$cssattr['thumbheight'] = $this -> get_option('thumbheight');
|
239 |
$cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + $options['thumbsspacing'] + 6) * count($slides)) + 60);
|
240 |
$cssattr['infohideonmobile'] = $this -> get_option('infohideonmobile');
|
241 |
+
$cssattr['thumbhideonmobile'] = $this -> get_option('thumbhideonmobile');
|
242 |
|
243 |
$javascript = ob_get_clean();
|
244 |
global $slideshow_javascript;
|
views/default/js/gallery.js
CHANGED
@@ -104,10 +104,17 @@ TINY.slideshow.prototype={
|
|
104 |
string = string.replace(/&/g, '&');
|
105 |
i.src = string;
|
106 |
i.id = this.imagesid + 'img' + s;
|
|
|
107 |
if(this.thumbs){
|
108 |
var a= tag('img',this.p), l=a.length, x=0;
|
109 |
for(x;x<l;x++){
|
110 |
-
a[x].style.borderColor=x!=s?'':this.active
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
}
|
113 |
},
|
@@ -125,9 +132,11 @@ TINY.slideshow.prototype={
|
|
125 |
h = jQuery(i).height();
|
126 |
|
127 |
speed = (this.imgSpeed * 100);
|
|
|
128 |
|
129 |
if (jQuery(oi).attr('src') != jQuery(i).attr('src')) {
|
130 |
-
|
|
|
131 |
if (this.slide_direction == "tb") {
|
132 |
jQuery(i).css('top', (h + opost)).animate({
|
133 |
"top": "0px"
|
@@ -138,14 +147,24 @@ TINY.slideshow.prototype={
|
|
138 |
jQuery(oi).css('top', '-' + (oh - now) + 'px');
|
139 |
}
|
140 |
});
|
141 |
-
} else {
|
142 |
-
jQuery(i).css('left', (w + oposl)).animate({"left": "0px"}, {
|
143 |
duration: speed,
|
144 |
easing: this.easing,
|
145 |
step: function(now, fx) {
|
146 |
-
jQuery(oi).css('left', '-' + (ow - now) + 'px');
|
147 |
}
|
148 |
-
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
} else if (this.direction == "b") {
|
151 |
if (this.slide_direction == "tb") {
|
@@ -158,13 +177,23 @@ TINY.slideshow.prototype={
|
|
158 |
}
|
159 |
});
|
160 |
} else {
|
161 |
-
newpos = -(w - oposl);
|
162 |
jQuery(i).css('left', newpos).animate({"left": "0px"}, {
|
163 |
duration: speed,
|
164 |
easing: this.easing,
|
165 |
step: function(now, fx) {
|
166 |
-
jQuery(oi).css('left', '+' + (ow + now) + 'px');
|
167 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
});
|
169 |
}
|
170 |
}
|
@@ -200,6 +229,7 @@ TINY.slideshow.prototype={
|
|
200 |
|
201 |
var m= tag('img',this.f);
|
202 |
var oi = m[(m.length - 2)];
|
|
|
203 |
|
204 |
if (typeof(oi) == "undefined" || oi.src != this.i.src) {
|
205 |
if (this.effect == "fade") {
|
@@ -216,18 +246,41 @@ TINY.slideshow.prototype={
|
|
216 |
|
217 |
var n=new Function(this.n+'.nf('+s+')');
|
218 |
this.lt=setTimeout(n,this.imgSpeed*100);
|
219 |
-
if(!c || (this.auto == true && this.alwaysauto == true)) {
|
220 |
this.at=setTimeout(new Function(this.n+'.mv(1,0)'),this.speed*1000)
|
221 |
}
|
222 |
|
223 |
if (this.autoheight == true) {
|
224 |
-
var
|
|
|
|
|
|
|
225 |
|
226 |
-
|
227 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
autoheight = this.autoheight_max;
|
|
|
|
|
229 |
}
|
230 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
TINY.height.set(this.f.parentNode,(autoheight),this.infoSpeed/2,-1);
|
232 |
}
|
233 |
|
@@ -269,10 +322,28 @@ TINY.slideshow.prototype={
|
|
269 |
if (s.t.length > 0 || s.d.length > 0) {
|
270 |
var _this = this;
|
271 |
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
}
|
277 |
}
|
278 |
},
|
104 |
string = string.replace(/&/g, '&');
|
105 |
i.src = string;
|
106 |
i.id = this.imagesid + 'img' + s;
|
107 |
+
|
108 |
if(this.thumbs){
|
109 |
var a= tag('img',this.p), l=a.length, x=0;
|
110 |
for(x;x<l;x++){
|
111 |
+
a[x].style.borderColor=x!=s?'':this.active;
|
112 |
+
|
113 |
+
if (x != s) {
|
114 |
+
jQuery(a[x]).addClass('active');
|
115 |
+
} else {
|
116 |
+
jQuery(a[x]).removeClass('active');
|
117 |
+
}
|
118 |
}
|
119 |
}
|
120 |
},
|
132 |
h = jQuery(i).height();
|
133 |
|
134 |
speed = (this.imgSpeed * 100);
|
135 |
+
fullw = jQuery(i).parent().width();
|
136 |
|
137 |
if (jQuery(oi).attr('src') != jQuery(i).attr('src')) {
|
138 |
+
|
139 |
+
if (this.direction == "f" || typeof(this.direction) == "undefined") {
|
140 |
if (this.slide_direction == "tb") {
|
141 |
jQuery(i).css('top', (h + opost)).animate({
|
142 |
"top": "0px"
|
147 |
jQuery(oi).css('top', '-' + (oh - now) + 'px');
|
148 |
}
|
149 |
});
|
150 |
+
} else {
|
151 |
+
/*jQuery(i).css('left', (w + oposl)).animate({"left": "0px"}, {
|
152 |
duration: speed,
|
153 |
easing: this.easing,
|
154 |
step: function(now, fx) {
|
155 |
+
jQuery(oi).css('left', '-' + (ow - now) + 'px').css('right', "auto");
|
156 |
}
|
157 |
+
});*/
|
158 |
+
|
159 |
+
jQuery(i).css('left', '+' + fullw + 'px').animate({'left':'0px'}, {
|
160 |
+
duration: speed,
|
161 |
+
easing: this.easing
|
162 |
+
});
|
163 |
+
|
164 |
+
jQuery(oi).css('right', "auto").animate({'left':'-' + fullw + 'px'}, {
|
165 |
+
duration: speed,
|
166 |
+
easing: this.easing
|
167 |
+
});
|
168 |
}
|
169 |
} else if (this.direction == "b") {
|
170 |
if (this.slide_direction == "tb") {
|
177 |
}
|
178 |
});
|
179 |
} else {
|
180 |
+
/*newpos = -(w - oposl);
|
181 |
jQuery(i).css('left', newpos).animate({"left": "0px"}, {
|
182 |
duration: speed,
|
183 |
easing: this.easing,
|
184 |
step: function(now, fx) {
|
185 |
+
jQuery(oi).css('left', '+' + (ow + now) + 'px').css('right', "auto");
|
186 |
}
|
187 |
+
});*/
|
188 |
+
|
189 |
+
jQuery(i).css('left', '-' + fullw + 'px').animate({'left':'0px'}, {
|
190 |
+
duration: speed,
|
191 |
+
easing: this.easing
|
192 |
+
});
|
193 |
+
|
194 |
+
jQuery(oi).animate({'left':'+' + fullw + 'px'}, {
|
195 |
+
duration: speed,
|
196 |
+
easing: this.easing
|
197 |
});
|
198 |
}
|
199 |
}
|
229 |
|
230 |
var m= tag('img',this.f);
|
231 |
var oi = m[(m.length - 2)];
|
232 |
+
var oli = tag('li',this.s);
|
233 |
|
234 |
if (typeof(oi) == "undefined" || oi.src != this.i.src) {
|
235 |
if (this.effect == "fade") {
|
246 |
|
247 |
var n=new Function(this.n+'.nf('+s+')');
|
248 |
this.lt=setTimeout(n,this.imgSpeed*100);
|
249 |
+
if((!c || (this.auto == true && this.alwaysauto == true)) && oli.length > 1) {
|
250 |
this.at=setTimeout(new Function(this.n+'.mv(1,0)'),this.speed*1000)
|
251 |
}
|
252 |
|
253 |
if (this.autoheight == true) {
|
254 |
+
var currentheight = jQuery(this.i).height();
|
255 |
+
var currentwidth = jQuery(this.i).width();
|
256 |
+
var originalheight = this.i.naturalHeight;
|
257 |
+
var originalwidth = this.i.naturalWidth;
|
258 |
|
259 |
+
var fullw = jQuery(this.i).parent().width();
|
260 |
+
|
261 |
+
if (originalwidth > fullw) {
|
262 |
+
var ratio = (originalwidth / fullw);
|
263 |
+
var newautoheight = Math.round(originalheight / ratio);
|
264 |
+
|
265 |
+
if (typeof(this.autoheight_max) !== "undefined" && this.autoheight_max != false && newautoheight > this.autoheight_max) {
|
266 |
+
autoheight = this.autoheight_max;
|
267 |
+
} else {
|
268 |
+
autoheight = newautoheight;
|
269 |
+
}
|
270 |
+
} else {
|
271 |
+
if (typeof(this.autoheight_max) !== "undefined" && this.autoheight_max != false && originalheight > this.autoheight_max) {
|
272 |
autoheight = this.autoheight_max;
|
273 |
+
} else {
|
274 |
+
autoheight = originalheight;
|
275 |
}
|
276 |
}
|
277 |
+
|
278 |
+
/*if (typeof(this.autoheight_max) !== "undefined" && this.autoheight_max != false) {
|
279 |
+
if (autoheight > this.autoheight_max) {
|
280 |
+
autoheight = this.autoheight_max;
|
281 |
+
}
|
282 |
+
}*/
|
283 |
+
|
284 |
TINY.height.set(this.f.parentNode,(autoheight),this.infoSpeed/2,-1);
|
285 |
}
|
286 |
|
322 |
if (s.t.length > 0 || s.d.length > 0) {
|
323 |
var _this = this;
|
324 |
|
325 |
+
if (_this.infoonhover) {
|
326 |
+
jQuery(_this.r).parent().hover(function() {
|
327 |
+
TINY.height.set(_this.r,h,_this.infoSpeed,0);
|
328 |
+
TINY.alpha.set(_this.r,s.io,5);
|
329 |
+
}, function() {
|
330 |
+
TINY.height.set(_this.r,0,_this.infoSpeed,0);
|
331 |
+
});
|
332 |
+
|
333 |
+
} else {
|
334 |
+
setTimeout(function() {
|
335 |
+
TINY.height.set(_this.r,h,_this.infoSpeed,0);
|
336 |
+
TINY.alpha.set(_this.r,s.io,5);
|
337 |
+
|
338 |
+
if (_this.infofade) {
|
339 |
+
if (_this.infofadedelay > 0) {
|
340 |
+
setTimeout(function () {
|
341 |
+
TINY.height.set(_this.r,0,_this.infoSpeed,0);
|
342 |
+
}, (_this.infofadedelay * 1000));
|
343 |
+
}
|
344 |
+
}
|
345 |
+
}, (this.infodelay * 1000));
|
346 |
+
}
|
347 |
}
|
348 |
}
|
349 |
},
|