mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Fix for portfolio styling in Bootstrap3 template.
This commit is contained in:
@@ -102,6 +102,7 @@ class gallery_shortcodes extends e_shortcode
|
||||
$description .= $tp->toAttribute($this->var['media_description']);
|
||||
|
||||
$text = "<a class='".$class."' title=\"".$description."\" href='".$srcFull."' data-gal='{$rel}' >";
|
||||
|
||||
$text .= $tp->toImage($this->var['media_url'],$att);
|
||||
$text .= "</a>";
|
||||
|
||||
@@ -181,7 +182,7 @@ class gallery_shortcodes extends e_shortcode
|
||||
{
|
||||
$ns = e107::getRender();
|
||||
$parm = eHelper::scParams($parms);
|
||||
$cat = ($parm['category']) ? $parm['category'] : vartrue(e107::getPlugPref('gallery','slideshow_category'), 1); //TODO Separate pref?
|
||||
$cat = (!empty($parm['category'])) ? $parm['category'] : vartrue(e107::getPlugPref('gallery','slideshow_category'), 1); //TODO Separate pref?
|
||||
|
||||
$tmpl = e107::getTemplate('gallery','gallery');
|
||||
$limit = vartrue($parm['limit'], 6);
|
||||
|
@@ -374,7 +374,7 @@ $LAYOUT['modern_business_home'] = <<<TMPL
|
||||
</div>
|
||||
|
||||
{SETSTYLE=portfolio}
|
||||
{SETIMAGE: w=700&h=500&crop=1}
|
||||
{SETIMAGE: w=400&h=400&crop=1}
|
||||
{GALLERY_PORTFOLIO: placeholder=1&limit=6}
|
||||
|
||||
</div><!-- /.row -->
|
||||
|
Reference in New Issue
Block a user