Version Description
- ADD: WordPress 3.9 compatibility
- ADD: New shortcode
[tribulant_slideshow]
to prevent conflicts - IMPROVE: Reduced/hidden information bar on mobile
- IMPROVE: More CSS selectors on elements
- IMPROVE: New dashicon for help instead of CSS
- IMPROVE: File and folder permissions incorrect on some servers
- FIX: TinyMCE editor button/icon not inserting shortcodes
- FIX: PHP strict standards warnings
- FIX: NextGen Conflict
- FIX: Slideshow not showing with 1 slide
- FIX: TinyMCE editor icon/button since WordPress 3.9 missing
Download this release
Release Info
Developer | contrid |
Plugin | Slideshow Gallery |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.4
- css/admin.css +23 -2
- fonts/slideshow_dashicons.eot +0 -0
- fonts/slideshow_dashicons.svg +1 -0
- fonts/slideshow_dashicons.ttf +0 -0
- fonts/slideshow_dashicons.woff +0 -0
- helpers/html.php +4 -4
- js/tinymce/dialog.php +5 -5
- models/slide.php +17 -5
- readme.txt +32 -12
- slideshow-gallery-plugin.php +7 -3
- slideshow-gallery.php +27 -7
- vendors/class.paginate.php +1 -1
- views/admin/galleries/index.php +1 -1
- views/admin/galleries/save.php +1 -1
- views/admin/head.php +20 -1
- views/admin/metaboxes/settings-general.php +25 -16
- views/admin/metaboxes/settings-linksimages.php +1 -1
- views/admin/metaboxes/settings-styles.php +11 -12
- views/admin/metaboxes/settings-submit.php +1 -1
- views/admin/metaboxes/settings-wprelated.php +1 -1
- views/admin/slides/save.php +9 -9
- views/default/css-responsive copy.php +0 -36
- views/default/css-responsive.php +35 -27
- views/default/gallery.php +23 -22
css/admin.css
CHANGED
@@ -8,9 +8,10 @@ th.sorted.asc .sorting-indicator,th.desc:hover span.sorting-indicator{ display:b
|
|
8 |
th.sorted.desc .sorting-indicator,th.asc:hover span.sorting-indicator{ display:block; visibility:visible; background-position:-7px 0}
|
9 |
|
10 |
#adminmenu .toplevel_page_slideshow-slides div.wp-menu-image:before,
|
11 |
-
|
12 |
font-family: 'slideshow_dashicons' !important;
|
13 |
content: '\f233';
|
|
|
14 |
}
|
15 |
|
16 |
@font-face {
|
@@ -62,7 +63,7 @@ a.colorbox img.slideshow {
|
|
62 |
-moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
|
63 |
}
|
64 |
|
65 |
-
|
66 |
display: inline-block;
|
67 |
margin: 2px 0 0 5px;
|
68 |
vertical-align: top;
|
@@ -81,6 +82,26 @@ a.colorbox img.slideshow {
|
|
81 |
font-weight: bold;
|
82 |
font-size: 10px;
|
83 |
line-height: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
.ui-tooltip {
|
8 |
th.sorted.desc .sorting-indicator,th.asc:hover span.sorting-indicator{ display:block; visibility:visible; background-position:-7px 0}
|
9 |
|
10 |
#adminmenu .toplevel_page_slideshow-slides div.wp-menu-image:before,
|
11 |
+
.mce-i-gallery:before {
|
12 |
font-family: 'slideshow_dashicons' !important;
|
13 |
content: '\f233';
|
14 |
+
font-size: 20px;
|
15 |
}
|
16 |
|
17 |
@font-face {
|
63 |
-moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
|
64 |
}
|
65 |
|
66 |
+
/*.galleryhelp {
|
67 |
display: inline-block;
|
68 |
margin: 2px 0 0 5px;
|
69 |
vertical-align: top;
|
82 |
font-weight: bold;
|
83 |
font-size: 10px;
|
84 |
line-height: 15px;
|
85 |
+
}*/
|
86 |
+
|
87 |
+
.galleryhelp a,
|
88 |
+
.galleryhelp a:hover,
|
89 |
+
.galleryhelp a:active {
|
90 |
+
text-decoration: none;
|
91 |
+
color: #333;
|
92 |
+
}
|
93 |
+
|
94 |
+
.galleryhelp a:before {
|
95 |
+
font-family: 'slideshow_dashicons' !important;
|
96 |
+
content: '\f223';
|
97 |
+
font-weight: 400;
|
98 |
+
font-size: 20px;
|
99 |
+
vertical-align: top;
|
100 |
+
text-decoration: none;
|
101 |
+
line-height: 100%;
|
102 |
+
height: auto;
|
103 |
+
-webkit-font-smoothing: antialiased;
|
104 |
+
-moz-osx-font-smoothing: grayscale;
|
105 |
}
|
106 |
|
107 |
.ui-tooltip {
|
fonts/slideshow_dashicons.eot
CHANGED
Binary file
|
fonts/slideshow_dashicons.svg
CHANGED
@@ -8,6 +8,7 @@
|
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " d="" horiz-adv-x="512" />
|
10 |
<glyph unicode="" d="M460.8 499.2v307.2h-307.2v-307.2h307.2zM870.4 499.2v307.2h-307.2v-307.2h307.2zM460.8 89.6v307.2h-307.2v-307.2h307.2zM870.4 89.6v307.2h-307.2v-307.2h307.2z" />
|
|
|
11 |
<glyph unicode="" d="M153.6 755.2h716.8v-102.4h-716.8v102.4zM153.6 499.2h716.8v-102.4h-716.8v102.4zM153.6 243.2h716.8v-102.4h-716.8v102.4z" />
|
12 |
<glyph unicode="" d="M256 806.4h716.8v-563.2h-102.4v-102.4h-102.4v-102.4h-716.8v563.2h102.4v102.4h102.4v102.4zM921.6 294.4v460.8h-614.4v-460.8h614.4zM768 499.2q-41.984 0-72.192 30.208t-30.208 72.192 30.208 72.192 72.192 30.208 72.192-30.208 30.208-72.192-30.208-72.192-72.192-30.208zM819.2 192v51.2h-563.2v409.6h-51.2v-460.8h614.4zM358.4 652.8l512-307.2h-512v307.2zM716.8 89.6v51.2h-563.2v409.6h-51.2v-460.8h614.4z" />
|
13 |
</font></defs></svg>
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " d="" horiz-adv-x="512" />
|
10 |
<glyph unicode="" d="M460.8 499.2v307.2h-307.2v-307.2h307.2zM870.4 499.2v307.2h-307.2v-307.2h307.2zM460.8 89.6v307.2h-307.2v-307.2h307.2zM870.4 89.6v307.2h-307.2v-307.2h307.2z" />
|
11 |
+
<glyph unicode="" d="M870.4 448q0 97.28-48.128 179.968t-130.56 130.56-179.712 47.872q-73.216 0-139.52-28.416t-114.176-76.288-76.288-114.176-28.416-139.52 28.416-139.52 76.288-114.176 114.176-76.288 139.52-28.416q97.28 0 179.712 47.872t130.56 130.56 48.128 179.968zM547.84 372.224h-79.872v22.016q0 28.672 12.288 50.176 11.264 19.968 45.056 45.568 31.232 22.016 41.472 36.352 10.24 13.312 10.24 31.744 0 18.944-14.336 29.696-14.336 9.728-40.448 9.728-45.056 0-102.4-29.184l-32.768 65.536q67.072 37.888 141.824 37.888 61.44 0 98.304-29.696 36.352-29.696 36.352-79.36 0-33.792-14.848-56.832-13.824-23.040-56.832-54.272-28.16-20.48-36.352-32.256-7.68-11.264-7.68-29.184v-17.92zM472.576 231.936q-13.824 13.312-13.824 37.376 0 25.6 13.312 38.4t39.424 12.8q24.064 0 38.4-13.312 13.824-13.312 13.824-37.888 0-24.064-13.824-36.864-13.824-13.824-38.4-13.824t-38.912 13.312z" />
|
12 |
<glyph unicode="" d="M153.6 755.2h716.8v-102.4h-716.8v102.4zM153.6 499.2h716.8v-102.4h-716.8v102.4zM153.6 243.2h716.8v-102.4h-716.8v102.4z" />
|
13 |
<glyph unicode="" d="M256 806.4h716.8v-563.2h-102.4v-102.4h-102.4v-102.4h-716.8v563.2h102.4v102.4h102.4v102.4zM921.6 294.4v460.8h-614.4v-460.8h614.4zM768 499.2q-41.984 0-72.192 30.208t-30.208 72.192 30.208 72.192 72.192 30.208 72.192-30.208 30.208-72.192-30.208-72.192-72.192-30.208zM819.2 192v51.2h-563.2v409.6h-51.2v-460.8h614.4zM358.4 652.8l512-307.2h-512v307.2zM716.8 89.6v51.2h-563.2v409.6h-51.2v-460.8h614.4z" />
|
14 |
</font></defs></svg>
|
fonts/slideshow_dashicons.ttf
CHANGED
Binary file
|
fonts/slideshow_dashicons.woff
CHANGED
Binary file
|
helpers/html.php
CHANGED
@@ -9,7 +9,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
9 |
?>
|
10 |
|
11 |
<span class="galleryhelp">
|
12 |
-
<a href="" onclick="return false;" title="<?php echo esc_attr(
|
13 |
</span>
|
14 |
|
15 |
<?php
|
@@ -173,7 +173,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
173 |
return false;
|
174 |
}
|
175 |
|
176 |
-
function queryString($params, $name = null) {
|
177 |
|
178 |
$ret = "";
|
179 |
foreach ($params as $key => $val) {
|
@@ -195,7 +195,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
195 |
return rtrim($ret, "&");
|
196 |
}
|
197 |
|
198 |
-
function retainquery($add = null, $old_url = null, $endslash = true) {
|
199 |
$url = (empty($old_url)) ? $_SERVER['REQUEST_URI'] : rtrim($old_url, '&');
|
200 |
$urls = @explode("?", $url);
|
201 |
$add = ltrim($add, '&');
|
@@ -217,7 +217,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
217 |
|
218 |
$querystring = GalleryHtmlHelper::queryString($path_parts);
|
219 |
|
220 |
-
$urls[1] = preg_replace("/[\&|\?]
|
221 |
$urls[1] = preg_replace("/[\&|\?]page\=/si", "", $urls[1]);
|
222 |
|
223 |
$url = $urls[0];
|
9 |
?>
|
10 |
|
11 |
<span class="galleryhelp">
|
12 |
+
<a href="" onclick="return false;" title="<?php echo esc_attr(stripslashes($help)); ?>"></a>
|
13 |
</span>
|
14 |
|
15 |
<?php
|
173 |
return false;
|
174 |
}
|
175 |
|
176 |
+
public static function queryString($params, $name = null) {
|
177 |
|
178 |
$ret = "";
|
179 |
foreach ($params as $key => $val) {
|
195 |
return rtrim($ret, "&");
|
196 |
}
|
197 |
|
198 |
+
public static function retainquery($add = null, $old_url = null, $endslash = true) {
|
199 |
$url = (empty($old_url)) ? $_SERVER['REQUEST_URI'] : rtrim($old_url, '&');
|
200 |
$urls = @explode("?", $url);
|
201 |
$add = ltrim($add, '&');
|
217 |
|
218 |
$querystring = GalleryHtmlHelper::queryString($path_parts);
|
219 |
|
220 |
+
$urls[1] = preg_replace("/[\&|\?]Gallerymessage\=([0-9a-z-_+]*)/i", "", $urls[1]);
|
221 |
$urls[1] = preg_replace("/[\&|\?]page\=/si", "", $urls[1]);
|
222 |
|
223 |
$url = $urls[0];
|
js/tinymce/dialog.php
CHANGED
@@ -45,7 +45,7 @@ $checkout_active = is_plugin_active('wp-checkout' . DS . 'wp-checkout.php');
|
|
45 |
if (slideshow_type == "post") {
|
46 |
var post_id = jQuery('#post_id').val();
|
47 |
if (post_id == "") { alert('<?php _e('Please fill in a post ID.', $Gallery -> plugin_name); ?>'); return false; }
|
48 |
-
var tag = '[
|
49 |
|
50 |
if (exclude != "" && exclude != "undefined" && exclude != undefined) {
|
51 |
tag += ' exclude="' + exclude + '"';
|
@@ -53,23 +53,23 @@ $checkout_active = is_plugin_active('wp-checkout' . DS . 'wp-checkout.php');
|
|
53 |
|
54 |
tag += ']';
|
55 |
} else if (slideshow_type == "custom") {
|
56 |
-
var tag = '[
|
57 |
if (exclude != "" && exclude != "undefined" && exclude != undefined) { tag += ' exclude="' + exclude + '"'; }
|
58 |
tag += ']';
|
59 |
} else if (slideshow_type == "gallery") {
|
60 |
var gallery_id = jQuery('#gallery_id').val();
|
61 |
if (gallery_id == "") { alert('<?php _e('Please select a gallery.', $Gallery -> plugin_name); ?>'); return false; }
|
62 |
-
var tag = '[
|
63 |
if (exclude != "" && exclude != "undefined" && exclude != undefined) { tag += ' exclude="' + exclude + '"'; }
|
64 |
tag += ']';
|
65 |
} else if (slideshow_type == "products") {
|
66 |
var slideshow_products = jQuery('#slideshow_products').val();
|
67 |
var slideshow_productsnumber = jQuery('#slideshow_productsnumber').val();
|
68 |
-
var tag = '[
|
69 |
}
|
70 |
|
71 |
if(window.tinyMCE) {
|
72 |
-
window.tinyMCE.
|
73 |
tinyMCEPopup.editor.execCommand('mceRepaint');
|
74 |
tinyMCEPopup.close();
|
75 |
}
|
45 |
if (slideshow_type == "post") {
|
46 |
var post_id = jQuery('#post_id').val();
|
47 |
if (post_id == "") { alert('<?php _e('Please fill in a post ID.', $Gallery -> plugin_name); ?>'); return false; }
|
48 |
+
var tag = '[tribulant_slideshow post_id="' + post_id + '"';
|
49 |
|
50 |
if (exclude != "" && exclude != "undefined" && exclude != undefined) {
|
51 |
tag += ' exclude="' + exclude + '"';
|
53 |
|
54 |
tag += ']';
|
55 |
} else if (slideshow_type == "custom") {
|
56 |
+
var tag = '[tribulant_slideshow';
|
57 |
if (exclude != "" && exclude != "undefined" && exclude != undefined) { tag += ' exclude="' + exclude + '"'; }
|
58 |
tag += ']';
|
59 |
} else if (slideshow_type == "gallery") {
|
60 |
var gallery_id = jQuery('#gallery_id').val();
|
61 |
if (gallery_id == "") { alert('<?php _e('Please select a gallery.', $Gallery -> plugin_name); ?>'); return false; }
|
62 |
+
var tag = '[tribulant_slideshow gallery_id="' + gallery_id + '"';
|
63 |
if (exclude != "" && exclude != "undefined" && exclude != undefined) { tag += ' exclude="' + exclude + '"'; }
|
64 |
tag += ']';
|
65 |
} else if (slideshow_type == "products") {
|
66 |
var slideshow_products = jQuery('#slideshow_products').val();
|
67 |
var slideshow_productsnumber = jQuery('#slideshow_productsnumber').val();
|
68 |
+
var tag = '[tribulant_slideshow products="' + slideshow_products + '" productsnumber="' + slideshow_productsnumber + '"]';
|
69 |
}
|
70 |
|
71 |
if(window.tinyMCE) {
|
72 |
+
window.tinyMCE.execCommand('mceInsertContent', false, tag);
|
73 |
tinyMCEPopup.editor.execCommand('mceRepaint');
|
74 |
tinyMCEPopup.close();
|
75 |
}
|
models/slide.php
CHANGED
@@ -91,20 +91,32 @@ class GallerySlide extends GalleryDbHelper {
|
|
91 |
$imagepath = GalleryHtmlHelper::uploads_path() . DS . $this -> plugin_name . DS;
|
92 |
$imagefull = $imagepath . $imagename;
|
93 |
|
94 |
-
$this -> data -> image = $imagename;
|
95 |
-
$
|
|
|
|
|
|
|
|
|
|
|
96 |
} else {
|
97 |
if ($_FILES['image_file']['error'] <= 0) {
|
98 |
$imagename = $_FILES['image_file']['name'];
|
99 |
-
|
100 |
-
$imagepath = GalleryHtmlHelper::uploads_path() . DS . $this -> plugin_name . DS;
|
101 |
$imagefull = $imagepath . $imagename;
|
102 |
|
103 |
if (!is_uploaded_file($_FILES['image_file']['tmp_name'])) { $this -> errors['image_file'] = __('The image did not upload, please try again', $this -> plugin_name); }
|
104 |
elseif (!move_uploaded_file($_FILES['image_file']['tmp_name'], $imagefull)) { $this -> errors['image_file'] = __('Image could not be moved from TMP to "wp-content/uploads/", please check permissions', $this -> plugin_name); }
|
105 |
else {
|
|
|
|
|
106 |
$this -> data -> image = $imagename;
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
} else {
|
110 |
switch ($_FILES['image_file']['error']) {
|
91 |
$imagepath = GalleryHtmlHelper::uploads_path() . DS . $this -> plugin_name . DS;
|
92 |
$imagefull = $imagepath . $imagename;
|
93 |
|
94 |
+
$this -> data -> image = $imagename;
|
95 |
+
$imagespath = $this -> get_option('imagespath');
|
96 |
+
if (empty($imagespath)) {
|
97 |
+
$this -> data -> image_path = GalleryHtmlHelper::uploads_path() . DS . 'slideshow-gallery' . DS . $imagename;
|
98 |
+
} else {
|
99 |
+
$this -> data -> image_path = rtrim($imagespath, DS) . DS . $imagename;
|
100 |
+
}
|
101 |
} else {
|
102 |
if ($_FILES['image_file']['error'] <= 0) {
|
103 |
$imagename = $_FILES['image_file']['name'];
|
104 |
+
$imagepath = GalleryHtmlHelper::uploads_path() . DS . 'slideshow-gallery' . DS;
|
|
|
105 |
$imagefull = $imagepath . $imagename;
|
106 |
|
107 |
if (!is_uploaded_file($_FILES['image_file']['tmp_name'])) { $this -> errors['image_file'] = __('The image did not upload, please try again', $this -> plugin_name); }
|
108 |
elseif (!move_uploaded_file($_FILES['image_file']['tmp_name'], $imagefull)) { $this -> errors['image_file'] = __('Image could not be moved from TMP to "wp-content/uploads/", please check permissions', $this -> plugin_name); }
|
109 |
else {
|
110 |
+
@chmod($imagefull, 0644);
|
111 |
+
|
112 |
$this -> data -> image = $imagename;
|
113 |
+
//$this -> data -> image_path = GalleryHtmlHelper::uploads_path() . DS . $this -> plugin_name . DS . $imagename;
|
114 |
+
$imagespath = $this -> get_option('imagespath');
|
115 |
+
if (empty($imagespath)) {
|
116 |
+
$this -> image_path = GalleryHtmlHelper::uploads_path() . DS . 'slideshow-gallery' . DS . $imagename;
|
117 |
+
} else {
|
118 |
+
$this -> image_path = rtrim($imagespath, DS) . DS . $imagename;
|
119 |
+
}
|
120 |
}
|
121 |
} else {
|
122 |
switch ($_FILES['image_file']['error']) {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: contrid
|
|
3 |
Donate link: http://tribulant.com/
|
4 |
Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
|
5 |
Requires at least: 3.1
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
@@ -22,19 +22,19 @@ Here are several ways to display a slideshow:
|
|
22 |
|
23 |
= Shortcode for all slides =
|
24 |
|
25 |
-
To embed a slideshow with all slides under **Slideshow > Manage Slides** in the plugin, simply insert `[
|
26 |
|
27 |
= Shortcode for a gallery's slides =
|
28 |
|
29 |
-
To embed a slideshow with slides from a specific gallery under **Slideshow > Manage Galleries** in the plugin, simply insert `[
|
30 |
|
31 |
= Shortcode for the images of a WordPress post/page =
|
32 |
|
33 |
-
To embed a slideshow with the images uploaded to a WordPress post/page through it's media gallery, simply insert `[
|
34 |
|
35 |
= Shortcode for latest/featured products =
|
36 |
|
37 |
-
In order to display latest or featured products in a slideshow, you need the <a href="http://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin" title="WordPress Shopping Cart">Shopping Cart plugin</a> from Tribulant Software. Once you have this installed and activated, you can easily display recent or featured products. To display recent products use the shortcode `[
|
38 |
|
39 |
= Hardcode into any plugin/theme with PHP =
|
40 |
|
@@ -44,8 +44,8 @@ To hardcode into any PHP file of your WordPress theme, simply use `<?php if (fun
|
|
44 |
|
45 |
You can use any of the following parameters with both the hardcoding and shortcode to customize each slideshow gallery:
|
46 |
|
47 |
-
Shortcode Ex 1: `[
|
48 |
-
Shortcode Ex 2: `[
|
49 |
|
50 |
Hardcode Ex 1: `<?php slideshow(true, 3, false, array('layout' => "responsive", 'auto' => "true", 'navopacity' => "0", 'showthumbs' => "true")); ?>`
|
51 |
Hardcode Ex 2: `<?php slideshow(true, false, 379, array('layout' => "specific", 'width' => "600", 'height' => "300", 'auto' => "false", 'showinfo' => "false")); ?>`
|
@@ -87,7 +87,7 @@ Installing the WordPress slideshow gallery plugin is very easy. Simply follow th
|
|
87 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
88 |
1. Configure the settings according to your needs through the **Slideshow > Configuration** menu
|
89 |
1. Add and manage your slides in the 'Slideshow' section
|
90 |
-
1. Put `[
|
91 |
|
92 |
== Frequently Asked Questions ==
|
93 |
|
@@ -101,11 +101,11 @@ You can organize slides either into multiple galleries according to your needs o
|
|
101 |
|
102 |
= How do I display the images uploaded to a post? =
|
103 |
|
104 |
-
You can embed a slideshow and show the images uploaded to a post with the `post_id` parameter. Like this `[
|
105 |
|
106 |
= Can I exclude certain images from a post in the slideshow? =
|
107 |
|
108 |
-
Yes, you can use the `exclude` parameter to exclude post images by their order in the gallery (comma separated) like this `[
|
109 |
|
110 |
= How can I fix slide images or thumbnails not displaying? =
|
111 |
|
@@ -122,6 +122,26 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 1.3.1 =
|
126 |
|
127 |
* ADD: Images tester utility under Configuration to fix broken images
|
@@ -246,7 +266,7 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
|
|
246 |
* ADDED: Default, English language file in the `languages` folder.
|
247 |
* ADDED: Configuration setting to turn On/Off resizing of images via CSS.
|
248 |
* ADDED: Webkit border radius in CSS for thumbnail images.
|
249 |
-
* ADDED: `post_id` parameter for the `[
|
250 |
* IMPROVED: Plugin doesn't utilize PHP short open tags anymore.
|
251 |
* COMPATIBILITY: Removed `autoLoad` (introduced in PHP 5) parameter from `class_exists` function for PHP 4 compatibility.
|
252 |
* IMPROVED: Directory separator constant DS from DIRECTORY_SEPARATOR.
|
3 |
Donate link: http://tribulant.com/
|
4 |
Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
|
5 |
Requires at least: 3.1
|
6 |
+
Tested up to: 3.9
|
7 |
+
Stable tag: 1.4
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
22 |
|
23 |
= Shortcode for all slides =
|
24 |
|
25 |
+
To embed a slideshow with all slides under **Slideshow > Manage Slides** in the plugin, simply insert `[tribulant_slideshow]` into the content of a post/page.
|
26 |
|
27 |
= Shortcode for a gallery's slides =
|
28 |
|
29 |
+
To embed a slideshow with slides from a specific gallery under **Slideshow > Manage Galleries** in the plugin, simply insert `[tribulant_slideshow gallery_id="X"]` (where X is the ID value of the gallery) into the content of a post/page.
|
30 |
|
31 |
= Shortcode for the images of a WordPress post/page =
|
32 |
|
33 |
+
To embed a slideshow with the images uploaded to a WordPress post/page through it's media gallery, simply insert `[tribulant_slideshow post_id="X"]` (where X is the ID value of the post). Whether you want to display the images from a post or a page, the parameter remains `post_id`.
|
34 |
|
35 |
= Shortcode for latest/featured products =
|
36 |
|
37 |
+
In order to display latest or featured products in a slideshow, you need the <a href="http://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin" title="WordPress Shopping Cart">Shopping Cart plugin</a> from Tribulant Software. Once you have this installed and activated, you can easily display recent or featured products. To display recent products use the shortcode `[tribulant_slideshow products="latest"]` and to display featured products, use `[tribulant_slideshow products="featured"]`. For both, you can use the `productsnumber` parameter to limit the number of products eg. `[tribulant_slideshow products="latest" productsnumber="5"]`
|
38 |
|
39 |
= Hardcode into any plugin/theme with PHP =
|
40 |
|
44 |
|
45 |
You can use any of the following parameters with both the hardcoding and shortcode to customize each slideshow gallery:
|
46 |
|
47 |
+
Shortcode Ex 1: `[tribulant_slideshow layout="responsive" gallery_id="3" auto="true" navopacity="0" showthumbs="true"]`
|
48 |
+
Shortcode Ex 2: `[tribulant_slideshow layout="specific" post_id="379" width="600" height="300" auto="false" showinfo="false"]`
|
49 |
|
50 |
Hardcode Ex 1: `<?php slideshow(true, 3, false, array('layout' => "responsive", 'auto' => "true", 'navopacity' => "0", 'showthumbs' => "true")); ?>`
|
51 |
Hardcode Ex 2: `<?php slideshow(true, false, 379, array('layout' => "specific", 'width' => "600", 'height' => "300", 'auto' => "false", 'showinfo' => "false")); ?>`
|
87 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
88 |
1. Configure the settings according to your needs through the **Slideshow > Configuration** menu
|
89 |
1. Add and manage your slides in the 'Slideshow' section
|
90 |
+
1. Put `[tribulant_slideshow post_id="X"]` to embed a slideshow with the images of a post into your posts/pages or use `[tribulant_slideshow gallery_id="X"]` to display the slides of a specific gallery by ID or use `[tribulant_slideshow]` to embed a slideshow with your custom added slides under **Slideshow > Manage Slides** or `<?php if (function_exists('slideshow')) { slideshow($output = true, $gallery_id = false, $post_id = false, $params = array()); } ?>` into your WordPress theme using PHP code.
|
91 |
|
92 |
== Frequently Asked Questions ==
|
93 |
|
101 |
|
102 |
= How do I display the images uploaded to a post? =
|
103 |
|
104 |
+
You can embed a slideshow and show the images uploaded to a post with the `post_id` parameter. Like this `[tribulant_slideshow post_id="123"]`.
|
105 |
|
106 |
= Can I exclude certain images from a post in the slideshow? =
|
107 |
|
108 |
+
Yes, you can use the `exclude` parameter to exclude post images by their order in the gallery (comma separated) like this `[tribulant_slideshow post_id="123" exclude="2,4,8"]`.
|
109 |
|
110 |
= How can I fix slide images or thumbnails not displaying? =
|
111 |
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 1.4 =
|
126 |
+
* ADD: WordPress 3.9 compatibility
|
127 |
+
* ADD: New shortcode `[tribulant_slideshow]` to prevent conflicts
|
128 |
+
* IMPROVE: Reduced/hidden information bar on mobile
|
129 |
+
* IMPROVE: More CSS selectors on elements
|
130 |
+
* IMPROVE: New dashicon for help instead of CSS
|
131 |
+
* IMPROVE: File and folder permissions incorrect on some servers
|
132 |
+
* FIX: TinyMCE editor button/icon not inserting shortcodes
|
133 |
+
* FIX: PHP strict standards warnings
|
134 |
+
* FIX: NextGen Conflict
|
135 |
+
* FIX: Slideshow not showing with 1 slide
|
136 |
+
* FIX: TinyMCE editor icon/button since WordPress 3.9 missing
|
137 |
+
|
138 |
+
= 1.3.1.3 =
|
139 |
+
* FIX: Image could not be moved from TMP error in some cases
|
140 |
+
* FIX: PHP Strict, Notice and Warning messages
|
141 |
+
|
142 |
+
= 1.3.1.2 =
|
143 |
+
* FIX: Not all configuration settings loading
|
144 |
+
|
145 |
= 1.3.1 =
|
146 |
|
147 |
* ADD: Images tester utility under Configuration to fix broken images
|
266 |
* ADDED: Default, English language file in the `languages` folder.
|
267 |
* ADDED: Configuration setting to turn On/Off resizing of images via CSS.
|
268 |
* ADDED: Webkit border radius in CSS for thumbnail images.
|
269 |
+
* ADDED: `post_id` parameter for the `[tribulant_slideshow]` shortcode to display images from a post/page.
|
270 |
* IMPROVED: Plugin doesn't utilize PHP short open tags anymore.
|
271 |
* COMPATIBILITY: Removed `autoLoad` (introduced in PHP 5) parameter from `class_exists` function for PHP 4 compatibility.
|
272 |
* IMPROVED: Directory separator constant DS from DIRECTORY_SEPARATOR.
|
slideshow-gallery-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
class GalleryPlugin {
|
4 |
|
5 |
-
var $version = '1.
|
6 |
var $plugin_name;
|
7 |
var $plugin_base;
|
8 |
var $pre = 'Gallery';
|
@@ -33,7 +33,7 @@ class GalleryPlugin {
|
|
33 |
$wpdb -> show_errors();
|
34 |
|
35 |
if ($this -> debug_level == 2) {
|
36 |
-
error_reporting(E_ALL
|
37 |
@ini_set('display_errors', 1);
|
38 |
}
|
39 |
} else {
|
@@ -126,6 +126,7 @@ class GalleryPlugin {
|
|
126 |
$this -> add_option('navhover', 70);
|
127 |
$this -> add_option('information', "Y");
|
128 |
$this -> add_option('infospeed', 10);
|
|
|
129 |
$this -> add_option('thumbnails', "N");
|
130 |
$this -> add_option('thumbwidth', "100");
|
131 |
$this -> add_option('thumbheight', "75");
|
@@ -138,6 +139,8 @@ class GalleryPlugin {
|
|
138 |
$this -> add_option('autospeed', 10);
|
139 |
$this -> add_option('alwaysauto', "true");
|
140 |
$this -> add_option('imagesthickbox', "N");
|
|
|
|
|
141 |
}
|
142 |
|
143 |
function check_roles() {
|
@@ -289,7 +292,6 @@ class GalleryPlugin {
|
|
289 |
}
|
290 |
|
291 |
function check_uploaddir() {
|
292 |
-
//$uploaddir = ABSPATH . 'wp-content' . DS . 'uploads' . DS . $this -> plugin_name . DS;
|
293 |
$uploaddir = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS;
|
294 |
$cachedir = $uploaddir . 'cache' . DS;
|
295 |
|
@@ -620,6 +622,8 @@ class GalleryPlugin {
|
|
620 |
${$pkey} = $pval;
|
621 |
}
|
622 |
}
|
|
|
|
|
623 |
|
624 |
if ($output == false) {
|
625 |
ob_start();
|
2 |
|
3 |
class GalleryPlugin {
|
4 |
|
5 |
+
var $version = '1.4';
|
6 |
var $plugin_name;
|
7 |
var $plugin_base;
|
8 |
var $pre = 'Gallery';
|
33 |
$wpdb -> show_errors();
|
34 |
|
35 |
if ($this -> debug_level == 2) {
|
36 |
+
error_reporting(E_ALL & ~(E_STRICT|E_NOTICE));
|
37 |
@ini_set('display_errors', 1);
|
38 |
}
|
39 |
} else {
|
126 |
$this -> add_option('navhover', 70);
|
127 |
$this -> add_option('information', "Y");
|
128 |
$this -> add_option('infospeed', 10);
|
129 |
+
$this -> add_option('infohideonmobile', 1);
|
130 |
$this -> add_option('thumbnails', "N");
|
131 |
$this -> add_option('thumbwidth', "100");
|
132 |
$this -> add_option('thumbheight', "75");
|
139 |
$this -> add_option('autospeed', 10);
|
140 |
$this -> add_option('alwaysauto', "true");
|
141 |
$this -> add_option('imagesthickbox', "N");
|
142 |
+
|
143 |
+
return;
|
144 |
}
|
145 |
|
146 |
function check_roles() {
|
292 |
}
|
293 |
|
294 |
function check_uploaddir() {
|
|
|
295 |
$uploaddir = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS;
|
296 |
$cachedir = $uploaddir . 'cache' . DS;
|
297 |
|
622 |
${$pkey} = $pval;
|
623 |
}
|
624 |
}
|
625 |
+
|
626 |
+
$this -> initialize_classes();
|
627 |
|
628 |
if ($output == false) {
|
629 |
ob_start();
|
slideshow-gallery.php
CHANGED
@@ -5,8 +5,8 @@ Plugin Name: Slideshow Gallery
|
|
5 |
Plugin URI: http://wpgallery.tribulant.net
|
6 |
Author: Tribulant Software
|
7 |
Author URI: http://tribulant.com
|
8 |
-
Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[
|
9 |
-
Version: 1.
|
10 |
*/
|
11 |
|
12 |
if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); }
|
@@ -43,7 +43,10 @@ if (!class_exists('Gallery')) {
|
|
43 |
$this -> add_filter('mce_external_plugins');
|
44 |
$this -> add_filter("plugin_action_links_" . $this -> plugin_file, 'plugin_settings_link', 10, 1);
|
45 |
|
46 |
-
if (!is_admin()) {
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
function plugin_settings_link($links) {
|
@@ -99,7 +102,7 @@ if (!class_exists('Gallery')) {
|
|
99 |
if (!empty($_GET['page']) && (empty($_GET['method']) || $_GET['method'] != "imagestester") && in_array($_GET['page'], (array) $this -> sections)) {
|
100 |
$dismiss_imagestester = $this -> get_option('dismiss_imagestester');
|
101 |
if (empty($dismiss_imagestester)) {
|
102 |
-
$this -> render_msg(sprintf(__('Slideshow images and thumbnails working fine? If not, use the %sImages Tester%s to fix it. Working fine? Then you can %s this message.', $this -> plugin_name), '<a class="button" href="admin.php?page=' . $this -> sections -> settings . '&method=imagestester">', '</a>', '<a class="button" href="admin.php?page=' . $this -> sections -> settings . '&method=dismiss&dismiss=imagestester">' . __('Dismiss', $this -> plugin_name) . '</a>'));
|
103 |
}
|
104 |
}
|
105 |
}
|
@@ -222,12 +225,19 @@ if (!class_exists('Gallery')) {
|
|
222 |
$this -> GallerySlides -> table . ".gallery_id = '" . $gallery_id . "' " . $orderbystring;
|
223 |
|
224 |
if ($slides = $wpdb -> get_results($slidesquery)) {
|
|
|
|
|
225 |
foreach ($slides as $skey => $slide) {
|
226 |
-
|
|
|
|
|
|
|
|
|
|
|
227 |
}
|
228 |
|
229 |
if ($orderby == "random") { shuffle($slides); }
|
230 |
-
$content = $this -> render('gallery', array('slides' => $slides, 'unique' => $gallery_id, 'options' => $s, 'frompost' => false), false, 'default');
|
231 |
}
|
232 |
} elseif (!empty($custom) || empty($post_id)) {
|
233 |
$slides = $this -> Slide -> find_all(null, null, $orderby);
|
@@ -442,6 +452,8 @@ if (!class_exists('Gallery')) {
|
|
442 |
}
|
443 |
|
444 |
function admin_settings() {
|
|
|
|
|
445 |
switch ($_GET['method']) {
|
446 |
case 'dismiss' :
|
447 |
if (!empty($_GET['dismiss'])) {
|
@@ -460,7 +472,12 @@ if (!class_exists('Gallery')) {
|
|
460 |
$path = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS;
|
461 |
break;
|
462 |
case 2 :
|
463 |
-
|
|
|
|
|
|
|
|
|
|
|
464 |
break;
|
465 |
case 3 :
|
466 |
$path = $this -> Html -> uploads_url() . DS . $this -> plugin_name . DS;
|
@@ -484,6 +501,8 @@ if (!class_exists('Gallery')) {
|
|
484 |
$query = "DELETE FROM `" . $wpdb -> prefix . "options` WHERE `option_name` LIKE '" . $this -> pre . "%';";
|
485 |
|
486 |
if ($wpdb -> query($query)) {
|
|
|
|
|
487 |
$message = __('All configuration settings have been reset to their defaults', $this -> plugin_name);
|
488 |
$msg_type = 'message';
|
489 |
$this -> render_msg($message);
|
@@ -498,6 +517,7 @@ if (!class_exists('Gallery')) {
|
|
498 |
default :
|
499 |
if (!empty($_POST)) {
|
500 |
delete_option('tridebugging');
|
|
|
501 |
|
502 |
foreach ($_POST as $pkey => $pval) {
|
503 |
switch ($pkey) {
|
5 |
Plugin URI: http://wpgallery.tribulant.net
|
6 |
Author: Tribulant Software
|
7 |
Author URI: http://tribulant.com
|
8 |
+
Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[tribulant_slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code><?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?></code>.
|
9 |
+
Version: 1.4
|
10 |
*/
|
11 |
|
12 |
if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); }
|
43 |
$this -> add_filter('mce_external_plugins');
|
44 |
$this -> add_filter("plugin_action_links_" . $this -> plugin_file, 'plugin_settings_link', 10, 1);
|
45 |
|
46 |
+
if (!is_admin()) {
|
47 |
+
add_shortcode('slideshow', array($this, 'embed'));
|
48 |
+
add_shortcode('tribulant_slideshow', array($this, 'embed'));
|
49 |
+
}
|
50 |
}
|
51 |
|
52 |
function plugin_settings_link($links) {
|
102 |
if (!empty($_GET['page']) && (empty($_GET['method']) || $_GET['method'] != "imagestester") && in_array($_GET['page'], (array) $this -> sections)) {
|
103 |
$dismiss_imagestester = $this -> get_option('dismiss_imagestester');
|
104 |
if (empty($dismiss_imagestester)) {
|
105 |
+
$this -> render_msg(sprintf(__('Slideshow Gallery plugin images and thumbnails working fine? If not, use the %sImages Tester%s to fix it. Working fine? Then you can %s this message.', $this -> plugin_name), '<a class="button button-small" href="admin.php?page=' . $this -> sections -> settings . '&method=imagestester">', '</a>', '<a class="button button-small" href="admin.php?page=' . $this -> sections -> settings . '&method=dismiss&dismiss=imagestester">' . __('Dismiss', $this -> plugin_name) . '</a>'));
|
106 |
}
|
107 |
}
|
108 |
}
|
225 |
$this -> GallerySlides -> table . ".gallery_id = '" . $gallery_id . "' " . $orderbystring;
|
226 |
|
227 |
if ($slides = $wpdb -> get_results($slidesquery)) {
|
228 |
+
$imagespath = $this -> get_option('imagespath');
|
229 |
+
|
230 |
foreach ($slides as $skey => $slide) {
|
231 |
+
//$slides[$skey] -> image_path = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS . $slide -> image;
|
232 |
+
if (empty($imagespath)) {
|
233 |
+
$slides[$skey] -> image_path = $this -> Html -> uploads_path() . DS . 'slideshow-gallery' . DS . $slide -> image;
|
234 |
+
} else {
|
235 |
+
$slides[$skey] -> image_path = rtrim($imagespath, DS) . DS . $slide -> image;
|
236 |
+
}
|
237 |
}
|
238 |
|
239 |
if ($orderby == "random") { shuffle($slides); }
|
240 |
+
$content = $this -> render('gallery', array('slides' => $slides, 'unique' => 'gallery' . $gallery_id, 'options' => $s, 'frompost' => false), false, 'default');
|
241 |
}
|
242 |
} elseif (!empty($custom) || empty($post_id)) {
|
243 |
$slides = $this -> Slide -> find_all(null, null, $orderby);
|
452 |
}
|
453 |
|
454 |
function admin_settings() {
|
455 |
+
$this -> initialize_options();
|
456 |
+
|
457 |
switch ($_GET['method']) {
|
458 |
case 'dismiss' :
|
459 |
if (!empty($_GET['dismiss'])) {
|
472 |
$path = $this -> Html -> uploads_path() . DS . $this -> plugin_name . DS;
|
473 |
break;
|
474 |
case 2 :
|
475 |
+
if (is_multisite()) {
|
476 |
+
global $blog_id;
|
477 |
+
$path = 'wp-content' . DS . 'uploads' . DS . 'sites' . DS . $blog_id . DS . $this -> plugin_name . DS;
|
478 |
+
} else {
|
479 |
+
$path = 'wp-content' . DS . 'uploads' . DS . $this -> plugin_name . DS;
|
480 |
+
}
|
481 |
break;
|
482 |
case 3 :
|
483 |
$path = $this -> Html -> uploads_url() . DS . $this -> plugin_name . DS;
|
501 |
$query = "DELETE FROM `" . $wpdb -> prefix . "options` WHERE `option_name` LIKE '" . $this -> pre . "%';";
|
502 |
|
503 |
if ($wpdb -> query($query)) {
|
504 |
+
$this -> initialize_options();
|
505 |
+
|
506 |
$message = __('All configuration settings have been reset to their defaults', $this -> plugin_name);
|
507 |
$msg_type = 'message';
|
508 |
$this -> render_msg($message);
|
517 |
default :
|
518 |
if (!empty($_POST)) {
|
519 |
delete_option('tridebugging');
|
520 |
+
delete_option('Galleryinfohideonmobile');
|
521 |
|
522 |
foreach ($_POST as $pkey => $pval) {
|
523 |
switch ($pkey) {
|
vendors/class.paginate.php
CHANGED
@@ -186,7 +186,7 @@ class GalleryPaginate extends GalleryPlugin {
|
|
186 |
if ($k != $this -> page) {
|
187 |
$this -> pagination .= '<a class="page-numbers" href="' . GalleryHtmlHelper::retainquery($add_numbers) . '" title="' . __('Page', $this -> plugin_name) . ' ' . $k . '">' . $k . '</a>';
|
188 |
} else {
|
189 |
-
$this -> pagination .= '<
|
190 |
}
|
191 |
}
|
192 |
|
186 |
if ($k != $this -> page) {
|
187 |
$this -> pagination .= '<a class="page-numbers" href="' . GalleryHtmlHelper::retainquery($add_numbers) . '" title="' . __('Page', $this -> plugin_name) . ' ' . $k . '">' . $k . '</a>';
|
188 |
} else {
|
189 |
+
$this -> pagination .= '<a class="page-numbers current">' . $k . '</span>';
|
190 |
}
|
191 |
}
|
192 |
|
views/admin/galleries/index.php
CHANGED
@@ -98,7 +98,7 @@
|
|
98 |
<a href="?page=<?php echo $this -> sections -> galleries; ?>&method=view&id=<?php echo $gallery -> id; ?>"><?php echo $gallery -> slidescount; ?></a>
|
99 |
</td>
|
100 |
<td>
|
101 |
-
<code>[
|
102 |
</td>
|
103 |
<td><abbr title="<?php echo $gallery -> modified; ?>"><?php echo date("Y-m-d", strtotime($gallery -> modified)); ?></abbr></td>
|
104 |
</tr>
|
98 |
<a href="?page=<?php echo $this -> sections -> galleries; ?>&method=view&id=<?php echo $gallery -> id; ?>"><?php echo $gallery -> slidescount; ?></a>
|
99 |
</td>
|
100 |
<td>
|
101 |
+
<code>[tribulant_slideshow gallery_id="<?php echo $gallery -> id; ?>"]</code>
|
102 |
</td>
|
103 |
<td><abbr title="<?php echo $gallery -> modified; ?>"><?php echo date("Y-m-d", strtotime($gallery -> modified)); ?></abbr></td>
|
104 |
</tr>
|
views/admin/galleries/save.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<tbody>
|
9 |
<tr>
|
10 |
<th><label for="Gallery_title"><?php _e('Title', $this -> plugin_name); ?></label>
|
11 |
-
<?php echo
|
12 |
<td>
|
13 |
<input type="text" class="widefat" name="Gallery[title]" value="<?php echo esc_attr(stripslashes($this -> Gallery -> data -> title)); ?>" id="Gallery_title" />
|
14 |
<span class="howto"><?php _e('Title of this gallery for identification purposes.', $this -> plugin_name); ?></span>
|
8 |
<tbody>
|
9 |
<tr>
|
10 |
<th><label for="Gallery_title"><?php _e('Title', $this -> plugin_name); ?></label>
|
11 |
+
<?php echo $this -> Html -> help(__('Give this gallery a title/name for your own reference.', $this -> plugin_name)); ?></th>
|
12 |
<td>
|
13 |
<input type="text" class="widefat" name="Gallery[title]" value="<?php echo esc_attr(stripslashes($this -> Gallery -> data -> title)); ?>" id="Gallery_title" />
|
14 |
<span class="howto"><?php _e('Title of this gallery for identification purposes.', $this -> plugin_name); ?></span>
|
views/admin/head.php
CHANGED
@@ -3,6 +3,25 @@ var GalleryAjax = "<?php echo $this -> url(); ?>/<?php echo $this -> plugin_name
|
|
3 |
|
4 |
jQuery(document).ready(function() {
|
5 |
if (jQuery.isFunction(jQuery.fn.colorbox)) { jQuery('.colorbox').colorbox({maxWidth:'100%', maxHeight:'100%'}); }
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
});
|
8 |
</script>
|
3 |
|
4 |
jQuery(document).ready(function() {
|
5 |
if (jQuery.isFunction(jQuery.fn.colorbox)) { jQuery('.colorbox').colorbox({maxWidth:'100%', maxHeight:'100%'}); }
|
6 |
+
|
7 |
+
if (jQuery.isFunction(jQuery.fn.tooltip)) {
|
8 |
+
jQuery(".galleryhelp a").tooltip({
|
9 |
+
content: function () {
|
10 |
+
return jQuery(this).prop('title');
|
11 |
+
},
|
12 |
+
show: null,
|
13 |
+
close: function (event, ui) {
|
14 |
+
ui.tooltip.hover(
|
15 |
+
function () {
|
16 |
+
jQuery(this).stop(true).fadeTo(400, 1);
|
17 |
+
},
|
18 |
+
function () {
|
19 |
+
jQuery(this).fadeOut("400", function () {
|
20 |
+
jQuery(this).remove();
|
21 |
+
})
|
22 |
+
});
|
23 |
+
}
|
24 |
+
});
|
25 |
+
}
|
26 |
});
|
27 |
</script>
|
views/admin/metaboxes/settings-general.php
CHANGED
@@ -8,6 +8,7 @@ $fadespeed = $this -> get_option('fadespeed');
|
|
8 |
$navopacity = $this -> get_option('navopacity');
|
9 |
$navhover = $this -> get_option('navhover');
|
10 |
$infospeed = $this -> get_option('infospeed');
|
|
|
11 |
$thumbopacity = $this -> get_option('thumbopacity');
|
12 |
$thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
13 |
|
@@ -17,7 +18,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
17 |
<tbody>
|
18 |
<tr>
|
19 |
<th><label for="imagespath"><?php _e('Images Path', $this -> plugin_name); ?></label>
|
20 |
-
<?php echo
|
21 |
<td>
|
22 |
<input type="text" class="widefat" name="imagespath" value="<?php echo esc_attr(stripslashes($imagespath)); ?>" id="imagespath" />
|
23 |
<span class="howto"><?php _e('Path to images where slide and thumbnail images are generated from.', $this -> plugin_name); ?></span>
|
@@ -25,7 +26,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
25 |
</tr>
|
26 |
<tr>
|
27 |
<th><label for="autoslideY"><?php _e('Auto Slide', $this -> plugin_name); ?></label>
|
28 |
-
<?php echo
|
29 |
<td>
|
30 |
<label><input onclick="jQuery('#autoslide_div').show();" <?php echo ($this -> get_option('autoslide') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="autoslide" value="Y" id="autoslideY" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
31 |
<label><input onclick="jQuery('#autoslide_div').hide();" <?php echo ($this -> get_option('autoslide') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="autoslide" value="N" id="autoslideN" /> <?php _e('No', $this -> plugin_name); ?></label>
|
@@ -40,7 +41,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
40 |
<tbody>
|
41 |
<tr>
|
42 |
<th><label for="alwaysauto_true"><?php _e('Always Auto', $this -> plugin_name); ?></label>
|
43 |
-
<?php echo
|
44 |
<td>
|
45 |
<label><input <?php echo ($this -> get_option('alwaysauto') == "true") ? 'checked="checked"' : ''; ?> type="radio" name="alwaysauto" value="true" id="alwaysauto_true" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
46 |
<label><input <?php echo ($this -> get_option('alwaysauto') == "false") ? 'checked="checked"' : ''; ?> type="radio" name="alwaysauto" value="false" id="alwaysauto_false" /> <?php _e('No', $this -> plugin_name); ?></label>
|
@@ -49,7 +50,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
49 |
</tr>
|
50 |
<tr>
|
51 |
<th><label for="autospeed"><?php _e('Auto Speed', $this -> plugin_name); ?></label>
|
52 |
-
<?php echo
|
53 |
<td>
|
54 |
<input type="hidden" style="width:45px;" name="autospeed" value="<?php echo $autospeed; ?>" id="autospeed" />
|
55 |
<div id="autospeed_slider"></div>
|
@@ -78,7 +79,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
78 |
<tbody>
|
79 |
<tr>
|
80 |
<th><label for="fadespeed"><?php _e('Image Fading Speed', $this -> plugin_name); ?></label>
|
81 |
-
<?php echo
|
82 |
<td>
|
83 |
<input style="width:45px;" type="hidden" name="fadespeed" value="<?php echo $fadespeed; ?>" id="fadespeed" />
|
84 |
<div id="fadespeed_slider"></div>
|
@@ -101,7 +102,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
101 |
</tr>
|
102 |
<tr>
|
103 |
<th><label for="shownav_Y"><?php _e('Show Image Navigation', $this -> plugin_name); ?></label>
|
104 |
-
<?php echo
|
105 |
<td>
|
106 |
<label><input <?php echo ($this -> get_option('shownav') == "Y") ? 'checked="checked"' : ''; ?> onclick="jQuery('#shownavdiv').show();" type="radio" name="shownav" value="Y" id="shownav_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
107 |
<label><input <?php echo ($this -> get_option('shownav') == "N") ? 'checked="checked"' : ''; ?> onclick="jQuery('#shownavdiv').hide();" type="radio" name="shownav" value="N" id="shownav_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
@@ -116,7 +117,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
116 |
<tbody>
|
117 |
<tr>
|
118 |
<th><label for="navopacity"><?php _e('Navigation Default Opacity', $this -> plugin_name); ?></label>
|
119 |
-
<?php echo
|
120 |
<td>
|
121 |
<input type="hidden" name="navopacity" value="<?php echo $navopacity; ?>" id="navopacity" style="width:45px;" />
|
122 |
<div id="navopacity_slider"></div>
|
@@ -140,7 +141,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
140 |
</tr>
|
141 |
<tr>
|
142 |
<th><label for="navhover"><?php _e('Navigation Hover Opacity', $this -> plugin_name); ?></label>
|
143 |
-
<?php echo
|
144 |
<td>
|
145 |
<input type="hidden" name="navhover" value="<?php echo $navhover; ?>" id="navhover" style="width:45px;" />
|
146 |
<div id="navhover_slider"></div>
|
@@ -169,7 +170,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
169 |
<tbody>
|
170 |
<tr>
|
171 |
<th><label for="informationY"><?php _e('Show Information', $this -> plugin_name); ?></label>
|
172 |
-
<?php echo
|
173 |
<td>
|
174 |
<label><input onclick="jQuery('#information_div').show();" <?php echo ($this -> get_option('information') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="information" value="Y" id="informationY" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
175 |
<label><input onclick="jQuery('#information_div').hide();" <?php echo ($this -> get_option('information') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="information" value="N" id="informationN" /> <?php _e('No', $this -> plugin_name); ?></label>
|
@@ -184,7 +185,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
184 |
<tbody>
|
185 |
<tr>
|
186 |
<th><label for="infospeed"><?php _e('Information Speed', $this -> plugin_name); ?></label>
|
187 |
-
<?php echo
|
188 |
<td>
|
189 |
<input type="hidden" style="width:45px;" name="infospeed" value="<?php echo $infospeed; ?>" id="infospeed" />
|
190 |
<div id="infospeed_slider"></div>
|
@@ -205,6 +206,14 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
205 |
<span class="howto"><?php _e('Speed at which the information bar will slide in and out.', $this -> plugin_name); ?></span>
|
206 |
</td>
|
207 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
</tbody>
|
209 |
</table>
|
210 |
</div>
|
@@ -213,7 +222,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
213 |
<tbody>
|
214 |
<tr>
|
215 |
<th><label for="thumbnailsN"><?php _e('Show Thumbnails', $this -> plugin_name); ?></label>
|
216 |
-
<?php echo
|
217 |
<td>
|
218 |
<label><input onclick="jQuery('#thumbnails_div').show();" <?php echo ($this -> get_option('thumbnails') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="thumbnails" value="Y" id="thumbnailsY" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
219 |
<label><input onclick="jQuery('#thumbnails_div').hide();" <?php echo ($this -> get_option('thumbnails') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="thumbnails" value="N" id="thumbnailsN" /> <?php _e('No', $this -> plugin_name); ?></label>
|
@@ -228,7 +237,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
228 |
<tbody>
|
229 |
<tr>
|
230 |
<th><label for="thubmpositionbottom"><?php _e('Thumbnails Position', $this -> plugin_name); ?></label>
|
231 |
-
<?php echo
|
232 |
<td>
|
233 |
<label><input <?php echo ($this -> get_option('thumbposition') == "top") ? 'checked="checked"' : ''; ?> type="radio" name="thumbposition" value="top" id="thumbpositiontop" /> <?php _e('Top', $this -> plugin_name); ?></label>
|
234 |
<label><input <?php echo ($this -> get_option('thumbposition') == "bottom") ? 'checked="checked"' : ''; ?> type="radio" name="thumbposition" value="bottom" id="thumbpositionbottom" /> <?php _e('Bottom', $this -> plugin_name); ?></label>
|
@@ -237,7 +246,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
237 |
</tr>
|
238 |
<tr>
|
239 |
<th><label for="thumbheight"><?php _e('Thumbnail Dimensions', $this -> plugin_name); ?></label>
|
240 |
-
<?php echo
|
241 |
<td>
|
242 |
<input class="widefat" style="width:45px;" type="text" name="thumbwidth" value="<?php echo esc_attr(stripslashes($this -> get_option('thumbwidth'))); ?>" id="thumbwidth" />
|
243 |
<?php _e('x <!-- by -->', $this -> plugin_name); ?>
|
@@ -249,7 +258,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
249 |
</tr>
|
250 |
<tr>
|
251 |
<th><label for="thumbopacity"><?php _e('Thumbnail Opacity', $this -> plugin_name); ?></label>
|
252 |
-
<?php echo
|
253 |
<td>
|
254 |
<input style="width:45px;" type="hidden" name="thumbopacity" value="<?php echo $thumbopacity; ?>" id="thumbopacity" />
|
255 |
<div id="thumbopacity_slider"></div>
|
@@ -272,7 +281,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
272 |
</tr>
|
273 |
<tr>
|
274 |
<th><label for="thumbscrollspeed"><?php _e('Thumbnails Scroll Speed', $this -> plugin_name); ?></label>
|
275 |
-
<?php echo
|
276 |
<td>
|
277 |
<input type="hidden" class="widefat" style="width:45px;" name="thumbscrollspeed" value="<?php echo $thumbscrollspeed; ?>" id="thumbscrollspeed" />
|
278 |
<div id="thumbscrollspeed_slider"></div>
|
@@ -295,7 +304,7 @@ $thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
|
295 |
</tr>
|
296 |
<tr>
|
297 |
<th><label for="thumbspacing"><?php _e('Thumbnail Spacing', $this -> plugin_name); ?></label>
|
298 |
-
<?php echo
|
299 |
<td>
|
300 |
<input type="text" style="width:45px;" name="thumbspacing" value="<?php echo $this -> get_option('thumbspacing'); ?>" id="thumbspacing" /> <?php _e('px', $this -> plugin_name); ?>
|
301 |
<span class="howto"><?php _e('Horizontal margin/spacing in pixels between thumbnail images.', $this -> plugin_name); ?></span>
|
8 |
$navopacity = $this -> get_option('navopacity');
|
9 |
$navhover = $this -> get_option('navhover');
|
10 |
$infospeed = $this -> get_option('infospeed');
|
11 |
+
$infohideonmobile = $this -> get_option('infohideonmobile');
|
12 |
$thumbopacity = $this -> get_option('thumbopacity');
|
13 |
$thumbscrollspeed = $this -> get_option('thumbscrollspeed');
|
14 |
|
18 |
<tbody>
|
19 |
<tr>
|
20 |
<th><label for="imagespath"><?php _e('Images Path', $this -> plugin_name); ?></label>
|
21 |
+
<?php echo $this -> Html -> help(__('This is the relative or absolute path or even absolute URL to the images for slides and thumbnails. By default, it loads an absolute path in order to be accurate but it may not work on all hosting setups. If images are not working, use the "Images Tester" link on the right-hand side of this page to determine the issue and resolve it.', $this -> plugin_name)); ?></th>
|
22 |
<td>
|
23 |
<input type="text" class="widefat" name="imagespath" value="<?php echo esc_attr(stripslashes($imagespath)); ?>" id="imagespath" />
|
24 |
<span class="howto"><?php _e('Path to images where slide and thumbnail images are generated from.', $this -> plugin_name); ?></span>
|
26 |
</tr>
|
27 |
<tr>
|
28 |
<th><label for="autoslideY"><?php _e('Auto Slide', $this -> plugin_name); ?></label>
|
29 |
+
<?php echo $this -> Html -> help(__('Turn this on so that the slideshow can automatically slide through the slides.<br/><br/><strong>Override per slideshow:</strong> Using parameter <code>auto</code> with value <code>true</code> or <code>false</code> eg. <code>[tribulant_slideshow auto="false"]</code>.', $this -> plugin_name)); ?></th>
|
30 |
<td>
|
31 |
<label><input onclick="jQuery('#autoslide_div').show();" <?php echo ($this -> get_option('autoslide') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="autoslide" value="Y" id="autoslideY" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
32 |
<label><input onclick="jQuery('#autoslide_div').hide();" <?php echo ($this -> get_option('autoslide') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="autoslide" value="N" id="autoslideN" /> <?php _e('No', $this -> plugin_name); ?></label>
|
41 |
<tbody>
|
42 |
<tr>
|
43 |
<th><label for="alwaysauto_true"><?php _e('Always Auto', $this -> plugin_name); ?></label>
|
44 |
+
<?php echo $this -> Html -> help(__('With the "Auto Slide" setting turned on above, the slideshow will automatically go through the slides but it will stop automatically navigating once the user started navigating. You can override this behaviour and force automatic navigation by turning this on.', $this -> plugin_name)); ?></th>
|
45 |
<td>
|
46 |
<label><input <?php echo ($this -> get_option('alwaysauto') == "true") ? 'checked="checked"' : ''; ?> type="radio" name="alwaysauto" value="true" id="alwaysauto_true" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
47 |
<label><input <?php echo ($this -> get_option('alwaysauto') == "false") ? 'checked="checked"' : ''; ?> type="radio" name="alwaysauto" value="false" id="alwaysauto_false" /> <?php _e('No', $this -> plugin_name); ?></label>
|
50 |
</tr>
|
51 |
<tr>
|
52 |
<th><label for="autospeed"><?php _e('Auto Speed', $this -> plugin_name); ?></label>
|
53 |
+
<?php echo $this -> Html -> help(__('Set the speed at which auto sliding will occur, meaning the interval between auto sliding. The default is 10 which is recommended but you can specify a smaller number for quicker sliding or a larger number for slower sliding.', $this -> plugin_name)); ?></th>
|
54 |
<td>
|
55 |
<input type="hidden" style="width:45px;" name="autospeed" value="<?php echo $autospeed; ?>" id="autospeed" />
|
56 |
<div id="autospeed_slider"></div>
|
79 |
<tbody>
|
80 |
<tr>
|
81 |
<th><label for="fadespeed"><?php _e('Image Fading Speed', $this -> plugin_name); ?></label>
|
82 |
+
<?php echo $this -> Html -> help(__('Choose the speed at which images fade in and out. The default is 10 and a number between 1 and 20 is recommended. Use a low number for quick fading and a higher number for slower fading.', $this -> plugin_name)); ?></th>
|
83 |
<td>
|
84 |
<input style="width:45px;" type="hidden" name="fadespeed" value="<?php echo $fadespeed; ?>" id="fadespeed" />
|
85 |
<div id="fadespeed_slider"></div>
|
102 |
</tr>
|
103 |
<tr>
|
104 |
<th><label for="shownav_Y"><?php _e('Show Image Navigation', $this -> plugin_name); ?></label>
|
105 |
+
<?php echo $this -> Html -> help(__('Turn this on to show the Next and Previous arrows on either sides of the slideshow for the user to navigate through slides. Once turned on, you can set the opacity of these navigation arrows below.', $this -> plugin_name)); ?></th>
|
106 |
<td>
|
107 |
<label><input <?php echo ($this -> get_option('shownav') == "Y") ? 'checked="checked"' : ''; ?> onclick="jQuery('#shownavdiv').show();" type="radio" name="shownav" value="Y" id="shownav_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
108 |
<label><input <?php echo ($this -> get_option('shownav') == "N") ? 'checked="checked"' : ''; ?> onclick="jQuery('#shownavdiv').hide();" type="radio" name="shownav" value="N" id="shownav_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
117 |
<tbody>
|
118 |
<tr>
|
119 |
<th><label for="navopacity"><?php _e('Navigation Default Opacity', $this -> plugin_name); ?></label>
|
120 |
+
<?php echo $this -> Html -> help(__('The default state opacity of the left/right navigation arrows. This is a percentage value and you can specify anything between 0% and 100% as needed.', $this -> plugin_name)); ?></th>
|
121 |
<td>
|
122 |
<input type="hidden" name="navopacity" value="<?php echo $navopacity; ?>" id="navopacity" style="width:45px;" />
|
123 |
<div id="navopacity_slider"></div>
|
141 |
</tr>
|
142 |
<tr>
|
143 |
<th><label for="navhover"><?php _e('Navigation Hover Opacity', $this -> plugin_name); ?></label>
|
144 |
+
<?php echo $this -> Html -> help(__('The hover state opacity of the left/right navigation arrows. This is the opacity when the user hovers with the mouse cursor over the arrow image. Percentage value between 0% and 100%', $this -> plugin_name)); ?></th>
|
145 |
<td>
|
146 |
<input type="hidden" name="navhover" value="<?php echo $navhover; ?>" id="navhover" style="width:45px;" />
|
147 |
<div id="navhover_slider"></div>
|
170 |
<tbody>
|
171 |
<tr>
|
172 |
<th><label for="informationY"><?php _e('Show Information', $this -> plugin_name); ?></label>
|
173 |
+
<?php echo $this -> Html -> help(__('Should the information bar be shown on slides? Turn this on to show a bar on each slide with the title and description of the slide.', $this -> plugin_name)); ?></th>
|
174 |
<td>
|
175 |
<label><input onclick="jQuery('#information_div').show();" <?php echo ($this -> get_option('information') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="information" value="Y" id="informationY" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
176 |
<label><input onclick="jQuery('#information_div').hide();" <?php echo ($this -> get_option('information') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="information" value="N" id="informationN" /> <?php _e('No', $this -> plugin_name); ?></label>
|
185 |
<tbody>
|
186 |
<tr>
|
187 |
<th><label for="infospeed"><?php _e('Information Speed', $this -> plugin_name); ?></label>
|
188 |
+
<?php echo $this -> Html -> help(__('Specify the speed at which the information bar will slide up and down as the slide is shown and hidden.', $this -> plugin_name)); ?></th>
|
189 |
<td>
|
190 |
<input type="hidden" style="width:45px;" name="infospeed" value="<?php echo $infospeed; ?>" id="infospeed" />
|
191 |
<div id="infospeed_slider"></div>
|
206 |
<span class="howto"><?php _e('Speed at which the information bar will slide in and out.', $this -> plugin_name); ?></span>
|
207 |
</td>
|
208 |
</tr>
|
209 |
+
<tr>
|
210 |
+
<th><label for="infohideonmobile"><?php _e('Hide On Mobiles', $this -> plugin_name); ?></label>
|
211 |
+
<?php echo $this -> Html -> help(__('With a responsive layout turned on, the slideshow will respond in width on mobile devices and the information bar tends to overlap the entire slide since it increases in height as it reduces in width. You can tick/check this setting to hide the information bar on mobile devices so that the slides remain fully visible.', $this -> plugin_name)); ?></th>
|
212 |
+
<td>
|
213 |
+
<label><input <?php echo (!empty($infohideonmobile)) ? 'checked="checked"' : ''; ?> type="checkbox" name="infohideonmobile" value="1" id="infohideonmobile" /> <?php _e('Yes, hide the information bar on mobiles', $this -> plugin_name); ?></label>
|
214 |
+
<span class="howto"><?php _e('Tick/check this to hide the information bar on mobiles', $this -> plugin_name); ?></span>
|
215 |
+
</td>
|
216 |
+
</tr>
|
217 |
</tbody>
|
218 |
</table>
|
219 |
</div>
|
222 |
<tbody>
|
223 |
<tr>
|
224 |
<th><label for="thumbnailsN"><?php _e('Show Thumbnails', $this -> plugin_name); ?></label>
|
225 |
+
<?php echo $this -> Html -> help(__('Would you like to show a thumbnail bar/slider above/below the slideshow with the thumbnails of all the slides in the slideshow for easier navigation?', $this -> plugin_name)); ?></th>
|
226 |
<td>
|
227 |
<label><input onclick="jQuery('#thumbnails_div').show();" <?php echo ($this -> get_option('thumbnails') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="thumbnails" value="Y" id="thumbnailsY" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
228 |
<label><input onclick="jQuery('#thumbnails_div').hide();" <?php echo ($this -> get_option('thumbnails') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="thumbnails" value="N" id="thumbnailsN" /> <?php _e('No', $this -> plugin_name); ?></label>
|
237 |
<tbody>
|
238 |
<tr>
|
239 |
<th><label for="thubmpositionbottom"><?php _e('Thumbnails Position', $this -> plugin_name); ?></label>
|
240 |
+
<?php echo $this -> Html -> help(__('With the thumbnails turned on with the setting above, you can now specify the position of the thumbnail bar/slider. Either above or below the slideshow is available.', $this -> plugin_name)); ?></th>
|
241 |
<td>
|
242 |
<label><input <?php echo ($this -> get_option('thumbposition') == "top") ? 'checked="checked"' : ''; ?> type="radio" name="thumbposition" value="top" id="thumbpositiontop" /> <?php _e('Top', $this -> plugin_name); ?></label>
|
243 |
<label><input <?php echo ($this -> get_option('thumbposition') == "bottom") ? 'checked="checked"' : ''; ?> type="radio" name="thumbposition" value="bottom" id="thumbpositionbottom" /> <?php _e('Bottom', $this -> plugin_name); ?></label>
|
246 |
</tr>
|
247 |
<tr>
|
248 |
<th><label for="thumbheight"><?php _e('Thumbnail Dimensions', $this -> plugin_name); ?></label>
|
249 |
+
<?php echo $this -> Html -> help(__('Specify the width and height (dimensions) of the thumbnails in the thumbnail bar/slider which will show above/below the slideshow.', $this -> plugin_name)); ?></th>
|
250 |
<td>
|
251 |
<input class="widefat" style="width:45px;" type="text" name="thumbwidth" value="<?php echo esc_attr(stripslashes($this -> get_option('thumbwidth'))); ?>" id="thumbwidth" />
|
252 |
<?php _e('x <!-- by -->', $this -> plugin_name); ?>
|
258 |
</tr>
|
259 |
<tr>
|
260 |
<th><label for="thumbopacity"><?php _e('Thumbnail Opacity', $this -> plugin_name); ?></label>
|
261 |
+
<?php echo $this -> Html -> help(__('The opacity of the default state of thumbnails in the thumbnails bar/slider. The active thumbnail of the currently showing slide will be 100% opacity, always.', $this -> plugin_name)); ?></th>
|
262 |
<td>
|
263 |
<input style="width:45px;" type="hidden" name="thumbopacity" value="<?php echo $thumbopacity; ?>" id="thumbopacity" />
|
264 |
<div id="thumbopacity_slider"></div>
|
281 |
</tr>
|
282 |
<tr>
|
283 |
<th><label for="thumbscrollspeed"><?php _e('Thumbnails Scroll Speed', $this -> plugin_name); ?></label>
|
284 |
+
<?php echo $this -> Html -> help(__('At which speed should the thumbnails bar/slider scroll when the left/right arrows are hovered by the user?', $this -> plugin_name)); ?></th>
|
285 |
<td>
|
286 |
<input type="hidden" class="widefat" style="width:45px;" name="thumbscrollspeed" value="<?php echo $thumbscrollspeed; ?>" id="thumbscrollspeed" />
|
287 |
<div id="thumbscrollspeed_slider"></div>
|
304 |
</tr>
|
305 |
<tr>
|
306 |
<th><label for="thumbspacing"><?php _e('Thumbnail Spacing', $this -> plugin_name); ?></label>
|
307 |
+
<?php echo $this -> Html -> help(__('This is a simple margin setting to specify the space between the thumbnails in the thumbnails bar/slider above/below the slideshow.', $this -> plugin_name)); ?></th>
|
308 |
<td>
|
309 |
<input type="text" style="width:45px;" name="thumbspacing" value="<?php echo $this -> get_option('thumbspacing'); ?>" id="thumbspacing" /> <?php _e('px', $this -> plugin_name); ?>
|
310 |
<span class="howto"><?php _e('Horizontal margin/spacing in pixels between thumbnail images.', $this -> plugin_name); ?></span>
|
views/admin/metaboxes/settings-linksimages.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<tbody>
|
3 |
<tr>
|
4 |
<th><label for="imagesthickbox_N"><?php _e('Open Images in Overlay', $this -> plugin_name); ?></label>
|
5 |
-
<?php echo
|
6 |
<td>
|
7 |
<label><input <?php echo ($this -> get_option('imagesthickbox') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="imagesthickbox" value="Y" id="imagesthickbox_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
8 |
<label><input <?php echo ($this -> get_option('imagesthickbox') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="imagesthickbox" value="N" id="imagesthickbox_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
2 |
<tbody>
|
3 |
<tr>
|
4 |
<th><label for="imagesthickbox_N"><?php _e('Open Images in Overlay', $this -> plugin_name); ?></label>
|
5 |
+
<?php echo $this -> Html -> help(__('Turn this on to display the link of a slide in an enlargement overlay. It only works if the link on the slide is a link to a jpg, png, gif or bmp image though. For normal links to pages, the overlay will not be used at all.', $this -> plugin_name)); ?></th>
|
6 |
<td>
|
7 |
<label><input <?php echo ($this -> get_option('imagesthickbox') == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="imagesthickbox" value="Y" id="imagesthickbox_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
8 |
<label><input <?php echo ($this -> get_option('imagesthickbox') == "N") ? 'checked="checked"' : ''; ?> type="radio" name="imagesthickbox" value="N" id="imagesthickbox_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
views/admin/metaboxes/settings-styles.php
CHANGED
@@ -11,7 +11,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
11 |
<tbody>
|
12 |
<tr>
|
13 |
<th><label for="layout_responsive"><?php _e('Layout', $this -> plugin_name); ?></label>
|
14 |
-
<?php echo
|
15 |
<td>
|
16 |
<label><input onclick="jQuery('#layout_specific_div').hide(); jQuery('#layout_responsive_div').show();" <?php echo ($styles['layout'] == "responsive") ? 'checked="checked"' : ''; ?> type="radio" name="styles[layout]" value="responsive" id="layout_responsive" /> <?php _e('Responsive', $this -> plugin_name); ?></label>
|
17 |
<label><input onclick="jQuery('#layout_specific_div').show(); jQuery('#layout_responsive_div').hide();" <?php echo (empty($styles['layout']) || $styles['layout'] == "specific") ? 'checked="checked"' : ''; ?> type="radio" name="styles[layout]" value="specific" id="layout_specific" /> <?php _e('Fixed', $this -> plugin_name); ?></label>
|
@@ -26,10 +26,9 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
26 |
<tbody>
|
27 |
<tr>
|
28 |
<th><label for="resheight"><?php _e('Responsive Height', $this -> plugin_name); ?></label>
|
29 |
-
<?php echo
|
30 |
<td>
|
31 |
<input class="widefat" style="width:45px;" type="text" name="styles[resheight]" value="<?php echo esc_attr(stripslashes($styles['resheight'])); ?>" id="resheight" />
|
32 |
-
<?php /*<input type="hidden" name="styles[resheighttype]" value="pix" /> <?php _e('px', $this -> plugin_name); ?>*/ ?>
|
33 |
<select name="styles[resheighttype]">
|
34 |
<option <?php echo ($styles['resheighttype'] == "%") ? 'selected="selected"' : ''; ?> value="%"><?php _e('%', $this -> plugin_name); ?></option>
|
35 |
<option <?php echo ($styles['resheighttype'] == "px") ? 'selected="selected"' : ''; ?> value="px"><?php _e('px', $this -> plugin_name); ?></option>
|
@@ -46,7 +45,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
46 |
<tbody>
|
47 |
<tr>
|
48 |
<th><label for="styles.resizeimages"><?php _e('Resize Images', $this -> plugin_name); ?></label>
|
49 |
-
<?php echo
|
50 |
<td>
|
51 |
<label><input <?php echo (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="styles[resizeimages]" value="Y" id="styles.resizeimages_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
52 |
<label><input <?php echo ($styles['resizeimages'] == "N") ? 'checked="checked"' : ''; ?> type="radio" name="styles[resizeimages]" value="N" id="styles.resizeimages_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
@@ -61,7 +60,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
61 |
<tbody>
|
62 |
<tr>
|
63 |
<th><label for="timthumb_align"><?php _e('Crop Alignment', $this -> plugin_name); ?></label>
|
64 |
-
<?php echo
|
65 |
<td>
|
66 |
<?php
|
67 |
|
@@ -84,7 +83,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
84 |
<tbody>
|
85 |
<tr>
|
86 |
<th><label for="styles.width"><?php _e('Gallery Width', $this -> plugin_name); ?></label>
|
87 |
-
<?php echo
|
88 |
<td>
|
89 |
<input style="width:45px;" id="styles.width" type="text" name="styles[width]" value="<?php echo $styles['width']; ?>" /> <?php _e('px', $this -> plugin_name); ?>
|
90 |
<span class="howto"><?php _e('Width of the slideshow gallery', $this -> plugin_name); ?></span>
|
@@ -92,7 +91,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
92 |
</tr>
|
93 |
<tr>
|
94 |
<th><label for="styles.height"><?php _e('Gallery Height', $this -> plugin_name); ?></label>
|
95 |
-
<?php echo
|
96 |
<td>
|
97 |
<input style="width:45px;" id="styles.height" type="text" name="styles[height]" value="<?php echo $styles['height']; ?>" /> <?php _e('px', $this -> plugin_name); ?>
|
98 |
<span class="howto"><?php _e('Height of the slideshow gallery', $this -> plugin_name); ?></span>
|
@@ -106,7 +105,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
106 |
<tbody>
|
107 |
<tr>
|
108 |
<th><label for="styles.border"><?php _e('Slideshow Border', $this -> plugin_name); ?></label>
|
109 |
-
<?php echo
|
110 |
<td>
|
111 |
<input type="text" name="styles[border]" value="<?php echo $styles['border']; ?>" id="styles.border" style="width:145px;" />
|
112 |
<span class="howto"><?php echo sprintf(__('Border style/color for the entire slideshow wrapper eg. %s', $this -> plugin_name), "1px #000000 solid"); ?>
|
@@ -114,7 +113,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
114 |
</tr>
|
115 |
<tr>
|
116 |
<th><label for="stylesbackground"><?php _e('Slideshow Background', $this -> plugin_name); ?></label>
|
117 |
-
<?php echo
|
118 |
<td>
|
119 |
<fieldset>
|
120 |
<legend class="screen-reader-text"><span><?php _e('Slideshow Background', $this -> plugin_name); ?></span></legend>
|
@@ -157,7 +156,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
157 |
</tr>
|
158 |
<tr>
|
159 |
<th><label for="styles.infobackground"><?php _e('Information Background', $this -> plugin_name); ?></label>
|
160 |
-
<?php echo
|
161 |
<td>
|
162 |
<fieldset>
|
163 |
<legend class="screen-reader-text"><span><?php _e('Information Background', $this -> plugin_name); ?></span></legend>
|
@@ -200,7 +199,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
200 |
</tr>
|
201 |
<tr>
|
202 |
<th><label for="styles.infocolor"><?php _e('Information Text Color', $this -> plugin_name); ?></label>
|
203 |
-
<?php echo
|
204 |
<td>
|
205 |
<fieldset>
|
206 |
<legend class="screen-reader-text"><span><?php _e('Information Text Color', $this -> plugin_name); ?></span></legend>
|
@@ -243,7 +242,7 @@ $timthumb_align = $this -> get_option('timthumb_align');
|
|
243 |
</tr>
|
244 |
<tr>
|
245 |
<th><label for="thumbactive"><?php _e('Thumbnail Active Border', $this -> plugin_name); ?></label>
|
246 |
-
<?php echo
|
247 |
<td>
|
248 |
<fieldset>
|
249 |
<legend class="screen-reader-text"><span><?php _e('Thumbnail Active Border', $this -> plugin_name); ?></span></legend>
|
11 |
<tbody>
|
12 |
<tr>
|
13 |
<th><label for="layout_responsive"><?php _e('Layout', $this -> plugin_name); ?></label>
|
14 |
+
<?php echo $this -> Html -> help(__('Choose responsive if you have a responsive theme and you want the slideshow to resize width/height in a responsive manner on different devices.<br/><br/><strong>Override per slideshow:</strong> Using parameter <code>layout</code> with value <code>responsive</code> or <code>specific</code> eg. <code>[tribulant_slideshow layout="specific"]</code>.', $this -> plugin_name)); ?></th>
|
15 |
<td>
|
16 |
<label><input onclick="jQuery('#layout_specific_div').hide(); jQuery('#layout_responsive_div').show();" <?php echo ($styles['layout'] == "responsive") ? 'checked="checked"' : ''; ?> type="radio" name="styles[layout]" value="responsive" id="layout_responsive" /> <?php _e('Responsive', $this -> plugin_name); ?></label>
|
17 |
<label><input onclick="jQuery('#layout_specific_div').show(); jQuery('#layout_responsive_div').hide();" <?php echo (empty($styles['layout']) || $styles['layout'] == "specific") ? 'checked="checked"' : ''; ?> type="radio" name="styles[layout]" value="specific" id="layout_specific" /> <?php _e('Fixed', $this -> plugin_name); ?></label>
|
26 |
<tbody>
|
27 |
<tr>
|
28 |
<th><label for="resheight"><?php _e('Responsive Height', $this -> plugin_name); ?></label>
|
29 |
+
<?php echo $this -> Html -> help(__('The responsive height can be either a fixed height in pixel or a percentage height. The percentage height is a percentage of the width of the slideshow.<br/><br/><strong>Override per slideshow:</strong> Using parameters <code>resheight</code> value a value and <code>resheighttype</code> with <code>px</code> for pixels or <code>%</code> for percentage eg. <code>[tribulant_slideshow resheight="300" resheighttype="px"]</code>.', $this -> plugin_name)); ?></th>
|
30 |
<td>
|
31 |
<input class="widefat" style="width:45px;" type="text" name="styles[resheight]" value="<?php echo esc_attr(stripslashes($styles['resheight'])); ?>" id="resheight" />
|
|
|
32 |
<select name="styles[resheighttype]">
|
33 |
<option <?php echo ($styles['resheighttype'] == "%") ? 'selected="selected"' : ''; ?> value="%"><?php _e('%', $this -> plugin_name); ?></option>
|
34 |
<option <?php echo ($styles['resheighttype'] == "px") ? 'selected="selected"' : ''; ?> value="px"><?php _e('px', $this -> plugin_name); ?></option>
|
45 |
<tbody>
|
46 |
<tr>
|
47 |
<th><label for="styles.resizeimages"><?php _e('Resize Images', $this -> plugin_name); ?></label>
|
48 |
+
<?php echo $this -> Html -> help(__('Should images be automatically resized? If you specify No, the images will be used in the slideshow as you originally upload them. If you specify Yes, the images will be cropped/resized to fit the slideshow better which is the recommended setting.', $this -> plugin_name)); ?></th>
|
49 |
<td>
|
50 |
<label><input <?php echo (empty($styles['resizeimages']) || $styles['resizeimages'] == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="styles[resizeimages]" value="Y" id="styles.resizeimages_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
51 |
<label><input <?php echo ($styles['resizeimages'] == "N") ? 'checked="checked"' : ''; ?> type="radio" name="styles[resizeimages]" value="N" id="styles.resizeimages_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
60 |
<tbody>
|
61 |
<tr>
|
62 |
<th><label for="timthumb_align"><?php _e('Crop Alignment', $this -> plugin_name); ?></label>
|
63 |
+
<?php echo $this -> Html -> help(__('With this setting you can choose the location from which the image will be cropped/resized. For example if you prefer to have the top parts of images shown instead of being cut off, you can change this setting to "Top".', $this -> plugin_name)); ?></th>
|
64 |
<td>
|
65 |
<?php
|
66 |
|
83 |
<tbody>
|
84 |
<tr>
|
85 |
<th><label for="styles.width"><?php _e('Gallery Width', $this -> plugin_name); ?></label>
|
86 |
+
<?php echo $this -> Html -> help(__('The width of the slideshow in pixels.', $this -> plugin_name)); ?></th>
|
87 |
<td>
|
88 |
<input style="width:45px;" id="styles.width" type="text" name="styles[width]" value="<?php echo $styles['width']; ?>" /> <?php _e('px', $this -> plugin_name); ?>
|
89 |
<span class="howto"><?php _e('Width of the slideshow gallery', $this -> plugin_name); ?></span>
|
91 |
</tr>
|
92 |
<tr>
|
93 |
<th><label for="styles.height"><?php _e('Gallery Height', $this -> plugin_name); ?></label>
|
94 |
+
<?php echo $this -> Html -> help(__('The height of the slideshow in pixels.', $this -> plugin_name)); ?></th>
|
95 |
<td>
|
96 |
<input style="width:45px;" id="styles.height" type="text" name="styles[height]" value="<?php echo $styles['height']; ?>" /> <?php _e('px', $this -> plugin_name); ?>
|
97 |
<span class="howto"><?php _e('Height of the slideshow gallery', $this -> plugin_name); ?></span>
|
105 |
<tbody>
|
106 |
<tr>
|
107 |
<th><label for="styles.border"><?php _e('Slideshow Border', $this -> plugin_name); ?></label>
|
108 |
+
<?php echo $this -> Html -> help(__('This is a CSS style for the border around the entire slideshow. You can use a value such as "1px #FFFFFF solid" to display a 1 pixel, white, solid border or even a value such as "none" for no border at all.', $this -> plugin_name)); ?></th>
|
109 |
<td>
|
110 |
<input type="text" name="styles[border]" value="<?php echo $styles['border']; ?>" id="styles.border" style="width:145px;" />
|
111 |
<span class="howto"><?php echo sprintf(__('Border style/color for the entire slideshow wrapper eg. %s', $this -> plugin_name), "1px #000000 solid"); ?>
|
113 |
</tr>
|
114 |
<tr>
|
115 |
<th><label for="stylesbackground"><?php _e('Slideshow Background', $this -> plugin_name); ?></label>
|
116 |
+
<?php echo $this -> Html -> help(__('The background which will display behind the entire slideshow. It is behind the slides, thumbnails, etc.', $this -> plugin_name)); ?></th>
|
117 |
<td>
|
118 |
<fieldset>
|
119 |
<legend class="screen-reader-text"><span><?php _e('Slideshow Background', $this -> plugin_name); ?></span></legend>
|
156 |
</tr>
|
157 |
<tr>
|
158 |
<th><label for="styles.infobackground"><?php _e('Information Background', $this -> plugin_name); ?></label>
|
159 |
+
<?php echo $this -> Html -> help(__('The background of the information bar which shows the title and description of each slide. It is automatically half transparent so that it is not obtrusive to the slide image below it though.', $this -> plugin_name)); ?></th>
|
160 |
<td>
|
161 |
<fieldset>
|
162 |
<legend class="screen-reader-text"><span><?php _e('Information Background', $this -> plugin_name); ?></span></legend>
|
199 |
</tr>
|
200 |
<tr>
|
201 |
<th><label for="styles.infocolor"><?php _e('Information Text Color', $this -> plugin_name); ?></label>
|
202 |
+
<?php echo $this -> Html -> help(__('This is the color of the text of the title and description of each slide which shows in the information bar.', $this -> plugin_name)); ?></th>
|
203 |
<td>
|
204 |
<fieldset>
|
205 |
<legend class="screen-reader-text"><span><?php _e('Information Text Color', $this -> plugin_name); ?></span></legend>
|
242 |
</tr>
|
243 |
<tr>
|
244 |
<th><label for="thumbactive"><?php _e('Thumbnail Active Border', $this -> plugin_name); ?></label>
|
245 |
+
<?php echo $this -> Html -> help(__('This is the color of the border which displays on the active thumbnail of the slide currently displaying in the slideshow.', $this -> plugin_name)); ?></th>
|
246 |
<td>
|
247 |
<fieldset>
|
248 |
<legend class="screen-reader-text"><span><?php _e('Thumbnail Active Border', $this -> plugin_name); ?></span></legend>
|
views/admin/metaboxes/settings-submit.php
CHANGED
@@ -14,7 +14,7 @@ $debugging = get_option('tridebugging');
|
|
14 |
</div>
|
15 |
<div class="misc-pub-section">
|
16 |
<a href="<?php echo $this -> url; ?>&method=imagestester"><?php _e('Images Tester', $this -> plugin_name); ?></a>
|
17 |
-
<?php echo
|
18 |
</div>
|
19 |
<div class="misc-pub-section misc-pub-section-last">
|
20 |
<label><input <?php echo (!empty($debugging) && $debugging == 1) ? 'checked="checked"' : ''; ?> type="checkbox" name="debugging" value="1" id="debugging" /> <?php _e('Turn on debugging', $this -> plugin_name); ?></label>
|
14 |
</div>
|
15 |
<div class="misc-pub-section">
|
16 |
<a href="<?php echo $this -> url; ?>&method=imagestester"><?php _e('Images Tester', $this -> plugin_name); ?></a>
|
17 |
+
<?php echo $this -> Html -> help(__('Slide or thumbnail images not working? Use the images tester to fix the problem', $this -> plugin_name)); ?>
|
18 |
</div>
|
19 |
<div class="misc-pub-section misc-pub-section-last">
|
20 |
<label><input <?php echo (!empty($debugging) && $debugging == 1) ? 'checked="checked"' : ''; ?> type="checkbox" name="debugging" value="1" id="debugging" /> <?php _e('Turn on debugging', $this -> plugin_name); ?></label>
|
views/admin/metaboxes/settings-wprelated.php
CHANGED
@@ -26,7 +26,7 @@ $permissions = $this -> get_option('permissions');
|
|
26 |
<?php if (!empty($this -> sections)) : ?>
|
27 |
<?php foreach ($this -> sections as $section_key => $section_name) : ?>
|
28 |
<tr class="<?php echo $class = (empty($class)) ? 'arow' : ''; ?>">
|
29 |
-
<th style="white-space:nowrap; text-align:right;"><?php echo
|
30 |
<?php foreach ($wp_roles -> role_names as $role_key => $role_name) : ?>
|
31 |
<td style="text-align:center;">
|
32 |
<input <?php echo ($role_key == "administrator") ? 'checked="checked" disabled="disabled"' : ''; ?> <?php echo (!empty($permissions[$role_key]) && in_array($section_key, $permissions[$role_key])) ? 'checked="checked"' : ''; ?> type="checkbox" name="permissions[<?php echo $role_key; ?>][]" value="<?php echo $section_key; ?>" id="" />
|
26 |
<?php if (!empty($this -> sections)) : ?>
|
27 |
<?php foreach ($this -> sections as $section_key => $section_name) : ?>
|
28 |
<tr class="<?php echo $class = (empty($class)) ? 'arow' : ''; ?>">
|
29 |
+
<th style="white-space:nowrap; text-align:right;"><?php echo $this -> Html -> section_name($section_key); ?></th>
|
30 |
<?php foreach ($wp_roles -> role_names as $role_key => $role_name) : ?>
|
31 |
<td style="text-align:center;">
|
32 |
<input <?php echo ($role_key == "administrator") ? 'checked="checked" disabled="disabled"' : ''; ?> <?php echo (!empty($permissions[$role_key]) && in_array($section_key, $permissions[$role_key])) ? 'checked="checked"' : ''; ?> type="checkbox" name="permissions[<?php echo $role_key; ?>][]" value="<?php echo $section_key; ?>" id="" />
|
views/admin/slides/save.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<tbody>
|
10 |
<tr>
|
11 |
<th><label for="Slide.title"><?php _e('Title', $this -> plugin_name); ?></label>
|
12 |
-
<?php echo
|
13 |
<td>
|
14 |
<input class="widefat" type="text" name="Slide[title]" value="<?php echo esc_attr($this -> Slide -> data -> title); ?>" id="Slide.title" />
|
15 |
<span class="howto"><?php _e('Title/name of your slide as it will be displayed to your users.', $this -> plugin_name); ?></span>
|
@@ -18,7 +18,7 @@
|
|
18 |
</tr>
|
19 |
<tr>
|
20 |
<th><label for="Slide.description"><?php _e('Description', $this -> plugin_name); ?></label>
|
21 |
-
<?php echo
|
22 |
<td>
|
23 |
<textarea class="widefat" rows="5" cols="100%" name="Slide[description]"><?php echo esc_attr($this -> Slide -> data -> description); ?></textarea>
|
24 |
<span class="howto"><?php _e('Description of your slide as it will be displayed to your users below the title.', $this -> plugin_name); ?></span>
|
@@ -27,7 +27,7 @@
|
|
27 |
</tr>
|
28 |
<tr>
|
29 |
<th><label for="checkboxall"><?php _e('Galleries', $this -> plugin_name); ?></label>
|
30 |
-
<?php echo
|
31 |
<td>
|
32 |
<?php if ($galleries = $this -> Gallery -> select()) : ?>
|
33 |
<label style="font-weight:bold"><input onclick="jqCheckAll(this,'','Slide[galleries]');" type="checkbox" name="checkboxall" value="checkboxall" id="checkboxall" /> <?php _e('Select All', $this -> plugin_name); ?></label><br/>
|
@@ -42,7 +42,7 @@
|
|
42 |
</tr>
|
43 |
<tr>
|
44 |
<th><label for="Slide.type.file"><?php _e('Image Type', $this -> plugin_name); ?></label>
|
45 |
-
<?php echo
|
46 |
<td>
|
47 |
<label><input onclick="jQuery('#typediv_file').show(); jQuery('#typediv_url').hide();" <?php echo (empty($this -> Slide -> data -> type) || $this -> Slide -> data -> type == "file") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[type]" value="file" id="Slide.type.file" /> <?php _e('Upload File (recommended)', $this -> plugin_name); ?></label>
|
48 |
<label><input onclick="jQuery('#typediv_url').show(); jQuery('#typediv_file').hide();" <?php echo ($this -> Slide -> data -> type == "url") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[type]" value="url" id="Slide.type.url" /> <?php _e('Specify URL', $this -> plugin_name); ?></label>
|
@@ -58,7 +58,7 @@
|
|
58 |
<tbody>
|
59 |
<tr>
|
60 |
<th><label for="Slide.image_file"><?php _e('Choose Image', $this -> plugin_name); ?></label>
|
61 |
-
<?php echo
|
62 |
<td>
|
63 |
<input type="file" name="image_file" value="" id="Slide.image_file" />
|
64 |
<span class="howto"><?php _e('Choose your image file from your computer. JPG, PNG, GIF are supported.', $this -> plugin_name); ?></span>
|
@@ -90,7 +90,7 @@
|
|
90 |
<tbody>
|
91 |
<tr>
|
92 |
<th><label for="Slide.image_url"><?php _e('Image URL', $this -> plugin_name); ?></label>
|
93 |
-
<?php echo
|
94 |
<td>
|
95 |
<input class="widefat" type="text" name="Slide[image_url]" value="<?php echo esc_attr($this -> Slide -> data -> image_url); ?>" id="Slide.image_url" />
|
96 |
<span class="howto"><?php _e('Local or remote image location eg. http://domain.com/path/to/image.jpg', $this -> plugin_name); ?></span>
|
@@ -105,7 +105,7 @@
|
|
105 |
<tbody>
|
106 |
<tr>
|
107 |
<th><label for="Slide_uselink_N"><?php _e('Use Link', $this -> plugin_name); ?></label>
|
108 |
-
<?php echo
|
109 |
<td>
|
110 |
<label><input onclick="jQuery('#Slide_uselink_div').show();" <?php echo ($this -> Slide -> data -> uselink == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[uselink]" value="Y" id="Slide_uselink_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
111 |
<label><input onclick="jQuery('#Slide_uselink_div').hide();" <?php echo (empty($this -> Slide -> data -> uselink) || $this -> Slide -> data -> uselink == "N") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[uselink]" value="N" id="Slide_uselink_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
@@ -120,7 +120,7 @@
|
|
120 |
<tbody>
|
121 |
<tr>
|
122 |
<th><label for="Slide.link"><?php _e('Link To', $this -> plugin_name); ?></label>
|
123 |
-
<?php echo
|
124 |
<td>
|
125 |
<input class="widefat" type="text" name="Slide[link]" value="<?php echo esc_attr($this -> Slide -> data -> link); ?>" id="Slide.link" />
|
126 |
<span class="howto"><?php _e('Link/URL to go to when a user clicks the slide eg. http://www.domain.com/mypage/', $this -> plugin_name); ?></span>
|
@@ -128,7 +128,7 @@
|
|
128 |
</tr>
|
129 |
<tr>
|
130 |
<th><label for="Slide_linktarget_self"><?php _e('Link Target', $this -> plugin_name); ?></label>
|
131 |
-
<?php echo
|
132 |
<td>
|
133 |
<label><input <?php echo (empty($this -> Slide -> data -> linktarget) || (!empty($this -> Slide -> data -> linktarget) && $this -> Slide -> data -> linktarget == "self")) ? 'checked="checked"' : ''; ?> type="radio" name="Slide[linktarget]" value="self" id="Slide_linktarget_self" /> <?php _e('Current Window', $this -> plugin_name); ?></label>
|
134 |
<label><input <?php echo (!empty($this -> Slide -> data -> linktarget) && $this -> Slide -> data -> linktarget == "blank") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[linktarget]" value="blank" id="Slide_linktarget_blank" /> <?php _e('New/Blank Window', $this -> plugin_name); ?></label>
|
9 |
<tbody>
|
10 |
<tr>
|
11 |
<th><label for="Slide.title"><?php _e('Title', $this -> plugin_name); ?></label>
|
12 |
+
<?php echo $this -> Html -> help(__('This title is for your reference in management and it will also be used to display the title of the slide in the information bar if you have that turned on.', $this -> plugin_name)); ?></th>
|
13 |
<td>
|
14 |
<input class="widefat" type="text" name="Slide[title]" value="<?php echo esc_attr($this -> Slide -> data -> title); ?>" id="Slide.title" />
|
15 |
<span class="howto"><?php _e('Title/name of your slide as it will be displayed to your users.', $this -> plugin_name); ?></span>
|
18 |
</tr>
|
19 |
<tr>
|
20 |
<th><label for="Slide.description"><?php _e('Description', $this -> plugin_name); ?></label>
|
21 |
+
<?php echo $this -> Html -> help(__('The description is specifically used for the information bar if you have that turned on.', $this -> plugin_name)); ?></th>
|
22 |
<td>
|
23 |
<textarea class="widefat" rows="5" cols="100%" name="Slide[description]"><?php echo esc_attr($this -> Slide -> data -> description); ?></textarea>
|
24 |
<span class="howto"><?php _e('Description of your slide as it will be displayed to your users below the title.', $this -> plugin_name); ?></span>
|
27 |
</tr>
|
28 |
<tr>
|
29 |
<th><label for="checkboxall"><?php _e('Galleries', $this -> plugin_name); ?></label>
|
30 |
+
<?php echo $this -> Html -> help(__('You can organize/assign a slide to multiple galleries as needed. It is easy to display a slideshow with the slides of a specific gallery then.', $this -> plugin_name)); ?></th>
|
31 |
<td>
|
32 |
<?php if ($galleries = $this -> Gallery -> select()) : ?>
|
33 |
<label style="font-weight:bold"><input onclick="jqCheckAll(this,'','Slide[galleries]');" type="checkbox" name="checkboxall" value="checkboxall" id="checkboxall" /> <?php _e('Select All', $this -> plugin_name); ?></label><br/>
|
42 |
</tr>
|
43 |
<tr>
|
44 |
<th><label for="Slide.type.file"><?php _e('Image Type', $this -> plugin_name); ?></label>
|
45 |
+
<?php echo $this -> Html -> help(__('Do you want to specify a URL to your image or upload the image file manually? Specifying a URL will still copy the image file remotely from the location to your server so uploading is recommended to prevent any restrictions or errors.', $this -> plugin_name)); ?></th>
|
46 |
<td>
|
47 |
<label><input onclick="jQuery('#typediv_file').show(); jQuery('#typediv_url').hide();" <?php echo (empty($this -> Slide -> data -> type) || $this -> Slide -> data -> type == "file") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[type]" value="file" id="Slide.type.file" /> <?php _e('Upload File (recommended)', $this -> plugin_name); ?></label>
|
48 |
<label><input onclick="jQuery('#typediv_url').show(); jQuery('#typediv_file').hide();" <?php echo ($this -> Slide -> data -> type == "url") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[type]" value="url" id="Slide.type.url" /> <?php _e('Specify URL', $this -> plugin_name); ?></label>
|
58 |
<tbody>
|
59 |
<tr>
|
60 |
<th><label for="Slide.image_file"><?php _e('Choose Image', $this -> plugin_name); ?></label>
|
61 |
+
<?php echo $this -> Html -> help(__('Simply choose an image file from your computer to upload for this slide. Only .jpg, .png and .gif are supported and in rare cases .bmp but please try and prevent using .bmp files.', $this -> plugin_name)); ?></th>
|
62 |
<td>
|
63 |
<input type="file" name="image_file" value="" id="Slide.image_file" />
|
64 |
<span class="howto"><?php _e('Choose your image file from your computer. JPG, PNG, GIF are supported.', $this -> plugin_name); ?></span>
|
90 |
<tbody>
|
91 |
<tr>
|
92 |
<th><label for="Slide.image_url"><?php _e('Image URL', $this -> plugin_name); ?></label>
|
93 |
+
<?php echo $this -> Html -> help(__('Specify an absolute URL to an image file to use for this slide. The image will be copied from the location to your server.', $this -> plugin_name)); ?></th>
|
94 |
<td>
|
95 |
<input class="widefat" type="text" name="Slide[image_url]" value="<?php echo esc_attr($this -> Slide -> data -> image_url); ?>" id="Slide.image_url" />
|
96 |
<span class="howto"><?php _e('Local or remote image location eg. http://domain.com/path/to/image.jpg', $this -> plugin_name); ?></span>
|
105 |
<tbody>
|
106 |
<tr>
|
107 |
<th><label for="Slide_uselink_N"><?php _e('Use Link', $this -> plugin_name); ?></label>
|
108 |
+
<?php echo $this -> Html -> help(__('Turn this on to specify a link/URL for this slide to link to when it is clicked.', $this -> plugin_name)); ?></th>
|
109 |
<td>
|
110 |
<label><input onclick="jQuery('#Slide_uselink_div').show();" <?php echo ($this -> Slide -> data -> uselink == "Y") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[uselink]" value="Y" id="Slide_uselink_Y" /> <?php _e('Yes', $this -> plugin_name); ?></label>
|
111 |
<label><input onclick="jQuery('#Slide_uselink_div').hide();" <?php echo (empty($this -> Slide -> data -> uselink) || $this -> Slide -> data -> uselink == "N") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[uselink]" value="N" id="Slide_uselink_N" /> <?php _e('No', $this -> plugin_name); ?></label>
|
120 |
<tbody>
|
121 |
<tr>
|
122 |
<th><label for="Slide.link"><?php _e('Link To', $this -> plugin_name); ?></label>
|
123 |
+
<?php echo $this -> Html -> help(__('The absolute URL to take the user to when the slide is clicked.', $this -> plugin_name)); ?></th>
|
124 |
<td>
|
125 |
<input class="widefat" type="text" name="Slide[link]" value="<?php echo esc_attr($this -> Slide -> data -> link); ?>" id="Slide.link" />
|
126 |
<span class="howto"><?php _e('Link/URL to go to when a user clicks the slide eg. http://www.domain.com/mypage/', $this -> plugin_name); ?></span>
|
128 |
</tr>
|
129 |
<tr>
|
130 |
<th><label for="Slide_linktarget_self"><?php _e('Link Target', $this -> plugin_name); ?></label>
|
131 |
+
<?php echo $this -> Html -> help(__('Depending on the purpose of specifying this link, you may want it to open in the same window or in a new window.', $this -> plugin_name)); ?></th>
|
132 |
<td>
|
133 |
<label><input <?php echo (empty($this -> Slide -> data -> linktarget) || (!empty($this -> Slide -> data -> linktarget) && $this -> Slide -> data -> linktarget == "self")) ? 'checked="checked"' : ''; ?> type="radio" name="Slide[linktarget]" value="self" id="Slide_linktarget_self" /> <?php _e('Current Window', $this -> plugin_name); ?></label>
|
134 |
<label><input <?php echo (!empty($this -> Slide -> data -> linktarget) && $this -> Slide -> data -> linktarget == "blank") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[linktarget]" value="blank" id="Slide_linktarget_blank" /> <?php _e('New/Blank Window', $this -> plugin_name); ?></label>
|
views/default/css-responsive copy.php
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
<?php header("Content-Type: text/css"); ?>
|
2 |
-
|
3 |
-
<?php $styles = array(); ?>
|
4 |
-
<?php foreach ($_GET as $skey => $sval) : ?>
|
5 |
-
<?php $styles[$skey] = urldecode($sval); ?>
|
6 |
-
<?php endforeach; ?>
|
7 |
-
|
8 |
-
<?php if (!empty($styles['wrapperid'])) : ?>
|
9 |
-
ul.slideshow { list-style:none !important; color:#fff; }
|
10 |
-
ul.slideshow span { display:none; }
|
11 |
-
#<?php echo $styles['wrapperid']; ?> { position:relative; height:0; width:100%; background:<?php echo $styles['background']; ?>; padding:0 0 <?php echo $styles['resheight'] . $styles['resheighttype']; ?> 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
|
12 |
-
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
13 |
-
#<?php echo $styles['wrapperid']; ?> #fullsize { position:absolute; z-index:1; overflow:hidden; width:100%; height:100%; border: none; }
|
14 |
-
#<?php echo $styles['wrapperid']; ?> #information { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:100%; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:200; opacity:.7; filter:alpha(opacity=70); }
|
15 |
-
#<?php echo $styles['wrapperid']; ?> #information h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
16 |
-
#<?php echo $styles['wrapperid']; ?> #information p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
|
17 |
-
#<?php echo $styles['wrapperid']; ?> #image { width:100%; no-repeat; }
|
18 |
-
#<?php echo $styles['wrapperid']; ?> #image img { border:none; height:100%; max-width:100%; width:100%; margin:0 auto; display:block; }
|
19 |
-
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:150; }
|
20 |
-
#<?php echo $styles['wrapperid']; ?> #imgprev { left:0; background:url('../../images/left.gif') left center no-repeat; }
|
21 |
-
#<?php echo $styles['wrapperid']; ?> #imgnext { right:0; background:url('../../images/right.gif') right center no-repeat; }
|
22 |
-
#<?php echo $styles['wrapperid']; ?> #imglink { 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); }
|
23 |
-
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent url('../../images/link.gif') center center no-repeat !important; text-indent:-9999px; opacity:.4 !important; filter:alpha(opacity=40) !important; }
|
24 |
-
#<?php echo $styles['wrapperid']; ?> #thumbnails { background:<?php echo $styles['background']; ?>; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; display:block; }
|
25 |
-
#<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
|
26 |
-
#<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
|
27 |
-
#<?php echo $styles['wrapperid']; ?> #slideleft { z-index:150; float:left; position:absolute; left:0; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:url('../../images/scroll-left.gif') center center no-repeat; background-color:#222; }
|
28 |
-
#<?php echo $styles['wrapperid']; ?> #slideleft:hover { background-color:#333; }
|
29 |
-
#<?php echo $styles['wrapperid']; ?> #slideright { z-index:150; float:right; position:absolute; right:0; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:#222 url('../../images/scroll-right.gif') center center no-repeat; }
|
30 |
-
#<?php echo $styles['wrapperid']; ?> #slideright:hover { background-color:#333; }
|
31 |
-
#<?php echo $styles['wrapperid']; ?> #slidearea { z-index:149; float:left; position:absolute; margin:0 5px; background:<?php echo $styles['background']; ?>; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width'] - 50) . 'px' : '90%'; ?>; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; overflow:hidden; }
|
32 |
-
#<?php echo $styles['wrapperid']; ?> #slider { position:absolute; left:0; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; }
|
33 |
-
#<?php echo $styles['wrapperid']; ?> #slider img { cursor:pointer; border:1px solid #666; padding:2px; -moz-border-radius:4px; -webkit-border-radius:4px; float:left !important; }
|
34 |
-
#<?php echo $styles['wrapperid']; ?> #spinner { position:relative; top:50%; left:45%; text-align:left; }
|
35 |
-
#<?php echo $styles['wrapperid']; ?> #spinner img { border:none; }
|
36 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/default/css-responsive.php
CHANGED
@@ -12,31 +12,39 @@ $unique = $styles['unique'];
|
|
12 |
|
13 |
?>
|
14 |
<?php if (!empty($styles['wrapperid'])) : ?>
|
15 |
-
ul.slideshow<?php echo $unique; ?> { list-style:none !important; color:#fff; }
|
16 |
-
ul.slideshow<?php echo $unique; ?> span { display:none; }
|
17 |
-
#<?php echo $styles['wrapperid']; ?> { position:relative; width:100%; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
|
18 |
-
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
19 |
-
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo $unique; ?> { position:relative; z-index:1; overflow:hidden; width:100%; height:<?php echo $resheight; ?>; border: none; }
|
20 |
-
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:100%; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:200; opacity:.7; filter:alpha(opacity=70); }
|
21 |
-
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
22 |
-
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
|
23 |
-
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
24 |
-
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> img { border:none; height:auto; width:100%; margin:0 auto; display:block; }
|
25 |
-
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
26 |
-
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { left:0; background:url('images/left.gif') left center no-repeat; }
|
27 |
-
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { right:0; background:url('images/right.gif') right center no-repeat; }
|
28 |
-
#<?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); }
|
29 |
-
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent url('images/link.gif') center center no-repeat !important; text-indent:-9999px; opacity:.4 !important; filter:alpha(opacity=40) !important; }
|
30 |
-
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; height:<?php echo $sliderheight; ?>px; }
|
31 |
-
#<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
|
32 |
-
#<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
|
33 |
-
#<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?> { float:left; position:absolute; left:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:url('images/scroll-left.gif') center center no-repeat; background-color:#222; }
|
34 |
-
#<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
|
35 |
-
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?> { float:right; position:absolute; right:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:#222 url('images/scroll-right.gif') center center no-repeat; }
|
36 |
-
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
|
37 |
-
#<?php echo $styles['wrapperid']; ?> #slidearea<?php echo $unique; ?> { float:left; position:absolute; z-index:149; background:<?php echo $styles['background']; ?>; width:calc(100% - 40px); margin:0 20px; height:<?php echo $sliderheight; ?>px; overflow:hidden; }
|
38 |
-
#<?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 0 0 5px; }
|
39 |
-
#<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
|
40 |
-
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; }
|
41 |
-
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
<?php endif; ?>
|
12 |
|
13 |
?>
|
14 |
<?php if (!empty($styles['wrapperid'])) : ?>
|
15 |
+
ul.slideshow<?php echo $unique; ?> { list-style:none !important; color:#fff; }
|
16 |
+
ul.slideshow<?php echo $unique; ?> span { display:none; }
|
17 |
+
#<?php echo $styles['wrapperid']; ?> { position:relative; width:100%; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
|
18 |
+
#<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
|
19 |
+
#<?php echo $styles['wrapperid']; ?> #fullsize<?php echo $unique; ?> { position:relative; z-index:1; overflow:hidden; width:100%; height:<?php echo $resheight; ?>; border: none; }
|
20 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:100%; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:200; opacity:.7; filter:alpha(opacity=70); }
|
21 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
|
22 |
+
#<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
|
23 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> { width:100%; }
|
24 |
+
#<?php echo $styles['wrapperid']; ?> #image<?php echo $unique; ?> img { border:none; height:auto; width:100%; margin:0 auto; display:block; }
|
25 |
+
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
26 |
+
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { left:0; background:url('images/left.gif') left center no-repeat; }
|
27 |
+
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { right:0; background:url('images/right.gif') right center no-repeat; }
|
28 |
+
#<?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); }
|
29 |
+
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent url('images/link.gif') center center no-repeat !important; text-indent:-9999px; opacity:.4 !important; filter:alpha(opacity=40) !important; }
|
30 |
+
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; height:<?php echo $sliderheight; ?>px; }
|
31 |
+
#<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
|
32 |
+
#<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
|
33 |
+
#<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?> { float:left; position:absolute; left:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:url('images/scroll-left.gif') center center no-repeat; background-color:#222; }
|
34 |
+
#<?php echo $styles['wrapperid']; ?> #slideleft<?php echo $unique; ?>:hover { background-color:#333; }
|
35 |
+
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?> { float:right; position:absolute; right:0; z-index:150; width:20px; height:<?php echo $sliderheight; ?>px; background:#222 url('images/scroll-right.gif') center center no-repeat; }
|
36 |
+
#<?php echo $styles['wrapperid']; ?> #slideright<?php echo $unique; ?>:hover { background-color:#333; }
|
37 |
+
#<?php echo $styles['wrapperid']; ?> #slidearea<?php echo $unique; ?> { float:left; position:absolute; z-index:149; background:<?php echo $styles['background']; ?>; width:calc(100% - 40px); margin:0 20px; height:<?php echo $sliderheight; ?>px; overflow:hidden; }
|
38 |
+
#<?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 0 0 5px; }
|
39 |
+
#<?php echo $styles['wrapperid']; ?> #slider<?php echo $unique; ?> img { cursor:pointer; border:1px solid #666; padding:2px; float:left !important; }
|
40 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> { position:relative; top:50%; left:45%; text-align:left; }
|
41 |
+
#<?php echo $styles['wrapperid']; ?> #spinner<?php echo $unique; ?> img { border:none; }
|
42 |
+
|
43 |
+
<?php if (!empty($styles['infohideonmobile'])) : ?>
|
44 |
+
@media (max-width:480px) {
|
45 |
+
.slideshow-information {
|
46 |
+
display: none !important;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
<?php endif; ?>
|
50 |
<?php endif; ?>
|
views/default/gallery.php
CHANGED
@@ -15,7 +15,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
15 |
<h3><?php echo $slide -> post_title; ?></h3>
|
16 |
<?php $full_image_href = wp_get_attachment_image_src($slide -> ID, 'full', false); ?>
|
17 |
<?php $full_image_path = get_attached_file($slide -> ID); ?>
|
18 |
-
<?php $full_image_url = wp_get_attachment_url($slide -> ID); ?>
|
19 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
20 |
<span><?php echo $this -> Html -> timthumb_image_src($full_image_path, $options['width'], $options['height'], 100); ?></span>
|
21 |
<?php else : ?>
|
@@ -25,7 +25,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
25 |
<?php $thumbnail_link = wp_get_attachment_image_src($slide -> ID, 'thumbnail', false); ?>
|
26 |
<?php if ($options['showthumbs'] == "true") : ?>
|
27 |
<?php if (!empty($slide -> guid)) : ?>
|
28 |
-
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"><img src="<?php echo $this -> Html -> timthumb_image_src($
|
29 |
<?php else : ?>
|
30 |
<a><img src="<?php echo $this -> Html -> timthumb_image_src($full_image_path, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
|
31 |
<?php endif; ?>
|
@@ -87,45 +87,45 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
87 |
<?php endif; ?>
|
88 |
</ul>
|
89 |
|
90 |
-
<div id="<?php echo $wrapperid; ?>">
|
91 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "top") : ?>
|
92 |
-
<div id="thumbnails<?php echo $unique; ?>" class="thumbstop">
|
93 |
-
<div id="slideleft<?php echo $unique; ?>" title="<?php _e('Slide Left', $this -> plugin_name); ?>"></div>
|
94 |
-
<div id="slidearea<?php echo $unique; ?>">
|
95 |
-
<div id="slider<?php echo $unique; ?>"></div>
|
96 |
</div>
|
97 |
-
<div id="slideright<?php echo $unique; ?>" title="<?php _e('Slide Right', $this -> plugin_name); ?>"></div>
|
98 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
99 |
</div>
|
100 |
<?php endif; ?>
|
101 |
|
102 |
-
<div id="fullsize<?php echo $unique; ?>">
|
103 |
<?php $navb = false; $navf = false; ?>
|
104 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
105 |
<?php $navb = "imgprev"; ?>
|
106 |
-
<div id="imgprev<?php echo $unique; ?>" class="imgnav" title="<?php _e('Previous Image', $this -> plugin_name); ?>"></div>
|
107 |
<?php endif; ?>
|
108 |
-
<div id="imglink<?php echo $unique; ?>" class="imglink"><!-- link --></div>
|
109 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
110 |
<?php $navf = "imgnext"; ?>
|
111 |
-
<div id="imgnext<?php echo $unique; ?>" class="imgnav" title="<?php _e('Next Image', $this -> plugin_name); ?>"></div>
|
112 |
<?php endif; ?>
|
113 |
-
<div id="image<?php echo $unique; ?>"></div>
|
114 |
<?php if ($options['showinfo'] == "true") : ?>
|
115 |
-
<div id="information<?php echo $unique; ?>">
|
116 |
-
<h3></h3>
|
117 |
-
<p></p>
|
118 |
</div>
|
119 |
<?php endif; ?>
|
120 |
</div>
|
121 |
|
122 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "bottom") : ?>
|
123 |
-
<div id="thumbnails<?php echo $unique; ?>" class="thumbsbot">
|
124 |
-
<div id="slideleft<?php echo $unique; ?>" title="<?php _e('Slide Left', $this -> plugin_name); ?>"></div>
|
125 |
-
<div id="slidearea<?php echo $unique; ?>">
|
126 |
-
<div id="slider<?php echo $unique; ?>"></div>
|
127 |
</div>
|
128 |
-
<div id="slideright<?php echo $unique; ?>" title="<?php _e('Slide Right', $this -> plugin_name); ?>"></div>
|
129 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
130 |
</div>
|
131 |
<?php endif; ?>
|
@@ -160,7 +160,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
160 |
slideshow<?php echo $unique; ?>.active = "<?php echo $options['thumbsborder']; ?>";
|
161 |
slideshow<?php echo $unique; ?>.imagesthickbox = "<?php echo $options['imagesoverlay']; ?>";
|
162 |
jQuery("#spinner<?php echo $unique; ?>").remove();
|
163 |
-
slideshow<?php echo $unique; ?>.init("slideshow<?php echo $unique; ?>","image<?php echo $unique; ?>","<?php echo (!empty($options['shownav']) && $options['shownav'] == "true") ? $navb . $unique : ''; ?>","<?php echo (!empty($options['shownav']) && $options['shownav'] == "true") ? $navf . $unique : ''; ?>","imglink<?php echo $unique; ?>");
|
164 |
tid('<?php echo $wrapperid; ?>').style.visibility = 'visible';
|
165 |
jQuery(window).trigger('resize');
|
166 |
});
|
@@ -185,6 +185,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
185 |
$cssattr['thumbwidth'] = $this -> get_option('thumbwidth');
|
186 |
$cssattr['thumbheight'] = $this -> get_option('thumbheight');
|
187 |
$cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + ($options['thumbsspacing'] * 2) + 5) * count($slides)));
|
|
|
188 |
|
189 |
?>
|
190 |
|
15 |
<h3><?php echo $slide -> post_title; ?></h3>
|
16 |
<?php $full_image_href = wp_get_attachment_image_src($slide -> ID, 'full', false); ?>
|
17 |
<?php $full_image_path = get_attached_file($slide -> ID); ?>
|
18 |
+
<?php $full_image_url = wp_get_attachment_url($slide -> ID); ?>
|
19 |
<?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
|
20 |
<span><?php echo $this -> Html -> timthumb_image_src($full_image_path, $options['width'], $options['height'], 100); ?></span>
|
21 |
<?php else : ?>
|
25 |
<?php $thumbnail_link = wp_get_attachment_image_src($slide -> ID, 'thumbnail', false); ?>
|
26 |
<?php if ($options['showthumbs'] == "true") : ?>
|
27 |
<?php if (!empty($slide -> guid)) : ?>
|
28 |
+
<a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"><img src="<?php echo $this -> Html -> timthumb_image_src($full_image_path, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
|
29 |
<?php else : ?>
|
30 |
<a><img src="<?php echo $this -> Html -> timthumb_image_src($full_image_path, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
|
31 |
<?php endif; ?>
|
87 |
<?php endif; ?>
|
88 |
</ul>
|
89 |
|
90 |
+
<div id="<?php echo $wrapperid; ?>" class="slideshow-wrapper">
|
91 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "top") : ?>
|
92 |
+
<div id="thumbnails<?php echo $unique; ?>" class="slideshow-thumbnails thumbstop">
|
93 |
+
<div class="slideshow-slideleft" id="slideleft<?php echo $unique; ?>" title="<?php _e('Slide Left', $this -> plugin_name); ?>"></div>
|
94 |
+
<div class="slideshow-slidearea" id="slidearea<?php echo $unique; ?>">
|
95 |
+
<div class="slideshow-slider" id="slider<?php echo $unique; ?>"></div>
|
96 |
</div>
|
97 |
+
<div class="slideshow-slideright" id="slideright<?php echo $unique; ?>" title="<?php _e('Slide Right', $this -> plugin_name); ?>"></div>
|
98 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
99 |
</div>
|
100 |
<?php endif; ?>
|
101 |
|
102 |
+
<div class="slideshow-fullsize" id="fullsize<?php echo $unique; ?>">
|
103 |
<?php $navb = false; $navf = false; ?>
|
104 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
105 |
<?php $navb = "imgprev"; ?>
|
106 |
+
<div id="imgprev<?php echo $unique; ?>" class="slideshow-imgprev imgnav" title="<?php _e('Previous Image', $this -> plugin_name); ?>"></div>
|
107 |
<?php endif; ?>
|
108 |
+
<div id="imglink<?php echo $unique; ?>" class="slideshow-imglink imglink"><!-- link --></div>
|
109 |
<?php if ($options['shownav'] == "true" && count($slides) > 1) : ?>
|
110 |
<?php $navf = "imgnext"; ?>
|
111 |
+
<div id="imgnext<?php echo $unique; ?>" class="slideshow-imgnext imgnav" title="<?php _e('Next Image', $this -> plugin_name); ?>"></div>
|
112 |
<?php endif; ?>
|
113 |
+
<div id="image<?php echo $unique; ?>" class="slideshow-image"></div>
|
114 |
<?php if ($options['showinfo'] == "true") : ?>
|
115 |
+
<div class="slideshow-information" id="information<?php echo $unique; ?>">
|
116 |
+
<h3 class="slideshow-info-heading"></h3>
|
117 |
+
<p class="slideshow-info-content"></p>
|
118 |
</div>
|
119 |
<?php endif; ?>
|
120 |
</div>
|
121 |
|
122 |
<?php if ($options['showthumbs'] == "true" && $options['thumbsposition'] == "bottom") : ?>
|
123 |
+
<div id="thumbnails<?php echo $unique; ?>" class="slideshow-thumbnails thumbsbot">
|
124 |
+
<div class="slideshow-slideleft" id="slideleft<?php echo $unique; ?>" title="<?php _e('Slide Left', $this -> plugin_name); ?>"></div>
|
125 |
+
<div class="slideshow-slidearea" id="slidearea<?php echo $unique; ?>">
|
126 |
+
<div class="slideshow-slider" id="slider<?php echo $unique; ?>"></div>
|
127 |
</div>
|
128 |
+
<div class="slideshow-slideright" id="slideright<?php echo $unique; ?>" title="<?php _e('Slide Right', $this -> plugin_name); ?>"></div>
|
129 |
<br style="clear:both; visibility:hidden; height:1px;" />
|
130 |
</div>
|
131 |
<?php endif; ?>
|
160 |
slideshow<?php echo $unique; ?>.active = "<?php echo $options['thumbsborder']; ?>";
|
161 |
slideshow<?php echo $unique; ?>.imagesthickbox = "<?php echo $options['imagesoverlay']; ?>";
|
162 |
jQuery("#spinner<?php echo $unique; ?>").remove();
|
163 |
+
slideshow<?php echo $unique; ?>.init("slideshow<?php echo $unique; ?>","image<?php echo $unique; ?>","<?php echo (!empty($options['shownav']) && count($slides) > 1 && $options['shownav'] == "true") ? $navb . $unique : ''; ?>","<?php echo (!empty($options['shownav']) && count($slides) > 1 && $options['shownav'] == "true") ? $navf . $unique : ''; ?>","imglink<?php echo $unique; ?>");
|
164 |
tid('<?php echo $wrapperid; ?>').style.visibility = 'visible';
|
165 |
jQuery(window).trigger('resize');
|
166 |
});
|
185 |
$cssattr['thumbwidth'] = $this -> get_option('thumbwidth');
|
186 |
$cssattr['thumbheight'] = $this -> get_option('thumbheight');
|
187 |
$cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + ($options['thumbsspacing'] * 2) + 5) * count($slides)));
|
188 |
+
$cssattr['infohideonmobile'] = $this -> get_option('infohideonmobile');
|
189 |
|
190 |
?>
|
191 |
|