1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Fix for portfolio styling in Bootstrap3 template.

This commit is contained in:
Cameron 2016-03-13 12:41:08 -07:00
parent fff539457c
commit 947badbf16
3 changed files with 4 additions and 3 deletions

View File

@ -3685,7 +3685,7 @@ class e_parser
{
$parm['w'] = $tp->thumbWidth();
}
if(strpos($file,'e_MEDIA')!==false || strpos($file,'e_THEME')!==false || strpos($file,'e_PLUGIN')!==false) //v2.x path.
{

View File

@ -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);

View File

@ -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 -->