Slideshow Gallery - Version 1.4.6

Version Description

  • ADD: Featured content. Display a slide for each post with it's featured image
  • ADD: Auto height setting to adjust height for each slide
  • IMPROVE: (m)qTranslate compatibility for post images and featured posts
  • IMPROVE: Change direct Ajax calls to wp_ajax_ hooks
  • FIX: Slideshow inside float:left; element breaks height
  • FIX: Information bar not showing on post/pages images slides
Download this release

Release Info

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

Code changes from version 1.4.5 to 1.4.6

css/admin.css CHANGED
@@ -119,18 +119,23 @@ ul.connectedSortable {
119
  width: 100%;
120
  }
121
 
 
 
 
 
 
122
  span.gallery_slides_convert_list a:before {
123
  font-family: 'slideshow_dashicons' !important;
124
  content: '\f228';
125
  text-decoration: none;
126
- font-size: 24px;
127
  }
128
 
129
  span.gallery_slides_convert_grid a:before {
130
  font-family: 'slideshow_dashicons' !important;
131
  content: '\f180';
132
  text-decoration: none;
133
- font-size: 24px;
134
  }
135
 
136
  .sortable-elements {
119
  width: 100%;
120
  }
121
 
122
+ span.gallery_slides_convert_list a,
123
+ span.gallery_slides_convert_grid a{
124
+ text-decoration: none;
125
+ }
126
+
127
  span.gallery_slides_convert_list a:before {
128
  font-family: 'slideshow_dashicons' !important;
129
  content: '\f228';
130
  text-decoration: none;
131
+ font-size: 20px;
132
  }
133
 
134
  span.gallery_slides_convert_grid a:before {
135
  font-family: 'slideshow_dashicons' !important;
136
  content: '\f180';
137
  text-decoration: none;
138
+ font-size: 20px;
139
  }
140
 
