Version Description
- IMPROVE: Various security updates.
- IMPORTANT: Due to required changes by WordPress.org and us hosting this free plugin here with them, we were unfortunately required to remove the ability to use translation plugins with this free lite version. This still works in our premium version and you can purchase that on our Tribulant website. The premium version will also get more features in the future. We apologise for the inconvenience.
Download this release
Release Info
Developer | adamluzsi |
Plugin | Slideshow Gallery |
Version | 1.7.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.4 to 1.7.4.1
- includes/class.gallery-list-table.php +5 -5
- includes/class.slide-list-table.php +10 -10
- models/gallery.php +1 -1
- readme.txt +7 -3
- slideshow-gallery-plugin.php +26 -4
- slideshow-gallery.php +19 -17
- views/admin/galleries/hardcode.php +1 -1
- views/admin/galleries/view.php +1 -1
- views/admin/metaboxes/settings-postspages.php +1 -1
- views/admin/slides/order-gallery.php +3 -3
- views/admin/slides/order.php +3 -3
- views/admin/slides/save-multiple.php +1 -1
- views/admin/slides/save.php +2 -2
- views/admin/tinymce-dialog.php +1 -1
- views/admin/update.php +3 -3
- views/default/css-generator-fn.php +126 -0
- views/default/css-responsive.php +0 -66
- views/default/css.php +0 -64
- views/default/gallery.php +91 -93
includes/class.gallery-list-table.php
CHANGED
@@ -65,8 +65,8 @@ class Gallery_List_Table extends WP_List_Table {
|
|
65 |
$sql = "SELECT DISTINCT " . $galleries_table . ".* FROM " . $galleries_table;
|
66 |
$sql .= $this -> add_conditions();
|
67 |
|
68 |
-
$orderby = (empty($_REQUEST['orderby'])) ? $galleries_table . '.modified' :
|
69 |
-
$order = (empty($_REQUEST['order'])) ? 'desc' :
|
70 |
|
71 |
$sql .= " ORDER BY " . $orderby . " " . $order;
|
72 |
$sql .= " LIMIT $per_page";
|
@@ -90,7 +90,7 @@ class Gallery_List_Table extends WP_List_Table {
|
|
90 |
$conditions = array();
|
91 |
|
92 |
if (isset($_REQUEST['s'])) {
|
93 |
-
$search =
|
94 |
} else {
|
95 |
$search = "";
|
96 |
}
|
@@ -183,7 +183,7 @@ class Gallery_List_Table extends WP_List_Table {
|
|
183 |
|
184 |
$current_action = $this -> current_action();
|
185 |
if (!empty($current_action)) {
|
186 |
-
$galleries = $_REQUEST['galleries'];
|
187 |
|
188 |
if (!empty($galleries)) {
|
189 |
//Detect when a bulk action is being triggered...
|
@@ -243,7 +243,7 @@ class Gallery_List_Table extends WP_List_Table {
|
|
243 |
function column_title($item = null) {
|
244 |
|
245 |
$title = '';
|
246 |
-
$title .= '<a class="row-title" href="' . admin_url('admin.php?page=' . SG() -> sections -> galleries . '&method=save&id=' . $item['id']) . '">' .
|
247 |
|
248 |
$actions = array(
|
249 |
'view' => sprintf('<a href="%s">%s</a>', admin_url('admin.php?page=' . SG() -> sections -> galleries . '&method=view&id=' . $item['id']), __('View', 'slideshow-gallery')),
|
65 |
$sql = "SELECT DISTINCT " . $galleries_table . ".* FROM " . $galleries_table;
|
66 |
$sql .= $this -> add_conditions();
|
67 |
|
68 |
+
$orderby = (empty($_REQUEST['orderby'])) ? $galleries_table . '.modified' : sanitize_text_field($_REQUEST['orderby']);
|
69 |
+
$order = (empty($_REQUEST['order'])) ? 'desc' : sanitize_text_field($_REQUEST['order']);
|
70 |
|
71 |
$sql .= " ORDER BY " . $orderby . " " . $order;
|
72 |
$sql .= " LIMIT $per_page";
|
90 |
$conditions = array();
|
91 |
|
92 |
if (isset($_REQUEST['s'])) {
|
93 |
+
$search = sanitize_text_field($_REQUEST['s']);
|
94 |
} else {
|
95 |
$search = "";
|
96 |
}
|
183 |
|
184 |
$current_action = $this -> current_action();
|
185 |
if (!empty($current_action)) {
|
186 |
+
$galleries = map_deep($_REQUEST['galleries'], 'sanitize_text_field');
|
187 |
|
188 |
if (!empty($galleries)) {
|
189 |
//Detect when a bulk action is being triggered...
|
243 |
function column_title($item = null) {
|
244 |
|
245 |
$title = '';
|
246 |
+
$title .= '<a class="row-title" href="' . admin_url('admin.php?page=' . SG() -> sections -> galleries . '&method=save&id=' . $item['id']) . '">' . esc_html($item['title']) . '</a>';
|
247 |
|
248 |
$actions = array(
|
249 |
'view' => sprintf('<a href="%s">%s</a>', admin_url('admin.php?page=' . SG() -> sections -> galleries . '&method=view&id=' . $item['id']), __('View', 'slideshow-gallery')),
|
includes/class.slide-list-table.php
CHANGED
@@ -70,8 +70,8 @@ class Slide_List_Table extends WP_List_Table {
|
|
70 |
$sql .= " LEFT JOIN " . $slidesgalleries_table . " ON " . $slides_table . ".id = " . $slidesgalleries_table . ".slide_id";
|
71 |
$sql .= $this -> add_conditions();
|
72 |
|
73 |
-
$orderby = (empty($_REQUEST['orderby'])) ? $slides_table . '.modified' :
|
74 |
-
$order = (empty($_REQUEST['order'])) ? 'desc' :
|
75 |
|
76 |
$sql .= " ORDER BY " . $orderby . " " . $order;
|
77 |
$sql .= " LIMIT $per_page";
|
@@ -95,7 +95,7 @@ class Slide_List_Table extends WP_List_Table {
|
|
95 |
$conditions = array();
|
96 |
|
97 |
if (isset($_REQUEST['s'])) {
|
98 |
-
$search =
|
99 |
} else {
|
100 |
$search = "";
|
101 |
}
|
@@ -105,7 +105,7 @@ class Slide_List_Table extends WP_List_Table {
|
|
105 |
}
|
106 |
|
107 |
if (isset($_REQUEST['id'])) {
|
108 |
-
$gallery_id =
|
109 |
} else {
|
110 |
$gallery_id = "";
|
111 |
}
|
@@ -217,8 +217,8 @@ class Slide_List_Table extends WP_List_Table {
|
|
217 |
|
218 |
$current_action = $this -> current_action();
|
219 |
if (!empty($current_action)) {
|
220 |
-
$slides = $_REQUEST['slides'];
|
221 |
-
$galleries = $_REQUEST['galleries'];
|
222 |
|
223 |
if (!empty($slides)) {
|
224 |
//Detect when a bulk action is being triggered...
|
@@ -279,7 +279,7 @@ class Slide_List_Table extends WP_List_Table {
|
|
279 |
<?php if ($galleries = SG() -> Gallery() -> select()) : ?>
|
280 |
<div><label style="font-weight:bold"><input onclick="jqCheckAll(this, false, 'galleries');" type="checkbox" name="checkboxall" value="1" /> <?php _e('Select all', 'slideshow-gallery'); ?></label></div>
|
281 |
<?php foreach ($galleries as $gallery_id => $gallery_name) : ?>
|
282 |
-
<div><label><input type="checkbox" name="galleries[]" value="<?php echo $gallery_id; ?>" /> <?php
|
283 |
<?php endforeach; ?>
|
284 |
<?php else : ?>
|
285 |
<p class="slideshow_error"><?php _e('No galleries are available', 'slideshow-gallery'); ?></p>
|
@@ -318,7 +318,7 @@ class Slide_List_Table extends WP_List_Table {
|
|
318 |
|
319 |
function column_image($item) {
|
320 |
|
321 |
-
$image = '<a href="' . $item['image_path'] . '" title="' . esc_attr(wp_unslash(
|
322 |
|
323 |
return $image;
|
324 |
}
|
@@ -326,7 +326,7 @@ class Slide_List_Table extends WP_List_Table {
|
|
326 |
function column_title($item = null) {
|
327 |
|
328 |
$title = '';
|
329 |
-
$title .= '<a class="row-title" href="' . admin_url('admin.php?page=' . SG() -> sections -> slides . '&method=save&id=' . $item['id']) . '">' .
|
330 |
|
331 |
$actions = array(
|
332 |
'edit' => sprintf('<a href="%s">%s</a>', admin_url('admin.php?page=' . SG() -> sections -> slides . '&method=save&id=' . $item['id']), __('Edit', 'slideshow-gallery')),
|
@@ -345,7 +345,7 @@ class Slide_List_Table extends WP_List_Table {
|
|
345 |
$galleries = '';
|
346 |
$g = 1;
|
347 |
foreach ($item['gallery'] as $gallery) {
|
348 |
-
$galleries .= '<a href="' . admin_url('admin.php?page=' . SG() -> sections -> galleries . '&method=view&id=' . $gallery -> id) . '">' .
|
349 |
if ($g < count($item['gallery'])) {
|
350 |
$galleries .= ', ';
|
351 |
}
|
70 |
$sql .= " LEFT JOIN " . $slidesgalleries_table . " ON " . $slides_table . ".id = " . $slidesgalleries_table . ".slide_id";
|
71 |
$sql .= $this -> add_conditions();
|
72 |
|
73 |
+
$orderby = (empty($_REQUEST['orderby'])) ? $slides_table . '.modified' : sanitize_text_field($_REQUEST['orderby']);
|
74 |
+
$order = (empty($_REQUEST['order'])) ? 'desc' : sanitize_text_field($_REQUEST['order']);
|
75 |
|
76 |
$sql .= " ORDER BY " . $orderby . " " . $order;
|
77 |
$sql .= " LIMIT $per_page";
|
95 |
$conditions = array();
|
96 |
|
97 |
if (isset($_REQUEST['s'])) {
|
98 |
+
$search = sanitize_text_field($_REQUEST['s']);
|
99 |
} else {
|
100 |
$search = "";
|
101 |
}
|
105 |
}
|
106 |
|
107 |
if (isset($_REQUEST['id'])) {
|
108 |
+
$gallery_id = sanitize_text_field($_REQUEST['id']);
|
109 |
} else {
|
110 |
$gallery_id = "";
|
111 |
}
|
217 |
|
218 |
$current_action = $this -> current_action();
|
219 |
if (!empty($current_action)) {
|
220 |
+
$slides = map_deep($_REQUEST['slides'], 'sanitize_text_field');
|
221 |
+
$galleries = map_deep($_REQUEST['galleries'], 'sanitize_text_field');
|
222 |
|
223 |
if (!empty($slides)) {
|
224 |
//Detect when a bulk action is being triggered...
|
279 |
<?php if ($galleries = SG() -> Gallery() -> select()) : ?>
|
280 |
<div><label style="font-weight:bold"><input onclick="jqCheckAll(this, false, 'galleries');" type="checkbox" name="checkboxall" value="1" /> <?php _e('Select all', 'slideshow-gallery'); ?></label></div>
|
281 |
<?php foreach ($galleries as $gallery_id => $gallery_name) : ?>
|
282 |
+
<div><label><input type="checkbox" name="galleries[]" value="<?php echo esc_attr($gallery_id); ?>" /> <?php esc_html_e($gallery_name); ?></label></div>
|
283 |
<?php endforeach; ?>
|
284 |
<?php else : ?>
|
285 |
<p class="slideshow_error"><?php _e('No galleries are available', 'slideshow-gallery'); ?></p>
|
318 |
|
319 |
function column_image($item) {
|
320 |
|
321 |
+
$image = '<a href="' . $item['image_path'] . '" title="' . esc_attr(wp_unslash($item['title'])) . '" class="colorbox" rel="slides"><img style="width:50px; height:50px;" class="img-rounded" src="' . SG() -> Html -> otf_image_src((object) $item, 50, 50, 100) . '" alt="' . esc_attr(SG() -> Html -> sanitize($item['title'])) . '" /></a>';
|
322 |
|
323 |
return $image;
|
324 |
}
|
326 |
function column_title($item = null) {
|
327 |
|
328 |
$title = '';
|
329 |
+
$title .= '<a class="row-title" href="' . admin_url('admin.php?page=' . SG() -> sections -> slides . '&method=save&id=' . $item['id']) . '">' . esc_html($item['title']) . '</a>';
|
330 |
|
331 |
$actions = array(
|
332 |
'edit' => sprintf('<a href="%s">%s</a>', admin_url('admin.php?page=' . SG() -> sections -> slides . '&method=save&id=' . $item['id']), __('Edit', 'slideshow-gallery')),
|
345 |
$galleries = '';
|
346 |
$g = 1;
|
347 |
foreach ($item['gallery'] as $gallery) {
|
348 |
+
$galleries .= '<a href="' . admin_url('admin.php?page=' . SG() -> sections -> galleries . '&method=view&id=' . $gallery -> id) . '">' . esc_html($gallery -> title) . '</a>';
|
349 |
if ($g < count($item['gallery'])) {
|
350 |
$galleries .= ', ';
|
351 |
}
|
models/gallery.php
CHANGED
@@ -53,7 +53,7 @@ class GalleryGallery extends GalleryDbHelper {
|
|
53 |
|
54 |
if ($galleries = $this -> find_all()) {
|
55 |
foreach ($galleries as $gallery) {
|
56 |
-
$select[$gallery -> id] =
|
57 |
}
|
58 |
}
|
59 |
|
53 |
|
54 |
if ($galleries = $this -> find_all()) {
|
55 |
foreach ($galleries as $gallery) {
|
56 |
+
$select[$gallery -> id] = $gallery -> title;
|
57 |
}
|
58 |
}
|
59 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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: 5.8.1
|
7 |
-
Stable tag: 1.7.4
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
@@ -175,14 +175,18 @@ There is an "Images Tester" utility under Slideshow > Settings on the right-hand
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
|
|
178 |
= 1.7.4 =
|
179 |
* FIX: XSS vulnerability issue.
|
180 |
|
181 |
= 1.7.3 =
|
182 |
-
* Removed update checker.
|
183 |
|
184 |
= 1.7.2 =
|
185 |
-
* Removed serial key management for this free versión.
|
186 |
|
187 |
= 1.7.1 =
|
188 |
* FIX: Colorbox updates and fixes.
|
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: 5.8.1
|
7 |
+
Stable tag: 1.7.4.1
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 1.7.4.1 =
|
179 |
+
* IMPROVE: Various security updates.
|
180 |
+
* IMPORTANT: Due to required changes by WordPress.org and us hosting this free plugin here with them, we were unfortunately required to remove the ability to use translation plugins with this free lite version. This still works in our premium version and you can purchase that on our Tribulant website. The premium version will also get more features in the future. We apologise for the inconvenience.
|
181 |
+
|
182 |
= 1.7.4 =
|
183 |
* FIX: XSS vulnerability issue.
|
184 |
|
185 |
= 1.7.3 =
|
186 |
+
* IMPROVE: Removed update checker.
|
187 |
|
188 |
= 1.7.2 =
|
189 |
+
* IMPROVE: Removed serial key management for this free versión.
|
190 |
|
191 |
= 1.7.1 =
|
192 |
* FIX: Colorbox updates and fixes.
|
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.7.4';
|
8 |
var $plugin_name;
|
9 |
var $plugin_base;
|
10 |
var $pre = 'Gallery';
|
@@ -562,7 +562,7 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
562 |
@chmod($uploaddir, 0777);
|
563 |
return true;
|
564 |
} else {
|
565 |
-
$message = sprintf(
|
566 |
$this -> render_msg($message);
|
567 |
}
|
568 |
}
|
@@ -571,7 +571,7 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
571 |
if (@mkdir($cachedir, 0777)) {
|
572 |
@chmod($cachedir, 0777);
|
573 |
} else {
|
574 |
-
$message = sprintf(
|
575 |
$this -> render_msg($message);
|
576 |
}
|
577 |
}
|
@@ -678,6 +678,28 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
678 |
return true;
|
679 |
}
|
680 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
681 |
function get_css_url($attr = null, $layout = null) {
|
682 |
$file = (empty($layout) || $layout == "specific") ? 'css' : 'css-responsive';
|
683 |
$css_url = $this -> render_url($file . '.php', 'default');
|
@@ -779,7 +801,7 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
779 |
$this -> debugging = (empty($debugging)) ? $this -> debugging : true;
|
780 |
|
781 |
if ($this -> debugging) {
|
782 |
-
echo '<pre>' . print_r($var, true) . '</pre>';
|
783 |
return true;
|
784 |
}
|
785 |
|
4 |
|
5 |
class GalleryPlugin extends GalleryCheckinit {
|
6 |
|
7 |
+
var $version = '1.7.4.1';
|
8 |
var $plugin_name;
|
9 |
var $plugin_base;
|
10 |
var $pre = 'Gallery';
|
562 |
@chmod($uploaddir, 0777);
|
563 |
return true;
|
564 |
} else {
|
565 |
+
$message = sprintf(esc_html__('Uploads folder named "%s" cannot be created inside "%s"', 'slideshow-gallery'), $this -> plugin_name, "wp-content/uploads/");
|
566 |
$this -> render_msg($message);
|
567 |
}
|
568 |
}
|
571 |
if (@mkdir($cachedir, 0777)) {
|
572 |
@chmod($cachedir, 0777);
|
573 |
} else {
|
574 |
+
$message = sprintf(esc_html__('Slideshow cache folder "%s" for resizing images cannot be created inside "%s"', 'slideshow-gallery'), 'cache', 'wp-content/uploads/' . $this -> plugin_name . '/');
|
575 |
$this -> render_msg($message);
|
576 |
}
|
577 |
}
|
678 |
return true;
|
679 |
}
|
680 |
|
681 |
+
|
682 |
+
function generate_css($attr = null, $layout = null) {
|
683 |
+
|
684 |
+
$function = (empty($layout) || $layout == "specific") ? 'sg_generate_css' : 'sg_generate_css_responsive';
|
685 |
+
|
686 |
+
$default_attr = $this -> get_option('styles');
|
687 |
+
$styles = wp_parse_args($attr, $default_attr);
|
688 |
+
|
689 |
+
//$id = $styles['unique'];
|
690 |
+
//$key = 'slideshow-css-' . $id;
|
691 |
+
//$data = maybe_serialize($styles);
|
692 |
+
//set_transient($key, $data, 999);
|
693 |
+
|
694 |
+
ob_start();
|
695 |
+
include 'views/default/css-generator-fn.php';
|
696 |
+
echo '<style id="style-'.$styles['unique'].'">';
|
697 |
+
$function($styles);
|
698 |
+
echo '</style>';
|
699 |
+
return ob_get_clean();
|
700 |
+
|
701 |
+
}
|
702 |
+
|
703 |
function get_css_url($attr = null, $layout = null) {
|
704 |
$file = (empty($layout) || $layout == "specific") ? 'css' : 'css-responsive';
|
705 |
$css_url = $this -> render_url($file . '.php', 'default');
|
801 |
$this -> debugging = (empty($debugging)) ? $this -> debugging : true;
|
802 |
|
803 |
if ($this -> debugging) {
|
804 |
+
echo '<pre>' . print_r(map_deep($var, 'esc_html'), true) . '</pre>';
|
805 |
return true;
|
806 |
}
|
807 |
|
slideshow-gallery.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: https://tribulant.com/plugins/view/13/wordpress-slideshow-gallery
|
|
6 |
Author: Tribulant
|
7 |
Author URI: https://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. See the <a href="https://tribulant.com/docs/wordpress-slideshow-gallery/1758/wordpress-slideshow-gallery-plugin/" target="_blank">online documentation</a> for instructions on using and embedding slideshow galleries.
|
9 |
-
Version: 1.7.4
|
10 |
License: GNU General Public License v2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
|
@@ -78,7 +78,7 @@ if (!class_exists('SlideshowGallery')) {
|
|
78 |
if (!empty($excerptsettings)) {
|
79 |
$excerpt_readmore = $this -> get_option('excerpt_readmore');
|
80 |
if (!empty($excerpt_readmore)) {
|
81 |
-
$more = ' <a href="' . get_permalink($slideshow_post -> ID) . '">' .
|
82 |
}
|
83 |
}
|
84 |
|
@@ -166,7 +166,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
166 |
?><!-- Slideshow Gallery Javascript BEG --><?php
|
167 |
|
168 |
foreach ($slideshow_javascript as $javascript) {
|
169 |
-
echo wp_unslash($javascript);
|
|
|
170 |
}
|
171 |
|
172 |
?><!-- Slideshow Gallery Javascript END --><?php
|
@@ -178,7 +179,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
178 |
?><!-- Slideshow Gallery CSS BEG --><?php
|
179 |
|
180 |
foreach ($slideshow_css as $css) {
|
181 |
-
echo wp_unslash($css);
|
|
|
182 |
}
|
183 |
|
184 |
?><!-- Slideshow Gallery CSS END --><?php
|
@@ -350,7 +352,7 @@ if (!class_exists('SlideshowGallery')) {
|
|
350 |
|
351 |
$showmessage_ratereview = $this -> get_option('showmessage_ratereview');
|
352 |
if (!empty($showmessage_ratereview)) {
|
353 |
-
$message = sprintf(
|
354 |
'<a href="https://wordpress.org/plugins/slideshow-gallery/" target="_blank">Tribulant Slideshow Gallery plugin</a>',
|
355 |
$showmessage_ratereview,
|
356 |
'<a class="button" href="https://wordpress.org/support/plugin/slideshow-gallery/reviews/?rate=5#new-post" target="_blank"><i class="fa fa-star"></i> Rate</a>',
|
@@ -372,7 +374,7 @@ if (!class_exists('SlideshowGallery')) {
|
|
372 |
$hidemessage_upgradetopro = $this -> get_option('hidemessage_upgradetopro');
|
373 |
|
374 |
if (empty($hidemessage_upgradetopro)) {
|
375 |
-
$message = sprintf(
|
376 |
$message .= ' <a class="button button-primary" href="' . admin_url('admin.php?page=' . $this -> sections -> lite_upgrade) . '"><i class="fa fa-check"></i> ' . __('Upgrade to PRO', 'slideshow-gallery') . '</a>';
|
377 |
$message .= ' <a class="button button-secondary" href="' . admin_url('admin.php?page=' . $this -> sections -> welcome . '&slideshow_method=hidemessage&message=upgradetopro') . '"><i class="fa fa-times"></i> ' . __('Hide this message', 'slideshow-gallery') . '</a>';
|
378 |
$dismissable = admin_url('admin.php?page=' . $this -> sections -> welcome . '&slideshow_method=hidemessage&message=upgradetopro');
|
@@ -703,7 +705,7 @@ if (!class_exists('SlideshowGallery')) {
|
|
703 |
foreach ($slides as $slide) {
|
704 |
?>
|
705 |
|
706 |
-
<a href="<?php echo get_permalink($slide -> post_id); ?>" title="<?php echo esc_attr(
|
707 |
<img align="left" hspace="15" src="<?php echo $this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" />
|
708 |
</a>
|
709 |
|
@@ -714,8 +716,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
714 |
foreach ($slides as $slide) {
|
715 |
?>
|
716 |
|
717 |
-
<a href="<?php echo $slide -> image_path; ?>" title="<?php echo
|
718 |
-
<img align="left" hspace="15" src="<?php echo $this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(
|
719 |
</a>
|
720 |
|
721 |
<?php
|
@@ -725,8 +727,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
725 |
foreach ($slides as $slide) {
|
726 |
?>
|
727 |
|
728 |
-
<a href="<?php echo $slide -> guid; ?>" title="<?php echo esc_attr(
|
729 |
-
<img align="left" hspace="15" src="<?php echo $this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(
|
730 |
</a>
|
731 |
|
732 |
<?php
|
@@ -740,8 +742,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
740 |
|
741 |
?>
|
742 |
|
743 |
-
<a href="<?php echo $full_image_url; ?>" title="<?php echo
|
744 |
-
<img align="left" hspace="15" src="<?php echo $this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(
|
745 |
</a>
|
746 |
|
747 |
<?php
|
@@ -808,8 +810,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
808 |
}
|
809 |
} else {
|
810 |
$this -> Db -> model = $this -> Slide() -> model;
|
811 |
-
$slideId = (isset($_GET['id'])) ? $_GET['id'] : 0;
|
812 |
-
$this -> Slide() -> find(array('id' =>
|
813 |
$this -> render('slides' . DS . 'save', false, true, 'admin');
|
814 |
}
|
815 |
break;
|
@@ -918,8 +920,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
918 |
}
|
919 |
} else {
|
920 |
$this -> Db -> model = $this -> Gallery() -> model;
|
921 |
-
$galleryId = (isset($_GET['id'])) ? $_GET['id'] : 0;
|
922 |
-
$this -> Gallery() -> find(array('id' =>
|
923 |
$this -> render('galleries' . DS . 'save', false, true, 'admin');
|
924 |
}
|
925 |
break;
|
6 |
Author: Tribulant
|
7 |
Author URI: https://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. See the <a href="https://tribulant.com/docs/wordpress-slideshow-gallery/1758/wordpress-slideshow-gallery-plugin/" target="_blank">online documentation</a> for instructions on using and embedding slideshow galleries.
|
9 |
+
Version: 1.7.4.1
|
10 |
License: GNU General Public License v2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
|
78 |
if (!empty($excerptsettings)) {
|
79 |
$excerpt_readmore = $this -> get_option('excerpt_readmore');
|
80 |
if (!empty($excerpt_readmore)) {
|
81 |
+
$more = ' <a href="' . get_permalink($slideshow_post -> ID) . '">' . esc_html($excerpt_readmore) . '</a>';
|
82 |
}
|
83 |
}
|
84 |
|
166 |
?><!-- Slideshow Gallery Javascript BEG --><?php
|
167 |
|
168 |
foreach ($slideshow_javascript as $javascript) {
|
169 |
+
//echo wp_unslash($javascript);
|
170 |
+
echo html_entity_decode(str_replace("\'", "'", str_replace('\n', '', esc_js($javascript))));
|
171 |
}
|
172 |
|
173 |
?><!-- Slideshow Gallery Javascript END --><?php
|
179 |
?><!-- Slideshow Gallery CSS BEG --><?php
|
180 |
|
181 |
foreach ($slideshow_css as $css) {
|
182 |
+
//echo wp_unslash($css);
|
183 |
+
echo html_entity_decode(esc_html($css));
|
184 |
}
|
185 |
|
186 |
?><!-- Slideshow Gallery CSS END --><?php
|
352 |
|
353 |
$showmessage_ratereview = $this -> get_option('showmessage_ratereview');
|
354 |
if (!empty($showmessage_ratereview)) {
|
355 |
+
$message = sprintf(esc_html__('You have been using the %s for %s days or more. Please consider to %s it or say it %s on %s.', 'slideshow-gallery'),
|
356 |
'<a href="https://wordpress.org/plugins/slideshow-gallery/" target="_blank">Tribulant Slideshow Gallery plugin</a>',
|
357 |
$showmessage_ratereview,
|
358 |
'<a class="button" href="https://wordpress.org/support/plugin/slideshow-gallery/reviews/?rate=5#new-post" target="_blank"><i class="fa fa-star"></i> Rate</a>',
|
374 |
$hidemessage_upgradetopro = $this -> get_option('hidemessage_upgradetopro');
|
375 |
|
376 |
if (empty($hidemessage_upgradetopro)) {
|
377 |
+
$message = sprintf(esc_html__('You are using Slideshow Gallery LITE. Take your slideshows to the next level with %s. Already purchased? %s.', 'slideshow-gallery'), '<a href="' . admin_url('admin.php?page=' . $this -> sections -> lite_upgrade) . '">Slideshow Gallery PRO</a>', '<a href="https://tribulant.com/docs/wordpress-slideshow-gallery/1758" target="_blank">See instructions to install PRO</a>');
|
378 |
$message .= ' <a class="button button-primary" href="' . admin_url('admin.php?page=' . $this -> sections -> lite_upgrade) . '"><i class="fa fa-check"></i> ' . __('Upgrade to PRO', 'slideshow-gallery') . '</a>';
|
379 |
$message .= ' <a class="button button-secondary" href="' . admin_url('admin.php?page=' . $this -> sections -> welcome . '&slideshow_method=hidemessage&message=upgradetopro') . '"><i class="fa fa-times"></i> ' . __('Hide this message', 'slideshow-gallery') . '</a>';
|
380 |
$dismissable = admin_url('admin.php?page=' . $this -> sections -> welcome . '&slideshow_method=hidemessage&message=upgradetopro');
|
705 |
foreach ($slides as $slide) {
|
706 |
?>
|
707 |
|
708 |
+
<a href="<?php echo get_permalink($slide -> post_id); ?>" title="<?php echo esc_attr($slide -> title); ?>">
|
709 |
<img align="left" hspace="15" src="<?php echo $this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" />
|
710 |
</a>
|
711 |
|
716 |
foreach ($slides as $slide) {
|
717 |
?>
|
718 |
|
719 |
+
<a href="<?php echo $slide -> image_path; ?>" title="<?php echo esc_attr($slide -> title); ?>">
|
720 |
+
<img align="left" hspace="15" 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); ?>" />
|
721 |
</a>
|
722 |
|
723 |
<?php
|
727 |
foreach ($slides as $slide) {
|
728 |
?>
|
729 |
|
730 |
+
<a href="<?php echo $slide -> guid; ?>" title="<?php echo esc_attr($slide -> post_title); ?>">
|
731 |
+
<img align="left" hspace="15" 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); ?>" />
|
732 |
</a>
|
733 |
|
734 |
<?php
|
742 |
|
743 |
?>
|
744 |
|
745 |
+
<a href="<?php echo $full_image_url; ?>" title="<?php echo esc_attr($slide -> post_title); ?>">
|
746 |
+
<img align="left" hspace="15" 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); ?>" />
|
747 |
</a>
|
748 |
|
749 |
<?php
|
810 |
}
|
811 |
} else {
|
812 |
$this -> Db -> model = $this -> Slide() -> model;
|
813 |
+
$slideId = (isset($_GET['id'])) ? sanitize_text_field($_GET['id']) : 0;
|
814 |
+
$this -> Slide() -> find(array('id' => $slideId));
|
815 |
$this -> render('slides' . DS . 'save', false, true, 'admin');
|
816 |
}
|
817 |
break;
|
920 |
}
|
921 |
} else {
|
922 |
$this -> Db -> model = $this -> Gallery() -> model;
|
923 |
+
$galleryId = (isset($_GET['id'])) ? sanitize_text_field($_GET['id']) : 0;
|
924 |
+
$this -> Gallery() -> find(array('id' => $galleryId));
|
925 |
$this -> render('galleries' . DS . 'save', false, true, 'admin');
|
926 |
}
|
927 |
break;
|
views/admin/galleries/hardcode.php
CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
5 |
?>
|
6 |
|
7 |
<div class="wrap <?php echo $this -> pre; ?> slideshow">
|
8 |
-
<h1><?php echo sprintf(
|
9 |
<div style="float:none;" class="subsubsub"><?php echo $this -> Html -> link(__('← All Galleries', 'slideshow-gallery'), $this -> url, array('title' => __('All Galleries', 'slideshow-gallery'))); ?></div>
|
10 |
|
11 |
<h2><?php _e('Shortcode in Post/Page', 'slideshow-gallery'); ?></h2>
|
5 |
?>
|
6 |
|
7 |
<div class="wrap <?php echo $this -> pre; ?> slideshow">
|
8 |
+
<h1><?php echo sprintf(esc_html__('Embed Gallery: %s', 'slideshow-gallery'), $gallery -> title); ?></h1>
|
9 |
<div style="float:none;" class="subsubsub"><?php echo $this -> Html -> link(__('← All Galleries', 'slideshow-gallery'), $this -> url, array('title' => __('All Galleries', 'slideshow-gallery'))); ?></div>
|
10 |
|
11 |
<h2><?php _e('Shortcode in Post/Page', 'slideshow-gallery'); ?></h2>
|
views/admin/galleries/view.php
CHANGED
@@ -10,7 +10,7 @@ $Slide_List_table -> prepare_items();
|
|
10 |
?>
|
11 |
|
12 |
<div class="wrap <?php echo $this -> pre; ?> slideshow">
|
13 |
-
<h1><?php echo sprintf(
|
14 |
|
15 |
<div style="float:none;" class="subsubsub"><?php echo $this -> Html -> link(__('← All Galleries', 'slideshow-gallery'), $this -> url, array('title' => __('All Galleries', 'slideshow-gallery'))); ?></div>
|
16 |
|
10 |
?>
|
11 |
|
12 |
<div class="wrap <?php echo $this -> pre; ?> slideshow">
|
13 |
+
<h1><?php echo sprintf(esc_html__('View Gallery: %s', 'slideshow-gallery'), $gallery -> title); ?></h1>
|
14 |
|
15 |
<div style="float:none;" class="subsubsub"><?php echo $this -> Html -> link(__('← All Galleries', 'slideshow-gallery'), $this -> url, array('title' => __('All Galleries', 'slideshow-gallery'))); ?></div>
|
16 |
|
views/admin/metaboxes/settings-postspages.php
CHANGED
@@ -53,7 +53,7 @@ $excerpt_length = $this -> get_option('excerpt_length');
|
|
53 |
});
|
54 |
</script>
|
55 |
<?php else : ?>
|
56 |
-
<input type="text" class="widefat" name="excerpt_readmore" value="<?php echo esc_attr(wp_unslash(
|
57 |
<?php endif; ?>
|
58 |
</td>
|
59 |
</tr>
|
53 |
});
|
54 |
</script>
|
55 |
<?php else : ?>
|
56 |
+
<input type="text" class="widefat" name="excerpt_readmore" value="<?php echo esc_attr(wp_unslash($excerpt_readmore)); ?>" id="excerpt_readmore" />
|
57 |
<?php endif; ?>
|
58 |
</td>
|
59 |
</tr>
|
views/admin/slides/order-gallery.php
CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
5 |
?>
|
6 |
|
7 |
<div class="wrap slideshow">
|
8 |
-
<h1><?php _e('Order Slides', 'slideshow-gallery'); ?><?php echo (!empty($gallery)) ? ': ' .
|
9 |
|
10 |
<div style="float:none;" class="subsubsub">
|
11 |
<a href="<?php echo $this -> url; ?>"><?php _e('← Manage All Slides', 'slideshow-gallery'); ?></a>
|
@@ -23,8 +23,8 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
23 |
<?php foreach ($slides as $slide) : ?>
|
24 |
<?php if (!$this -> Slide() -> is_expired($slide -> id)) : ?>
|
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(
|
27 |
-
<span class="gallery_slide_title"><?php echo
|
28 |
</li>
|
29 |
<?php endif; ?>
|
30 |
<?php endforeach; ?>
|
5 |
?>
|
6 |
|
7 |
<div class="wrap slideshow">
|
8 |
+
<h1><?php _e('Order Slides', 'slideshow-gallery'); ?><?php echo (!empty($gallery)) ? ': ' . esc_html($gallery -> title) : ''; ?></h1>
|
9 |
|
10 |
<div style="float:none;" class="subsubsub">
|
11 |
<a href="<?php echo $this -> url; ?>"><?php _e('← Manage All Slides', 'slideshow-gallery'); ?></a>
|
23 |
<?php foreach ($slides as $slide) : ?>
|
24 |
<?php if (!$this -> Slide() -> is_expired($slide -> id)) : ?>
|
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 esc_html($slide -> title); ?></span>
|
28 |
</li>
|
29 |
<?php endif; ?>
|
30 |
<?php endforeach; ?>
|
views/admin/slides/order.php
CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
5 |
?>
|
6 |
|
7 |
<div class="wrap slideshow">
|
8 |
-
<h1><?php _e('Order Slides', 'slideshow-gallery'); ?><?php echo (!empty($gallery)) ? ': ' .
|
9 |
|
10 |
<div style="float:none;" class="subsubsub">
|
11 |
<a href="<?php echo $this -> url; ?>"><?php _e('← Manage All Slides', 'slideshow-gallery'); ?></a>
|
@@ -24,8 +24,8 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
24 |
<?php foreach ($slides as $slide) : ?>
|
25 |
<?php if (!$this -> Slide() -> is_expired($slide -> id)) : ?>
|
26 |
<li class="gallerylineitem" id="item_<?php echo $slide -> id; ?>">
|
27 |
-
<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(
|
28 |
-
<span class="gallery_slide_title"><?php echo
|
29 |
</li>
|
30 |
<?php endif; ?>
|
31 |
<?php endforeach; ?>
|
5 |
?>
|
6 |
|
7 |
<div class="wrap slideshow">
|
8 |
+
<h1><?php _e('Order Slides', 'slideshow-gallery'); ?><?php echo (!empty($gallery)) ? ': ' . esc_html($gallery -> title) : ''; ?></h1>
|
9 |
|
10 |
<div style="float:none;" class="subsubsub">
|
11 |
<a href="<?php echo $this -> url; ?>"><?php _e('← Manage All Slides', 'slideshow-gallery'); ?></a>
|
24 |
<?php foreach ($slides as $slide) : ?>
|
25 |
<?php if (!$this -> Slide() -> is_expired($slide -> id)) : ?>
|
26 |
<li class="gallerylineitem" id="item_<?php echo $slide -> id; ?>">
|
27 |
+
<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>
|
28 |
+
<span class="gallery_slide_title"><?php echo esc_html($slide -> title); ?></span>
|
29 |
</li>
|
30 |
<?php endif; ?>
|
31 |
<?php endforeach; ?>
|
views/admin/slides/save-multiple.php
CHANGED
@@ -69,7 +69,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
69 |
<?php if ($galleries = $this -> Gallery() -> select()) : ?>
|
70 |
<label style="font-weight:bold"><input onclick="jqCheckAll(this,'','Slide[galleries]');" type="checkbox" name="checkboxall" value="checkboxall" id="checkboxall" /> <?php _e('Select All', 'slideshow-gallery'); ?></label><br/>
|
71 |
<?php foreach ($galleries as $gallery_id => $gallery_title) : ?>
|
72 |
-
<label><input <?php echo (!empty($_POST['Slide']['galleries']) && in_array($gallery_id, $_POST['Slide']['galleries'])) ? 'checked="checked"' : ''; ?> type="checkbox" name="Slide[galleries][]" value="<?php echo $gallery_id; ?>" id="Slide_galleries_<?php echo $gallery_id; ?>" /> <?php echo
|
73 |
<?php endforeach; ?>
|
74 |
<?php else : ?>
|
75 |
<span class="error"><?php _e('No galleries are available.', 'slideshow-gallery'); ?></span>
|
69 |
<?php if ($galleries = $this -> Gallery() -> select()) : ?>
|
70 |
<label style="font-weight:bold"><input onclick="jqCheckAll(this,'','Slide[galleries]');" type="checkbox" name="checkboxall" value="checkboxall" id="checkboxall" /> <?php _e('Select All', 'slideshow-gallery'); ?></label><br/>
|
71 |
<?php foreach ($galleries as $gallery_id => $gallery_title) : ?>
|
72 |
+
<label><input <?php echo (!empty($_POST['Slide']['galleries']) && in_array($gallery_id, $_POST['Slide']['galleries'])) ? 'checked="checked"' : ''; ?> type="checkbox" name="Slide[galleries][]" value="<?php echo $gallery_id; ?>" id="Slide_galleries_<?php echo $gallery_id; ?>" /> <?php echo $gallery_title; ?></label><br/>
|
73 |
<?php endforeach; ?>
|
74 |
<?php else : ?>
|
75 |
<span class="error"><?php _e('No galleries are available.', 'slideshow-gallery'); ?></span>
|
views/admin/slides/save.php
CHANGED
@@ -147,7 +147,7 @@ if ($this -> language_do()) {
|
|
147 |
<?php if ($galleries = $this -> Gallery() -> select()) : ?>
|
148 |
<label style="font-weight:bold"><input onclick="jqCheckAll(this,'','Slide[galleries]');" type="checkbox" name="checkboxall" value="checkboxall" id="checkboxall" /> <?php _e('Select All', 'slideshow-gallery'); ?></label><br/>
|
149 |
<?php foreach ($galleries as $gallery_id => $gallery_title) : ?>
|
150 |
-
<label><input <?php echo (!empty($this -> Slide() -> data -> galleries) && in_array($gallery_id, $this -> Slide() -> data -> galleries)) ? 'checked="checked"' : ''; ?> type="checkbox" name="Slide[galleries][]" value="<?php echo $gallery_id; ?>" id="Slide_galleries_<?php echo $gallery_id; ?>" /> <?php echo
|
151 |
<?php endforeach; ?>
|
152 |
<?php else : ?>
|
153 |
<span class="error"><?php _e('No galleries are available.', 'slideshow-gallery'); ?></span>
|
@@ -179,7 +179,7 @@ if ($this -> language_do()) {
|
|
179 |
<div id="Slide_mediaupload_image">
|
180 |
<!-- image goes here -->
|
181 |
<?php if (!empty($image_url)) : ?>
|
182 |
-
<a href="<?php echo $image_url; ?>" title="<?php echo
|
183 |
<?php endif; ?>
|
184 |
</div>
|
185 |
|
147 |
<?php if ($galleries = $this -> Gallery() -> select()) : ?>
|
148 |
<label style="font-weight:bold"><input onclick="jqCheckAll(this,'','Slide[galleries]');" type="checkbox" name="checkboxall" value="checkboxall" id="checkboxall" /> <?php _e('Select All', 'slideshow-gallery'); ?></label><br/>
|
149 |
<?php foreach ($galleries as $gallery_id => $gallery_title) : ?>
|
150 |
+
<label><input <?php echo (!empty($this -> Slide() -> data -> galleries) && in_array($gallery_id, $this -> Slide() -> data -> galleries)) ? 'checked="checked"' : ''; ?> type="checkbox" name="Slide[galleries][]" value="<?php echo $gallery_id; ?>" id="Slide_galleries_<?php echo $gallery_id; ?>" /> <?php echo esc_html($gallery_title); ?></label><br/>
|
151 |
<?php endforeach; ?>
|
152 |
<?php else : ?>
|
153 |
<span class="error"><?php _e('No galleries are available.', 'slideshow-gallery'); ?></span>
|
179 |
<div id="Slide_mediaupload_image">
|
180 |
<!-- image goes here -->
|
181 |
<?php if (!empty($image_url)) : ?>
|
182 |
+
<a href="<?php echo $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>
|
183 |
<?php endif; ?>
|
184 |
</div>
|
185 |
|
views/admin/tinymce-dialog.php
CHANGED
@@ -145,7 +145,7 @@ $post_types = get_post_types(array('public' => true), 'objects');
|
|
145 |
<?php if (!empty($galleries)) : ?>
|
146 |
<?php foreach ($galleries as $gallery) : ?>
|
147 |
<?php $slidescount = $wpdb -> get_var("SELECT COUNT(`id`) FROM `" . $wpdb -> prefix . "gallery_galleriesslides` WHERE `gallery_id` = '" . $gallery -> id . "'"); ?>
|
148 |
-
<option value="<?php echo $gallery -> id; ?>"><?php echo
|
149 |
<?php endforeach; ?>
|
150 |
<?php endif; ?>
|
151 |
</select>
|
145 |
<?php if (!empty($galleries)) : ?>
|
146 |
<?php foreach ($galleries as $gallery) : ?>
|
147 |
<?php $slidescount = $wpdb -> get_var("SELECT COUNT(`id`) FROM `" . $wpdb -> prefix . "gallery_galleriesslides` WHERE `gallery_id` = '" . $gallery -> id . "'"); ?>
|
148 |
+
<option value="<?php echo $gallery -> id; ?>"><?php echo esc_html($gallery -> title); ?> (<?php echo $slidescount; ?>)</option>
|
149 |
<?php endforeach; ?>
|
150 |
<?php endif; ?>
|
151 |
</select>
|
views/admin/update.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<?php if ($this -> ci_serial_valid()) : ?>
|
7 |
<?php if (!empty($update_info) && $update_info['is_valid_key'] == "1") : ?>
|
8 |
<div class="update-nag slideshow-update-nag-wrapper">
|
9 |
-
<span class="slideshow-update-nag"></span> <?php echo sprintf(
|
10 |
<?php _e('You can update automatically or download to install manually.', 'slideshow-gallery'); ?>
|
11 |
<br/><br/>
|
12 |
<a href="<?php echo $upgrade_url; ?>" title="" class="button-primary"><i class="fa fa-magic"></i> <?php _e('Update Automatically', 'slideshow-gallery'); ?></a>
|
@@ -19,7 +19,7 @@
|
|
19 |
</div>
|
20 |
<?php else : ?>
|
21 |
<div class="update-nag slideshow-update-nag-wrapper">
|
22 |
-
<span class="slideshow-update-nag"></span> <?php echo sprintf(
|
23 |
<?php _e('Unfortunately your download has expired, please renew to gain access.', 'slideshow-gallery'); ?>
|
24 |
<br/><br/>
|
25 |
<a style="color:white; text-decoration:none;" href="<?php echo $update_info['url']; ?>" target="_blank" title="" class="button button-primary"><?php _e('Renew Now', 'slideshow-gallery'); ?></a>
|
@@ -32,7 +32,7 @@
|
|
32 |
<?php endif; ?>
|
33 |
<?php else : ?>
|
34 |
<div class="update-nag slideshow-update-nag-wrapper">
|
35 |
-
<span class="slideshow-update-nag"></span> <?php echo sprintf(
|
36 |
<?php _e('You can update automatically or download to install manually.', 'slideshow-gallery'); ?>
|
37 |
<br/><br/>
|
38 |
<a href="<?php echo $upgrade_url; ?>" title="" class="button-primary"><i class="fa fa-magic"></i> <?php _e('Update Automatically', 'slideshow-gallery'); ?></a>
|
6 |
<?php if ($this -> ci_serial_valid()) : ?>
|
7 |
<?php if (!empty($update_info) && $update_info['is_valid_key'] == "1") : ?>
|
8 |
<div class="update-nag slideshow-update-nag-wrapper">
|
9 |
+
<span class="slideshow-update-nag"></span> <?php echo sprintf(esc_html__('%s plugin %s is available.', 'slideshow-gallery'), 'Slideshow Gallery', $update_info['version']); ?><br/>
|
10 |
<?php _e('You can update automatically or download to install manually.', 'slideshow-gallery'); ?>
|
11 |
<br/><br/>
|
12 |
<a href="<?php echo $upgrade_url; ?>" title="" class="button-primary"><i class="fa fa-magic"></i> <?php _e('Update Automatically', 'slideshow-gallery'); ?></a>
|
19 |
</div>
|
20 |
<?php else : ?>
|
21 |
<div class="update-nag slideshow-update-nag-wrapper">
|
22 |
+
<span class="slideshow-update-nag"></span> <?php echo sprintf(esc_html__('%s plugin %s is available.', 'slideshow-gallery'), 'Slideshow Gallery', $update_info['version']); ?><br/>
|
23 |
<?php _e('Unfortunately your download has expired, please renew to gain access.', 'slideshow-gallery'); ?>
|
24 |
<br/><br/>
|
25 |
<a style="color:white; text-decoration:none;" href="<?php echo $update_info['url']; ?>" target="_blank" title="" class="button button-primary"><?php _e('Renew Now', 'slideshow-gallery'); ?></a>
|
32 |
<?php endif; ?>
|
33 |
<?php else : ?>
|
34 |
<div class="update-nag slideshow-update-nag-wrapper">
|
35 |
+
<span class="slideshow-update-nag"></span> <?php echo sprintf(esc_html__('%s plugin %s is available.', 'slideshow-gallery'), 'Slideshow Gallery', $update_info['version']); ?><br/>
|
36 |
<?php _e('You can update automatically or download to install manually.', 'slideshow-gallery'); ?>
|
37 |
<br/><br/>
|
38 |
<a href="<?php echo $upgrade_url; ?>" title="" class="button-primary"><i class="fa fa-magic"></i> <?php _e('Update Automatically', 'slideshow-gallery'); ?></a>
|
views/default/css-generator-fn.php
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
function sg_generate_css($styles) {
|
5 |
+
|
6 |
+
//$id = sanitize_text_field($_GET['id']);
|
7 |
+
//$styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
|
8 |
+
//$styles = maybe_unserialize($styles);
|
9 |
+
|
10 |
+
$unique = $styles['unique'];
|
11 |
+
|
12 |
+
if (!empty($styles['wrapperid'])) : ?>
|
13 |
+
ul.slideshow<?php echo $unique; ?> { list-style:none !important; color:#fff; }
|
14 |
+
ul.slideshow<?php echo $unique; ?> span { display:none; }
|
15 |
+
#<?php echo $styles['wrapperid']; ?> { overflow:hidden; position:relative; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
|
16 |
+
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
17 |
+
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo $unique; ?> { position:relative; z-index:1; overflow:hidden; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; height:<?php echo ((int) $styles['height']); ?>px; clear:both; border: none; }
|
18 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : '100%'; ?>; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
|
19 |
+
#<?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; }
|
20 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
21 |
+
#<?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; }
|
22 |
+
#<?php echo $styles['wrapperid']; ?> .infotop { margin-bottom:8px !important; top:0; }
|
23 |
+
#<?php echo $styles['wrapperid']; ?> .infobottom { margin-top:8px !important; bottom:0; }
|
24 |
+
<?php if (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") : ?>
|
25 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; }
|
26 |
+
#<?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; }
|
27 |
+
<?php else : ?>
|
28 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; }
|
29 |
+
#<?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; }
|
30 |
+
<?php endif; ?>
|
31 |
+
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
32 |
+
#<?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; }
|
33 |
+
#<?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; }
|
34 |
+
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f054"; font-size:30px; color:white; visibility:visible; right:0; text-align:right; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:10px 0 0 10px; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
35 |
+
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; right:0; font-size:0px; }
|
36 |
+
#<?php echo $styles['wrapperid']; ?> #imglink<?php echo $unique; ?> { position:absolute; zoom:1; background-color:#ffffff; height:100%; <?php if (!empty($styles['shownav']) && $styles['shownav'] == "true") : ?>width:50%; left:25%; right:20%;<?php else : ?>width:100%; left:0;<?php endif; ?> z-index:149; opacity:0; filter:alpha(opacity=0); }
|
37 |
+
#<?php echo $styles['wrapperid']; ?> .linkhover:before { font-family:FontAwesome; content:"\f14c"; font-size:30px; text-align:center; height:auto; line-height:160%; width:auto; top:50%; left:auto; right:auto; margin:-30px 0 0 0; padding:0px 12px; display: inline-block; position: relative; background:black; color:white; border-radius:10px; }
|
38 |
+
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent !important; opacity:.4 !important; filter:alpha(opacity=40) !important; text-align:center; font-size:0px; }
|
39 |
+
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; }
|
40 |
+
#<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
|
41 |
+
#<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
|
42 |
+
#<?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; }
|
43 |
+
#<?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; }
|
44 |
+
#<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
|
45 |
+
#<?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; }
|
46 |
+
#<?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; }
|
47 |
+
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
|
48 |
+
#<?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; }
|
49 |
+
#<?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; }
|
50 |
+
#<?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; }
|
51 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
|
52 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
|
53 |
+
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
54 |
+
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php if (!empty($styles['thumbhideonmobile'])) : ?>
|
57 |
+
@media (max-width:480px) { .slideshow-thumbnails { display: none !important; } }
|
58 |
+
<?php endif; ?>
|
59 |
+
<?php endif;
|
60 |
+
|
61 |
+
}
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
|
66 |
+
|
67 |
+
function sg_generate_css_responsive($styles) {
|
68 |
+
|
69 |
+
//$id = sanitize_text_field($_GET['id']);
|
70 |
+
//$styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
|
71 |
+
//$styles = maybe_unserialize($styles);
|
72 |
+
|
73 |
+
$resheight = $styles['resheight'] . $styles['resheighttype'];
|
74 |
+
$sliderheight = $styles['thumbheight'] + 14;
|
75 |
+
$unique = $styles['unique'];
|
76 |
+
|
77 |
+
if (!empty($styles['wrapperid'])) : ?>
|
78 |
+
ul.slideshow<?php echo $unique; ?> { list-style:none !important; color:#fff; }
|
79 |
+
ul.slideshow<?php echo $unique; ?> span { display:none; }
|
80 |
+
#<?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; }
|
81 |
+
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
82 |
+
#<?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; }
|
83 |
+
#<?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); }
|
84 |
+
#<?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; }
|
85 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
86 |
+
#<?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; }
|
87 |
+
#<?php echo $styles['wrapperid']; ?> .infotop { margin-bottom:8px !important; top:0!important; }
|
88 |
+
#<?php echo $styles['wrapperid']; ?> .infobottom { margin-top:8px !important; bottom:0!important; }
|
89 |
+
<?php if (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") : ?>
|
90 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
91 |
+
#<?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; }
|
92 |
+
<?php else : ?>
|
93 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
94 |
+
#<?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; }
|
95 |
+
<?php endif; ?>
|
96 |
+
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
97 |
+
#<?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; }
|
98 |
+
#<?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; }
|
99 |
+
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f054"; font-size:30px; color:white; visibility:visible; right:0; text-align:right; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:10px 0 0 10px; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
100 |
+
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; right:0; font-size:0px; }
|
101 |
+
#<?php echo $styles['wrapperid']; ?> #imglink<?php echo $unique; ?> { position:absolute; zoom:1; background-color:#ffffff; height:100%; <?php if (!empty($styles['shownav']) && $styles['shownav'] == "true") : ?>width:50%; left:25%; right:20%;<?php else : ?>width:100%; left:0;<?php endif; ?> z-index:149; opacity:0; filter:alpha(opacity=0); }
|
102 |
+
#<?php echo $styles['wrapperid']; ?> .linkhover:before { font-family:FontAwesome; content:"\f14c"; font-size:30px; text-align:center; height:auto; line-height:160%; width:auto; top:50%; left:auto; right:auto; margin:-30px 0 0 0; padding:0px 12px; display: inline-block; position: relative; background:black; color:white; border-radius:10px; }
|
103 |
+
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent !important; opacity:.4 !important; filter:alpha(opacity=40) !important; text-align:center; font-size:0px; }
|
104 |
+
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; height:<?php echo $sliderheight; ?>px; width:100%; position:relative; overflow:hidden; }
|
105 |
+
#<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
|
106 |
+
#<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
|
107 |
+
#<?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; }
|
108 |
+
#<?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; }
|
109 |
+
#<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
|
110 |
+
#<?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; }
|
111 |
+
#<?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; }
|
112 |
+
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
|
113 |
+
#<?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; }
|
114 |
+
#<?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; }
|
115 |
+
#<?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; }
|
116 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
|
117 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
|
118 |
+
|
119 |
+
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
120 |
+
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
121 |
+
<?php endif; ?>
|
122 |
+
<?php if (!empty($styles['thumbhideonmobile'])) : ?>
|
123 |
+
@media (max-width:480px) { .slideshow-thumbnails { display: none !important; } }
|
124 |
+
<?php endif; ?>
|
125 |
+
<?php endif;
|
126 |
+
}
|
views/default/css-responsive.php
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$absolute_path = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
|
4 |
-
$wp_load = $absolute_path[0] . 'wp-load.php';
|
5 |
-
require_once($wp_load);
|
6 |
-
|
7 |
-
$id = sanitize_text_field($_GET['id']);
|
8 |
-
$styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
|
9 |
-
|
10 |
-
header('Content-type: text/css');
|
11 |
-
header('Cache-control: must-revalidate');
|
12 |
-
|
13 |
-
$resheight = $styles['resheight'] . $styles['resheighttype'];
|
14 |
-
$sliderheight = $styles['thumbheight'] + 14;
|
15 |
-
$unique = $styles['unique'];
|
16 |
-
|
17 |
-
?>
|
18 |
-
<?php if (!empty($styles['wrapperid'])) : ?>
|
19 |
-
ul.slideshow<?php echo $unique; ?> { list-style:none !important; color:#fff; }
|
20 |
-
ul.slideshow<?php echo $unique; ?> span { display:none; }
|
21 |
-
#<?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; }
|
22 |
-
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
23 |
-
#<?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; }
|
24 |
-
#<?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); }
|
25 |
-
#<?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; }
|
26 |
-
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
27 |
-
#<?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; }
|
28 |
-
#<?php echo $styles['wrapperid']; ?> .infotop { margin-bottom:8px !important; top:0!important; }
|
29 |
-
#<?php echo $styles['wrapperid']; ?> .infobottom { margin-top:8px !important; bottom:0!important; }
|
30 |
-
<?php if (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") : ?>
|
31 |
-
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
32 |
-
#<?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; }
|
33 |
-
<?php else : ?>
|
34 |
-
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
35 |
-
#<?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; }
|
36 |
-
<?php endif; ?>
|
37 |
-
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
38 |
-
#<?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; }
|
39 |
-
#<?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; }
|
40 |
-
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f054"; font-size:30px; color:white; visibility:visible; right:0; text-align:right; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:10px 0 0 10px; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
41 |
-
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; right:0; font-size:0px; }
|
42 |
-
#<?php echo $styles['wrapperid']; ?> #imglink<?php echo $unique; ?> { position:absolute; zoom:1; background-color:#ffffff; height:100%; <?php if (!empty($styles['shownav']) && $styles['shownav'] == "true") : ?>width:50%; left:25%; right:20%;<?php else : ?>width:100%; left:0;<?php endif; ?> z-index:149; opacity:0; filter:alpha(opacity=0); }
|
43 |
-
#<?php echo $styles['wrapperid']; ?> .linkhover:before { font-family:FontAwesome; content:"\f14c"; font-size:30px; text-align:center; height:auto; line-height:160%; width:auto; top:50%; left:auto; right:auto; margin:-30px 0 0 0; padding:0px 12px; display: inline-block; position: relative; background:black; color:white; border-radius:10px; }
|
44 |
-
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent !important; opacity:.4 !important; filter:alpha(opacity=40) !important; text-align:center; font-size:0px; }
|
45 |
-
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; height:<?php echo $sliderheight; ?>px; width:100%; position:relative; overflow:hidden; }
|
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 |
-
|
60 |
-
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
61 |
-
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
62 |
-
<?php endif; ?>
|
63 |
-
<?php if (!empty($styles['thumbhideonmobile'])) : ?>
|
64 |
-
@media (max-width:480px) { .slideshow-thumbnails { display: none !important; } }
|
65 |
-
<?php endif; ?>
|
66 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/default/css.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$absolute_path = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
|
4 |
-
$wp_load = $absolute_path[0] . 'wp-load.php';
|
5 |
-
require_once($wp_load);
|
6 |
-
|
7 |
-
$id = sanitize_text_field($_GET['id']);
|
8 |
-
$styles = maybe_unserialize(get_transient('slideshow-css-' . $id));
|
9 |
-
|
10 |
-
header('Content-type: text/css');
|
11 |
-
header('Cache-control: must-revalidate');
|
12 |
-
|
13 |
-
$unique = $styles['unique'];
|
14 |
-
|
15 |
-
?>
|
16 |
-
|
17 |
-
<?php if (!empty($styles['wrapperid'])) : ?>
|
18 |
-
ul.slideshow<?php echo $unique; ?> { list-style:none !important; color:#fff; }
|
19 |
-
ul.slideshow<?php echo $unique; ?> span { display:none; }
|
20 |
-
#<?php echo $styles['wrapperid']; ?> { overflow:hidden; position:relative; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
|
21 |
-
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
22 |
-
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo $unique; ?> { position:relative; z-index:1; overflow:hidden; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; height:<?php echo ((int) $styles['height']); ?>px; clear:both; border: none; }
|
23 |
-
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : '100%'; ?>; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
|
24 |
-
#<?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; }
|
25 |
-
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> a { color:<?php echo $styles['infocolor']; ?>; }
|
26 |
-
#<?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; }
|
27 |
-
#<?php echo $styles['wrapperid']; ?> .infotop { margin-bottom:8px !important; top:0; }
|
28 |
-
#<?php echo $styles['wrapperid']; ?> .infobottom { margin-top:8px !important; bottom:0; }
|
29 |
-
<?php if (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") : ?>
|
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; height:auto; max-width:100%; margin:0 auto; display:block; }
|
32 |
-
<?php else : ?>
|
33 |
-
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; }
|
34 |
-
#<?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; }
|
35 |
-
<?php endif; ?>
|
36 |
-
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
37 |
-
#<?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; }
|
38 |
-
#<?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; }
|
39 |
-
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?>:before { font-family:FontAwesome; content:"\f054"; font-size:30px; color:white; visibility:visible; right:0; text-align:right; width: auto; height:auto; line-height:160%; top:50%; margin:-30px 0 0 0; border-radius:10px 0 0 10px; background:black; padding:3px 10px 0 10px; position: absolute; display: inline-block; }
|
40 |
-
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { display:none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; right:0; font-size:0px; }
|
41 |
-
#<?php echo $styles['wrapperid']; ?> #imglink<?php echo $unique; ?> { position:absolute; zoom:1; background-color:#ffffff; height:100%; <?php if (!empty($styles['shownav']) && $styles['shownav'] == "true") : ?>width:50%; left:25%; right:20%;<?php else : ?>width:100%; left:0;<?php endif; ?> z-index:149; opacity:0; filter:alpha(opacity=0); }
|
42 |
-
#<?php echo $styles['wrapperid']; ?> .linkhover:before { font-family:FontAwesome; content:"\f14c"; font-size:30px; text-align:center; height:auto; line-height:160%; width:auto; top:50%; left:auto; right:auto; margin:-30px 0 0 0; padding:0px 12px; display: inline-block; position: relative; background:black; color:white; border-radius:10px; }
|
43 |
-
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent !important; opacity:.4 !important; filter:alpha(opacity=40) !important; text-align:center; font-size:0px; }
|
44 |
-
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; }
|
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'])) : ?>
|
59 |
-
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
60 |
-
<?php endif; ?>
|
61 |
-
<?php if (!empty($styles['thumbhideonmobile'])) : ?>
|
62 |
-
@media (max-width:480px) { .slideshow-thumbnails { display: none !important; } }
|
63 |
-
<?php endif; ?>
|
64 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/default/gallery.php
CHANGED
@@ -7,16 +7,16 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
7 |
?>
|
8 |
|
9 |
<?php if (isset($slides) && !empty($slides)) : ?>
|
10 |
-
<ul id="slideshow<?php echo $unique; ?>" class="slideshow<?php echo $unique; ?>" style="display:none;">
|
11 |
<?php if ($frompost) : ?>
|
12 |
<!-- From a WordPress post/page -->
|
13 |
<?php foreach ($slides as $slide) : ?>
|
14 |
<?php setup_postdata($slide -> ID); ?>
|
15 |
<li>
|
16 |
<?php if (empty($options['infoheadingcontent']) || $options['infoheadingcontent'] == "title") : ?>
|
17 |
-
<h3 style="opacity:70;"><?php echo
|
18 |
<?php else : ?>
|
19 |
-
<h3 style="opacity:70;"><?php echo
|
20 |
<?php endif; ?>
|
21 |
<?php
|
22 |
|
@@ -25,15 +25,15 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
25 |
|
26 |
?>
|
27 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
28 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
29 |
<?php else : ?>
|
30 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
31 |
<?php endif; ?>
|
32 |
-
<p><?php echo
|
33 |
<?php $thumbnail_link = wp_get_attachment_image_src($slide -> ID, array($options['width'], $options['height']), false); ?>
|
34 |
-
<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
|
35 |
<?php if ($options['showthumbs'] == "true") : ?>
|
36 |
-
<img class="skip-lazy" src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(
|
37 |
<?php endif; ?>
|
38 |
</a>
|
39 |
</li>
|
@@ -50,24 +50,24 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
50 |
|
51 |
?>
|
52 |
<li>
|
53 |
-
<h3 style="opacity:70;"><a target="_self" href="<?php echo get_permalink($slide -> ID); ?>"><?php echo wp_unslash(
|
54 |
<?php $full_image_href = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'full', false); ?>
|
55 |
<?php $full_image_url = wp_get_attachment_url(get_post_thumbnail_id($slide -> ID)); ?>
|
56 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
57 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
58 |
<?php else : ?>
|
59 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
60 |
<?php endif; ?>
|
61 |
-
<p><?php echo
|
62 |
<?php $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'thumbnail', false); ?>
|
63 |
<?php if ($options['showthumbs'] == "true") : ?>
|
64 |
<?php if (!empty($slide -> guid)) : ?>
|
65 |
-
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr(
|
66 |
<?php else : ?>
|
67 |
-
<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 class="skip-lazy" src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(
|
68 |
<?php endif; ?>
|
69 |
<?php else : ?>
|
70 |
-
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo
|
71 |
<?php endif; ?>
|
72 |
</li>
|
73 |
<?php wp_reset_postdata(); ?>
|
@@ -76,21 +76,21 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
76 |
<!-- Shopping Cart plugin products https://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin -->
|
77 |
<?php foreach ($slides as $slide) : ?>
|
78 |
<li>
|
79 |
-
<h3 style="opacity:70;"><?php echo wp_unslash(
|
80 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
81 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
82 |
<?php else : ?>
|
83 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
84 |
<?php endif; ?>
|
85 |
-
<p><?php echo substr(wp_unslash(
|
86 |
<?php if ($options['showthumbs'] == "true") : ?>
|
87 |
<?php if (!empty($slide -> post_id)) : ?>
|
88 |
-
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr(
|
89 |
<?php else : ?>
|
90 |
-
<a><img class="skip-lazy" src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(
|
91 |
<?php endif; ?>
|
92 |
<?php else : ?>
|
93 |
-
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr(
|
94 |
<?php endif; ?>
|
95 |
</li>
|
96 |
<?php endforeach; ?>
|
@@ -98,26 +98,26 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
98 |
<!-- From all slides or gallery slides -->
|
99 |
<?php foreach ($slides as $slide) : ?>
|
100 |
<li>
|
101 |
-
<h3 style="opacity:<?php echo (!empty($slide -> iopacity)) ? ($slide -> iopacity) : 70; ?>;"><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "title")) ?
|
102 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
103 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
104 |
<?php else : ?>
|
105 |
-
<span data-alt="<?php echo $this -> Html() -> sanitize(
|
106 |
<?php endif; ?>
|
107 |
-
<p><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "description")) ?
|
108 |
<?php if ($options['showthumbs'] == "true") : ?>
|
109 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
110 |
-
<a href="<?php echo
|
111 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
112 |
-
<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
|
113 |
<?php else : ?>
|
114 |
-
<a><img class="skip-lazy" src="<?php echo $this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(
|
115 |
<?php endif; ?>
|
116 |
<?php else : ?>
|
117 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
118 |
-
<a href="<?php echo
|
119 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
120 |
-
<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
|
121 |
<?php else : ?>
|
122 |
<a></a>
|
123 |
<?php endif; ?>
|
@@ -129,41 +129,41 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
129 |
|
130 |
<div id="<?php echo $wrapperid; ?>" class="slideshow-wrapper">
|
131 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "top" && count($slides) > 1) : ?>
|
132 |
-
<div id="thumbnails<?php echo $unique; ?>" class="slideshow-thumbnails thumbstop">
|
133 |
-
<div class="slideshow-slideleft" id="slideleft<?php echo $unique; ?>" title="<?php _e('Slide Left', 'slideshow-gallery'); ?>"></div>
|
134 |
-
<div class="slideshow-slidearea" id="slidearea<?php echo $unique; ?>">
|
135 |
-
<div class="slideshow-slider" id="slider<?php echo $unique; ?>"></div>
|
136 |
</div>
|
137 |
-
<div class="slideshow-slideright" id="slideright<?php echo $unique; ?>" title="<?php _e('Slide Right', 'slideshow-gallery'); ?>"></div>
|
138 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
139 |
</div>
|
140 |
<?php endif; ?>
|
141 |
|
142 |
-
<div class="slideshow-fullsize" id="fullsize<?php echo $unique; ?>">
|
143 |
<?php $navb = false; $navf = false; ?>
|
144 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
145 |
<?php $navb = "imgprev"; ?>
|
146 |
-
<div id="imgprev<?php echo $unique; ?>" class="slideshow-imgprev imgnav" title="<?php _e('Previous Image', 'slideshow-gallery'); ?>"><?php _e('Previous Image', 'slideshow-gallery'); ?></div>
|
147 |
<?php endif; ?>
|
148 |
-
<a id="imglink<?php echo $unique; ?>" class="slideshow-imglink imglink"><!-- link --></a>
|
149 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
150 |
<?php $navf = "imgnext"; ?>
|
151 |
-
<div id="imgnext<?php echo $unique; ?>" class="slideshow-imgnext imgnav" title="<?php _e('Next Image', 'slideshow-gallery'); ?>"><?php _e('Next Image', 'slideshow-gallery'); ?></div>
|
152 |
<?php endif; ?>
|
153 |
-
<div id="image<?php echo $unique; ?>" class="slideshow-image"></div>
|
154 |
-
<div class="slideshow-information info<?php echo $options['infoposition']; ?>" id="information<?php echo $unique; ?>">
|
155 |
<h3 class="slideshow-info-heading"><?php _e('info heading', 'slideshow-gallery'); ?></h3>
|
156 |
<p class="slideshow-info-content"><?php _e('info content', 'slideshow-gallery'); ?></p>
|
157 |
</div>
|
158 |
</div>
|
159 |
|
160 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "bottom" && count($slides) > 1) : ?>
|
161 |
-
<div id="thumbnails<?php echo $unique; ?>" class="slideshow-thumbnails thumbsbot">
|
162 |
-
<div class="slideshow-slideleft" id="slideleft<?php echo $unique; ?>" title="<?php _e('Slide Left', 'slideshow-gallery'); ?>"></div>
|
163 |
-
<div class="slideshow-slidearea" id="slidearea<?php echo $unique; ?>">
|
164 |
-
<div class="slideshow-slider" id="slider<?php echo $unique; ?>"></div>
|
165 |
</div>
|
166 |
-
<div class="slideshow-slideright" id="slideright<?php echo $unique; ?>" title="<?php _e('Slide Right', 'slideshow-gallery'); ?>"></div>
|
167 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
168 |
</div>
|
169 |
<?php endif; ?>
|
@@ -173,53 +173,53 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
173 |
|
174 |
<script type="text/javascript">
|
175 |
jQuery.noConflict();
|
176 |
-
tid('slideshow<?php echo $unique; ?>').style.display = "none";
|
177 |
tid('<?php echo $wrapperid; ?>').style.display = 'block';
|
178 |
tid('<?php echo $wrapperid; ?>').style.visibility = 'hidden';
|
179 |
-
jQuery("#fullsize<?php echo $unique; ?>").append('<div id="spinner<?php echo $unique; ?>"><i class="fa fa-cog fa-spin"></i></div>');
|
180 |
-
tid('spinner<?php echo $unique; ?>').style.visibility = 'visible';
|
181 |
|
182 |
-
var slideshow<?php echo $unique; ?> = new TINY.slideshow("slideshow<?php echo $unique; ?>");
|
183 |
jQuery(document).ready(function() {
|
184 |
-
<?php if (empty($options['auto']) || (!empty($options['auto']) && $options['auto'] == "true")) : ?>slideshow<?php echo $unique; ?>.auto = true;<?php else : ?>slideshow<?php echo $unique; ?>.auto = false;<?php endif; ?>
|
185 |
-
slideshow<?php echo $unique; ?>.speed = <?php echo $options['autospeed']; ?>;
|
186 |
-
slideshow<?php echo $unique; ?>.effect = "<?php echo $options['effect']; ?>";
|
187 |
-
slideshow<?php echo $unique; ?>.slide_direction = "<?php echo $options['slide_direction']; ?>";
|
188 |
-
slideshow<?php echo $unique; ?>.easing = "<?php echo $options['easing']; ?>";
|
189 |
-
slideshow<?php echo $unique; ?>.alwaysauto = <?php echo $options['alwaysauto']; ?>;
|
190 |
-
slideshow<?php echo $unique; ?>.autoheight = <?php echo $options['autoheight']; ?>;
|
191 |
-
slideshow<?php echo $unique; ?>.autoheight_max = <?php echo (empty($options['autoheight_max'])) ? "false" : $options['autoheight_max']; ?>;
|
192 |
-
slideshow<?php echo $unique; ?>.imgSpeed = <?php echo $options['fadespeed']; ?>;
|
193 |
-
slideshow<?php echo $unique; ?>.navOpacity = <?php echo (empty($options['navopacity'])) ? 0 : $options['navopacity']; ?>;
|
194 |
-
slideshow<?php echo $unique; ?>.navHover = <?php echo (empty($options['navhoveropacity'])) ? 0 : $options['navhoveropacity']; ?>;
|
195 |
-
slideshow<?php echo $unique; ?>.letterbox = "#000000";
|
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; ?>.infoonhover = <?php echo (empty($options['infoonhover'])) ? 0 : $options['infoonhover']; ?>;
|
200 |
-
slideshow<?php echo $unique; ?>.infoSpeed = <?php echo $options['infospeed']; ?>;
|
201 |
-
slideshow<?php echo $unique; ?>.infodelay = <?php echo (empty($options['infodelay'])) ? 0 : $options['infodelay']; ?>;
|
202 |
-
slideshow<?php echo $unique; ?>.infofade = <?php echo (empty($options['infofade'])) ? 0 : $options['infofade']; ?>;
|
203 |
-
slideshow<?php echo $unique; ?>.infofadedelay = <?php echo (empty($options['infofadedelay'])) ? 0 : $options['infofadedelay']; ?>;
|
204 |
-
slideshow<?php echo $unique; ?>.thumbs = "<?php echo ($options['showthumbs'] == "true" && count($slides) > 1) ? 'slider' . $unique : ''; ?>";
|
205 |
-
slideshow<?php echo $unique; ?>.thumbOpacity = <?php echo (empty($thumbopacity)) ? 0 : $thumbopacity; ?>;
|
206 |
-
slideshow<?php echo $unique; ?>.left = "slideleft<?php echo $unique; ?>";
|
207 |
-
slideshow<?php echo $unique; ?>.right = "slideright<?php echo $unique; ?>";
|
208 |
-
slideshow<?php echo $unique; ?>.scrollSpeed = <?php echo $options['thumbsspeed']; ?>;
|
209 |
-
slideshow<?php echo $unique; ?>.spacing = <?php echo (empty($options['thumbsspacing'])) ? '0' : $options['thumbsspacing']; ?>;
|
210 |
-
slideshow<?php echo $unique; ?>.active = "<?php echo $options['thumbsborder']; ?>";
|
211 |
-
slideshow<?php echo $unique; ?>.imagesthickbox = "<?php echo $options['imagesoverlay']; ?>";
|
212 |
-
jQuery("#spinner<?php echo $unique; ?>").remove();
|
213 |
-
slideshow<?php echo $unique; ?>.init("slideshow<?php echo $unique; ?>","image<?php echo $unique; ?>","<?php echo (!empty($options['shownav']) && count($slides) > 1 && $options['shownav'] == "true") ? $navb . $unique : ''; ?>","<?php echo (!empty($options['shownav']) && count($slides) > 1 && $options['shownav'] == "true") ? $navf . $unique : ''; ?>","imglink<?php echo $unique; ?>");
|
214 |
tid('<?php echo $wrapperid; ?>').style.visibility = 'visible';
|
215 |
jQuery(window).trigger('resize');
|
216 |
|
217 |
<?php if ($this -> ci_serial_valid()) : ?>
|
218 |
-
slideshow<?php echo $unique; ?>.touch(tid('fullsize<?php echo $unique; ?>'));
|
219 |
|
220 |
<?php if ($options['showthumbs'] == "true" && count($slides) > 1) : ?>
|
221 |
-
var touchslidesurface = tid('slider<?php echo $unique; ?>');
|
222 |
-
slideshow<?php echo $unique; ?>.touchslide(touchslidesurface);
|
223 |
<?php endif; ?>
|
224 |
<?php endif; ?>
|
225 |
});
|
@@ -229,7 +229,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
229 |
var width = jQuery('#<?php echo $wrapperid; ?>').width();
|
230 |
var resheight = <?php echo $options['resheight']; ?>;
|
231 |
var height = Math.round(((resheight / 100) * width));
|
232 |
-
jQuery('#fullsize<?php echo $unique; ?>').height(height);
|
233 |
});
|
234 |
<?php endif; ?>
|
235 |
</script>
|
@@ -252,12 +252,10 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
252 |
global $slideshow_javascript;
|
253 |
$slideshow_javascript[] = $javascript;
|
254 |
|
255 |
-
ob_start();
|
256 |
-
|
257 |
?>
|
258 |
|
259 |
-
<link rel="stylesheet" property="stylesheet" href="<?php echo $this -> get_css_url($cssattr, $options['layout']); ?>" type="text/css" media="all" />
|
260 |
-
|
261 |
<!--[if IE 6]>
|
262 |
<style type="text/css">
|
263 |
.imglink, #imglink { display: none !important; }
|
@@ -267,19 +265,19 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
267 |
|
268 |
<?php
|
269 |
|
270 |
-
|
271 |
-
|
272 |
global $slideshow_css;
|
273 |
$slideshow_css[] = $css;
|
274 |
|
275 |
$jsoutput = $this -> get_option('jsoutput');
|
276 |
if (empty($jsoutput) || $jsoutput == "perslideshow") {
|
277 |
echo '<!-- Slideshow Gallery Javascript BEG -->';
|
278 |
-
echo
|
279 |
echo '<!-- Slideshow Gallery Javascript END -->';
|
280 |
|
281 |
echo '<!-- Slideshow Gallery CSS BEG -->';
|
282 |
-
echo
|
283 |
echo '<!-- Slideshow Gallery CSS END -->';
|
284 |
}
|
285 |
|
7 |
?>
|
8 |
|
9 |
<?php if (isset($slides) && !empty($slides)) : ?>
|
10 |
+
<ul id="slideshow<?php echo esc_html($unique); ?>" class="slideshow<?php echo esc_html($unique); ?>" style="display:none;">
|
11 |
<?php if ($frompost) : ?>
|
12 |
<!-- From a WordPress post/page -->
|
13 |
<?php foreach ($slides as $slide) : ?>
|
14 |
<?php setup_postdata($slide -> ID); ?>
|
15 |
<li>
|
16 |
<?php if (empty($options['infoheadingcontent']) || $options['infoheadingcontent'] == "title") : ?>
|
17 |
+
<h3 style="opacity:70;"><?php echo esc_html($slide -> post_title); ?></h3>
|
18 |
<?php else : ?>
|
19 |
+
<h3 style="opacity:70;"><?php echo esc_html($slide -> post_excerpt); ?></h3>
|
20 |
<?php endif; ?>
|
21 |
<?php
|
22 |
|
25 |
|
26 |
?>
|
27 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
28 |
+
<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>
|
29 |
<?php else : ?>
|
30 |
+
<span data-alt="<?php echo $this -> Html() -> sanitize($slide -> post_title); ?>"><?php echo $full_image_href[0]; ?></span>
|
31 |
<?php endif; ?>
|
32 |
+
<p><?php echo esc_html(get_the_excerpt()); ?></p>
|
33 |
<?php $thumbnail_link = wp_get_attachment_image_src($slide -> ID, array($options['width'], $options['height']), false); ?>
|
34 |
+
<a href="<?php echo $full_image_url; ?>" id="<?php echo esc_html($unique); ?>imglink<?php echo $slide -> ID; ?>" <?php if ($this -> Html -> is_image($full_image_url)) : ?>class="colorboxslideshow<?php echo esc_html($unique); ?>" data-rel="slideshowgroup<?php echo esc_html($unique); ?>"<?php endif; ?> title="<?php echo esc_attr($slide -> post_title); ?>">
|
35 |
<?php if ($options['showthumbs'] == "true") : ?>
|
36 |
+
<img class="skip-lazy" 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); ?>" />
|
37 |
<?php endif; ?>
|
38 |
</a>
|
39 |
</li>
|
50 |
|
51 |
?>
|
52 |
<li>
|
53 |
+
<h3 style="opacity:70;"><a target="_self" href="<?php echo get_permalink($slide -> ID); ?>"><?php echo wp_unslash(esc_html($slide -> post_title)); ?></a></h3>
|
54 |
<?php $full_image_href = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'full', false); ?>
|
55 |
<?php $full_image_url = wp_get_attachment_url(get_post_thumbnail_id($slide -> ID)); ?>
|
56 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
57 |
+
<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>
|
58 |
<?php else : ?>
|
59 |
+
<span data-alt="<?php echo $this -> Html() -> sanitize($slide -> post_title); ?>"><?php echo $full_image_href[0]; ?></span>
|
60 |
<?php endif; ?>
|
61 |
+
<p><?php echo esc_html(get_the_excerpt()); ?></p>
|
62 |
<?php $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'thumbnail', false); ?>
|
63 |
<?php if ($options['showthumbs'] == "true") : ?>
|
64 |
<?php if (!empty($slide -> guid)) : ?>
|
65 |
+
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"><img class="skip-lazy" 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>
|
66 |
<?php else : ?>
|
67 |
+
<a id="<?php echo esc_html($unique); ?>imglink<?php echo $slide -> ID; ?>" <?php if ($this -> Html -> is_image($full_image_url)) : ?>class="colorboxslideshow<?php echo esc_html($unique); ?>" data-rel="slideshowgroup<?php echo esc_html($unique); ?>"<?php endif; ?>><img class="skip-lazy" 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>
|
68 |
<?php endif; ?>
|
69 |
<?php else : ?>
|
70 |
+
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"></a>
|
71 |
<?php endif; ?>
|
72 |
</li>
|
73 |
<?php wp_reset_postdata(); ?>
|
76 |
<!-- Shopping Cart plugin products https://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin -->
|
77 |
<?php foreach ($slides as $slide) : ?>
|
78 |
<li>
|
79 |
+
<h3 style="opacity:70;"><?php echo wp_unslash(esc_html($slide -> title)); ?></h3>
|
80 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
81 |
+
<span data-alt="<?php echo $this -> Html() -> sanitize($slide -> title); ?>"><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
|
82 |
<?php else : ?>
|
83 |
+
<span data-alt="<?php echo $this -> Html() -> sanitize($slide -> title); ?>"><?php echo site_url() . '/' . $slide -> image_url; ?></span>
|
84 |
<?php endif; ?>
|
85 |
+
<p><?php echo substr(wp_unslash(esc_html($slide -> description)), 0, 255); ?></p>
|
86 |
<?php if ($options['showthumbs'] == "true") : ?>
|
87 |
<?php if (!empty($slide -> post_id)) : ?>
|
88 |
+
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr($slide -> title); ?>"><img class="skip-lazy" 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>
|
89 |
<?php else : ?>
|
90 |
+
<a><img class="skip-lazy" 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>
|
91 |
<?php endif; ?>
|
92 |
<?php else : ?>
|
93 |
+
<a href="<?php echo get_permalink($slide -> post_id); ?>" target="_self" title="<?php echo esc_attr($slide -> title); ?>"></a>
|
94 |
<?php endif; ?>
|
95 |
</li>
|
96 |
<?php endforeach; ?>
|
98 |
<!-- From all slides or gallery slides -->
|
99 |
<?php foreach ($slides as $slide) : ?>
|
100 |
<li>
|
101 |
+
<h3 style="opacity:<?php echo (!empty($slide -> iopacity)) ? ($slide -> iopacity) : 70; ?>;"><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "title")) ? esc_html($slide -> title) : ''; ?></h3>
|
102 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
103 |
+
<span data-alt="<?php echo $this -> Html() -> sanitize($slide -> title); ?>"><?php echo $this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100); ?></span>
|
104 |
<?php else : ?>
|
105 |
+
<span data-alt="<?php echo $this -> Html() -> sanitize($slide -> title); ?>"><?php echo $slide -> image_path; ?></span>
|
106 |
<?php endif; ?>
|
107 |
+
<p><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "description")) ? esc_html($slide -> description) : ''; ?></p>
|
108 |
<?php if ($options['showthumbs'] == "true") : ?>
|
109 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
110 |
+
<a href="<?php echo esc_url($slide -> link); ?>" title="<?php echo esc_attr($slide -> title); ?>" target="_<?php echo $slide -> linktarget; ?>"><img class="skip-lazy" 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>
|
111 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
112 |
+
<a href="<?php echo $slide -> image_path; ?>" id="<?php echo esc_html($unique); ?>imglink<?php echo $slide -> id; ?>" <?php if ($this -> Html -> is_image($slide -> image_path)) : ?>class="colorboxslideshow<?php echo esc_html($unique); ?>" data-rel="slideshowgroup<?php echo esc_html($unique); ?>"<?php endif; ?> target="_<?php echo $slide -> linktarget; ?>" title="<?php echo esc_attr($slide -> title); ?>"><img class="skip-lazy" 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>
|
113 |
<?php else : ?>
|
114 |
+
<a><img class="skip-lazy" 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>
|
115 |
<?php endif; ?>
|
116 |
<?php else : ?>
|
117 |
<?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
|
118 |
+
<a href="<?php echo esc_url($slide -> link); ?>" target="_<?php echo $slide -> linktarget; ?>" title="<?php echo esc_attr($slide -> title); ?>"></a>
|
119 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
120 |
+
<a href="<?php echo $slide -> image_path; ?>" id="<?php echo esc_html($unique); ?>imglink<?php echo $slide -> id; ?>" <?php if ($this -> Html -> is_image($slide -> image_path)) : ?>class="colorboxslideshow<?php echo esc_html($unique); ?>" data-rel="slideshowgroup<?php echo esc_html($unique); ?>"<?php endif; ?> target="_<?php echo $slide -> linktarget; ?>" title="<?php echo esc_attr($slide -> title); ?>"></a>
|
121 |
<?php else : ?>
|
122 |
<a></a>
|
123 |
<?php endif; ?>
|
129 |
|
130 |
<div id="<?php echo $wrapperid; ?>" class="slideshow-wrapper">
|
131 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "top" && count($slides) > 1) : ?>
|
132 |
+
<div id="thumbnails<?php echo esc_html($unique); ?>" class="slideshow-thumbnails thumbstop">
|
133 |
+
<div class="slideshow-slideleft" id="slideleft<?php echo esc_html($unique); ?>" title="<?php _e('Slide Left', 'slideshow-gallery'); ?>"></div>
|
134 |
+
<div class="slideshow-slidearea" id="slidearea<?php echo esc_html($unique); ?>">
|
135 |
+
<div class="slideshow-slider" id="slider<?php echo esc_html($unique); ?>"></div>
|
136 |
</div>
|
137 |
+
<div class="slideshow-slideright" id="slideright<?php echo esc_html($unique); ?>" title="<?php _e('Slide Right', 'slideshow-gallery'); ?>"></div>
|
138 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
139 |
</div>
|
140 |
<?php endif; ?>
|
141 |
|
142 |
+
<div class="slideshow-fullsize" id="fullsize<?php echo esc_html($unique); ?>">
|
143 |
<?php $navb = false; $navf = false; ?>
|
144 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
145 |
<?php $navb = "imgprev"; ?>
|
146 |
+
<div id="imgprev<?php echo esc_html($unique); ?>" class="slideshow-imgprev imgnav" title="<?php _e('Previous Image', 'slideshow-gallery'); ?>"><?php _e('Previous Image', 'slideshow-gallery'); ?></div>
|
147 |
<?php endif; ?>
|
148 |
+
<a id="imglink<?php echo esc_html($unique); ?>" class="slideshow-imglink imglink"><!-- link --></a>
|
149 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
150 |
<?php $navf = "imgnext"; ?>
|
151 |
+
<div id="imgnext<?php echo esc_html($unique); ?>" class="slideshow-imgnext imgnav" title="<?php _e('Next Image', 'slideshow-gallery'); ?>"><?php _e('Next Image', 'slideshow-gallery'); ?></div>
|
152 |
<?php endif; ?>
|
153 |
+
<div id="image<?php echo esc_html($unique); ?>" class="slideshow-image"></div>
|
154 |
+
<div class="slideshow-information info<?php echo $options['infoposition']; ?>" id="information<?php echo esc_html($unique); ?>">
|
155 |
<h3 class="slideshow-info-heading"><?php _e('info heading', 'slideshow-gallery'); ?></h3>
|
156 |
<p class="slideshow-info-content"><?php _e('info content', 'slideshow-gallery'); ?></p>
|
157 |
</div>
|
158 |
</div>
|
159 |
|
160 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "bottom" && count($slides) > 1) : ?>
|
161 |
+
<div id="thumbnails<?php echo esc_html($unique); ?>" class="slideshow-thumbnails thumbsbot">
|
162 |
+
<div class="slideshow-slideleft" id="slideleft<?php echo esc_html($unique); ?>" title="<?php _e('Slide Left', 'slideshow-gallery'); ?>"></div>
|
163 |
+
<div class="slideshow-slidearea" id="slidearea<?php echo esc_html($unique); ?>">
|
164 |
+
<div class="slideshow-slider" id="slider<?php echo esc_html($unique); ?>"></div>
|
165 |
</div>
|
166 |
+
<div class="slideshow-slideright" id="slideright<?php echo esc_html($unique); ?>" title="<?php _e('Slide Right', 'slideshow-gallery'); ?>"></div>
|
167 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
168 |
</div>
|
169 |
<?php endif; ?>
|
173 |
|
174 |
<script type="text/javascript">
|
175 |
jQuery.noConflict();
|
176 |
+
tid('slideshow<?php echo esc_html($unique); ?>').style.display = "none";
|
177 |
tid('<?php echo $wrapperid; ?>').style.display = 'block';
|
178 |
tid('<?php echo $wrapperid; ?>').style.visibility = 'hidden';
|
179 |
+
jQuery("#fullsize<?php echo esc_html($unique); ?>").append('<div id="spinner<?php echo esc_html($unique); ?>"><i class="fa fa-cog fa-spin"></i></div>');
|
180 |
+
tid('spinner<?php echo esc_html($unique); ?>').style.visibility = 'visible';
|
181 |
|
182 |
+
var slideshow<?php echo esc_html($unique); ?> = new TINY.slideshow("slideshow<?php echo esc_html($unique); ?>");
|
183 |
jQuery(document).ready(function() {
|
184 |
+
<?php if (empty($options['auto']) || (!empty($options['auto']) && $options['auto'] == "true")) : ?>slideshow<?php echo esc_html($unique); ?>.auto = true;<?php else : ?>slideshow<?php echo esc_html($unique); ?>.auto = false;<?php endif; ?>
|
185 |
+
slideshow<?php echo esc_html($unique); ?>.speed = <?php echo $options['autospeed']; ?>;
|
186 |
+
slideshow<?php echo esc_html($unique); ?>.effect = "<?php echo $options['effect']; ?>";
|
187 |
+
slideshow<?php echo esc_html($unique); ?>.slide_direction = "<?php echo $options['slide_direction']; ?>";
|
188 |
+
slideshow<?php echo esc_html($unique); ?>.easing = "<?php echo $options['easing']; ?>";
|
189 |
+
slideshow<?php echo esc_html($unique); ?>.alwaysauto = <?php echo $options['alwaysauto']; ?>;
|
190 |
+
slideshow<?php echo esc_html($unique); ?>.autoheight = <?php echo $options['autoheight']; ?>;
|
191 |
+
slideshow<?php echo esc_html($unique); ?>.autoheight_max = <?php echo (empty($options['autoheight_max'])) ? "false" : $options['autoheight_max']; ?>;
|
192 |
+
slideshow<?php echo esc_html($unique); ?>.imgSpeed = <?php echo $options['fadespeed']; ?>;
|
193 |
+
slideshow<?php echo esc_html($unique); ?>.navOpacity = <?php echo (empty($options['navopacity'])) ? 0 : $options['navopacity']; ?>;
|
194 |
+
slideshow<?php echo esc_html($unique); ?>.navHover = <?php echo (empty($options['navhoveropacity'])) ? 0 : $options['navhoveropacity']; ?>;
|
195 |
+
slideshow<?php echo esc_html($unique); ?>.letterbox = "#000000";
|
196 |
+
slideshow<?php echo esc_html($unique); ?>.linkclass = "linkhover";
|
197 |
+
slideshow<?php echo esc_html($unique); ?>.imagesid = "images<?php echo esc_html($unique); ?>";
|
198 |
+
slideshow<?php echo esc_html($unique); ?>.info = "<?php echo ($options['showinfo'] == "true") ? 'information' . $unique : ''; ?>";
|
199 |
+
slideshow<?php echo esc_html($unique); ?>.infoonhover = <?php echo (empty($options['infoonhover'])) ? 0 : $options['infoonhover']; ?>;
|
200 |
+
slideshow<?php echo esc_html($unique); ?>.infoSpeed = <?php echo $options['infospeed']; ?>;
|
201 |
+
slideshow<?php echo esc_html($unique); ?>.infodelay = <?php echo (empty($options['infodelay'])) ? 0 : $options['infodelay']; ?>;
|
202 |
+
slideshow<?php echo esc_html($unique); ?>.infofade = <?php echo (empty($options['infofade'])) ? 0 : $options['infofade']; ?>;
|
203 |
+
slideshow<?php echo esc_html($unique); ?>.infofadedelay = <?php echo (empty($options['infofadedelay'])) ? 0 : $options['infofadedelay']; ?>;
|
204 |
+
slideshow<?php echo esc_html($unique); ?>.thumbs = "<?php echo ($options['showthumbs'] == "true" && count($slides) > 1) ? 'slider' . $unique : ''; ?>";
|
205 |
+
slideshow<?php echo esc_html($unique); ?>.thumbOpacity = <?php echo (empty($thumbopacity)) ? 0 : $thumbopacity; ?>;
|
206 |
+
slideshow<?php echo esc_html($unique); ?>.left = "slideleft<?php echo esc_html($unique); ?>";
|
207 |
+
slideshow<?php echo esc_html($unique); ?>.right = "slideright<?php echo esc_html($unique); ?>";
|
208 |
+
slideshow<?php echo esc_html($unique); ?>.scrollSpeed = <?php echo $options['thumbsspeed']; ?>;
|
209 |
+
slideshow<?php echo esc_html($unique); ?>.spacing = <?php echo (empty($options['thumbsspacing'])) ? '0' : $options['thumbsspacing']; ?>;
|
210 |
+
slideshow<?php echo esc_html($unique); ?>.active = "<?php echo $options['thumbsborder']; ?>";
|
211 |
+
slideshow<?php echo esc_html($unique); ?>.imagesthickbox = "<?php echo $options['imagesoverlay']; ?>";
|
212 |
+
jQuery("#spinner<?php echo esc_html($unique); ?>").remove();
|
213 |
+
slideshow<?php echo esc_html($unique); ?>.init("slideshow<?php echo esc_html($unique); ?>","image<?php echo esc_html($unique); ?>","<?php echo (!empty($options['shownav']) && count($slides) > 1 && $options['shownav'] == "true") ? $navb . $unique : ''; ?>","<?php echo (!empty($options['shownav']) && count($slides) > 1 && $options['shownav'] == "true") ? $navf . $unique : ''; ?>","imglink<?php echo esc_html($unique); ?>");
|
214 |
tid('<?php echo $wrapperid; ?>').style.visibility = 'visible';
|
215 |
jQuery(window).trigger('resize');
|
216 |
|
217 |
<?php if ($this -> ci_serial_valid()) : ?>
|
218 |
+
slideshow<?php echo esc_html($unique); ?>.touch(tid('fullsize<?php echo esc_html($unique); ?>'));
|
219 |
|
220 |
<?php if ($options['showthumbs'] == "true" && count($slides) > 1) : ?>
|
221 |
+
var touchslidesurface = tid('slider<?php echo esc_html($unique); ?>');
|
222 |
+
slideshow<?php echo esc_html($unique); ?>.touchslide(touchslidesurface);
|
223 |
<?php endif; ?>
|
224 |
<?php endif; ?>
|
225 |
});
|
229 |
var width = jQuery('#<?php echo $wrapperid; ?>').width();
|
230 |
var resheight = <?php echo $options['resheight']; ?>;
|
231 |
var height = Math.round(((resheight / 100) * width));
|
232 |
+
jQuery('#fullsize<?php echo esc_html($unique); ?>').height(height);
|
233 |
});
|
234 |
<?php endif; ?>
|
235 |
</script>
|
252 |
global $slideshow_javascript;
|
253 |
$slideshow_javascript[] = $javascript;
|
254 |
|
255 |
+
//ob_start();
|
256 |
+
/*<link rel="stylesheet" property="stylesheet" href="<?php echo $this -> get_css_url($cssattr, $options['layout']); ?>" type="text/css" media="all" />*/
|
257 |
?>
|
258 |
|
|
|
|
|
259 |
<!--[if IE 6]>
|
260 |
<style type="text/css">
|
261 |
.imglink, #imglink { display: none !important; }
|
265 |
|
266 |
<?php
|
267 |
|
268 |
+
//$css = ob_get_clean();
|
269 |
+
$css = $this->generate_css($cssattr, $options['layout']);
|
270 |
global $slideshow_css;
|
271 |
$slideshow_css[] = $css;
|
272 |
|
273 |
$jsoutput = $this -> get_option('jsoutput');
|
274 |
if (empty($jsoutput) || $jsoutput == "perslideshow") {
|
275 |
echo '<!-- Slideshow Gallery Javascript BEG -->';
|
276 |
+
echo html_entity_decode(str_replace("\'", "'", str_replace('\n', '', esc_js($javascript))));
|
277 |
echo '<!-- Slideshow Gallery Javascript END -->';
|
278 |
|
279 |
echo '<!-- Slideshow Gallery CSS BEG -->';
|
280 |
+
echo html_entity_decode(esc_html($css));
|
281 |
echo '<!-- Slideshow Gallery CSS END -->';
|
282 |
}
|
283 |
|