diff --git a/e107_plugins/gallery/gallery.php b/e107_plugins/gallery/gallery.php index f94ecdd32..221ca2f76 100644 --- a/e107_plugins/gallery/gallery.php +++ b/e107_plugins/gallery/gallery.php @@ -33,6 +33,7 @@ if (!getperms("P") || !plugInstalled('gallery')) header('location:'.e_BASE.'index.php'); exit; } +e107::getJs()->pluginCSS('gallery', 'gallery_style.css'); require_once(HEADERF); diff --git a/e107_plugins/gallery/gallery_style.css b/e107_plugins/gallery/gallery_style.css new file mode 100644 index 000000000..d398aa8d8 --- /dev/null +++ b/e107_plugins/gallery/gallery_style.css @@ -0,0 +1,25 @@ + + + +/* IMAGE LIST */ + +.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-end { text-align:center; clear:both; padding-top:20px; } + +.gallery-list-caption { display:block; text-align:center; color:#FFFFFF; } + + +/* CATEGORY LIST */ + +.gallery-cat-start { clear:both; } + +.gallery-cat-item { width:190px; height:180px; float:left; margin:3px; border:1px solid #000000; background-color:#000000; } + +.gallery-cat-end { text-align:center; clear:both; } + +.gallery-cat-title { text-align:center; } + + diff --git a/e107_plugins/gallery/shortcodes/batch/gallery_shortcodes.php b/e107_plugins/gallery/shortcodes/batch/gallery_shortcodes.php index 2e55afb1c..457eddc66 100644 --- a/e107_plugins/gallery/shortcodes/batch/gallery_shortcodes.php +++ b/e107_plugins/gallery/shortcodes/batch/gallery_shortcodes.php @@ -13,13 +13,19 @@ class gallery_shortcodes extends e_shortcode { function sc_gallery_caption($parm='') { - return $this->eParserVars['media_caption']; + $text = ""; + $text .= $this->eParserVars['media_caption']; + $text .= ""; + return $text; } function sc_gallery_thumb($parm='') { $att = ($parm) ?$parm : 'aw=190&ah=150'; - return ""; + $text = ""; + $text .= ""; + $text .= ""; + return $text; } function sc_gallery_cat_title($parm='') diff --git a/e107_plugins/gallery/templates/gallery_template.php b/e107_plugins/gallery/templates/gallery_template.php index 77257a977..6d91097b1 100644 --- a/e107_plugins/gallery/templates/gallery_template.php +++ b/e107_plugins/gallery/templates/gallery_template.php @@ -1,40 +1,45 @@ "; + "