Version Description
- IMPROVE: Various security fixes.
Download this release
Release Info
Developer | adamluzsi |
Plugin | Slideshow Gallery |
Version | 1.7.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.7.4.1 to 1.7.4.2
- helpers/form.php +4 -4
- helpers/html.php +1 -1
- models/slide.php +2 -2
- readme.txt +4 -1
- slideshow-gallery-plugin.php +3 -3
- slideshow-gallery.php +8 -8
- views/admin/about.php +5 -5
- views/admin/changelog.php +2 -2
- views/admin/err-top.php +2 -2
- views/admin/galleries/hardcode.php +2 -2
- views/admin/galleries/save.php +5 -5
- views/admin/galleries/view.php +4 -4
- views/admin/head.php +1 -1
- views/admin/lite-upgrade.php +3 -3
- views/admin/metaboxes/settings-plugins.php +1 -1
- views/admin/metaboxes/settings-postspages.php +3 -3
- views/admin/metaboxes/settings-styles.php +4 -4
- views/admin/metaboxes/settings-submit.php +1 -1
- views/admin/metaboxes/settings-wprelated.php +2 -2
- views/admin/msg-top.php +2 -2
- views/admin/settings-submitserial.php +1 -1
- views/admin/settings-updates.php +5 -5
- views/admin/settings.php +2 -2
- views/admin/slides/order-gallery.php +3 -3
- views/admin/slides/order.php +2 -2
- views/admin/slides/save-multiple.php +4 -4
- views/admin/slides/save.php +14 -14
- views/admin/submitserial.php +3 -3
- views/admin/tinymce-dialog.php +2 -2
- views/admin/update.php +10 -10
- views/default/css-generator-fn.php +58 -58
- views/default/gallery.php +38 -38
helpers/form.php
CHANGED
@@ -20,7 +20,7 @@ class GalleryFormHelper extends GalleryPlugin {
|
|
20 |
|
21 |
ob_start();
|
22 |
|
23 |
-
?><input type="hidden" name="<?php echo $this -> Html -> field_name($name); ?>" value="<?php echo $value; ?>" id="<?php echo $name; ?>" /><?php
|
24 |
|
25 |
$hidden = ob_get_clean();
|
26 |
return $hidden;
|
@@ -42,7 +42,7 @@ class GalleryFormHelper extends GalleryPlugin {
|
|
42 |
|
43 |
ob_start();
|
44 |
|
45 |
-
?><input class="<?php echo $class; ?>" type="text" autocomplete="<?php echo $autocomplete; ?>" style="width:<?php echo $width; ?>" name="<?php echo $this -> Html -> field_name($name); ?>" value="<?php echo $value; ?>" id="<?php echo $id; ?>" /><?php
|
46 |
|
47 |
if ($error == true) {
|
48 |
echo $this -> Html -> field_error($name);
|
@@ -66,7 +66,7 @@ class GalleryFormHelper extends GalleryPlugin {
|
|
66 |
|
67 |
ob_start();
|
68 |
|
69 |
-
?><textarea class="<?php echo $class; ?>" name="<?php echo $this -> Html -> field_name($name); ?>" rows="<?php echo $rows; ?>" style="width:<?php echo $width; ?>;" cols="<?php echo $cols; ?>" id="<?php echo $name; ?>"><?php echo $this -> Html -> field_value($name); ?></textarea><?php
|
70 |
|
71 |
if ($error == true) {
|
72 |
echo $this -> Html -> field_error($name);
|
@@ -83,7 +83,7 @@ class GalleryFormHelper extends GalleryPlugin {
|
|
83 |
|
84 |
ob_start();
|
85 |
|
86 |
-
?><input class="<?php echo $class; ?>" type="submit" name="<?php echo $this -> Html -> sanitize($name); ?>" value="<?php echo $name; ?>" /><?php
|
87 |
|
88 |
$submit = ob_get_clean();
|
89 |
return $submit;
|
20 |
|
21 |
ob_start();
|
22 |
|
23 |
+
?><input type="hidden" name="<?php echo esc_attr($this -> Html -> field_name($name)); ?>" value="<?php echo $value; ?>" id="<?php echo esc_attr($name); ?>" /><?php
|
24 |
|
25 |
$hidden = ob_get_clean();
|
26 |
return $hidden;
|
42 |
|
43 |
ob_start();
|
44 |
|
45 |
+
?><input class="<?php echo esc_attr($class); ?>" type="text" autocomplete="<?php echo $autocomplete; ?>" style="width:<?php echo esc_attr($width); ?>" name="<?php echo esc_attr($this -> Html -> field_name($name)); ?>" value="<?php echo $value; ?>" id="<?php echo esc_attr($id); ?>" /><?php
|
46 |
|
47 |
if ($error == true) {
|
48 |
echo $this -> Html -> field_error($name);
|
66 |
|
67 |
ob_start();
|
68 |
|
69 |
+
?><textarea class="<?php echo esc_attr($class); ?>" name="<?php echo esc_attr($this -> Html -> field_name($name)); ?>" rows="<?php echo esc_attr($rows); ?>" style="width:<?php echo esc_attr($width); ?>;" cols="<?php echo esc_attr($cols); ?>" id="<?php echo esc_attr($name); ?>"><?php echo esc_attr($this -> Html -> field_value($name)); ?></textarea><?php
|
70 |
|
71 |
if ($error == true) {
|
72 |
echo $this -> Html -> field_error($name);
|
83 |
|
84 |
ob_start();
|
85 |
|
86 |
+
?><input class="<?php echo esc_attr($class); ?>" type="submit" name="<?php echo esc_attr($this -> Html -> sanitize($name)); ?>" value="<?php echo $name; ?>" /><?php
|
87 |
|
88 |
$submit = ob_get_clean();
|
89 |
return $submit;
|
helpers/html.php
CHANGED
@@ -150,7 +150,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
150 |
|
151 |
ob_start();
|
152 |
|
153 |
-
?><a class="<?php echo $class; ?>" rel="<?php echo $rel; ?>" <?php echo (!empty($onclick)) ? 'onclick="' . $onclick . '"' : ''; ?> href="<?php echo $href; ?>" target="<?php echo $target; ?>" title="<?php echo $title; ?>"><?php echo $name; ?></a><?php
|
154 |
|
155 |
$link = ob_get_clean();
|
156 |
return $link;
|
150 |
|
151 |
ob_start();
|
152 |
|
153 |
+
?><a class="<?php echo esc_attr($class); ?>" rel="<?php echo esc_attr($rel); ?>" <?php echo (!empty($onclick)) ? 'onclick="' . $onclick . '"' : ''; ?> href="<?php echo esc_url($href); ?>" target="<?php echo $target; ?>" title="<?php echo esc_attr($title); ?>"><?php echo esc_html($name); ?></a><?php
|
154 |
|
155 |
$link = ob_get_clean();
|
156 |
return $link;
|
models/slide.php
CHANGED
@@ -150,7 +150,7 @@ class GallerySlide extends GalleryDbHelper {
|
|
150 |
$this -> Html -> image_path($this -> data);
|
151 |
} else {
|
152 |
if ($_FILES['image_file']['error'] <= 0) {
|
153 |
-
$imagename = $_FILES['image_file']['name'];
|
154 |
$image_name = $this -> Html -> strip_ext($imagename, "name");
|
155 |
$image_ext = $this -> Html -> strip_ext($imagename, "ext");
|
156 |
$imagename = $this -> Html -> sanitize($image_name) . '.' . $image_ext;
|
@@ -169,7 +169,7 @@ class GallerySlide extends GalleryDbHelper {
|
|
169 |
if (empty($issafe) || $issafe == false) {
|
170 |
$this -> errors['image_file'] = __('This file type is not allowed for security reasons', 'slideshow-gallery');
|
171 |
} else {
|
172 |
-
$uploadedfile = $_FILES['image_file'];
|
173 |
$upload_overrides = array('test_form' => false);
|
174 |
$movefile = wp_handle_upload($uploadedfile, $upload_overrides);
|
175 |
|
150 |
$this -> Html -> image_path($this -> data);
|
151 |
} else {
|
152 |
if ($_FILES['image_file']['error'] <= 0) {
|
153 |
+
$imagename = sanitize_file_name($_FILES['image_file']['name']);
|
154 |
$image_name = $this -> Html -> strip_ext($imagename, "name");
|
155 |
$image_ext = $this -> Html -> strip_ext($imagename, "ext");
|
156 |
$imagename = $this -> Html -> sanitize($image_name) . '.' . $image_ext;
|
169 |
if (empty($issafe) || $issafe == false) {
|
170 |
$this -> errors['image_file'] = __('This file type is not allowed for security reasons', 'slideshow-gallery');
|
171 |
} else {
|
172 |
+
$uploadedfile = sanitize_file_name($_FILES['image_file']);
|
173 |
$upload_overrides = array('test_form' => false);
|
174 |
$movefile = wp_handle_upload($uploadedfile, $upload_overrides);
|
175 |
|
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,6 +175,9 @@ There is an "Images Tester" utility under Slideshow > Settings on the right-hand
|
|
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.
|
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.2
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 1.7.4.2 =
|
179 |
+
* IMPROVE: Various security fixes.
|
180 |
+
|
181 |
= 1.7.4.1 =
|
182 |
* IMPROVE: Various security updates.
|
183 |
* 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.
|
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';
|
@@ -495,12 +495,12 @@ class GalleryPlugin extends GalleryCheckinit {
|
|
495 |
}
|
496 |
|
497 |
function render_msg($message = null, $dismissable = null, $escape = true) {
|
498 |
-
if (!empty($escape)) { $message =
|
499 |
$this -> render('msg-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
|
500 |
}
|
501 |
|
502 |
function render_err($message = null, $dismissable = null, $escape = true) {
|
503 |
-
if (!empty($escape)) { $message =
|
504 |
$this -> render('err-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
|
505 |
}
|
506 |
|
4 |
|
5 |
class GalleryPlugin extends GalleryCheckinit {
|
6 |
|
7 |
+
var $version = '1.7.4.2';
|
8 |
var $plugin_name;
|
9 |
var $plugin_base;
|
10 |
var $pre = 'Gallery';
|
495 |
}
|
496 |
|
497 |
function render_msg($message = null, $dismissable = null, $escape = true) {
|
498 |
+
if (!empty($escape)) { $message = wp_kses_post($message); }
|
499 |
$this -> render('msg-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
|
500 |
}
|
501 |
|
502 |
function render_err($message = null, $dismissable = null, $escape = true) {
|
503 |
+
if (!empty($escape)) { $message = wp_kses_post($message); }
|
504 |
$this -> render('err-top', array('message' => $message, 'dismissable' => $dismissable), true, 'admin');
|
505 |
}
|
506 |
|
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
|
@@ -706,7 +706,7 @@ if (!class_exists('SlideshowGallery')) {
|
|
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 |
|
712 |
<?php
|
@@ -716,8 +716,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
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,8 +727,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
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,8 +742,8 @@ if (!class_exists('SlideshowGallery')) {
|
|
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
|
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.2
|
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
|
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 esc_url($this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" />
|
710 |
</a>
|
711 |
|
712 |
<?php
|
716 |
foreach ($slides as $slide) {
|
717 |
?>
|
718 |
|
719 |
+
<a href="<?php echo esc_url($slide -> image_path); ?>" title="<?php echo esc_attr($slide -> title); ?>">
|
720 |
+
<img align="left" hspace="15" src="<?php echo esc_url($this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> title)); ?>" />
|
721 |
</a>
|
722 |
|
723 |
<?php
|
727 |
foreach ($slides as $slide) {
|
728 |
?>
|
729 |
|
730 |
+
<a href="<?php echo esc_url($slide -> guid); ?>" title="<?php echo esc_attr($slide -> post_title); ?>">
|
731 |
+
<img align="left" hspace="15" src="<?php echo esc_url($this -> Html() -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> post_title)); ?>" />
|
732 |
</a>
|
733 |
|
734 |
<?php
|
742 |
|
743 |
?>
|
744 |
|
745 |
+
<a href="<?php echo esc_url($full_image_url); ?>" title="<?php echo esc_attr($slide -> post_title); ?>">
|
746 |
+
<img align="left" hspace="15" src="<?php echo esc_url($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
|
views/admin/about.php
CHANGED
@@ -83,8 +83,8 @@ $minor_features = array(
|
|
83 |
<img src="<?php echo esc_url( $feature['src'] ); ?>" />
|
84 |
<?php endif; ?>
|
85 |
</div>
|
86 |
-
<h3><?php echo $feature['heading']; ?></h3>
|
87 |
-
<p><?php echo $feature['description']; ?></p>
|
88 |
</div>
|
89 |
<?php endforeach; ?>
|
90 |
</div>
|
@@ -98,8 +98,8 @@ $minor_features = array(
|
|
98 |
<div class="minor-img-container">
|
99 |
<img src="<?php echo esc_attr( $feature['src'] ); ?>" />
|
100 |
</div>
|
101 |
-
<h3><?php echo $feature['heading']; ?></h3>
|
102 |
-
<p><?php echo $feature['description']; ?></p>
|
103 |
</div>
|
104 |
<?php endforeach; ?>
|
105 |
</div>
|
@@ -107,6 +107,6 @@ $minor_features = array(
|
|
107 |
<hr/>
|
108 |
|
109 |
<div class="return-to-dashboard">
|
110 |
-
<a href="<?php echo admin_url('admin.php'); ?>?page=<?php echo $this -> sections -> welcome; ?>"><?php echo 'Go to Slideshow Gallery overview'; ?></a>
|
111 |
</div>
|
112 |
</div>
|
83 |
<img src="<?php echo esc_url( $feature['src'] ); ?>" />
|
84 |
<?php endif; ?>
|
85 |
</div>
|
86 |
+
<h3><?php echo esc_html($feature['heading']); ?></h3>
|
87 |
+
<p><?php echo esc_html($feature['description']); ?></p>
|
88 |
</div>
|
89 |
<?php endforeach; ?>
|
90 |
</div>
|
98 |
<div class="minor-img-container">
|
99 |
<img src="<?php echo esc_attr( $feature['src'] ); ?>" />
|
100 |
</div>
|
101 |
+
<h3><?php echo esc_html($feature['heading']); ?></h3>
|
102 |
+
<p><?php echo esc_html($feature['description']); ?></p>
|
103 |
</div>
|
104 |
<?php endforeach; ?>
|
105 |
</div>
|
107 |
<hr/>
|
108 |
|
109 |
<div class="return-to-dashboard">
|
110 |
+
<a href="<?php echo admin_url('admin.php'); ?>?page=<?php echo esc_attr($this -> sections -> welcome); ?>"><?php echo 'Go to Slideshow Gallery overview'; ?></a>
|
111 |
</div>
|
112 |
</div>
|
views/admin/changelog.php
CHANGED
@@ -36,9 +36,9 @@
|
|
36 |
body { color:#666; font-size:14px; line-height:21px; font-family:Arial, sans-serif; }
|
37 |
h3 { color:#213123; }
|
38 |
#tribulant_header_full, #tribulant_footer_full, #tribulant_content_full { width:100%; clear:both; }
|
39 |
-
#tribulant_header_full { background:url('<?php echo $this -> render_url('images/changelog-header.png', 'admin', false); ?>') repeat; }
|
40 |
#tribulant_header, #tribulant_footer, #tribulant_content { padding:30px 32px; }
|
41 |
-
#tribulant_logo { background:url('<?php echo $this -> render_url('images/changelog-logo.png', 'admin', false); ?>') no-repeat; text-indent:-9999px; width:251px; height:59px; display:block; }
|
42 |
#tribulant_content_full { padding-top:20px; position:relative;}
|
43 |
#tribulant_content { position:relative; }
|
44 |
h1 { font-size:26px; padding-bottom:18px; line-height:26px; width:100%; clear:both;}
|
36 |
body { color:#666; font-size:14px; line-height:21px; font-family:Arial, sans-serif; }
|
37 |
h3 { color:#213123; }
|
38 |
#tribulant_header_full, #tribulant_footer_full, #tribulant_content_full { width:100%; clear:both; }
|
39 |
+
#tribulant_header_full { background:url('<?php echo esc_url($this -> render_url('images/changelog-header.png', 'admin', false)); ?>') repeat; }
|
40 |
#tribulant_header, #tribulant_footer, #tribulant_content { padding:30px 32px; }
|
41 |
+
#tribulant_logo { background:url('<?php echo esc_url($this -> render_url('images/changelog-logo.png', 'admin', false)); ?>') no-repeat; text-indent:-9999px; width:251px; height:59px; display:block; }
|
42 |
#tribulant_content_full { padding-top:20px; position:relative;}
|
43 |
#tribulant_content { position:relative; }
|
44 |
h1 { font-size:26px; padding-bottom:18px; line-height:26px; width:100%; clear:both;}
|
views/admin/err-top.php
CHANGED
@@ -6,9 +6,9 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
6 |
|
7 |
<?php if (!empty($message)) : ?>
|
8 |
<div id="message" class="slideshow notice error">
|
9 |
-
<p><i class="fa fa-times"></i> <?php echo $message; ?></p>
|
10 |
<?php if (!empty($dismissable)) : ?>
|
11 |
-
<a href="<?php echo $dismissable; ?>" class="notice-dismiss"><span class="screen-reader-text"><?php _e('Dismiss this notice.', 'slideshow-gallery'); ?></span></a>
|
12 |
<?php endif; ?>
|
13 |
</div>
|
14 |
<?php endif; ?>
|
6 |
|
7 |
<?php if (!empty($message)) : ?>
|
8 |
<div id="message" class="slideshow notice error">
|
9 |
+
<p><i class="fa fa-times"></i> <?php echo wp_kses_post($message); ?></p>
|
10 |
<?php if (!empty($dismissable)) : ?>
|
11 |
+
<a href="<?php echo esc_url($dismissable); ?>" class="notice-dismiss"><span class="screen-reader-text"><?php _e('Dismiss this notice.', 'slideshow-gallery'); ?></span></a>
|
12 |
<?php endif; ?>
|
13 |
</div>
|
14 |
<?php endif; ?>
|
views/admin/galleries/hardcode.php
CHANGED
@@ -4,12 +4,12 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
4 |
|
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>
|
12 |
-
<code>[tribulant_slideshow gallery_id=<?php echo $gallery -> id; ?>]</code>
|
13 |
|
14 |
<h2><?php _e('PHP Code in Theme', 'slideshow-gallery'); ?></h2>
|
15 |
<p><?php _e('This PHP code can be used inside your WordPress theme to display slides inside this gallery.', 'slideshow-gallery'); ?></p>
|
4 |
|
5 |
?>
|
6 |
|
7 |
+
<div class="wrap <?php echo esc_url($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>
|
12 |
+
<code>[tribulant_slideshow gallery_id=<?php echo esc_html($gallery -> id); ?>]</code>
|
13 |
|
14 |
<h2><?php _e('PHP Code in Theme', 'slideshow-gallery'); ?></h2>
|
15 |
<p><?php _e('This PHP code can be used inside your WordPress theme to display slides inside this gallery.', 'slideshow-gallery'); ?></p>
|
views/admin/galleries/save.php
CHANGED
@@ -13,10 +13,10 @@ if (is_object($this->Gallery()->data)) {
|
|
13 |
|
14 |
?>
|
15 |
|
16 |
-
<div class="wrap <?php echo $this -> pre; ?> slideshow-gallery slideshow">
|
17 |
<h1><?php _e('Save a Gallery', 'slideshow-gallery'); ?></h1>
|
18 |
|
19 |
-
<form action="<?php echo $this -> url; ?>&method=save" method="post">
|
20 |
|
21 |
<?php wp_nonce_field($this -> sections -> galleries . '_save'); ?>
|
22 |
|
@@ -33,12 +33,12 @@ if (is_object($this->Gallery()->data)) {
|
|
33 |
<div id="gallery-title-tabs">
|
34 |
<ul>
|
35 |
<?php foreach ($languages as $language) : ?>
|
36 |
-
<li><a href="#gallery-title-tabs-<?php echo $language; ?>"><?php echo $this -> language_flag($language); ?></a></li>
|
37 |
<?php endforeach; ?>
|
38 |
</ul>
|
39 |
<?php foreach ($languages as $language) : ?>
|
40 |
-
<div id="gallery-title-tabs-<?php echo $language; ?>">
|
41 |
-
<input type="text" class="widefat" name="Gallery[title][<?php echo $language; ?>]" value="<?php echo esc_attr(wp_unslash($titles[$language])); ?>" id="Gallery_title_<?php echo $language; ?>" />
|
42 |
</div>
|
43 |
<?php endforeach; ?>
|
44 |
</div>
|
13 |
|
14 |
?>
|
15 |
|
16 |
+
<div class="wrap <?php echo esc_html($this -> pre); ?> slideshow-gallery slideshow">
|
17 |
<h1><?php _e('Save a Gallery', 'slideshow-gallery'); ?></h1>
|
18 |
|
19 |
+
<form action="<?php echo esc_url($this -> url); ?>&method=save" method="post">
|
20 |
|
21 |
<?php wp_nonce_field($this -> sections -> galleries . '_save'); ?>
|
22 |
|
33 |
<div id="gallery-title-tabs">
|
34 |
<ul>
|
35 |
<?php foreach ($languages as $language) : ?>
|
36 |
+
<li><a href="#gallery-title-tabs-<?php echo esc_html($language); ?>"><?php echo esc_html($this -> language_flag($language)); ?></a></li>
|
37 |
<?php endforeach; ?>
|
38 |
</ul>
|
39 |
<?php foreach ($languages as $language) : ?>
|
40 |
+
<div id="gallery-title-tabs-<?php echo esc_html($language); ?>">
|
41 |
+
<input type="text" class="widefat" name="Gallery[title][<?php echo esc_html($language); ?>]" value="<?php echo esc_attr(wp_unslash($titles[$language])); ?>" id="Gallery_title_<?php echo esc_html($language); ?>" />
|
42 |
</div>
|
43 |
<?php endforeach; ?>
|
44 |
</div>
|
views/admin/galleries/view.php
CHANGED
@@ -9,20 +9,20 @@ $Slide_List_table -> prepare_items();
|
|
9 |
|
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 |
|
17 |
<div class="tablenav top">
|
18 |
<div class="alignleft">
|
19 |
-
<a href="?page=<?php echo $this -> sections -> galleries; ?>&method=save&id=<?php echo $gallery -> id; ?>" class="button"><i class="fa fa-pencil"></i> <?php _e('Edit Gallery', 'slideshow-gallery'); ?></a>
|
20 |
</div>
|
21 |
<div class="alignleft">
|
22 |
-
<a href="?page=<?php echo $this -> sections -> galleries; ?>&method=hardcode&id=<?php echo $gallery -> id; ?>" class="button"><i class="fa fa-code"></i> <?php _e('Embed', 'slideshow-gallery'); ?></a>
|
23 |
</div>
|
24 |
<div class="alignleft">
|
25 |
-
<a onclick="if (!confirm('<?php _e('Are you sure you want to delete this gallery?', 'slideshow-gallery'); ?>')) { return false; }" href="?page=<?php echo $this -> sections -> galleries; ?>&method=delete&id=<?php echo $gallery -> id; ?>" class="button button-highlighted"><i class="fa fa-times"></i> <?php _e('Delete Gallery', 'slideshow-gallery'); ?></a>
|
26 |
</div>
|
27 |
</div>
|
28 |
|
9 |
|
10 |
?>
|
11 |
|
12 |
+
<div class="wrap <?php echo esc_html($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 |
|
17 |
<div class="tablenav top">
|
18 |
<div class="alignleft">
|
19 |
+
<a href="?page=<?php echo esc_html($this -> sections -> galleries); ?>&method=save&id=<?php echo esc_html($gallery -> id); ?>" class="button"><i class="fa fa-pencil"></i> <?php _e('Edit Gallery', 'slideshow-gallery'); ?></a>
|
20 |
</div>
|
21 |
<div class="alignleft">
|
22 |
+
<a href="?page=<?php echo esc_html($this -> sections -> galleries); ?>&method=hardcode&id=<?php echo esc_html($gallery -> id); ?>" class="button"><i class="fa fa-code"></i> <?php _e('Embed', 'slideshow-gallery'); ?></a>
|
23 |
</div>
|
24 |
<div class="alignleft">
|
25 |
+
<a onclick="if (!confirm('<?php _e('Are you sure you want to delete this gallery?', 'slideshow-gallery'); ?>')) { return false; }" href="?page=<?php echo esc_html($this -> sections -> galleries); ?>&method=delete&id=<?php echo esc_html($gallery -> id); ?>" class="button button-highlighted"><i class="fa fa-times"></i> <?php _e('Delete Gallery', 'slideshow-gallery'); ?></a>
|
26 |
</div>
|
27 |
</div>
|
28 |
|
views/admin/head.php
CHANGED
@@ -11,7 +11,7 @@ if (isset($_GET['page'])) {
|
|
11 |
?>
|
12 |
|
13 |
<script type="text/javascript">
|
14 |
-
var GalleryAjax = "<?php echo $this -> url(); ?>/<?php echo 'slideshow-gallery'; ?>-ajax.php";
|
15 |
var slideshowajax = "<?php echo admin_url('admin-ajax.php'); ?>";
|
16 |
|
17 |
jQuery(document).ready(function() {
|
11 |
?>
|
12 |
|
13 |
<script type="text/javascript">
|
14 |
+
var GalleryAjax = "<?php echo esc_url($this -> url()); ?>/<?php echo 'slideshow-gallery'; ?>-ajax.php";
|
15 |
var slideshowajax = "<?php echo admin_url('admin-ajax.php'); ?>";
|
16 |
|
17 |
jQuery(document).ready(function() {
|
views/admin/lite-upgrade.php
CHANGED
@@ -24,7 +24,7 @@ $plugin_link = "https://tribulant.com/plugins/view/13/wordpress-slideshow-galler
|
|
24 |
<div class="feature-section two-col has-2-columns">
|
25 |
<div class="col column">
|
26 |
<h4>Extra Features in PRO</h4>
|
27 |
-
<p><a href="<?php echo $plugin_link; ?>" target="_blank">Slideshow Gallery PRO</a> gives these extra features:</p>
|
28 |
<ul>
|
29 |
<li>13 different effects</li>
|
30 |
<li>32 different easing effects</li>
|
@@ -41,7 +41,7 @@ $plugin_link = "https://tribulant.com/plugins/view/13/wordpress-slideshow-galler
|
|
41 |
<div class="col column">
|
42 |
<h4>Upgrade to PRO</h4>
|
43 |
<p>Upgrading to Slideshow Gallery PRO is quick and easy by clicking the button below:</p>
|
44 |
-
<p><a href="<?php echo $plugin_link; ?>" class="button button-primary button-hero" target="_blank"><i class="fa fa-mouse-pointer"></i> Buy PRO Now (only $24.00)</a></p>
|
45 |
<p><?php _e('Once you have purchased a serial key, simply submit it to activate Slideshow Gallery PRO:', 'slideshow-gallery'); ?></p>
|
46 |
<p><a class="button button-secondary button-large" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> submitserial); ?>" onclick="jQuery.colorbox({href:ajaxurl + '?action=slideshow_serialkey&security=<?php echo wp_create_nonce('serialkey'); ?>'}); return false;"><i class="fa fa-key"></i> <?php _e('Submit Serial', 'slideshow-gallery'); ?></a></p>
|
47 |
</div>
|
@@ -50,7 +50,7 @@ $plugin_link = "https://tribulant.com/plugins/view/13/wordpress-slideshow-galler
|
|
50 |
|
51 |
<div class="changelog slideshow-changelog">
|
52 |
<h3>About Tribulant</h3>
|
53 |
-
<p><a href="https://tribulant.com" target="_blank"><img style="width:300px;" src="<?php echo $this -> url(); ?>/images/logo.png" alt="tribulant" /></a></p>
|
54 |
<p>At Tribulant, we strive to provide the best WordPress plugins on the market.<br/>
|
55 |
We are a full-time business developing, promoting and supporting WordPress plugins to the community.</p>
|
56 |
<p>
|
24 |
<div class="feature-section two-col has-2-columns">
|
25 |
<div class="col column">
|
26 |
<h4>Extra Features in PRO</h4>
|
27 |
+
<p><a href="<?php echo esc_url($plugin_link); ?>" target="_blank">Slideshow Gallery PRO</a> gives these extra features:</p>
|
28 |
<ul>
|
29 |
<li>13 different effects</li>
|
30 |
<li>32 different easing effects</li>
|
41 |
<div class="col column">
|
42 |
<h4>Upgrade to PRO</h4>
|
43 |
<p>Upgrading to Slideshow Gallery PRO is quick and easy by clicking the button below:</p>
|
44 |
+
<p><a href="<?php echo esc_url($plugin_link); ?>" class="button button-primary button-hero" target="_blank"><i class="fa fa-mouse-pointer"></i> Buy PRO Now (only $24.00)</a></p>
|
45 |
<p><?php _e('Once you have purchased a serial key, simply submit it to activate Slideshow Gallery PRO:', 'slideshow-gallery'); ?></p>
|
46 |
<p><a class="button button-secondary button-large" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> submitserial); ?>" onclick="jQuery.colorbox({href:ajaxurl + '?action=slideshow_serialkey&security=<?php echo wp_create_nonce('serialkey'); ?>'}); return false;"><i class="fa fa-key"></i> <?php _e('Submit Serial', 'slideshow-gallery'); ?></a></p>
|
47 |
</div>
|
50 |
|
51 |
<div class="changelog slideshow-changelog">
|
52 |
<h3>About Tribulant</h3>
|
53 |
+
<p><a href="https://tribulant.com" target="_blank"><img style="width:300px;" src="<?php echo esc_url($this -> url()); ?>/images/logo.png" alt="tribulant" /></a></p>
|
54 |
<p>At Tribulant, we strive to provide the best WordPress plugins on the market.<br/>
|
55 |
We are a full-time business developing, promoting and supporting WordPress plugins to the community.</p>
|
56 |
<p>
|
views/admin/metaboxes/settings-plugins.php
CHANGED
@@ -7,7 +7,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
7 |
<div style="text-align:center;">
|
8 |
<h4><a href="https://wordpress.org/plugins/newsletters-lite/" target="_blank">WordPress Newsletter plugin</a></h4>
|
9 |
<p>
|
10 |
-
<a href="https://wordpress.org/plugins/newsletters-lite/" target="_blank"><img style="width:200px; height:auto;" width="200" src="<?php echo $this -> url(); ?>/images/plugins/newsletters.png" alt="newsletters" /></a>
|
11 |
</p>
|
12 |
<p>
|
13 |
Get the WordPress Newsletter plugin today. It is a FREE plugin which can be installed by clicking the button below.
|
7 |
<div style="text-align:center;">
|
8 |
<h4><a href="https://wordpress.org/plugins/newsletters-lite/" target="_blank">WordPress Newsletter plugin</a></h4>
|
9 |
<p>
|
10 |
+
<a href="https://wordpress.org/plugins/newsletters-lite/" target="_blank"><img style="width:200px; height:auto;" width="200" src="<?php echo esc_url($this -> url()); ?>/images/plugins/newsletters.png" alt="newsletters" /></a>
|
11 |
</p>
|
12 |
<p>
|
13 |
Get the WordPress Newsletter plugin today. It is a FREE plugin which can be installed by clicking the button below.
|
views/admin/metaboxes/settings-postspages.php
CHANGED
@@ -37,12 +37,12 @@ $excerpt_length = $this -> get_option('excerpt_length');
|
|
37 |
<div id="readmore-tabs">
|
38 |
<ul>
|
39 |
<?php foreach ($languages as $language) : ?>
|
40 |
-
<li><a href="#readmore-tabs-<?php echo $language; ?>"><?php echo $this -> language_flag($language); ?></a></li>
|
41 |
<?php endforeach; ?>
|
42 |
</ul>
|
43 |
<?php foreach ($languages as $language) : ?>
|
44 |
-
<div id="readmore-tabs-<?php echo $language; ?>">
|
45 |
-
<input type="text" class="widefat" name="excerpt_readmore[<?php echo $language; ?>]" value="<?php echo esc_attr(wp_unslash($readmores[$language])); ?>" id="excerpt_readmore_<?php echo $language; ?>" />
|
46 |
</div>
|
47 |
<?php endforeach; ?>
|
48 |
</div>
|
37 |
<div id="readmore-tabs">
|
38 |
<ul>
|
39 |
<?php foreach ($languages as $language) : ?>
|
40 |
+
<li><a href="#readmore-tabs-<?php echo esc_html($language); ?>"><?php echo esc_html($this -> language_flag($language)); ?></a></li>
|
41 |
<?php endforeach; ?>
|
42 |
</ul>
|
43 |
<?php foreach ($languages as $language) : ?>
|
44 |
+
<div id="readmore-tabs-<?php echo esc_attr($language); ?>">
|
45 |
+
<input type="text" class="widefat" name="excerpt_readmore[<?php echo esc_attr($language); ?>]" value="<?php echo esc_attr(wp_unslash($readmores[$language])); ?>" id="excerpt_readmore_<?php echo esc_attr($language); ?>" />
|
46 |
</div>
|
47 |
<?php endforeach; ?>
|
48 |
</div>
|
views/admin/metaboxes/settings-styles.php
CHANGED
@@ -146,7 +146,7 @@ $resizeimagescrop = $this -> get_option('resizeimagescrop');
|
|
146 |
<fieldset>
|
147 |
<legend class="screen-reader-text"><span><?php _e('Slideshow Background', 'slideshow-gallery'); ?></span></legend>
|
148 |
<div class="wp-picker-container">
|
149 |
-
<a tabindex="0" id="stylesbackgroundbutton" class="wp-color-result" style="background-color:<?php echo $styles['background']; ?>;" title="Select Color"></a>
|
150 |
<span class="wp-picker-input-wrap">
|
151 |
<input type="text" name="styles[background]" id="stylesbackground" value="<?php echo $styles['background']; ?>" class="color-picker" style="" />
|
152 |
</span>
|
@@ -162,7 +162,7 @@ $resizeimagescrop = $this -> get_option('resizeimagescrop');
|
|
162 |
<fieldset>
|
163 |
<legend class="screen-reader-text"><span><?php _e('Information Background', 'slideshow-gallery'); ?></span></legend>
|
164 |
<div class="wp-picker-container">
|
165 |
-
<a tabindex="0" id="stylesinfobackgroundbutton" class="wp-color-result" style="background-color:<?php echo $styles['infobackground']; ?>;" title="Select Color"></a>
|
166 |
<span class="wp-picker-input-wrap">
|
167 |
<input type="text" name="styles[infobackground]" id="stylesinfobackground" value="<?php echo $styles['infobackground']; ?>" class="color-picker" style="" />
|
168 |
</span>
|
@@ -178,7 +178,7 @@ $resizeimagescrop = $this -> get_option('resizeimagescrop');
|
|
178 |
<fieldset>
|
179 |
<legend class="screen-reader-text"><span><?php _e('Information Text Color', 'slideshow-gallery'); ?></span></legend>
|
180 |
<div class="wp-picker-container">
|
181 |
-
<a tabindex="0" id="stylesinfocolorbutton" class="wp-color-result" style="background-color:<?php echo $styles['infocolor']; ?>;" title="Select Color"></a>
|
182 |
<span class="wp-picker-input-wrap">
|
183 |
<input type="text" name="styles[infocolor]" id="stylesinfocolor" value="<?php echo $styles['infocolor']; ?>" class="color-picker" style="" />
|
184 |
</span>
|
@@ -195,7 +195,7 @@ $resizeimagescrop = $this -> get_option('resizeimagescrop');
|
|
195 |
<fieldset>
|
196 |
<legend class="screen-reader-text"><span><?php _e('Thumbnail Active Border', 'slideshow-gallery'); ?></span></legend>
|
197 |
<div class="wp-picker-container">
|
198 |
-
<a tabindex="0" id="stylesthumbactivebutton" class="wp-color-result" style="background-color:<?php echo $styles['thumbactive']; ?>;" title="Select Color"></a>
|
199 |
<span class="wp-picker-input-wrap">
|
200 |
<input type="text" name="styles[thumbactive]" id="stylesthumbactive" value="<?php echo $styles['thumbactive']; ?>" class="color-picker" style="" />
|
201 |
</span>
|
146 |
<fieldset>
|
147 |
<legend class="screen-reader-text"><span><?php _e('Slideshow Background', 'slideshow-gallery'); ?></span></legend>
|
148 |
<div class="wp-picker-container">
|
149 |
+
<a tabindex="0" id="stylesbackgroundbutton" class="wp-color-result" style="background-color:<?php echo esc_attr($styles['background']); ?>;" title="Select Color"></a>
|
150 |
<span class="wp-picker-input-wrap">
|
151 |
<input type="text" name="styles[background]" id="stylesbackground" value="<?php echo $styles['background']; ?>" class="color-picker" style="" />
|
152 |
</span>
|
162 |
<fieldset>
|
163 |
<legend class="screen-reader-text"><span><?php _e('Information Background', 'slideshow-gallery'); ?></span></legend>
|
164 |
<div class="wp-picker-container">
|
165 |
+
<a tabindex="0" id="stylesinfobackgroundbutton" class="wp-color-result" style="background-color:<?php echo esc_attr($styles['infobackground']); ?>;" title="Select Color"></a>
|
166 |
<span class="wp-picker-input-wrap">
|
167 |
<input type="text" name="styles[infobackground]" id="stylesinfobackground" value="<?php echo $styles['infobackground']; ?>" class="color-picker" style="" />
|
168 |
</span>
|
178 |
<fieldset>
|
179 |
<legend class="screen-reader-text"><span><?php _e('Information Text Color', 'slideshow-gallery'); ?></span></legend>
|
180 |
<div class="wp-picker-container">
|
181 |
+
<a tabindex="0" id="stylesinfocolorbutton" class="wp-color-result" style="background-color:<?php echo esc_attr($styles['infocolor']); ?>;" title="Select Color"></a>
|
182 |
<span class="wp-picker-input-wrap">
|
183 |
<input type="text" name="styles[infocolor]" id="stylesinfocolor" value="<?php echo $styles['infocolor']; ?>" class="color-picker" style="" />
|
184 |
</span>
|
195 |
<fieldset>
|
196 |
<legend class="screen-reader-text"><span><?php _e('Thumbnail Active Border', 'slideshow-gallery'); ?></span></legend>
|
197 |
<div class="wp-picker-container">
|
198 |
+
<a tabindex="0" id="stylesthumbactivebutton" class="wp-color-result" style="background-color:<?php echo esc_attr($styles['thumbactive']); ?>;" title="Select Color"></a>
|
199 |
<span class="wp-picker-input-wrap">
|
200 |
<input type="text" name="styles[thumbactive]" id="stylesthumbactive" value="<?php echo $styles['thumbactive']; ?>" class="color-picker" style="" />
|
201 |
</span>
|
views/admin/metaboxes/settings-submit.php
CHANGED
@@ -15,7 +15,7 @@ $debugging = get_option('tridebugging');
|
|
15 |
<a href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings . '&method=checkdb'); ?>"><i class="fa fas fa-database fa-fw"></i> <?php _e('Check/optimize database tables', 'slideshow-gallery'); ?></a>
|
16 |
</div>
|
17 |
<div class="misc-pub-section">
|
18 |
-
<a href="<?php echo $this -> url; ?>&method=reset" title="<?php _e('Reset all settings to their default values', 'slideshow-gallery'); ?>" onclick="if (!confirm('<?php _e('Are you sure you wish to reset all settings?', 'slideshow-gallery'); ?>')) { return false; }"><i class="fa fas fa-refresh fa-fw"></i> <?php _e('Reset to Defaults', 'slideshow-gallery'); ?></a>
|
19 |
</div>
|
20 |
<div class="misc-pub-section misc-pub-section-last">
|
21 |
<label><input <?php echo (!empty($debugging) && $debugging == 1) ? 'checked="checked"' : ''; ?> type="checkbox" name="debugging" value="1" id="debugging" /><i class="fa fas fa-bug fa-fw"></i> <?php _e('Turn on debugging', 'slideshow-gallery'); ?></label>
|
15 |
<a href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings . '&method=checkdb'); ?>"><i class="fa fas fa-database fa-fw"></i> <?php _e('Check/optimize database tables', 'slideshow-gallery'); ?></a>
|
16 |
</div>
|
17 |
<div class="misc-pub-section">
|
18 |
+
<a href="<?php echo esc_url($this -> url); ?>&method=reset" title="<?php _e('Reset all settings to their default values', 'slideshow-gallery'); ?>" onclick="if (!confirm('<?php _e('Are you sure you wish to reset all settings?', 'slideshow-gallery'); ?>')) { return false; }"><i class="fa fas fa-refresh fa-fw"></i> <?php _e('Reset to Defaults', 'slideshow-gallery'); ?></a>
|
19 |
</div>
|
20 |
<div class="misc-pub-section misc-pub-section-last">
|
21 |
<label><input <?php echo (!empty($debugging) && $debugging == 1) ? 'checked="checked"' : ''; ?> type="checkbox" name="debugging" value="1" id="debugging" /><i class="fa fas fa-bug fa-fw"></i> <?php _e('Turn on debugging', 'slideshow-gallery'); ?></label>
|
views/admin/metaboxes/settings-wprelated.php
CHANGED
@@ -39,8 +39,8 @@ $permissions = $this -> get_option('permissions');
|
|
39 |
<?php foreach ($wp_roles -> role_names as $role_key => $role_name) : ?>
|
40 |
<th style="white-space:nowrap; font-weight:bold; text-align:center;">
|
41 |
<label>
|
42 |
-
<?php if ($role_key != "administrator") : ?><input type="checkbox" name="sectionsrolescheckall<?php echo $role_key; ?>" value="1" id="sectionsrolescheckall<?php echo $role_key; ?>" onclick="jqCheckAll(this, false, 'permissions[<?php echo $role_key; ?>]');" /><?php endif; ?>
|
43 |
-
<?php echo $role_name; ?>
|
44 |
</label>
|
45 |
</th>
|
46 |
<?php endforeach; ?>
|
39 |
<?php foreach ($wp_roles -> role_names as $role_key => $role_name) : ?>
|
40 |
<th style="white-space:nowrap; font-weight:bold; text-align:center;">
|
41 |
<label>
|
42 |
+
<?php if ($role_key != "administrator") : ?><input type="checkbox" name="sectionsrolescheckall<?php echo esc_attr($role_key); ?>" value="1" id="sectionsrolescheckall<?php echo esc_attr($role_key); ?>" onclick="jqCheckAll(this, false, 'permissions[<?php echo esc_attr($role_key); ?>]');" /><?php endif; ?>
|
43 |
+
<?php echo esc_html($role_name); ?>
|
44 |
</label>
|
45 |
</th>
|
46 |
<?php endforeach; ?>
|
views/admin/msg-top.php
CHANGED
@@ -6,9 +6,9 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
6 |
|
7 |
<?php if (!empty($message)) : ?>
|
8 |
<div id="message" class="slideshow updated notice">
|
9 |
-
<p><i class="fa fa-check"></i> <?php echo $message; ?></p>
|
10 |
<?php if (!empty($dismissable)) : ?>
|
11 |
-
<a href="<?php echo $dismissable; ?>" class="notice-dismiss"><span class="screen-reader-text"><?php _e('Dismiss this notice.', 'slideshow-gallery'); ?></span></a>
|
12 |
<?php endif; ?>
|
13 |
</div>
|
14 |
<?php endif; ?>
|
6 |
|
7 |
<?php if (!empty($message)) : ?>
|
8 |
<div id="message" class="slideshow updated notice">
|
9 |
+
<p><i class="fa fa-check"></i> <?php echo wp_kses_post($message); ?></p>
|
10 |
<?php if (!empty($dismissable)) : ?>
|
11 |
+
<a href="<?php echo esc_url($dismissable); ?>" class="notice-dismiss"><span class="screen-reader-text"><?php _e('Dismiss this notice.', 'slideshow-gallery'); ?></span></a>
|
12 |
<?php endif; ?>
|
13 |
</div>
|
14 |
<?php endif; ?>
|
views/admin/settings-submitserial.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
|
9 |
<?php $this -> render('error', array('errors' => $errors), true, 'admin'); ?>
|
10 |
|
11 |
-
<form action="?page=<?php echo $this -> sections -> submitserial; ?>" method="post">
|
12 |
<?php wp_nonce_field($this -> sections -> submitserial); ?>
|
13 |
<table class="form-table">
|
14 |
<tbody>
|
8 |
|
9 |
<?php $this -> render('error', array('errors' => $errors), true, 'admin'); ?>
|
10 |
|
11 |
+
<form action="?page=<?php echo esc_url($this -> sections -> submitserial); ?>" method="post">
|
12 |
<?php wp_nonce_field($this -> sections -> submitserial); ?>
|
13 |
<table class="form-table">
|
14 |
<tbody>
|
views/admin/settings-updates.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<!--<div class="wrap slideshow <?php echo $this -> pre; ?>">
|
2 |
<h2><?php _e('Check for Updates', 'slideshow-gallery'); ?></h2>
|
3 |
|
4 |
<?php
|
@@ -9,11 +9,11 @@
|
|
9 |
if (version_compare($this -> version, $update_info['version']) < 0) {
|
10 |
$this -> render('update', array('update_info' => $update_info), true, 'admin'); ?>
|
11 |
|
12 |
-
<p><a href="https://tribulant.com" target="_blank"><img src="<?php echo $this -> render_url('images/logo.png', 'admin', false); ?>" alt="tribulant" /></a></p>
|
13 |
|
14 |
<?php $changelog = $update -> get_changelog(); ?>
|
15 |
<div style="margin:10px 0; padding: 10px 20px; border:1px solid #ccc; border-radius:4px; moz-border-radius:4px; webkit-border-radius:4px;">
|
16 |
-
<?php echo $changelog; ?>
|
17 |
</div>
|
18 |
|
19 |
<?php
|
@@ -25,8 +25,8 @@
|
|
25 |
<?php if ($raw_response = get_transient('slideshow_update_info')) : ?>
|
26 |
<?php if (!empty($raw_response['headers']['date'])) : ?>
|
27 |
<p><?php echo sprintf(__('Last checked on <b>%s</b>', 'slideshow-gallery'), get_date_from_gmt(date("Y-m-d H:i:s", strtotime($raw_response['headers']['date'])), get_option('date_format') . ' ' . get_option('time_format'))); ?></p>
|
28 |
-
<p><a href="?page=<?php echo $this -> sections -> settings_updates; ?>&method=check" class="button-primary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
29 |
-
<?php echo $this -> Html -> help(__('The plugin checks for new versions every 24 hours. If you want to check right now, click the "Check Again" button in order to do so.', 'slideshow-gallery')); ?></p>
|
30 |
<?php endif; ?>
|
31 |
<?php endif; ?>
|
32 |
|
1 |
+
<!--<div class="wrap slideshow <?php echo esc_url($this -> pre); ?>">
|
2 |
<h2><?php _e('Check for Updates', 'slideshow-gallery'); ?></h2>
|
3 |
|
4 |
<?php
|
9 |
if (version_compare($this -> version, $update_info['version']) < 0) {
|
10 |
$this -> render('update', array('update_info' => $update_info), true, 'admin'); ?>
|
11 |
|
12 |
+
<p><a href="https://tribulant.com" target="_blank"><img src="<?php echo esc_url($this -> render_url('images/logo.png', 'admin', false)); ?>" alt="tribulant" /></a></p>
|
13 |
|
14 |
<?php $changelog = $update -> get_changelog(); ?>
|
15 |
<div style="margin:10px 0; padding: 10px 20px; border:1px solid #ccc; border-radius:4px; moz-border-radius:4px; webkit-border-radius:4px;">
|
16 |
+
<?php echo esc_url($changelog); ?>
|
17 |
</div>
|
18 |
|
19 |
<?php
|
25 |
<?php if ($raw_response = get_transient('slideshow_update_info')) : ?>
|
26 |
<?php if (!empty($raw_response['headers']['date'])) : ?>
|
27 |
<p><?php echo sprintf(__('Last checked on <b>%s</b>', 'slideshow-gallery'), get_date_from_gmt(date("Y-m-d H:i:s", strtotime($raw_response['headers']['date'])), get_option('date_format') . ' ' . get_option('time_format'))); ?></p>
|
28 |
+
<p><a href="?page=<?php echo esc_url($this -> sections -> settings_updates); ?>&method=check" class="button-primary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
29 |
+
<?php echo esc_url($this -> Html -> help(__('The plugin checks for new versions every 24 hours. If you want to check right now, click the "Check Again" button in order to do so.', 'slideshow-gallery'))); ?></p>
|
30 |
<?php endif; ?>
|
31 |
<?php endif; ?>
|
32 |
|
views/admin/settings.php
CHANGED
@@ -10,10 +10,10 @@ wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
|
|
10 |
|
11 |
?>
|
12 |
|
13 |
-
<div class="wrap slideshow <?php echo $this -> pre; ?>">
|
14 |
<h1><?php _e('Settings', 'slideshow-gallery'); ?></h1>
|
15 |
|
16 |
-
<form action="<?php echo $this -> url; ?>" name="post" id="post" method="post">
|
17 |
<?php wp_nonce_field($this -> sections -> settings); ?>
|
18 |
|
19 |
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
10 |
|
11 |
?>
|
12 |
|
13 |
+
<div class="wrap slideshow <?php echo esc_attr($this -> pre); ?>">
|
14 |
<h1><?php _e('Settings', 'slideshow-gallery'); ?></h1>
|
15 |
|
16 |
+
<form action="<?php echo esc_attr($this -> url); ?>" name="post" id="post" method="post">
|
17 |
<?php wp_nonce_field($this -> sections -> settings); ?>
|
18 |
|
19 |
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
views/admin/slides/order-gallery.php
CHANGED
@@ -8,7 +8,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
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>
|
12 |
</div>
|
13 |
|
14 |
<p class="howto"><?php echo sprintf(__('This page lets you order all slides shown with %s.', 'slideshow-gallery'), '<code>[tribulant_slideshow gallery_id=' . $gallery -> id . ']</code>'); ?></p>
|
@@ -22,8 +22,8 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
22 |
<ul id="slidelist">
|
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; ?>
|
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 esc_url($this -> url); ?>"><?php _e('← Manage All Slides', 'slideshow-gallery'); ?></a>
|
12 |
</div>
|
13 |
|
14 |
<p class="howto"><?php echo sprintf(__('This page lets you order all slides shown with %s.', 'slideshow-gallery'), '<code>[tribulant_slideshow gallery_id=' . $gallery -> id . ']</code>'); ?></p>
|
22 |
<ul id="slidelist">
|
23 |
<?php foreach ($slides as $slide) : ?>
|
24 |
<?php if (!$this -> Slide() -> is_expired($slide -> id)) : ?>
|
25 |
+
<li class="gallerylineitem" id="item_<?php echo esc_html($slide -> id); ?>">
|
26 |
+
<span class="gallery_slide_image" style="display:none;"><img src="<?php echo esc_url($this -> Html -> otf_image_src($slide, 89, 89, 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> title)); ?>" /></span>
|
27 |
<span class="gallery_slide_title"><?php echo esc_html($slide -> title); ?></span>
|
28 |
</li>
|
29 |
<?php endif; ?>
|
views/admin/slides/order.php
CHANGED
@@ -8,7 +8,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
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>
|
12 |
</div>
|
13 |
|
14 |
<p class="howto"><?php echo sprintf(__('This page lets you order all slides shown with %s.', 'slideshow-gallery'), '<code>[tribulant_slideshow]</code>'); ?><br/>
|
@@ -24,7 +24,7 @@ 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($slide -> title); ?>" /></span>
|
28 |
<span class="gallery_slide_title"><?php echo esc_html($slide -> title); ?></span>
|
29 |
</li>
|
30 |
<?php endif; ?>
|
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 esc_url($this -> url); ?>"><?php _e('← Manage All Slides', 'slideshow-gallery'); ?></a>
|
12 |
</div>
|
13 |
|
14 |
<p class="howto"><?php echo sprintf(__('This page lets you order all slides shown with %s.', 'slideshow-gallery'), '<code>[tribulant_slideshow]</code>'); ?><br/>
|
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 esc_url($this -> Html -> otf_image_src($slide, 89, 89, 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> title)); ?>" /></span>
|
28 |
<span class="gallery_slide_title"><?php echo esc_html($slide -> title); ?></span>
|
29 |
</li>
|
30 |
<?php endif; ?>
|
views/admin/slides/save-multiple.php
CHANGED
@@ -4,7 +4,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
4 |
|
5 |
?>
|
6 |
|
7 |
-
<div class="wrap <?php echo $this -> pre; ?> slideshow">
|
8 |
<h1><?php _e('Save Multiple Slides', 'slideshow-gallery'); ?></h1>
|
9 |
|
10 |
<form action="" method="post">
|
@@ -28,7 +28,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
28 |
<?php if (!empty($_POST['Slide']['slides'])) : ?>
|
29 |
<?php $s = 0; ?>
|
30 |
<?php foreach ($_POST['Slide']['slides'] as $attachment_id => $slide) : ?>
|
31 |
-
<tr id="Slide_mediaupload_row_<?php echo $slide['attachment_id']; ?>">
|
32 |
<th style="width:100px; vertical-align:top;">
|
33 |
<a href="" class="colorbox" onclick="jQuery.colorbox({href:'<?php echo esc_attr($slide['url']); ?>'}); return false;"><img style="width:100px;" class="img-rounded" src="<?php echo esc_attr($slide['url']); ?>" />
|
34 |
</th>
|
@@ -38,7 +38,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
38 |
<div class="slideshow_error">
|
39 |
<ul>
|
40 |
<?php foreach ($errors[$s] as $error) : ?>
|
41 |
-
<li><?php echo $error; ?></li>
|
42 |
<?php endforeach; ?>
|
43 |
</ul>
|
44 |
</div>
|
@@ -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 $gallery_title; ?></label><br/>
|
73 |
<?php endforeach; ?>
|
74 |
<?php else : ?>
|
75 |
<span class="error"><?php _e('No galleries are available.', 'slideshow-gallery'); ?></span>
|
4 |
|
5 |
?>
|
6 |
|
7 |
+
<div class="wrap <?php echo esc_html($this -> pre); ?> slideshow">
|
8 |
<h1><?php _e('Save Multiple Slides', 'slideshow-gallery'); ?></h1>
|
9 |
|
10 |
<form action="" method="post">
|
28 |
<?php if (!empty($_POST['Slide']['slides'])) : ?>
|
29 |
<?php $s = 0; ?>
|
30 |
<?php foreach ($_POST['Slide']['slides'] as $attachment_id => $slide) : ?>
|
31 |
+
<tr id="Slide_mediaupload_row_<?php echo esc_html($slide['attachment_id']); ?>">
|
32 |
<th style="width:100px; vertical-align:top;">
|
33 |
<a href="" class="colorbox" onclick="jQuery.colorbox({href:'<?php echo esc_attr($slide['url']); ?>'}); return false;"><img style="width:100px;" class="img-rounded" src="<?php echo esc_attr($slide['url']); ?>" />
|
34 |
</th>
|
38 |
<div class="slideshow_error">
|
39 |
<ul>
|
40 |
<?php foreach ($errors[$s] as $error) : ?>
|
41 |
+
<li><?php echo esc_html($error); ?></li>
|
42 |
<?php endforeach; ?>
|
43 |
</ul>
|
44 |
</div>
|
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 esc_html($gallery_id); ?>" /> <?php echo esc_html($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
@@ -36,10 +36,10 @@ if ($this -> language_do()) {
|
|
36 |
|
37 |
?>
|
38 |
|
39 |
-
<div class="wrap <?php echo $this -> pre; ?> slideshow-gallery slideshow">
|
40 |
<h1><?php _e('Save a Slide', 'slideshow-gallery'); ?></h1>
|
41 |
|
42 |
-
<form action="<?php echo $this -> url; ?>&method=save" method="post" enctype="multipart/form-data">
|
43 |
<?php wp_nonce_field($this -> sections -> slides . '_save'); ?>
|
44 |
|
45 |
<input type="hidden" name="Slide[id]" value="<?php echo $id; ?>" />
|
@@ -56,12 +56,12 @@ if ($this -> language_do()) {
|
|
56 |
<div id="slide-title-tabs">
|
57 |
<ul>
|
58 |
<?php foreach ($languages as $language) : ?>
|
59 |
-
<li><a href="#slide-title-tabs-<?php echo $language; ?>"><?php echo $this -> language_flag($language); ?></a></li>
|
60 |
<?php endforeach; ?>
|
61 |
</ul>
|
62 |
<?php foreach ($languages as $language) : ?>
|
63 |
-
<div id="slide-title-tabs-<?php echo $language; ?>">
|
64 |
-
<input type="text" name="Slide[title][<?php echo $language; ?>]" id="Slide_title_<?php echo $language; ?>" value="<?php echo esc_attr(wp_unslash($titles[$language])); ?>" class="widefat" />
|
65 |
</div>
|
66 |
<?php endforeach; ?>
|
67 |
</div>
|
@@ -87,12 +87,12 @@ if ($this -> language_do()) {
|
|
87 |
<div id="slide-description-tabs">
|
88 |
<ul>
|
89 |
<?php foreach ($languages as $language) : ?>
|
90 |
-
<li><a href="#slide-description-tabs-<?php echo $language; ?>"><?php echo $this -> language_flag($language); ?></a></li>
|
91 |
<?php endforeach; ?>
|
92 |
</ul>
|
93 |
<?php foreach ($languages as $language) : ?>
|
94 |
-
<div id="slide-description-tabs-<?php echo $language; ?>">
|
95 |
-
<textarea name="Slide[description][<?php echo $language; ?>]" cols="100%" class="widefat" rows="5"><?php echo esc_attr(wp_unslash($descriptions[$language])); ?></textarea>
|
96 |
</div>
|
97 |
<?php endforeach; ?>
|
98 |
</div>
|
@@ -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 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,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 $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 |
|
@@ -255,7 +255,7 @@ if ($this -> language_do()) {
|
|
255 |
|
256 |
<input type="hidden" name="Slide[image_oldfile]" value="<?php echo esc_attr(wp_unslash($this -> Slide() -> data -> image)); ?>" />
|
257 |
<p><small><?php _e('Current image. Leave the field above blank to keep this image.', 'slideshow-gallery'); ?></small></p>
|
258 |
-
<p><a title="<?php echo esc_attr($this -> Slide() -> data -> title); ?>" class="colorbox" href="<?php echo $this -> Slide() -> data -> image_path; ?>"><img src="<?php echo $this -> Html -> otf_image_src($this -> Slide() -> data, 100, 100, 100); ?>" alt="" class="slideshow" /></a></p>
|
259 |
|
260 |
<?php
|
261 |
}
|
@@ -310,12 +310,12 @@ if ($this -> language_do()) {
|
|
310 |
<div id="slide-link-tabs">
|
311 |
<ul>
|
312 |
<?php foreach ($languages as $language) : ?>
|
313 |
-
<li><a href="#slide-link-tabs-<?php echo $language; ?>"><?php echo $this -> language_flag($language); ?></a></li>
|
314 |
<?php endforeach; ?>
|
315 |
</ul>
|
316 |
<?php foreach ($languages as $language) : ?>
|
317 |
-
<div id="slide-link-tabs-<?php echo $language; ?>">
|
318 |
-
<input type="text" name="Slide[link][<?php echo $language; ?>]" id="Slide_link_<?php echo $language; ?>" value="<?php echo esc_attr(wp_unslash($links[$language])); ?>" class="widefat" />
|
319 |
</div>
|
320 |
<?php endforeach; ?>
|
321 |
</div>
|
36 |
|
37 |
?>
|
38 |
|
39 |
+
<div class="wrap <?php echo esc_url($this -> pre); ?> slideshow-gallery slideshow">
|
40 |
<h1><?php _e('Save a Slide', 'slideshow-gallery'); ?></h1>
|
41 |
|
42 |
+
<form action="<?php echo esc_url($this -> url); ?>&method=save" method="post" enctype="multipart/form-data">
|
43 |
<?php wp_nonce_field($this -> sections -> slides . '_save'); ?>
|
44 |
|
45 |
<input type="hidden" name="Slide[id]" value="<?php echo $id; ?>" />
|
56 |
<div id="slide-title-tabs">
|
57 |
<ul>
|
58 |
<?php foreach ($languages as $language) : ?>
|
59 |
+
<li><a href="#slide-title-tabs-<?php echo esc_attr($language); ?>"><?php echo esc_html($this -> language_flag($language)); ?></a></li>
|
60 |
<?php endforeach; ?>
|
61 |
</ul>
|
62 |
<?php foreach ($languages as $language) : ?>
|
63 |
+
<div id="slide-title-tabs-<?php echo esc_attr($language); ?>">
|
64 |
+
<input type="text" name="Slide[title][<?php echo esc_attr($language); ?>]" id="Slide_title_<?php echo esc_attr($language); ?>" value="<?php echo esc_attr(wp_unslash($titles[$language])); ?>" class="widefat" />
|
65 |
</div>
|
66 |
<?php endforeach; ?>
|
67 |
</div>
|
87 |
<div id="slide-description-tabs">
|
88 |
<ul>
|
89 |
<?php foreach ($languages as $language) : ?>
|
90 |
+
<li><a href="#slide-description-tabs-<?php echo esc_attr($language); ?>"><?php echo esc_html($this -> language_flag($language)); ?></a></li>
|
91 |
<?php endforeach; ?>
|
92 |
</ul>
|
93 |
<?php foreach ($languages as $language) : ?>
|
94 |
+
<div id="slide-description-tabs-<?php echo esc_attr($language); ?>">
|
95 |
+
<textarea name="Slide[description][<?php echo esc_attr($language); ?>]" cols="100%" class="widefat" rows="5"><?php echo esc_attr(wp_unslash($descriptions[$language])); ?></textarea>
|
96 |
</div>
|
97 |
<?php endforeach; ?>
|
98 |
</div>
|
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 esc_html($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 esc_url($image_url); ?>" title="<?php echo esc_attr($this -> Slide() -> data -> title); ?>" class="colorbox"><img class="img-rounded" src="<?php echo esc_url($this -> Html -> otf_image_src($this -> Slide() -> data, 100, 100, 100)); ?>" /></a>
|
183 |
<?php endif; ?>
|
184 |
</div>
|
185 |
|
255 |
|
256 |
<input type="hidden" name="Slide[image_oldfile]" value="<?php echo esc_attr(wp_unslash($this -> Slide() -> data -> image)); ?>" />
|
257 |
<p><small><?php _e('Current image. Leave the field above blank to keep this image.', 'slideshow-gallery'); ?></small></p>
|
258 |
+
<p><a title="<?php echo esc_attr($this -> Slide() -> data -> title); ?>" class="colorbox" href="<?php echo esc_url($this -> Slide() -> data -> image_path); ?>"><img src="<?php echo esc_url($this -> Html -> otf_image_src($this -> Slide() -> data, 100, 100, 100)); ?>" alt="" class="slideshow" /></a></p>
|
259 |
|
260 |
<?php
|
261 |
}
|
310 |
<div id="slide-link-tabs">
|
311 |
<ul>
|
312 |
<?php foreach ($languages as $language) : ?>
|
313 |
+
<li><a href="#slide-link-tabs-<?php echo esc_attr($language); ?>"><?php echo esc_html($this -> language_flag($language)); ?></a></li>
|
314 |
<?php endforeach; ?>
|
315 |
</ul>
|
316 |
<?php foreach ($languages as $language) : ?>
|
317 |
+
<div id="slide-link-tabs-<?php echo esc_attr($language); ?>">
|
318 |
+
<input type="text" name="Slide[link][<?php echo esc_attr($language); ?>]" id="Slide_link_<?php echo esc_attr($language); ?>" value="<?php echo esc_attr(wp_unslash($links[$language])); ?>" class="widefat" />
|
319 |
</div>
|
320 |
<?php endforeach; ?>
|
321 |
</div>
|
views/admin/submitserial.php
CHANGED
@@ -39,7 +39,7 @@ $version_info = $update -> get_version_info();
|
|
39 |
</p>
|
40 |
</form>
|
41 |
<?php else : ?>
|
42 |
-
<p><?php _e('Serial Key:', 'slideshow-gallery'); ?> <strong><?php echo $this -> get_option('serialkey'); ?></strong></p>
|
43 |
<p><?php _e('Your current serial is valid and working.', 'slideshow-gallery'); ?></p>
|
44 |
|
45 |
<?php if (!empty($version_info['dtype']) && $version_info['dtype'] == "single") : ?>
|
@@ -47,7 +47,7 @@ $version_info = $update -> get_version_info();
|
|
47 |
<p><?php _e('You can upgrade one or more single domain licenses to an unlimited domains license.', 'slideshow-gallery'); ?>
|
48 |
<br/><?php _e('You only pay the difference.', 'slideshow-gallery'); ?></p>
|
49 |
<p>
|
50 |
-
<a class="button" href="https://tribulant.com/items/upgrade/<?php echo $version_info['item_id']; ?>" target="_blank"><i class="fa fa-level-up fa-fw"></i> <?php _e('Upgrade Now', 'slideshow-gallery'); ?></a>
|
51 |
</p>
|
52 |
<?php endif; ?>
|
53 |
|
@@ -64,7 +64,7 @@ $version_info = $update -> get_version_info();
|
|
64 |
<?php else : ?>
|
65 |
<p><?php _e('The serial key is valid and you can now continue using the Slideshow Gallery plugin. Thank you for your business and support!', 'slideshow-gallery'); ?></p>
|
66 |
<p>
|
67 |
-
<button type="button" onclick="jQuery.colorbox.close(); parent.location = '<?php echo rtrim(get_admin_url(), '/'); ?>/admin.php?page=<?php echo $this -> sections -> slides; ?>';" class="button-primary" name="close" value="1">
|
68 |
<i class="fa fa-check fa-fw"></i> <?php _e('Apply Serial and Close Window', 'slideshow-gallery'); ?>
|
69 |
</button>
|
70 |
</p>
|
39 |
</p>
|
40 |
</form>
|
41 |
<?php else : ?>
|
42 |
+
<p><?php _e('Serial Key:', 'slideshow-gallery'); ?> <strong><?php echo esc_html($this -> get_option('serialkey')); ?></strong></p>
|
43 |
<p><?php _e('Your current serial is valid and working.', 'slideshow-gallery'); ?></p>
|
44 |
|
45 |
<?php if (!empty($version_info['dtype']) && $version_info['dtype'] == "single") : ?>
|
47 |
<p><?php _e('You can upgrade one or more single domain licenses to an unlimited domains license.', 'slideshow-gallery'); ?>
|
48 |
<br/><?php _e('You only pay the difference.', 'slideshow-gallery'); ?></p>
|
49 |
<p>
|
50 |
+
<a class="button" href="https://tribulant.com/items/upgrade/<?php echo esc_html($version_info['item_id']); ?>" target="_blank"><i class="fa fa-level-up fa-fw"></i> <?php _e('Upgrade Now', 'slideshow-gallery'); ?></a>
|
51 |
</p>
|
52 |
<?php endif; ?>
|
53 |
|
64 |
<?php else : ?>
|
65 |
<p><?php _e('The serial key is valid and you can now continue using the Slideshow Gallery plugin. Thank you for your business and support!', 'slideshow-gallery'); ?></p>
|
66 |
<p>
|
67 |
+
<button type="button" onclick="jQuery.colorbox.close(); parent.location = '<?php echo rtrim(get_admin_url(), '/'); ?>/admin.php?page=<?php echo esc_html($this -> sections -> slides); ?>';" class="button-primary" name="close" value="1">
|
68 |
<i class="fa fa-check fa-fw"></i> <?php _e('Apply Serial and Close Window', 'slideshow-gallery'); ?>
|
69 |
</button>
|
70 |
</p>
|
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 esc_html($gallery -> title); ?> (<?php echo $slidescount; ?>)</option>
|
149 |
<?php endforeach; ?>
|
150 |
<?php endif; ?>
|
151 |
</select>
|
@@ -162,7 +162,7 @@ $post_types = get_post_types(array('public' => true), 'objects');
|
|
162 |
<label for="featuredtype"><?php _e('Post Type:', 'slideshow-gallery'); ?></label>
|
163 |
<select name="featuredtype" id="featuredtype">
|
164 |
<?php foreach ($post_types as $post_type_key => $post_type) : ?>
|
165 |
-
<option value="<?php echo $post_type_key; ?>"><?php echo $post_type -> labels -> name; ?></option>
|
166 |
<?php endforeach; ?>
|
167 |
</select>
|
168 |
</p>
|
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 esc_html($slidescount); ?>)</option>
|
149 |
<?php endforeach; ?>
|
150 |
<?php endif; ?>
|
151 |
</select>
|
162 |
<label for="featuredtype"><?php _e('Post Type:', 'slideshow-gallery'); ?></label>
|
163 |
<select name="featuredtype" id="featuredtype">
|
164 |
<?php foreach ($post_types as $post_type_key => $post_type) : ?>
|
165 |
+
<option value="<?php echo $post_type_key; ?>"><?php echo esc_html($post_type -> labels -> name); ?></option>
|
166 |
<?php endforeach; ?>
|
167 |
</select>
|
168 |
</p>
|
views/admin/update.php
CHANGED
@@ -9,12 +9,12 @@
|
|
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>
|
13 |
-
<a target="_blank" href="<?php echo $update_info['url']; ?>" title="" class="button-secondary"><i class="fa fa-download"></i> <?php _e('Download', 'slideshow-gallery'); ?></a>
|
14 |
-
<a style="color:black; text-decoration:none;" href="<?php echo admin_url('admin.php'); ?>?page=<?php echo $this -> sections -> settings_updates; ?>&method=check" class="button button-secondary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
15 |
<?php if (empty($_GET['page']) || (!empty($_GET['page']) && $_GET['page'] != $this -> sections -> settings_updates)) : ?>
|
16 |
<a class="button" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings_updates); ?>"><i class="fa fa-list-ul"></i> <?php _e('Changelog', 'slideshow-gallery'); ?></a>
|
17 |
-
<a href="?slideshow_method=hideupdate&version=<?php echo $update_info['version']; ?>" class="" style="position: absolute; top: 0; right: 0; margin: 10px 10px 0 0;"><i class="fa fa-times"></i></a>
|
18 |
<?php endif; ?>
|
19 |
</div>
|
20 |
<?php else : ?>
|
@@ -22,11 +22,11 @@
|
|
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>
|
26 |
-
<a style="color:black; text-decoration:none;" href="<?php echo admin_url('admin.php'); ?>?page=<?php echo $this -> sections -> settings_updates; ?>&method=check" class="button button-secondary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
27 |
<?php if (empty($_GET['page']) || (!empty($_GET['page']) && $_GET['page'] != $this -> sections -> settings_updates)) : ?>
|
28 |
<a class="button" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings_updates); ?>"><i class="fa fa-list-ul"></i> <?php _e('Changelog', 'slideshow-gallery'); ?></a>
|
29 |
-
<a href="?slideshow_method=hideupdate&version=<?php echo $update_info['version']; ?>" class="" style="position: absolute; top: 0; right: 0; margin: 10px 10px 0 0;"><i class="fa fa-times"></i></a>
|
30 |
<?php endif; ?>
|
31 |
</div>
|
32 |
<?php endif; ?>
|
@@ -35,12 +35,12 @@
|
|
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>
|
39 |
<a target="_blank" href="https://wordpress.org/plugins/slideshow-gallery/" title="" class="button-secondary"><i class="fa fa-download"></i> <?php _e('Download', 'slideshow-gallery'); ?></a>
|
40 |
-
<a style="color:black; text-decoration:none;" href="<?php echo admin_url('admin.php'); ?>?page=<?php echo $this -> sections -> settings_updates; ?>&method=check" class="button button-secondary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
41 |
<?php if (empty($_GET['page']) || (!empty($_GET['page']) && $_GET['page'] != $this -> sections -> settings_updates)) : ?>
|
42 |
<a class="button" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings_updates); ?>"><i class="fa fa-list-ul"></i> <?php _e('Changelog', 'slideshow-gallery'); ?></a>
|
43 |
-
<a href="?slideshow_method=hideupdate&version=<?php echo $update_info['version']; ?>" class="" style="position: absolute; top: 0; right: 0; margin: 10px 10px 0 0;"><i class="fa fa-times"></i></a>
|
44 |
<?php endif; ?>
|
45 |
</div>
|
46 |
<?php endif; ?>
|
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 esc_url($upgrade_url); ?>" title="" class="button-primary"><i class="fa fa-magic"></i> <?php _e('Update Automatically', 'slideshow-gallery'); ?></a>
|
13 |
+
<a target="_blank" href="<?php echo esc_url($update_info['url']); ?>" title="" class="button-secondary"><i class="fa fa-download"></i> <?php _e('Download', 'slideshow-gallery'); ?></a>
|
14 |
+
<a style="color:black; text-decoration:none;" href="<?php echo admin_url('admin.php'); ?>?page=<?php echo esc_html($this -> sections -> settings_updates); ?>&method=check" class="button button-secondary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
15 |
<?php if (empty($_GET['page']) || (!empty($_GET['page']) && $_GET['page'] != $this -> sections -> settings_updates)) : ?>
|
16 |
<a class="button" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings_updates); ?>"><i class="fa fa-list-ul"></i> <?php _e('Changelog', 'slideshow-gallery'); ?></a>
|
17 |
+
<a href="?slideshow_method=hideupdate&version=<?php echo esc_html($update_info['version']); ?>" class="" style="position: absolute; top: 0; right: 0; margin: 10px 10px 0 0;"><i class="fa fa-times"></i></a>
|
18 |
<?php endif; ?>
|
19 |
</div>
|
20 |
<?php else : ?>
|
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 esc_url($update_info['url']); ?>" target="_blank" title="" class="button button-primary"><?php _e('Renew Now', 'slideshow-gallery'); ?></a>
|
26 |
+
<a style="color:black; text-decoration:none;" href="<?php echo admin_url('admin.php'); ?>?page=<?php echo esc_html($this -> sections -> settings_updates); ?>&method=check" class="button button-secondary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
27 |
<?php if (empty($_GET['page']) || (!empty($_GET['page']) && $_GET['page'] != $this -> sections -> settings_updates)) : ?>
|
28 |
<a class="button" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings_updates); ?>"><i class="fa fa-list-ul"></i> <?php _e('Changelog', 'slideshow-gallery'); ?></a>
|
29 |
+
<a href="?slideshow_method=hideupdate&version=<?php echo esc_html($update_info['version']); ?>" class="" style="position: absolute; top: 0; right: 0; margin: 10px 10px 0 0;"><i class="fa fa-times"></i></a>
|
30 |
<?php endif; ?>
|
31 |
</div>
|
32 |
<?php endif; ?>
|
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 esc_url($upgrade_url); ?>" title="" class="button-primary"><i class="fa fa-magic"></i> <?php _e('Update Automatically', 'slideshow-gallery'); ?></a>
|
39 |
<a target="_blank" href="https://wordpress.org/plugins/slideshow-gallery/" title="" class="button-secondary"><i class="fa fa-download"></i> <?php _e('Download', 'slideshow-gallery'); ?></a>
|
40 |
+
<a style="color:black; text-decoration:none;" href="<?php echo admin_url('admin.php'); ?>?page=<?php echo esc_html($this -> sections -> settings_updates); ?>&method=check" class="button button-secondary"><i class="fa fa-history fa-fw"></i> <?php _e('Check Again', 'slideshow-gallery'); ?></a>
|
41 |
<?php if (empty($_GET['page']) || (!empty($_GET['page']) && $_GET['page'] != $this -> sections -> settings_updates)) : ?>
|
42 |
<a class="button" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> settings_updates); ?>"><i class="fa fa-list-ul"></i> <?php _e('Changelog', 'slideshow-gallery'); ?></a>
|
43 |
+
<a href="?slideshow_method=hideupdate&version=<?php echo esc_attr($update_info['version']); ?>" class="" style="position: absolute; top: 0; right: 0; margin: 10px 10px 0 0;"><i class="fa fa-times"></i></a>
|
44 |
<?php endif; ?>
|
45 |
</div>
|
46 |
<?php endif; ?>
|
views/default/css-generator-fn.php
CHANGED
@@ -10,46 +10,46 @@ function sg_generate_css($styles) {
|
|
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; ?>
|
@@ -75,46 +75,46 @@ function sg_generate_css_responsive($styles) {
|
|
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; } }
|
10 |
$unique = $styles['unique'];
|
11 |
|
12 |
if (!empty($styles['wrapperid'])) : ?>
|
13 |
+
ul.slideshow<?php echo esc_url($unique); ?> { list-style:none !important; color:#fff; }
|
14 |
+
ul.slideshow<?php echo esc_html($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 esc_html($styles['background']); ?>; padding:0 0 0 0; border:<?php echo esc_html($styles['border']); ?>; margin:0; display:none; }
|
16 |
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
17 |
+
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo esc_html($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 esc_html($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 esc_html($styles['infobackground']); ?>; color:<?php echo esc_html($styles['infocolor']); ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
|
19 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo esc_html($unique); ?> h3 { color:<?php echo esc_html($styles['infocolor']); ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
20 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo esc_html($unique); ?> a { color:<?php echo esc_html($styles['infocolor']); ?>; }
|
21 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo esc_html($unique); ?> p { color:<?php echo esc_html($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 esc_html($unique); ?> { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; }
|
26 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo esc_html($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 esc_html($unique); ?> { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; }
|
29 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo esc_html($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 esc_html($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 esc_html($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 esc_html($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 esc_html($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 esc_html($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 esc_html($unique); ?> { background:<?php echo esc_html($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 esc_html($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 esc_html($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 esc_html($unique); ?>:hover { background-color:#333; }
|
45 |
+
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo esc_html($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 esc_html($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 esc_html($unique); ?>:hover { background-color:#333; }
|
48 |
+
#<?php echo $styles['wrapperid']; ?> #slidearea<?php echo esc_html($unique); ?> { float:left; position:relative; background:<?php echo esc_html($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 esc_html($unique); ?> { position:absolute; width:<?php echo esc_html($styles['sliderwidth']); ?>px !important; left:0; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; }
|
50 |
+
#<?php echo $styles['wrapperid']; ?> #slider<?php echo esc_html($unique); ?> img { width:<?php echo esc_html($styles['thumbwidth']); ?>px; height:<?php echo esc_html($styles['thumbheight']); ?>px; cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
|
51 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo esc_html($unique); ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
|
52 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo esc_html($unique); ?> img { border:none; }
|
53 |
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
54 |
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
55 |
<?php endif; ?>
|
75 |
$unique = $styles['unique'];
|
76 |
|
77 |
if (!empty($styles['wrapperid'])) : ?>
|
78 |
+
ul.slideshow<?php echo esc_html($unique); ?> { list-style:none !important; color:#fff; }
|
79 |
+
ul.slideshow<?php echo esc_html($unique); ?> span { display:none; }
|
80 |
+
#<?php echo $styles['wrapperid']; ?> { overflow: hidden; position:relative; width:100%; background:<?php echo esc_html($styles['background']); ?>; padding:0 0 0 0; border:<?php echo esc_html($styles['border']); ?>; margin:0; display:none; }
|
81 |
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
82 |
+
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo esc_html($unique); ?> { position:relative; z-index:1; overflow:hidden; width:100%; height:<?php echo esc_html($resheight); ?>; clear:both; border: none; }
|
83 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo esc_html($unique); ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; width:100%; height:0; background:<?php echo esc_html($styles['infobackground']); ?>; color:<?php echo esc_html($styles['infocolor']); ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
|
84 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo esc_html($unique); ?> h3 { color:<?php echo esc_html($styles['infocolor']); ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
85 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo esc_html($unique); ?> a { color:<?php echo esc_html($styles['infocolor']); ?>; }
|
86 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo esc_html($unique); ?> p { color:<?php echo esc_html($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 esc_html($unique); ?> { width:100%; }
|
91 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo esc_html($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 esc_html($unique); ?> { width:100%; }
|
94 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo esc_html($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 esc_html($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 esc_html($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 esc_html($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 esc_html($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 esc_html($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 esc_html($unique); ?> { background:<?php echo esc_html($styles['background']); ?>; height:<?php echo esc_html($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 esc_html($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 esc_html($unique); ?> { text-align:left; float:left; position:absolute; left:0; z-index:150; width:20px; height:<?php echo esc_html($sliderheight); ?>px; background:#222; }
|
109 |
+
#<?php echo $styles['wrapperid']; ?> #slideleft<?php echo esc_html($unique); ?>:hover { background-color:#333; }
|
110 |
+
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo esc_html($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 esc_html($unique); ?> { text-align:left; float:right; position:absolute; right:0; z-index:150; width:20px; height:<?php echo esc_html($sliderheight); ?>px; background:#222; }
|
112 |
+
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo esc_html($unique); ?>:hover { background-color:#333; }
|
113 |
+
#<?php echo $styles['wrapperid']; ?> #slidearea<?php echo esc_html($unique); ?> { float:left; position:absolute; z-index:149; background:<?php echo esc_html($styles['background']); ?>; width:100%; margin:0; height:<?php echo esc_html($sliderheight); ?>px; overflow:hidden; }
|
114 |
+
#<?php echo $styles['wrapperid']; ?> #slider<?php echo esc_html($unique); ?> { position:absolute; width:<?php echo esc_html($styles['sliderwidth']); ?>px !important; left:0; height:<?php echo esc_html($sliderheight); ?>px; padding:3px 20px 0 25px; }
|
115 |
+
#<?php echo $styles['wrapperid']; ?> #slider<?php echo esc_html($unique); ?> img { width:<?php echo esc_html($styles['thumbwidth']); ?>px; height:<?php echo esc_html($styles['thumbheight']); ?>px; cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
|
116 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo esc_html($unique); ?> { position:relative; top:50%; left:45%; text-align:left; font-size:30px; }
|
117 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo esc_html($unique); ?> img { border:none; }
|
118 |
|
119 |
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
120 |
@media (max-width:480px) { .slideshow-information { display: none !important; } }
|
views/default/gallery.php
CHANGED
@@ -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($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>
|
@@ -54,20 +54,20 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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(); ?>
|
@@ -78,16 +78,16 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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>
|
@@ -100,24 +100,24 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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; ?>
|
@@ -127,7 +127,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
127 |
<?php endif; ?>
|
128 |
</ul>
|
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>
|
@@ -151,7 +151,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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>
|
@@ -174,22 +174,22 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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";
|
@@ -197,7 +197,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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']; ?>;
|
@@ -205,13 +205,13 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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()) : ?>
|
@@ -227,7 +227,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
227 |
<?php if ($options['layout'] == "responsive" && $options['resheighttype'] == "%") : ?>
|
228 |
jQuery(window).resize(function() {
|
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 |
});
|
@@ -253,7 +253,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
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]>
|
25 |
|
26 |
?>
|
27 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
28 |
+
<span data-alt="<?php echo esc_attr($this -> Html() -> sanitize($slide -> post_title)); ?>"><?php echo esc_html($this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100)); ?></span>
|
29 |
<?php else : ?>
|
30 |
+
<span data-alt="<?php echo esc_attr($this -> Html() -> sanitize($slide -> post_title)); ?>"><?php echo esc_html($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 esc_url($full_image_url); ?>" id="<?php echo esc_html($unique); ?>imglink<?php echo esc_html($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 esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> post_title)); ?>" />
|
37 |
<?php endif; ?>
|
38 |
</a>
|
39 |
</li>
|
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 esc_attr($this -> Html() -> sanitize($slide -> post_title)); ?>"><?php echo esc_html($this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100)); ?></span>
|
58 |
<?php else : ?>
|
59 |
+
<span data-alt="<?php echo esc_attr($this -> Html() -> sanitize($slide -> post_title)); ?>"><?php echo esc_html($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 esc_url($slide -> guid); ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"><img class="skip-lazy" src="<?php echo esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> post_title)); ?>" /></a>
|
66 |
<?php else : ?>
|
67 |
+
<a id="<?php echo esc_html($unique); ?>imglink<?php echo esc_html($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 esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> post_title)); ?>" /></a>
|
68 |
<?php endif; ?>
|
69 |
<?php else : ?>
|
70 |
+
<a href="<?php echo esc_url($slide -> guid); ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"></a>
|
71 |
<?php endif; ?>
|
72 |
</li>
|
73 |
<?php wp_reset_postdata(); ?>
|
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 esc_attr($this -> Html() -> sanitize($slide -> title)); ?>"><?php echo esc_html($this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100)); ?></span>
|
82 |
<?php else : ?>
|
83 |
+
<span data-alt="<?php echo esc_attr($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 esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> title)); ?>" /></a>
|
89 |
<?php else : ?>
|
90 |
+
<a><img class="skip-lazy" src="<?php echo esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($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>
|
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 esc_attr($this -> Html() -> sanitize($slide -> title)); ?>"><?php echo esc_html($this -> Html -> otf_image_src($slide, $options['width'], $options['height'], 100)); ?></span>
|
104 |
<?php else : ?>
|
105 |
+
<span data-alt="<?php echo esc_attr($this -> Html() -> sanitize($slide -> title)); ?>"><?php echo esc_html($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 esc_html($slide -> linktarget); ?>"><img class="skip-lazy" src="<?php echo esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> title)); ?>" /></a>
|
111 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
112 |
+
<a href="<?php echo esc_url($slide -> image_path); ?>" id="<?php echo esc_html($unique); ?>imglink<?php echo esc_html($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 esc_html($slide -> linktarget); ?>" title="<?php echo esc_attr($slide -> title); ?>"><img class="skip-lazy" src="<?php echo esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($this -> Html -> sanitize($slide -> title)); ?>" /></a>
|
113 |
<?php else : ?>
|
114 |
+
<a><img class="skip-lazy" src="<?php echo esc_url($this -> Html -> otf_image_src($slide, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100)); ?>" alt="<?php echo esc_attr($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 esc_html($slide -> linktarget); ?>" title="<?php echo esc_attr($slide -> title); ?>"></a>
|
119 |
<?php elseif ($options['imagesoverlay'] == "true") : ?>
|
120 |
+
<a href="<?php echo esc_url($slide -> image_path); ?>" id="<?php echo esc_html($unique); ?>imglink<?php echo esc_html($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 esc_html($slide -> linktarget); ?>" title="<?php echo esc_attr($slide -> title); ?>"></a>
|
121 |
<?php else : ?>
|
122 |
<a></a>
|
123 |
<?php endif; ?>
|
127 |
<?php endif; ?>
|
128 |
</ul>
|
129 |
|
130 |
+
<div id="<?php echo esc_attr($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>
|
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 esc_html($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>
|
174 |
<script type="text/javascript">
|
175 |
jQuery.noConflict();
|
176 |
tid('slideshow<?php echo esc_html($unique); ?>').style.display = "none";
|
177 |
+
tid('<?php echo esc_html($wrapperid); ?>').style.display = 'block';
|
178 |
+
tid('<?php echo esc_html($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 esc_html($options['autospeed']); ?>;
|
186 |
+
slideshow<?php echo esc_html($unique); ?>.effect = "<?php echo esc_html($options['effect']); ?>";
|
187 |
+
slideshow<?php echo esc_html($unique); ?>.slide_direction = "<?php echo esc_html($options['slide_direction']); ?>";
|
188 |
+
slideshow<?php echo esc_html($unique); ?>.easing = "<?php echo esc_html($options['easing']); ?>";
|
189 |
+
slideshow<?php echo esc_html($unique); ?>.alwaysauto = <?php echo esc_html($options['alwaysauto']); ?>;
|
190 |
+
slideshow<?php echo esc_html($unique); ?>.autoheight = <?php echo esc_html($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 esc_html($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";
|
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 esc_html($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']; ?>;
|
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 esc_html($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 esc_html($options['thumbsborder']); ?>";
|
211 |
+
slideshow<?php echo esc_html($unique); ?>.imagesthickbox = "<?php echo esc_html($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 esc_html($wrapperid); ?>').style.visibility = 'visible';
|
215 |
jQuery(window).trigger('resize');
|
216 |
|
217 |
<?php if ($this -> ci_serial_valid()) : ?>
|
227 |
<?php if ($options['layout'] == "responsive" && $options['resheighttype'] == "%") : ?>
|
228 |
jQuery(window).resize(function() {
|
229 |
var width = jQuery('#<?php echo $wrapperid; ?>').width();
|
230 |
+
var resheight = <?php echo esc_html($options['resheight']); ?>;
|
231 |
var height = Math.round(((resheight / 100) * width));
|
232 |
jQuery('#fullsize<?php echo esc_html($unique); ?>').height(height);
|
233 |
});
|
253 |
$slideshow_javascript[] = $javascript;
|
254 |
|
255 |
//ob_start();
|
256 |
+
/*<link rel="stylesheet" property="stylesheet" href="<?php echo esc_html($this -> get_css_url($cssattr, $options['layout'])); ?>" type="text/css" media="all" />*/
|
257 |
?>
|
258 |
|
259 |
<!--[if IE 6]>
|