diff --git a/e107_plugins/gallery/e_shortcode.php b/e107_plugins/gallery/e_shortcode.php
index 6f8aa16fc..59728c9cc 100644
--- a/e107_plugins/gallery/e_shortcode.php
+++ b/e107_plugins/gallery/e_shortcode.php
@@ -16,11 +16,12 @@ class gallery_shortcodes extends e_shortcode
public $from = 0;
public $curCat = null;
public $sliderCat = 1;
+ public $slideMode = FALSE;
function sc_gallery_caption($parm='')
{
$tp = e107::getParser();
- $text = "";
+ $text = "";
$text .= $this->var['media_caption'];
$text .= "";
return $text;
@@ -29,9 +30,10 @@ class gallery_shortcodes extends e_shortcode
function sc_gallery_thumb($parm='')
{
$tp = e107::getParser();
+ $class = ($this->slideMode == TRUE) ? 'gallery-slideshow-thumb' : 'gallery-thumb';
$att = ($parm) ?$parm : 'aw=190&ah=150';
- $text = "";
- $text .= "
";
+ $text = "";
+ $text .= "
";
$text .= "";
return $text;
}
@@ -72,6 +74,7 @@ class gallery_shortcodes extends e_shortcode
function sc_gallery_slides($parm)
{
+ $this->slideMode = TRUE;
$amount = ($parm) ? intval($parm) : vartrue(e107::getPlugPref('gallery','slideshow_perslide'),3);
$tp = e107::getParser();
$list = e107::getMedia()->getImages('gallery_'.$this->sliderCat);
diff --git a/e107_plugins/gallery/gallery_style.css b/e107_plugins/gallery/gallery_style.css
index 5b44d5ae7..77529723b 100644
--- a/e107_plugins/gallery/gallery_style.css
+++ b/e107_plugins/gallery/gallery_style.css
@@ -5,7 +5,7 @@
.gallery-list-start { clear:both; }
-.gallery-list-item { width:190px; height:180px; float:left; margin:3px; border:1px solid #000000; background-color:#000000 }
+.gallery-list-item { -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; width:190px; height:180px; float:left; margin:3px; border:1px solid #000000; background-color:#000000 }
.gallery-list-end { text-align:center; clear:both; padding-top:20px; }
@@ -32,8 +32,9 @@
/* SLIDESHOW */
-#gallery-slideshow-wrapper { width: 610px; height: 170px; overflow: hidden; background: #000000; margin-left:auto;margin-right:auto }
-#gallery-slideshow-content { width: 2500px; }
-#gallery-slideshow-content .slide { float: left; width: 600px; padding:10px; height: 160px; }
-.gallery-slideshow-controls { clear:both; width: 610px; margin-left:auto; margin-right:auto; padding-bottom:10px; }
-.gallery-slide-item { margin-right:5px; }
+#gallery-slideshow-wrapper { -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; width: 660px; height: 146px; overflow: hidden; background: #000000; margin-left:auto;margin-right:auto }
+#gallery-slideshow-content { width: 3500px; }
+#gallery-slideshow-content .slide { float: left; width: 660px; padding:12px; height: 146px; }
+.gallery-slideshow-controls { clear:both; width: 660px; margin-left:auto; margin-right:auto; padding-bottom:10px; }
+.gallery-slide-item { margin-right:8px; }
+.gallery-slideshow-thumb { -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; }
diff --git a/e107_plugins/gallery/plugin.xml b/e107_plugins/gallery/plugin.xml
index df3584990..11287a2f3 100644
--- a/e107_plugins/gallery/plugin.xml
+++ b/e107_plugins/gallery/plugin.xml
@@ -17,10 +17,10 @@
1
- 3
+ 4
1
1
- 3
+ 4
1
scroll
sinoidal
diff --git a/e107_plugins/gallery/templates/gallery_template.php b/e107_plugins/gallery/templates/gallery_template.php
index 068fdb695..ff8470812 100644
--- a/e107_plugins/gallery/templates/gallery_template.php
+++ b/e107_plugins/gallery/templates/gallery_template.php
@@ -58,7 +58,7 @@ $GALLERY_TEMPLATE['SLIDESHOW_WRAPPER'] = '
';
-$GALLERY_TEMPLATE['SLIDESHOW_SLIDE_ITEM'] = '{GALLERY_THUMB}';
+$GALLERY_TEMPLATE['SLIDESHOW_SLIDE_ITEM'] = '{GALLERY_THUMB=aw=150&ah=120}';