Slideshow Gallery - Version 1.6.6

Version Description

  • IMPROVE: Check for missing media/attachment records enhancement
  • IMPROVE: ALT attributes on slide images
  • FIX: Arrows on thumbnails slider misaligned on some themes
  • FIX: Thumbnail dimensions incorrect on media image slides
  • FIX: Possible XSS vulnerability (credit: www.defensecode.com)
  • FIX: PHP deprecated class constructors cause warning message
  • FIX: Slideshow doesn't show in posts/pages loaded with Ajax
Download this release

Release Info

Developer contrid
Plugin Icon 128x128 Slideshow Gallery
Version 1.6.6
Comparing to
See all releases

Code changes from version 1.6.5 to 1.6.6

css/admin.css CHANGED
@@ -8,8 +8,8 @@
8
  content: "\f03e";
9
  -webkit-font-smoothing: antialiased;
10
  -moz-osx-font-smoothing: grayscale;
11
- font-size: 16px;
12
- top: 3px;
13
  }
14
 
15
  .slideshow-badge {
8
  content: "\f03e";
9
  -webkit-font-smoothing: antialiased;
10
  -moz-osx-font-smoothing: grayscale;
11
+ /*font-size: 16px;
12
+ top: 3px;*/
13
  }
14
 
15
  .slideshow-badge {
helpers/db.php CHANGED
@@ -6,6 +6,10 @@ class GalleryDbHelper extends GalleryPlugin {
6
 
7
  var $name = 'Db';
8
 
 
 
 
 
9
  function count($conditions = array()) {
10
  global $wpdb;
11
 
6
 
7
  var $name = 'Db';
8
 
9
+ function __construct() {
10
+
11
+ }
12
+
13
  function count($conditions = array()) {
14
  global $wpdb;
15
 
helpers/form.php CHANGED
@@ -4,6 +4,10 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
4
 
5
  class GalleryFormHelper extends GalleryPlugin {
6
 
 
 
 
 
7
  function hidden($name = '', $args = array()) {
8
  global $wpcoHtml;
9
 
4
 
5
  class GalleryFormHelper extends GalleryPlugin {
6
 
7
+ function __construct() {
8
+
9
+ }
10
+
11
  function hidden($name = '', $args = array()) {
12
  global $wpcoHtml;
13
 
helpers/html.php CHANGED
@@ -4,7 +4,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
4
 
5
  class GalleryHtmlHelper extends GalleryPlugin {
6
 
7
- function GalleryHtmlHelper() {
8
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
9
  }
10
 
@@ -157,10 +157,10 @@ class GalleryHtmlHelper extends GalleryPlugin {
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
  }
@@ -267,9 +267,9 @@ class GalleryHtmlHelper extends GalleryPlugin {
267
  }
268
  } else {
269
  if ($name != null) {
270
- $ret .= $name . "[$key]" . "=" . $val . "&";
271
  } else {
272
- $ret .= $key . "=" . $val . "&";
273
  }
274
  }
275
  }
4
 
5
  class GalleryHtmlHelper extends GalleryPlugin {
6
 
7
+ function __construct() {
8
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
9
  }
10
 
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) && wp_get_attachment_image_src($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
  }
267
  }
268
  } else {
269
  if ($name != null) {
270
+ $ret .= esc_html($name . "[$key]") . "=" . esc_html($val) . "&";
271
  } else {
272
+ $ret .= esc_html($key) . "=" . esc_html($val) . "&";
273
  }
274
  }
275
  }
helpers/metabox.php CHANGED
@@ -6,7 +6,7 @@ class GalleryMetaboxHelper extends GalleryPlugin {
6
 
7
  var $name = 'Metabox';
8
 
9
- function GalleryMetaboxHelper() {
10
  $url = explode("&", $_SERVER['REQUEST_URI']);
11
  $this -> url = $url[0];
12
  }
6
 
7
  var $name = 'Metabox';
8
 
9
+ function __construct() {
10
  $url = explode("&", $_SERVER['REQUEST_URI']);
11
  $this -> url = $url[0];
12
  }
includes/checkinit.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
5
  if (!class_exists('GalleryCheckinit')) {
6
  class GalleryCheckinit {
7
 
8
- function GalleryCheckinit() {
9
  return true;
10
  }
11
 
5
  if (!class_exists('GalleryCheckinit')) {
6
  class GalleryCheckinit {
7
 
8
+ function __construct() {
9
  return true;
10
  }
11
 
models/gallery.php CHANGED
@@ -19,7 +19,7 @@ class GalleryGallery extends GalleryDbHelper {
19
  'key' => "PRIMARY KEY (`id`)",
20
  );
21
 
22
- function GalleryGallery($data = array()) {
23
  global $wpdb;
24
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
25
  $this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
19
  'key' => "PRIMARY KEY (`id`)",
20
  );
21
 
22
+ function __construct($data = array()) {
23
  global $wpdb;
24
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
25
  $this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
models/galleryslides.php CHANGED
@@ -23,7 +23,7 @@ class GalleryGallerySlides extends GalleryDbHelper {
23
 
24
  var $indexes = array('gallery_id', 'slide_id');
25
 
26
- function GalleryGallerySlides($data = array()) {
27
  global $wpdb;
28
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
29
  $this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
23
 
24
  var $indexes = array('gallery_id', 'slide_id');
25
 
26
+ function __construct($data = array()) {
27
  global $wpdb;
28
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
29
  $this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
models/slide.php CHANGED
@@ -32,7 +32,7 @@ class GallerySlide extends GalleryDbHelper {
32
 
33
  var $indexes = array('type');
34
 
35
- function GallerySlide($data = array()) {
36
  global $wpdb;
37
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
38
  $this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
32
 
33
  var $indexes = array('type');
34
 
35
+ function __construct($data = array()) {
36
  global $wpdb;
37
  $this -> plugin_name = basename(dirname(dirname(__FILE__)));
38
  $this -> table = $wpdb -> prefix . strtolower($this -> pre) . "_" . $this -> controller;
models/slideshow.php CHANGED
@@ -3,7 +3,7 @@
3
  if (!class_exists('slideshow_lite')) {
4
  class slideshow_lite extends GalleryPlugin {
5
 
6
- function slideshow_lite() {
7
  $this -> initialize_classes();
8
 
9
  if (!is_multisite() || (is_multisite() && $this -> is_plugin_active($this -> plugin_file))) {
3
  if (!class_exists('slideshow_lite')) {
4
  class slideshow_lite extends GalleryPlugin {
5
 
6
+ function __construct() {
7
  $this -> initialize_classes();
8
 
9
  if (!is_multisite() || (is_multisite() && $this -> is_plugin_active($this -> plugin_file))) {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Tribulant Slideshow Gallery ===
2
  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.2
7
- Stable tag: 1.6.5
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
@@ -175,6 +175,15 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
175
 
176
  == Changelog ==
177
 
 
 
 
 
 
 
 
 
 
178
  = 1.6.5 =
179
  * IMPROVE: Use attachment full URL if 'thumbnail' size is not available when adding slides
180
  * IMPROVE: Change deprecated jQuery live() to on()
1
+ === Slideshow Gallery ===
2
  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.3
7
+ Stable tag: 1.6.6
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
175
 
176
  == Changelog ==
177
 
178
+ = 1.6.6 =
179
+ * IMPROVE: Check for missing media/attachment records enhancement
180
+ * IMPROVE: ALT attributes on slide images
181
+ * FIX: Arrows on thumbnails slider misaligned on some themes
182
+ * FIX: Thumbnail dimensions incorrect on media image slides
183
+ * FIX: Possible XSS vulnerability (credit: www.defensecode.com)
184
+ * FIX: PHP deprecated class constructors cause warning message
185
+ * FIX: Slideshow doesn't show in posts/pages loaded with Ajax
186
+
187
  = 1.6.5 =
188
  * IMPROVE: Use attachment full URL if 'thumbnail' size is not available when adding slides
189
  * IMPROVE: Change deprecated jQuery live() to on()
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.5';
8
  var $plugin_name;
9
  var $plugin_base;
10
  var $pre = 'Gallery';
@@ -59,6 +59,10 @@ class GalleryPlugin extends GalleryCheckinit {
59
 
60
  return false;
61
  }
 
 
 
 
62
 
63
  function register_plugin($name, $base) {
64
  $this -> plugin_name = $name;
@@ -298,10 +302,10 @@ class GalleryPlugin extends GalleryCheckinit {
298
  $version = "1.5.3";
299
  }
300
 
301
- if (version_compare($cur_version, "1.6.5") < 0) {
302
  $this -> initialize_options();
303
 
304
- $version = "1.6.5";
305
  }
306
 
307
  //the current version is older.
@@ -440,12 +444,12 @@ class GalleryPlugin extends GalleryCheckinit {
440
  }
441
 
442
  function render_msg($message = null, $dismissable = null, $escape = true) {
443
- if (!empty($escape)) $message = esc_html($message);
444
  $this -> render('msg-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
445
  }
446
 
447
  function render_err($message = null, $dismissable = null, $escape = true) {
448
- if (!empty($escape)) $message = esc_html($message);
449
  $this -> render('err-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
450
  }
451
 
@@ -992,9 +996,7 @@ class GalleryPlugin extends GalleryCheckinit {
992
  if(!$show_available){
993
  // check if content is available in default language, if not return first language found. (prevent empty result)
994
  if($lang != $this -> language_default()) {
995
- //if (!is_admin()) {
996
- $str = $this -> language_use($this -> language_default(), $text, $show_available);
997
- //}
998
 
999
  if ($q_config['show_displayed_language_prefix'])
1000
  $str = "(". $this -> language_name($this -> language_default()) .") " . $str;
4
 
5
  class GalleryPlugin extends GalleryCheckinit {
6
 
7
+ var $version = '1.6.6';
8
  var $plugin_name;
9
  var $plugin_base;
10
  var $pre = 'Gallery';
59
 
60
  return false;
61
  }
62
+
63
+ function __construct() {
64
+
65
+ }
66
 
67
  function register_plugin($name, $base) {
68
  $this -> plugin_name = $name;
302
  $version = "1.5.3";
303
  }
304
 
305
+ if (version_compare($cur_version, "1.6.6") < 0) {
306
  $this -> initialize_options();
307
 
308
+ $version = "1.6.6";
309
  }
310
 
311
  //the current version is older.
444
  }
445
 
446
  function render_msg($message = null, $dismissable = null, $escape = true) {
447
+ if (!empty($escape)) { $message = esc_html($message); }
448
  $this -> render('msg-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
449
  }
450
 
451
  function render_err($message = null, $dismissable = null, $escape = true) {
452
+ if (!empty($escape)) { $message = esc_html($message); }
453
  $this -> render('err-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
454
  }
455
 
996
  if(!$show_available){
997
  // check if content is available in default language, if not return first language found. (prevent empty result)
998
  if($lang != $this -> language_default()) {
999
+ $str = $this -> language_use($this -> language_default(), $text, $show_available);
 
 
1000
 
1001
  if ($q_config['show_displayed_language_prefix'])
1002
  $str = "(". $this -> language_name($this -> language_default()) .") " . $str;
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>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
- Version: 1.6.5
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
@@ -29,7 +29,7 @@ if (file_exists($path)) {
29
  if (!class_exists('Gallery')) {
30
  class SlideshowGallery extends GalleryPlugin {
31
 
32
- function SlideshowGallery() {
33
  $url = explode("&", $_SERVER['REQUEST_URI']);
34
  $this -> url = $url[0];
35
  $this -> referer = (empty($_SERVER['HTTP_REFERER'])) ? $this -> url : $_SERVER['HTTP_REFERER'];
@@ -62,7 +62,7 @@ if (!class_exists('Gallery')) {
62
 
63
  $this -> add_action('slideshow_ratereviewhook', 'ratereview_hook');
64
 
65
- if (!is_admin()) {
66
  add_shortcode('slideshow', array($this, 'embed'));
67
  add_shortcode('tribulant_slideshow', array($this, 'embed'));
68
  }
@@ -242,8 +242,7 @@ if (!class_exists('Gallery')) {
242
 
243
  function admin_notices() {
244
 
245
- if (is_admin()) {
246
-
247
  $this -> check_uploaddir();
248
 
249
  $message = (!empty($_GET[$this -> pre . 'message'])) ? esc_html($_GET[$this -> pre . 'message']) : false;
@@ -812,7 +811,7 @@ if (!class_exists('Gallery')) {
812
  $this -> render('galleries' . DS . 'hardcode', array('gallery' => $gallery), true, 'admin');
813
  break;
814
  case 'delete' :
815
- if (!empty($_GET['id'])) {
816
  if ($this -> Gallery() -> delete(esc_html($_GET['id']))) {
817
  $msg_type = 'message';
818
  $message = __('Gallery has been removed', $this -> plugin_name);
@@ -1031,7 +1030,8 @@ if (!class_exists('Gallery')) {
1031
  $activation_redirect = $this -> get_option('activation_redirect');
1032
  if (is_admin() && !empty($activation_redirect)) {
1033
  $this -> delete_option('activation_redirect');
1034
- wp_redirect(admin_url('index.php') . "?page=" . $this -> sections -> about);
 
1035
  }
1036
  }
1037
  }
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>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
+ Version: 1.6.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
29
  if (!class_exists('Gallery')) {
30
  class SlideshowGallery extends GalleryPlugin {
31
 
32
+ function __construct() {
33
  $url = explode("&", $_SERVER['REQUEST_URI']);
34
  $this -> url = $url[0];
35
  $this -> referer = (empty($_SERVER['HTTP_REFERER'])) ? $this -> url : $_SERVER['HTTP_REFERER'];
62
 
63
  $this -> add_action('slideshow_ratereviewhook', 'ratereview_hook');
64
 
65
+ if (!is_admin() || wp_doing_ajax()) {
66
  add_shortcode('slideshow', array($this, 'embed'));
67
  add_shortcode('tribulant_slideshow', array($this, 'embed'));
68
  }
242
 
243
  function admin_notices() {
244
 
245
+ if (is_admin()) {
 
246
  $this -> check_uploaddir();
247
 
248
  $message = (!empty($_GET[$this -> pre . 'message'])) ? esc_html($_GET[$this -> pre . 'message']) : false;
811
  $this -> render('galleries' . DS . 'hardcode', array('gallery' => $gallery), true, 'admin');
812
  break;
813
  case 'delete' :
814
+ if (!empty(esc_html($_GET['id']))) {
815
  if ($this -> Gallery() -> delete(esc_html($_GET['id']))) {
816
  $msg_type = 'message';
817
  $message = __('Gallery has been removed', $this -> plugin_name);
1030
  $activation_redirect = $this -> get_option('activation_redirect');
1031
  if (is_admin() && !empty($activation_redirect)) {
1032
  $this -> delete_option('activation_redirect');
1033
+ wp_cache_flush();
1034
+ wp_redirect(admin_url('index.php?page=' . $this -> sections -> about));
1035
  }
1036
  }
1037
  }
vendors/class.paginate.php CHANGED
@@ -52,7 +52,7 @@ class GalleryPaginate extends GalleryPlugin {
52
 
53
  var $pagination = '';
54
 
55
- function GalleryPaginate($table = null, $fields = null, $sub = null, $parent = null) {
56
  $this -> sub = $sub;
57
  $this -> parentd = $parent;
58
 
52
 
53
  var $pagination = '';
54
 
55
+ function __construct($table = null, $fields = null, $sub = null, $parent = null) {
56
  $this -> sub = $sub;
57
  $this -> parentd = $parent;
58
 
vendors/class.update.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  if (!class_exists('Galleryupdate')) {
4
  class Galleryupdate extends GalleryPlugin {
 
 
 
 
5
 
6
  function get_changelog(){
7
 
2
 
3
  if (!class_exists('Galleryupdate')) {
4
  class Galleryupdate extends GalleryPlugin {
5
+
6
+ function __construct() {
7
+
8
+ }
9
 
10
  function get_changelog(){
11
 
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 $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,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 $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,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 $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,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 $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>
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 add_query_arg(array('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 add_query_arg(array('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 add_query_arg(array('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 add_query_arg(array('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 add_query_arg(array('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 add_query_arg(array('orderby' => "modified", 'order' => (($orderby == "modified") ? $otherorder : "asc"))); ?>">
87
  <span><?php _e('Date', $this -> plugin_name); ?></span>
88
  <span class="sorting-indicator"></span>
89
  </a>
views/admin/slides/loop.php CHANGED
@@ -76,38 +76,38 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
76
  <tr>
77
  <td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
78
  <th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
79
- <a href="<?php echo $this -> Html -> retainquery('orderby=id&order=' . (($orderby == "id") ? $otherorder : "asc")); ?>">
80
  <span><?php _e('ID', $this -> plugin_name); ?></span>
81
  <span class="sorting-indicator"></span>
82
  </a>
83
  </th>
84
  <th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
85
- <a href="<?php echo $this -> Html -> retainquery('orderby=image&order=' . (($orderby == "image") ? $otherorder : "asc")); ?>">
86
  <span><?php _e('Image', $this -> plugin_name); ?></span>
87
  <span class="sorting-indicator"></span>
88
  </a>
89
  </th>
90
  <th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
91
- <a href="<?php echo $this -> Html -> retainquery('orderby=title&order=' . (($orderby == "title") ? $otherorder : "asc")); ?>">
92
  <span><?php _e('Title', $this -> plugin_name); ?></span>
93
  <span class="sorting-indicator"></span>
94
  </a>
95
  </th>
96
  <th><?php _e('Galleries', $this -> plugin_name); ?></th>
97
  <th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
98
- <a href="<?php echo $this -> Html -> retainquery('orderby=uselink&order=' . (($orderby == "uselink") ? $otherorder : "asc")); ?>">
99
  <span><?php _e('Link', $this -> plugin_name); ?></span>
100
  <span class="sorting-indicator"></span>
101
  </a>
102
  </th>
103
  <th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
104
- <a href="<?php echo $this -> Html -> retainquery('orderby=modified&order=' . (($orderby == "modified") ? $otherorder : "asc")); ?>">
105
  <span><?php _e('Date', $this -> plugin_name); ?></span>
106
  <span class="sorting-indicator"></span>
107
  </a>
108
  </th>
109
  <th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
110
- <a href="<?php echo $this -> Html -> retainquery('orderby=order&order=' . (($orderby == "order") ? $otherorder : "asc")); ?>">
111
  <span><?php _e('Order', $this -> plugin_name); ?></span>
112
  <span class="sorting-indicator"></span>
113
  </a>
@@ -118,38 +118,38 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
118
  <tr>
119
  <td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
120
  <th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
121
- <a href="<?php echo $this -> Html -> retainquery('orderby=id&order=' . (($orderby == "id") ? $otherorder : "asc")); ?>">
122
  <span><?php _e('ID', $this -> plugin_name); ?></span>
123
  <span class="sorting-indicator"></span>
124
  </a>
125
  </th>
126
  <th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
127
- <a href="<?php echo $this -> Html -> retainquery('orderby=image&order=' . (($orderby == "image") ? $otherorder : "asc")); ?>">
128
  <span><?php _e('Image', $this -> plugin_name); ?></span>
129
  <span class="sorting-indicator"></span>
130
  </a>
131
  </th>
132
  <th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
133
- <a href="<?php echo $this -> Html -> retainquery('orderby=title&order=' . (($orderby == "title") ? $otherorder : "asc")); ?>">
134
  <span><?php _e('Title', $this -> plugin_name); ?></span>
135
  <span class="sorting-indicator"></span>
136
  </a>
137
  </th>
138
  <th><?php _e('Galleries', $this -> plugin_name); ?></th>
139
  <th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
140
- <a href="<?php echo $this -> Html -> retainquery('orderby=uselink&order=' . (($orderby == "uselink") ? $otherorder : "asc")); ?>">
141
  <span><?php _e('Link', $this -> plugin_name); ?></span>
142
  <span class="sorting-indicator"></span>
143
  </a>
144
  </th>
145
  <th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
146
- <a href="<?php echo $this -> Html -> retainquery('orderby=modified&order=' . (($orderby == "modified") ? $otherorder : "asc")); ?>">
147
  <span><?php _e('Date', $this -> plugin_name); ?></span>
148
  <span class="sorting-indicator"></span>
149
  </a>
150
  </th>
151
  <th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
152
- <a href="<?php echo $this -> Html -> retainquery('orderby=order&order=' . (($orderby == "order") ? $otherorder : "asc")); ?>">
153
  <span><?php _e('Order', $this -> plugin_name); ?></span>
154
  <span class="sorting-indicator"></span>
155
  </a>
@@ -163,7 +163,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
163
  <th class="check-column"><input type="checkbox" name="Slide[checklist][]" value="<?php echo $slide -> id; ?>" id="checklist<?php echo $slide -> id; ?>" /></th>
164
  <td><label for="checklist<?php echo $slide -> id; ?>"><?php echo $slide -> id; ?></label></td>
165
  <td style="width:75px;">
166
- <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>
167
  </td>
168
  <td>
169
  <a class="row-title" href="<?php echo $this -> url; ?>&amp;method=save&amp;id=<?php echo $slide -> id; ?>" title=""><?php echo __($slide -> title); ?></a>
76
  <tr>
77
  <td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
78
  <th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
79
+ <a href="<?php echo add_query_arg(array('orderby' => "id", 'order' => (($orderby == "id") ? $otherorder : "asc"))); ?>">
80
  <span><?php _e('ID', $this -> plugin_name); ?></span>
81
  <span class="sorting-indicator"></span>
82
  </a>
83
  </th>
84
  <th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
85
+ <a href="<?php echo add_query_arg(array('orderby' => "image", 'order' => (($orderby == "image") ? $otherorder : "asc"))); ?>">
86
  <span><?php _e('Image', $this -> plugin_name); ?></span>
87
  <span class="sorting-indicator"></span>
88
  </a>
89
  </th>
90
  <th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
91
+ <a href="<?php echo add_query_arg(array('orderby' => "title", 'order' => (($orderby == "title") ? $otherorder : "asc"))); ?>">
92
  <span><?php _e('Title', $this -> plugin_name); ?></span>
93
  <span class="sorting-indicator"></span>
94
  </a>
95
  </th>
96
  <th><?php _e('Galleries', $this -> plugin_name); ?></th>
97
  <th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
98
+ <a href="<?php echo add_query_arg(array('orderby' => "uselink", 'order' => (($orderby == "uselink") ? $otherorder : "asc"))); ?>">
99
  <span><?php _e('Link', $this -> plugin_name); ?></span>
100
  <span class="sorting-indicator"></span>
101
  </a>
102
  </th>
103
  <th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
104
+ <a href="<?php echo add_query_arg(array('orderby' => "modified", 'order' => (($orderby == "modified") ? $otherorder : "asc"))); ?>">
105
  <span><?php _e('Date', $this -> plugin_name); ?></span>
106
  <span class="sorting-indicator"></span>
107
  </a>
108
  </th>
109
  <th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
110
+ <a href="<?php echo add_query_arg(array('orderby' => "order", 'order' => (($orderby == "order") ? $otherorder : "asc"))); ?>">
111
  <span><?php _e('Order', $this -> plugin_name); ?></span>
112
  <span class="sorting-indicator"></span>
113
  </a>
118
  <tr>
119
  <td class="check-column"><input type="checkbox" name="checkboxall" id="checkboxall" value="checkboxall" /></td>
120
  <th class="column-id <?php echo ($orderby == "id") ? 'sorted ' . $order : 'sortable desc'; ?>">
121
+ <a href="<?php echo add_query_arg(array('orderby' => "id", 'order' => (($orderby == "id") ? $otherorder : "asc"))); ?>">
122
  <span><?php _e('ID', $this -> plugin_name); ?></span>
123
  <span class="sorting-indicator"></span>
124
  </a>
125
  </th>
126
  <th class="column-image <?php echo ($orderby == "image") ? 'sorted ' . $order : 'sortable desc'; ?>">
127
+ <a href="<?php echo add_query_arg(array('orderby' => "image", 'order' => (($orderby == "image") ? $otherorder : "asc"))); ?>">
128
  <span><?php _e('Image', $this -> plugin_name); ?></span>
129
  <span class="sorting-indicator"></span>
130
  </a>
131
  </th>
132
  <th class="column-title <?php echo ($orderby == "title") ? 'sorted ' . $order : 'sortable desc'; ?>">
133
+ <a href="<?php echo add_query_arg(array('orderby' => "title", 'order' => (($orderby == "title") ? $otherorder : "asc"))); ?>">
134
  <span><?php _e('Title', $this -> plugin_name); ?></span>
135
  <span class="sorting-indicator"></span>
136
  </a>
137
  </th>
138
  <th><?php _e('Galleries', $this -> plugin_name); ?></th>
139
  <th class="column-uselink <?php echo ($orderby == "uselink") ? 'sorted ' . $order : 'sortable desc'; ?>">
140
+ <a href="<?php echo add_query_arg(array('orderby' => "uselink", 'order' => (($orderby == "uselink") ? $otherorder : "asc"))); ?>">
141
  <span><?php _e('Link', $this -> plugin_name); ?></span>
142
  <span class="sorting-indicator"></span>
143
  </a>
144
  </th>
145
  <th class="column-modified <?php echo ($orderby == "modified") ? 'sorted ' . $order : 'sortable desc'; ?>">
146
+ <a href="<?php echo add_query_arg(array('orderby' => "modified", 'order' => (($orderby == "modified") ? $otherorder : "asc"))); ?>">
147
  <span><?php _e('Date', $this -> plugin_name); ?></span>
148
  <span class="sorting-indicator"></span>
149
  </a>
150
  </th>
151
  <th class="column-order <?php echo ($orderby == "order") ? 'sorted ' . $order : 'sortable desc'; ?>">
152
+ <a href="<?php echo add_query_arg(array('orderby' => "order", 'order' => (($orderby == "order") ? $otherorder : "asc"))); ?>">
153
  <span><?php _e('Order', $this -> plugin_name); ?></span>
154
  <span class="sorting-indicator"></span>
155
  </a>
163
  <th class="check-column"><input type="checkbox" name="Slide[checklist][]" value="<?php echo $slide -> id; ?>" id="checklist<?php echo $slide -> id; ?>" /></th>
164
  <td><label for="checklist<?php echo $slide -> id; ?>"><?php echo $slide -> id; ?></label></td>
165
  <td style="width:75px;">
166
+ <a href="<?php echo $slide -> image_path; ?>" title="<?php echo __($slide -> title); ?>" class="colorbox" rel="slides"><img style="width:50px; height:50px;" class="img-rounded" src="<?php echo $this -> Html -> otf_image_src($slide, 50, 50, 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> title)); ?>" /></a>
167
  </td>
168
  <td>
169
  <a class="row-title" href="<?php echo $this -> url; ?>&amp;method=save&amp;id=<?php echo $slide -> id; ?>" title=""><?php echo __($slide -> title); ?></a>
views/admin/slides/save.php CHANGED
@@ -151,8 +151,8 @@ if ($this -> language_do()) {
151
  <table class="form-table">
152
  <tbody>
153
  <tr>
154
- <th><label for=""><?php _e('Choose Image', $this -> plugin_name); ?></label></th>
155
- <td>
156
  <div id="Slide_mediaupload_image">
157
  <!-- image goes here -->
158
  <?php if (!empty($this -> Slide() -> data -> image_url)) : ?>
151
  <table class="form-table">
152
  <tbody>
153
  <tr>
154
+ <th><label for="Slide_mediaupload"><?php _e('Choose Image', $this -> plugin_name); ?></label></th>
155
+ <td>
156
  <div id="Slide_mediaupload_image">
157
  <!-- image goes here -->
158
  <?php if (!empty($this -> Slide() -> data -> image_url)) : ?>
views/default/css-responsive.php CHANGED
@@ -4,14 +4,8 @@ $absolute_path = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
4
  $wp_load = $absolute_path[0] . 'wp-load.php';
5
  require_once($wp_load);
6
 
7
- /*$styles = array();
8
- foreach ($_GET as $skey => $sval) {
9
- $styles[$skey] = esc_html(urldecode($sval));
10
- }*/
11
-
12
  $id = esc_html($_GET['id']);
13
  $styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
14
- //delete_transient('slideshow-css-' . $id);
15
 
16
  header('Content-type: text/css');
17
  header('Cache-control: must-revalidate');
@@ -52,14 +46,14 @@ $unique = $styles['unique'];
52
  #<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
53
  #<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
54
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f104"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
55
- #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?> { float:left; position:absolute; left:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:#222; }
56
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
57
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f105"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
58
- #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?> { float:right; position:absolute; right:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:#222; }
59
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
60
  #<?php echo $styles['wrapperid']; ?> #slidearea<?php echo $unique; ?> { float:left; position:absolute; z-index:149; background:<?php echo $styles['background']; ?>; width:100%; margin:0; height:<?php echo $sliderheight; ?>px; overflow:hidden; }
61
  #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> { position:absolute; width:<?php echo $styles['sliderwidth']; ?>px !important; left:0; height:<?php echo $sliderheight; ?>px; padding:3px 20px 0 25px; }
62
- #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
63
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
64
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
65
 
4
  $wp_load = $absolute_path[0] . 'wp-load.php';
5
  require_once($wp_load);
6
 
 
 
 
 
 
7
  $id = esc_html($_GET['id']);
8
  $styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
 
9
 
10
  header('Content-type: text/css');
11
  header('Cache-control: must-revalidate');
46
  #<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
47
  #<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
48
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f104"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
49
+ #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?> { text-align:left; float:left; position:absolute; left:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:#222; }
50
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
51
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f105"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
52
+ #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?> { text-align:left; float:right; position:absolute; right:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:#222; }
53
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
54
  #<?php echo $styles['wrapperid']; ?> #slidearea<?php echo $unique; ?> { float:left; position:absolute; z-index:149; background:<?php echo $styles['background']; ?>; width:100%; margin:0; height:<?php echo $sliderheight; ?>px; overflow:hidden; }
55
  #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> { position:absolute; width:<?php echo $styles['sliderwidth']; ?>px !important; left:0; height:<?php echo $sliderheight; ?>px; padding:3px 20px 0 25px; }
56
+ #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { width:<?php echo $styles['thumbwidth']; ?>px; height:<?php echo $styles['thumbheight']; ?>px; cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
57
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
58
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
59
 
views/default/css.php CHANGED
@@ -4,14 +4,8 @@ $absolute_path = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
4
  $wp_load = $absolute_path[0] . 'wp-load.php';
5
  require_once($wp_load);
6
 
7
- /*$styles = array();
8
- foreach ($_GET as $skey => $sval) {
9
- $styles[$skey] = esc_html(urldecode($sval));
10
- }*/
11
-
12
  $id = esc_html($_GET['id']);
13
  $styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
14
- //delete_transient('slideshow-css-' . $id);
15
 
16
  header('Content-type: text/css');
17
  header('Cache-control: must-revalidate');
@@ -51,14 +45,14 @@ $unique = $styles['unique'];
51
  #<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
52
  #<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
53
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f104"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
54
- #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?> { float:left; position:relative; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:#222; }
55
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
56
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f105"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
57
- #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?> { float:right; position:relative; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:#222; }
58
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
59
  #<?php echo $styles['wrapperid']; ?> #slidearea<?php echo $unique; ?> { float:left; position:relative; background:<?php echo $styles['background']; ?>; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width'] - 55) . 'px' : '90%'; ?>; margin:0 5px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; overflow:hidden; }
60
  #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> { position:absolute; width:<?php echo $styles['sliderwidth']; ?>px !important; left:0; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; }
61
- #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
62
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
63
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
64
  <?php if (!empty($styles['infohideonmobile'])) : ?>
4
  $wp_load = $absolute_path[0] . 'wp-load.php';
5
  require_once($wp_load);
6
 
 
 
 
 
 
7
  $id = esc_html($_GET['id']);
8
  $styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
 
9
 
10
  header('Content-type: text/css');
11
  header('Cache-control: must-revalidate');
45
  #<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
46
  #<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
47
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f104"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
48
+ #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?> { text-align:left; float:left; position:relative; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:#222; }
49
  #<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
50
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:before { font-family:FontAwesome; content: "\f105"; color:#999; position: absolute; height: auto; line-height:160%; width: auto; display: inline-block; top: 50%; font-size: 30px; margin: -30px 0 0 0; padding: 0 5px; }
51
+ #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?> { text-align:left; float:right; position:relative; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:#222; }
52
  #<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
53
  #<?php echo $styles['wrapperid']; ?> #slidearea<?php echo $unique; ?> { float:left; position:relative; background:<?php echo $styles['background']; ?>; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width'] - 55) . 'px' : '90%'; ?>; margin:0 5px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; overflow:hidden; }
54
  #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> { position:absolute; width:<?php echo $styles['sliderwidth']; ?>px !important; left:0; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; }
55
+ #<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { width:<?php echo $styles['thumbwidth']; ?>px; height:<?php echo $styles['thumbheight']; ?>px; cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
56
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
57
  #<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
58
  <?php if (!empty($styles['infohideonmobile'])) : ?>
views/default/gallery.php CHANGED
@@ -17,12 +17,12 @@ $thumbopacity = $this -> get_option('thumbopacity');
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)); ?>" />
@@ -46,9 +46,9 @@ $thumbopacity = $this -> get_option('thumbopacity');
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; ?>
53
  <p><?php echo stripslashes(__(get_the_excerpt())); ?></p>
54
  <?php $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'thumbnail', false); ?>
@@ -70,9 +70,9 @@ $thumbopacity = $this -> get_option('thumbopacity');
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") : ?>
@@ -92,9 +92,9 @@ $thumbopacity = $this -> get_option('thumbopacity');
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") : ?>
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 data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> post_title)); ?>"><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
21
  <?php else : ?>
22
+ <span data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> post_title)); ?>"><?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, array($options['width'], $options['height']), 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)); ?>" />
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 data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> post_title)); ?>"><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
50
  <?php else : ?>
51
+ <span data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> post_title)); ?>"><?php echo $full_image_href[0]; ?></span>
52
  <?php endif; ?>
53
  <p><?php echo stripslashes(__(get_the_excerpt())); ?></p>
54
  <?php $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'thumbnail', false); ?>
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 data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> title)); ?>"><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
74
  <?php else : ?>
75
+ <span data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> title)); ?>"><?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") : ?>
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 data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> title)); ?>"><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
96
  <?php else : ?>
97
+ <span data-alt="<?php echo $this -> Html() -> sanitize(__($slide -> title)); ?>"><?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") : ?>
views/default/js/gallery.js CHANGED
@@ -41,6 +41,7 @@ TINY.slideshow.prototype={
41
  a.l= tag('a',h)[0]? tag('a',h)[0].href:'';
42
  a.tg = tag('a',h)[0] != '' ? tag('a',h)[0].target:'_self';
43
  a.p= tag('span',h)[0].innerHTML;
 
44
  if(this.thumbs){
45
  var g = tag('img',h)[0];
46
  this.p.appendChild(g);
@@ -104,6 +105,7 @@ TINY.slideshow.prototype={
104
  string = string.replace(/&amp;/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;
@@ -135,7 +137,6 @@ TINY.slideshow.prototype={
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({
@@ -147,15 +148,7 @@ TINY.slideshow.prototype={
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
@@ -176,16 +169,7 @@ TINY.slideshow.prototype={
176
  jQuery(oi).css('top', '+' + (oh + now) + 'px');
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
@@ -275,12 +259,6 @@ TINY.slideshow.prototype={
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
 
41
  a.l= tag('a',h)[0]? tag('a',h)[0].href:'';
42
  a.tg = tag('a',h)[0] != '' ? tag('a',h)[0].target:'_self';
43
  a.p= tag('span',h)[0].innerHTML;
44
+ a.a = jQuery(tag('span',h)[0]).data('alt');
45
  if(this.thumbs){
46
  var g = tag('img',h)[0];
47
  this.p.appendChild(g);
105
  string = string.replace(/&amp;/g, '&');
106
  i.src = string;
107
  i.id = this.imagesid + 'img' + s;
108
+ jQuery(i).attr('alt', this.a[s].a);
109
 
110
  if(this.thumbs){
111
  var a= tag('img',this.p), l=a.length, x=0;
137
  fullw = jQuery(i).parent().width();
138
 
139
  if (jQuery(oi).attr('src') != jQuery(i).attr('src')) {
 
140
  if (this.direction == "f" || typeof(this.direction) == "undefined") {
141
  if (this.slide_direction == "tb") {
142
  jQuery(i).css('top', (h + opost)).animate({
148
  jQuery(oi).css('top', '-' + (oh - now) + 'px');
149
  }
150
  });
151
+ } else {
 
 
 
 
 
 
 
 
152
  jQuery(i).css('left', '+' + fullw + 'px').animate({'left':'0px'}, {
153
  duration: speed,
154
  easing: this.easing
169
  jQuery(oi).css('top', '+' + (oh + now) + 'px');
170
  }
171
  });
172
+ } else {
 
 
 
 
 
 
 
 
 
173
  jQuery(i).css('left', '-' + fullw + 'px').animate({'left':'0px'}, {
174
  duration: speed,
175
  easing: this.easing
259
  }
260
  }
261
 
 
 
 
 
 
 
262
  TINY.height.set(this.f.parentNode,(autoheight),this.infoSpeed/2,-1);
263
  }
264