141
  .sortable-elements {
js/gallery.js CHANGED
@@ -83,10 +83,10 @@ TINY.slideshow.prototype={
83
  this.is(t,c)
84
  },
85
  is:function(s,c){
86
- if(this.info) {
87
- if (this.a[s].t.length > 0 || this.a[s].d.length > 0) {
88
  TINY.height.set(this.r,1,this.infoSpeed/2,-1);
89
- } else {
90
  TINY.height.set(this.r,0,this.infoSpeed/2,-1);
91
  }
92
  }
@@ -142,7 +142,7 @@ TINY.slideshow.prototype={
142
  }
143
  },
144
  nf:function(s){
145
- if(this.info){
146
  s=this.a[s];
147
  tag('h3',this.r)[0].innerHTML=s.t;
148
  tag('p',this.r)[0].innerHTML=s.d;
@@ -150,7 +150,7 @@ TINY.slideshow.prototype={
150
  var h=parseInt(this.r.offsetHeight);
151
  this.r.style.height=0;
152
 
153
- if (s.t.length > 0 || s.d.length > 0) {
154
  TINY.height.set(this.r,h,this.infoSpeed,0);
155
  TINY.alpha.set(this.r,s.io,5);
156
  }
83
  this.is(t,c)
84
  },
85
  is:function(s,c){
86
+ if(this.info) {
87
+ if (this.a[s].t.length > 0 || this.a[s].d.length > 0) {
88
  TINY.height.set(this.r,1,this.infoSpeed/2,-1);
89
+ } else {
90
  TINY.height.set(this.r,0,this.infoSpeed/2,-1);
91
  }
92
  }
142
  }
143
  },
144
  nf:function(s){
145
+ if(this.info){
146
  s=this.a[s];
147
  tag('h3',this.r)[0].innerHTML=s.t;
148
  tag('p',this.r)[0].innerHTML=s.d;
150
  var h=parseInt(this.r.offsetHeight);
151
  this.r.style.height=0;
152
 
153
+ if (s.t.length > 0 || s.d.length > 0) {
154
  TINY.height.set(this.r,h,this.infoSpeed,0);
155
  TINY.alpha.set(this.r,s.io,5);
156
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.2
7
- Stable tag: 1.4.5
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
@@ -54,6 +54,9 @@ This way you can customize each slideshow you embed or hardcode, despite the set
54
 
55
  * `products` [ latest | featured ] = String "latest" or "featured" to display products from the <a href="http://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin">Checkout plugin</a>.
56
  * `productsnumber` [ productsnumber ] = Numeric/integer to limit the number of products to display.
 
 
 
57
  * `gallery_id` [ gallery_id ] = Numeric/integer ID of a gallery to display images from.
58
  * `post_id` [ post_id ] = Numeric/integer ID of a post to take images from it, uploaded through it's "Add Media" button.
59
  * `layout` [ responsive | specific ] = Set to 'responsive' for mobile/tablet compatible theme and 'specific' for fixed width/height.
@@ -64,6 +67,7 @@ This way you can customize each slideshow you embed or hardcode, despite the set
64
  * `resheight` [ resheight ] = (only with layout="responsive") Numeric/integer value such as "30" to be used with 'resheighttype' below
65
  * `resheighttype [ resheighttype ] = (only with layout="responsive") "px" (pixels) or "%" (percent) as the value eg. resheighttype="%"
66
  * `height` [ height ] (only with layout="specific"; default: setting) = Height of the slideshow in pixels. Don't specify the 'px' part, just the numeric value for the height.
 
67
  * `auto` [ true | false ] (default: setting) = Set this to 'true' to automatically slide the slides in the slideshow.
68
  * `autospeed` [ speed ] (default: setting) = Speed of the auto sliding. 10 is normal. Lower number is faster. Between 5 and 15 is recommended.
69
  * `fadespeed` [ speed ] (default: setting) = Speed of the fading of images. 10 is normal. Lower number is faster. Between 1 and 20 is recommended.
@@ -122,6 +126,14 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
 
 
 
125
  = 1.4.5 =
126
  * ADD: Welcome/about screen on update
127
  * ADD: Child theme folder support
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.2
7
+ Stable tag: 1.4.6
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
54
 
55
  * `products` [ latest | featured ] = String "latest" or "featured" to display products from the <a href="http://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin">Checkout plugin</a>.
56
  * `productsnumber` [ productsnumber ] = Numeric/integer to limit the number of products to display.
57
+ * `featured` [ true | false ] = Show posts with their featured images
58
+ * `featurednumber` [ number ] = A numeric/integer value. The default is 10
59
+ * `featuredtype` [ post_type ] = A post type slug like 'post', 'page', etc. The default is 'post'
60
  * `gallery_id` [ gallery_id ] = Numeric/integer ID of a gallery to display images from.
61
  * `post_id` [ post_id ] = Numeric/integer ID of a post to take images from it, uploaded through it's "Add Media" button.
62
  * `layout` [ responsive | specific ] = Set to 'responsive' for mobile/tablet compatible theme and 'specific' for fixed width/height.
67
  * `resheight` [ resheight ] = (only with layout="responsive") Numeric/integer value such as "30" to be used with 'resheighttype' below
68
  * `resheighttype [ resheighttype ] = (only with layout="responsive") "px" (pixels) or "%" (percent) as the value eg. resheighttype="%"
69
  * `height` [ height ] (only with layout="specific"; default: setting) = Height of the slideshow in pixels. Don't specify the 'px' part, just the numeric value for the height.
70
+ * `autoheight` [ true | false ] = Should the gallery adjust it's height for each slide?
71
  * `auto` [ true | false ] (default: setting) = Set this to 'true' to automatically slide the slides in the slideshow.
72
  * `autospeed` [ speed ] (default: setting) = Speed of the auto sliding. 10 is normal. Lower number is faster. Between 5 and 15 is recommended.
73
  * `fadespeed` [ speed ] (default: setting) = Speed of the fading of images. 10 is normal. Lower number is faster. Between 1 and 20 is recommended.
126
 
127
  == Changelog ==
128
 
129
+ = 1.4.6 =
130
+ * ADD: Featured content. Display a slide for each post with it's featured image
131
+ * ADD: Auto height setting to adjust height for each slide
132
+ * IMPROVE: (m)qTranslate compatibility for post images and featured posts
133
+ * IMPROVE: Change direct Ajax calls to wp_ajax_ hooks
134
+ * FIX: Slideshow inside float:left; element breaks height
135
+ * FIX: Information bar not showing on post/pages images slides
136
+
137
  = 1.4.5 =
138
  * ADD: Welcome/about screen on update
139
  * ADD: Child theme folder support
slideshow-gallery-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class GalleryPlugin {
4
 
5
- var $version = '1.4.5';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
@@ -46,6 +46,23 @@ class GalleryPlugin {
46
  return true;
47
  }
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  function init_class($name = null, $params = array()) {
50
  if (!empty($name)) {
51
  $name = $this -> pre . $name;
2
 
3
  class GalleryPlugin {
4
 
5
+ var $version = '1.4.6';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
46
  return true;
47
  }
48
 
49
+ function ajax_slides_order() {
50
+ if (!empty($_REQUEST['item'])) {
51
+ foreach ($_REQUEST['item'] as $order => $slide_id) {
52
+ if (empty($_REQUEST['gallery_id'])) {
53
+ $this -> Slide -> save_field('order', ($order + 1), array('id' => $slide_id));
54
+ } else {
55
+ $this -> GallerySlides -> save_field('order', ($order + 1), array('slide_id' => $slide_id, 'gallery_id' => $_REQUEST['gallery_id']));
56
+ }
57
+ }
58
+
59
+ _e('Slides have been ordered', $this -> plugin_name);
60
+ }
61
+
62
+ exit();
63
+ die();
64
+ }
65
+
66
  function init_class($name = null, $params = array()) {
67
  if (!empty($name)) {
68
  $name = $this -> pre . $name;
slideshow-gallery.php CHANGED
@@ -6,7 +6,7 @@ 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>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
- Version: 1.4.5
10
  License: GNU General Public License v2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
@@ -44,6 +44,9 @@ if (!class_exists('Gallery')) {
44
  $this -> add_action('init', 'init_textdomain', 10, 1);
45
  $this -> add_action('admin_init', 'custom_redirect', 1, 1);
46
 
 
 
 
47
  //WordPress filter hooks
48
  $this -> add_filter('mce_buttons');
49
  $this -> add_filter('mce_external_plugins');
@@ -140,12 +143,17 @@ if (!class_exists('Gallery')) {
140
  //global variables
141
  global $wpdb;
142
  $styles = $this -> get_option('styles');
 
 
143
 
144
  // default shortcode parameters
145
  $defaults = array(
146
  'source' => "slides",
147
  'products' => false,
148
  'productsnumber' => 10,
 
 
 
149
  'gallery_id' => false,
150
  'orderby' => array('order', "ASC"),
151
  'resizeimages' => (($styles['resizeimages'] == "Y") ? "true" : "false"),
@@ -153,6 +161,7 @@ if (!class_exists('Gallery')) {
153
  'layout' => ($styles['layout']),
154
  'width' => ($styles['width']),
155
  'height' => ($styles['height']),
 
156
  'resheight' => ($styles['resheight']),
157
  'resheighttype' => ($styles['resheighttype']),
158
  'auto' => (($this -> get_option('autoslide') == "Y") ? "true" : "false"),
@@ -209,7 +218,29 @@ if (!class_exists('Gallery')) {
209
 
210
  if (!empty($error)) {
211
  $content = '';
212
- $content .= '<p>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  $content .= stripslashes($error);
214
  $content .= '</p>';
215
  }
@@ -506,6 +537,7 @@ if (!class_exists('Gallery')) {
506
  if (!empty($_POST)) {
507
  delete_option('tridebugging');
508
  delete_option('Galleryinfohideonmobile');
 
509
 
510
  foreach ($_POST as $pkey => $pval) {
511
  switch ($pkey) {
6
  Author: Tribulant Software
7
  Author URI: http://tribulant.com
8
  Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[tribulant_slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
+ Version: 1.4.6
10
  License: GNU General Public License v2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
44
  $this -> add_action('init', 'init_textdomain', 10, 1);
45
  $this -> add_action('admin_init', 'custom_redirect', 1, 1);
46
 
47
+ //WordPress Ajax hooks
48
+ $this -> add_action('wp_ajax_slideshow_slides_order', 'ajax_slides_order', 10, 1);
49
+
50
  //WordPress filter hooks
51
  $this -> add_filter('mce_buttons');
52
  $this -> add_filter('mce_external_plugins');
143
  //global variables
144
  global $wpdb;
145
  $styles = $this -> get_option('styles');
146
+
147
+ $autoheight = $this -> get_option('autoheight');
148
 
149
  // default shortcode parameters
150
  $defaults = array(
151
  'source' => "slides",
152
  'products' => false,
153
  'productsnumber' => 10,
154
+ 'featured' => false,
155
+ 'featurednumber' => 10,
156
+ 'featuredtype' => "post",
157
  'gallery_id' => false,
158
  'orderby' => array('order', "ASC"),
159
  'resizeimages' => (($styles['resizeimages'] == "Y") ? "true" : "false"),
161
  'layout' => ($styles['layout']),
162
  'width' => ($styles['width']),
163
  'height' => ($styles['height']),
164
+ 'autoheight' => ((!empty($autoheight)) ? "true" : "false"),
165
  'resheight' => ($styles['resheight']),
166
  'resheighttype' => ($styles['resheighttype']),
167
  'auto' => (($this -> get_option('autoslide') == "Y") ? "true" : "false"),
218
 
219
  if (!empty($error)) {
220
  $content = '';
221
+ $content .= '<p class="slideshow-gallery-error">';
222
+ $content .= stripslashes($error);
223
+ $content .= '</p>';
224
+ }
225
+ } elseif (!empty($featured)) {
226
+ global $post;
227
+
228
+ $args = array(
229
+ 'numberposts' => $featurednumber, // should show 5 but only shows 3
230
+ 'post_type' => 'post', // posts only
231
+ 'meta_key' => '_thumbnail_id', // with thumbnail
232
+ 'exclude' => $post -> ID // exclude current post
233
+ );
234
+
235
+ if ($posts = get_posts($args)) {
236
+ $content = $this -> render('gallery', array('slides' => $posts, 'unique' => 'featured' . $featuredtype . $featurednumber, 'featured' => true, 'options' => $s, 'frompost' => false), false, 'default');
237
+ } else {
238
+ $error = sprintf(__('No posts with featured images are available. Ensure your theme includes %s support.', $this -> plugin_name), '<code>add_theme_support("post-thumbnails");</code>');
239
+ }
240
+
241
+ if (!empty($error)) {
242
+ $content = '';
243
+ $content .= '<p class="slideshow-gallery-error">';
244
  $content .= stripslashes($error);
245
  $content .= '</p>';
246
  }
537
  if (!empty($_POST)) {
538
  delete_option('tridebugging');
539
  delete_option('Galleryinfohideonmobile');
540
+ $this -> delete_option('autoheight');
541
 
542
  foreach ($_POST as $pkey => $pval) {
543
  switch ($pkey) {
views/admin/head.php CHANGED
@@ -1,5 +1,6 @@
1
  <script type="text/javascript">
2
  var GalleryAjax = "<?php echo $this -> url(); ?>/<?php echo $this -> plugin_name; ?>-ajax.php";
 
3
 
4
  jQuery(document).ready(function() {
5
  if (jQuery.isFunction(jQuery.fn.colorbox)) { jQuery('.colorbox').colorbox({maxWidth:'100%', maxHeight:'100%'}); }
1
  <script type="text/javascript">
2
  var GalleryAjax = "<?php echo $this -> url(); ?>/<?php echo $this -> plugin_name; ?>-ajax.php";
3
+ var slideshowajax = "<?php echo admin_url('admin-ajax.php'); ?>";
4
 
5
  jQuery(document).ready(function() {
6
  if (jQuery.isFunction(jQuery.fn.colorbox)) { jQuery('.colorbox').colorbox({maxWidth:'100%', maxHeight:'100%'}); }
views/admin/metaboxes/settings-styles.php CHANGED
@@ -3,6 +3,7 @@
3
  <?php
4
 
5
  $styles = $this -> get_option('styles');
 
6
  $resizeimagescrop = $this -> get_option('resizeimagescrop');
7
 
8
  ?>
@@ -107,6 +108,12 @@ $resizeimagescrop = $this -> get_option('resizeimagescrop');
107
 
108
  <table class="form-table">
109
  <tbody>
 
 
 
 
 
 
110
  <tr>
111
  <th><label for="styles.border"><?php _e('Slideshow Border', $this -> plugin_name); ?></label>
112
  <?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>
3
  <?php
4
 
5
  $styles = $this -> get_option('styles');
6
+ $autoheight = $this -> get_option('autoheight');
7
  $resizeimagescrop = $this -> get_option('resizeimagescrop');
8
 
9
  ?>
108
 
109
  <table class="form-table">
110
  <tbody>
111
+ <tr>
112
+ <th><label for="autoheight"><?php _e('Auto Height', $this -> plugin_name); ?></label></th>
113
+ <td>
114
+ <label><input <?php echo (!empty($autoheight)) ? 'checked="checked"' : ''; ?> type="checkbox" name="autoheight" value="1" id="autoheight" /> <?php _e('Yes, automatically adjust the slideshow height for each slide', $this -> plugin_name); ?></label>
115
+ </td>
116
+ </tr>
117
  <tr>
118
  <th><label for="styles.border"><?php _e('Slideshow Border', $this -> plugin_name); ?></label>
119
  <?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>
views/admin/slides/order.php CHANGED
@@ -26,10 +26,14 @@
26
  jQuery(document).ready(function() {
27
  jQuery('#gallery_convert_list').click(function() {
28
  jQuery('.gallery_slides_grid').removeClass('gallery_slides_grid').addClass('gallery_slides_list');
 
 
29
  });
30
 
31
  jQuery('#gallery_convert_grid').click(function() {
32
  jQuery('.gallery_slides_list').removeClass('gallery_slides_list').addClass('gallery_slides_grid');
 
 
33
  });
34
 
35
  jQuery("ul#slidelist").sortable({
@@ -41,7 +45,7 @@
41
  jQuery("#slidemessage").slideUp();
42
  },
43
  stop: function(request) {
44
- jQuery.post(GalleryAjax + '?cmd=slides_order<?php echo (!empty($gallery)) ? '&gallery_id=' . $gallery -> id : ''; ?>', jQuery('#slidelist').sortable('serialize'), function(response) {
45
  jQuery('#slidemessage').html('<p>' + response + '</p>').fadeIn();
46
  });
47
  }
26
  jQuery(document).ready(function() {
27
  jQuery('#gallery_convert_list').click(function() {
28
  jQuery('.gallery_slides_grid').removeClass('gallery_slides_grid').addClass('gallery_slides_list');
29
+
30
+ return false;
31
  });
32
 
33
  jQuery('#gallery_convert_grid').click(function() {
34
  jQuery('.gallery_slides_list').removeClass('gallery_slides_list').addClass('gallery_slides_grid');
35
+
36
+ return false;
37
  });
38
 
39
  jQuery("ul#slidelist").sortable({
45
  jQuery("#slidemessage").slideUp();
46
  },
47
  stop: function(request) {
48
+ jQuery.post(slideshowajax + '?action=slideshow_slides_order<?php echo (!empty($gallery)) ? '&gallery_id=' . $gallery -> id : ''; ?>', jQuery('#slidelist').sortable('serialize'), function(response) {
49
  jQuery('#slidemessage').html('<p>' + response + '</p>').fadeIn();
50
  });
51
  }
views/default/css-responsive.php CHANGED
@@ -16,7 +16,7 @@ $unique = $styles['unique'];
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:300; opacity:.7; filter:alpha(opacity=70); }
21
  #<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
22
  #<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
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; ?><?php if (!empty($styles['autoheight']) && $styles['autoheight'] == "true") : ?> !important<?php endif; ?>; clear:both; border: none; }
20
  #<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:100%; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
21
  #<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
22
  #<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
views/default/css.php CHANGED
@@ -16,7 +16,7 @@ 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:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
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:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; height:<?php echo ((int) $styles['height']); ?>px; 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:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : '100%'; ?>; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
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; }
16
  ul.slideshow<?php echo $unique; ?> span { display:none; }
17
  #<?php echo $styles['wrapperid']; ?> { position:relative; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
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:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; height:<?php echo ((int) $styles['height']); ?>px<?php if (!empty($styles['autoheight']) && $styles['autoheight'] == "true") : ?> !important<?php endif; ?>; clear:both; border: none; }
20
  #<?php echo $styles['wrapperid']; ?> #information<?php echo $unique; ?> { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : '100%'; ?>; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:300; opacity:.7; filter:alpha(opacity=70); }
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; }
views/default/gallery.php CHANGED
@@ -8,11 +8,12 @@ $thumbopacity = $this -> get_option('thumbopacity');
8
 
9
  <?php if (!empty($slides)) : ?>
10
  <ul id="slideshow<?php echo $unique; ?>" class="slideshow<?php echo $unique; ?>" style="display:none;">
11
- <!-- From a WordPress post/page -->
12
  <?php if ($frompost) : ?>
 
13
  <?php foreach ($slides as $slide) : ?>
 
14
  <li>
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); ?>
@@ -21,24 +22,53 @@ $thumbopacity = $this -> get_option('thumbopacity');
21
  <?php else : ?>
22
  <span><?php echo $full_image_href[0]; ?></span>
23
  <?php endif; ?>
24
- <p><?php echo stripslashes($slide -> post_content); ?></p>
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 -> bfithumb_image_src($full_image_url, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
29
  <?php else : ?>
30
- <a><img src="<?php echo $this -> Html -> bfithumb_image_src($full_image_url, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
31
  <?php endif; ?>
32
  <?php else : ?>
33
- <a href="<?php echo $slide -> guid; ?>" title="<?php echo $slide -> post_title; ?>"></a>
34
  <?php endif; ?>
35
  </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  <?php endforeach; ?>
37
- <!-- Shopping Cart plugin products http://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin -->
38
  <?php elseif ($products) : ?>
 
39
  <?php foreach ($slides as $slide) : ?>
40
  <li>
41
- <h3><?php echo stripslashes(__($slide -> title)); ?></h3>
42
  <?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
43
  <span><?php echo $this -> Html -> bfithumb_image_src(site_url() . '/' . $slide -> image_url, $options['width'], $options['height'], 100); ?></span>
44
  <?php else : ?>
@@ -56,8 +86,8 @@ $thumbopacity = $this -> get_option('thumbopacity');
56
  <?php endif; ?>
57
  </li>
58
  <?php endforeach; ?>
59
- <!-- From all slides or gallery slides -->
60
  <?php else : ?>
 
61
  <?php foreach ($slides as $slide) : ?>
62
  <li>
63
  <h3 style="opacity:<?php echo (!empty($slide -> iopacity)) ? ($slide -> iopacity) : 70; ?>;"><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "title")) ? __($slide -> title) : ''; ?></h3>
@@ -184,6 +214,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
184
  $cssattr['resizeimages'] = (($options['resizeimages'] == "true") ? "Y" : "N");
185
  $cssattr['width'] = $options['width'];
186
  $cssattr['height'] = $options['height'];
 
187
  $cssattr['thumbwidth'] = $this -> get_option('thumbwidth');
188
  $cssattr['thumbheight'] = $this -> get_option('thumbheight');
189
  $cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + ($options['thumbsspacing'] * 2) + 5) * count($slides)) + 50);
8
 
9
  <?php if (!empty($slides)) : ?>
10
  <ul id="slideshow<?php echo $unique; ?>" class="slideshow<?php echo $unique; ?>" style="display:none;">
 
11
  <?php if ($frompost) : ?>
12
+ <!-- From a WordPress post/page -->
13
  <?php foreach ($slides as $slide) : ?>
14
+ <?php setup_postdata($slide -> ID); ?>
15
  <li>
16
+ <h3 style="opacity:70;"><?php echo __($slide -> post_title); ?></h3>
17
  <?php $full_image_href = wp_get_attachment_image_src($slide -> ID, 'full', false); ?>
18
  <?php $full_image_path = get_attached_file($slide -> ID); ?>
19
  <?php $full_image_url = wp_get_attachment_url($slide -> ID); ?>
22
  <?php else : ?>
23
  <span><?php echo $full_image_href[0]; ?></span>
24
  <?php endif; ?>
25
+ <p><?php echo stripslashes(__(get_the_excerpt())); ?></p>
26
  <?php $thumbnail_link = wp_get_attachment_image_src($slide -> ID, 'thumbnail', false); ?>
27
  <?php if ($options['showthumbs'] == "true") : ?>
28
  <?php if (!empty($slide -> guid)) : ?>
29
+ <a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr(__($slide -> post_title)); ?>"><img src="<?php echo $this -> Html -> bfithumb_image_src($full_image_url, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" /></a>
30
  <?php else : ?>
31
+ <a><img src="<?php echo $this -> Html -> bfithumb_image_src($full_image_url, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" /></a>
32
  <?php endif; ?>
33
  <?php else : ?>
34
+ <a href="<?php echo $slide -> guid; ?>" title="<?php echo __($slide -> post_title); ?>"></a>
35
  <?php endif; ?>
36
  </li>
37
+ <?php wp_reset_postdata(); ?>
38
+ <?php endforeach; ?>
39
+ <?php elseif ($featured) : ?>
40
+ <!-- Featured images from posts -->
41
+ <?php foreach ($slides as $slide) : ?>
42
+ <?php setup_postdata($slide); ?>
43
+ <li>
44
+ <h3 style="opacity:70;"><a href="<?php echo get_permalink($slide -> ID); ?>"><?php echo stripslashes(__($slide -> post_title)); ?></a></h3>
45
+ <?php $full_image_href = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'full', false); ?>
46
+ <?php $full_image_path = get_attached_file(get_post_thumbnail_id($slide -> ID)); ?>
47
+ <?php $full_image_url = wp_get_attachment_url(get_post_thumbnail_id($slide -> ID)); ?>
48
+ <?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
49
+ <span><?php echo $this -> Html -> bfithumb_image_src($full_image_url, $options['width'], $options['height'], 100); ?></span>
50
+ <?php else : ?>
51
+ <span><?php echo $full_image_href[0]; ?></span>
52
+ <?php endif; ?>
53
+ <p><?php echo stripslashes(__(get_the_excerpt())); ?></p>
54
+ <?php $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($slide -> ID), 'thumbnail', false); ?>
55
+ <?php if ($options['showthumbs'] == "true") : ?>
56
+ <?php if (!empty($slide -> guid)) : ?>
57
+ <a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr(__($slide -> post_title)); ?>"><img src="<?php echo $this -> Html -> bfithumb_image_src($full_image_url, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" /></a>
58
+ <?php else : ?>
59
+ <a><img src="<?php echo $this -> Html -> bfithumb_image_src($full_image_url, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize(__($slide -> post_title)); ?>" /></a>
60
+ <?php endif; ?>
61
+ <?php else : ?>
62
+ <a href="<?php echo $slide -> guid; ?>" title="<?php echo __($slide -> post_title); ?>"></a>
63
+ <?php endif; ?>
64
+ </li>
65
+ <?php wp_reset_postdata(); ?>
66
  <?php endforeach; ?>
 
67
  <?php elseif ($products) : ?>
68
+ <!-- Shopping Cart plugin products http://tribulant.com/plugins/view/10/wordpress-shopping-cart-plugin -->
69
  <?php foreach ($slides as $slide) : ?>
70
  <li>
71
+ <h3 style="opacity:70;"><?php echo stripslashes(__($slide -> title)); ?></h3>
72
  <?php if ($options['layout'] != "responsive" && $options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
73
  <span><?php echo $this -> Html -> bfithumb_image_src(site_url() . '/' . $slide -> image_url, $options['width'], $options['height'], 100); ?></span>
74
  <?php else : ?>
86
  <?php endif; ?>
87
  </li>
88
  <?php endforeach; ?>
 
89
  <?php else : ?>
90
+ <!-- From all slides or gallery slides -->
91
  <?php foreach ($slides as $slide) : ?>
92
  <li>
93
  <h3 style="opacity:<?php echo (!empty($slide -> iopacity)) ? ($slide -> iopacity) : 70; ?>;"><?php echo (!empty($slide -> showinfo) && ($slide -> showinfo == "both" || $slide -> showinfo == "title")) ? __($slide -> title) : ''; ?></h3>
214
  $cssattr['resizeimages'] = (($options['resizeimages'] == "true") ? "Y" : "N");
215
  $cssattr['width'] = $options['width'];
216
  $cssattr['height'] = $options['height'];
217
+ $cssattr['autoheight'] = $options['autoheight'];
218
  $cssattr['thumbwidth'] = $this -> get_option('thumbwidth');
219
  $cssattr['thumbheight'] = $this -> get_option('thumbheight');
220
  $cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + ($options['thumbsspacing'] * 2) + 5) * count($slides)) + 50);