mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Gallery main-page template switched to bootstrap styling
This commit is contained in:
@@ -58,8 +58,8 @@ class gallery_shortcodes extends e_shortcode
|
|||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$parms = eHelper::scParams($parm);
|
$parms = eHelper::scParams($parm);
|
||||||
|
|
||||||
$w = vartrue($parms['w']) ? $parms['w'] : 190;
|
$w = vartrue($parms['w']) ? $parms['w'] : 160;
|
||||||
$h = vartrue($parms['h']) ? $parms['h'] : 150;
|
$h = vartrue($parms['h']) ? $parms['h'] : 120;
|
||||||
|
|
||||||
$class = ($this->slideMode == TRUE) ? 'gallery-slideshow-thumb' : 'gallery-thumb';
|
$class = ($this->slideMode == TRUE) ? 'gallery-slideshow-thumb' : 'gallery-thumb';
|
||||||
$rel = ($this->slideMode == TRUE) ? 'lightbox.SlideGallery' : 'lightbox.Gallery';
|
$rel = ($this->slideMode == TRUE) ? 'lightbox.SlideGallery' : 'lightbox.Gallery';
|
||||||
@@ -117,8 +117,8 @@ class gallery_shortcodes extends e_shortcode
|
|||||||
{
|
{
|
||||||
$parms = eHelper::scParams($parm);
|
$parms = eHelper::scParams($parm);
|
||||||
|
|
||||||
$w = vartrue($parms['w']) ? $parms['w'] : 190;
|
$w = vartrue($parms['w']) ? $parms['w'] : 260;
|
||||||
$h = vartrue($parms['h']) ? $parms['h'] : 150;
|
$h = vartrue($parms['h']) ? $parms['h'] : 180;
|
||||||
$att = 'aw='.$w.'&ah='.$h.'&x=1'; // 'aw=190&ah=150';
|
$att = 'aw='.$w.'&ah='.$h.'&x=1'; // 'aw=190&ah=150';
|
||||||
|
|
||||||
$url = e107::getUrl()->create('gallery/index/list', $this->var);
|
$url = e107::getUrl()->create('gallery/index/list', $this->var);
|
||||||
|
@@ -3,32 +3,16 @@
|
|||||||
|
|
||||||
/* IMAGE LIST */
|
/* IMAGE LIST */
|
||||||
|
|
||||||
.gallery-list-start { clear:both; }
|
ul.gallery > li > div > h5 { text-align: center }
|
||||||
|
ul.gallery-cat > li > div > h3 { text-align: center }
|
||||||
.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 */
|
/* 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; }
|
.lb-dataContainer { padding-top:10px; font-size: 110%;}
|
||||||
|
|
||||||
.gallery-cat-title { text-align:center; }
|
.lb-caption { }
|
||||||
|
|
||||||
.gallery-list-nextprev { text-align:center; }
|
|
||||||
|
|
||||||
.gallery-list-back { }
|
|
||||||
|
|
||||||
.lb-dataContainer { padding-top:10px; font-size: 110%;}
|
|
||||||
|
|
||||||
.lb-caption { }
|
|
||||||
|
|
||||||
|
|
||||||
/* SLIDESHOW */
|
/* SLIDESHOW */
|
||||||
|
@@ -8,40 +8,48 @@
|
|||||||
|
|
||||||
|
|
||||||
$GALLERY_TEMPLATE['LIST_START'] =
|
$GALLERY_TEMPLATE['LIST_START'] =
|
||||||
"<div class='gallery-list-start'>";
|
'<ul class="thumbnails gallery">';
|
||||||
|
|
||||||
|
|
||||||
$GALLERY_TEMPLATE['LIST_ITEM'] =
|
$GALLERY_TEMPLATE['LIST_ITEM'] = '
|
||||||
"<div class='gallery-list-item'>
|
<li class="span2">
|
||||||
<div>{GALLERY_THUMB}</div>
|
<div class="thumbnail">
|
||||||
<div class='gallery-list-caption'>{GALLERY_CAPTION}</div>
|
{GALLERY_THUMB}
|
||||||
|
<h5>{GALLERY_CAPTION}</h5>
|
||||||
</div>
|
</div>
|
||||||
";
|
</li>';
|
||||||
|
|
||||||
$GALLERY_TEMPLATE['LIST_END'] =
|
$GALLERY_TEMPLATE['LIST_END'] =
|
||||||
"</div>
|
"</ul>
|
||||||
<div class='gallery-list-end' >
|
<div class='center' >
|
||||||
<div class='gallery-list-nextprev'>{GALLERY_NEXTPREV}</div>
|
<div class='gallery-list-nextprev'>{GALLERY_NEXTPREV}</div>
|
||||||
<div class='gallery-list-back'><a href='{GALLERY_BASEURL}'>Back to Categories</a></div>
|
<div class='gallery-list-back'><a class='btn' href='{GALLERY_BASEURL}'>Back to Categories</a></div>
|
||||||
</div>
|
</div>
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
||||||
$GALLERY_TEMPLATE['CAT_START'] =
|
$GALLERY_TEMPLATE['CAT_START'] =
|
||||||
"<div class='gallery-cat-start'>";
|
'<ul class="thumbnails gallery-cat">';
|
||||||
|
|
||||||
|
|
||||||
|
$GALLERY_TEMPLATE['CAT_ITEM'] = '
|
||||||
|
<li class="span3">
|
||||||
|
<div class="thumbnail">
|
||||||
|
{GALLERY_CAT_THUMB}
|
||||||
|
<h3>{GALLERY_CAT_TITLE}</h3>
|
||||||
|
</div>
|
||||||
|
</li>';
|
||||||
|
|
||||||
|
/*
|
||||||
$GALLERY_TEMPLATE['CAT_ITEM'] =
|
$GALLERY_TEMPLATE['CAT_ITEM'] =
|
||||||
"<div class='gallery-cat-item'>
|
"<div class='gallery-cat-item'>
|
||||||
<div class='gallery-cat-thumb'>{GALLERY_CAT_THUMB}</div>
|
<div class='gallery-cat-thumb'>{GALLERY_CAT_THUMB}</div>
|
||||||
<div class='gallery-cat-title'><h3>{GALLERY_CAT_TITLE}</h3></div>
|
<div class='gallery-cat-title'><h3>{GALLERY_CAT_TITLE}</h3></div>
|
||||||
</div>
|
</div>
|
||||||
";
|
";
|
||||||
|
*/
|
||||||
$GALLERY_TEMPLATE['CAT_END'] =
|
$GALLERY_TEMPLATE['CAT_END'] =
|
||||||
"</div>
|
"</ul>
|
||||||
<div class='gallery-cat-end'>
|
|
||||||
</div>
|
|
||||||
";
|
";
|
||||||
|
|
||||||
// {GALLERY_SLIDESHOW=X} X = Gallery Category. Default: 1 (ie. 'gallery_1') Overrides preference in admin.
|
// {GALLERY_SLIDESHOW=X} X = Gallery Category. Default: 1 (ie. 'gallery_1') Overrides preference in admin.
|
||||||
|
Reference in New Issue
Block a user