mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
{---BREADCRUMB---} values added for Gsitemap and Gallery plugins.
This commit is contained in:
@@ -118,6 +118,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
$template = $this->getTemplate();
|
||||
$template = array_change_key_case($template);
|
||||
$sc = e107::getScBatch('gallery', true);
|
||||
$sc->breadcrumb();
|
||||
|
||||
$text = "";
|
||||
|
||||
@@ -186,6 +187,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
|
||||
$sc = e107::getScBatch('gallery', true);
|
||||
|
||||
|
||||
if(defset('BOOTSTRAP') === true || defset('BOOTSTRAP') === 2) // Convert bootsrap3 to bootstrap2 compat.
|
||||
{
|
||||
$template['list_start'] = str_replace('row', 'row-fluid', $template['list_start']);
|
||||
@@ -196,6 +198,9 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
$sc->curCat = $cid;
|
||||
$sc->from = $request->getRequestParam('frm', 0);
|
||||
|
||||
|
||||
|
||||
|
||||
$orderBy = varset($plugPrefs['orderby'], 'media_id DESC');
|
||||
|
||||
$list = e107::getMedia()->getImages($cid, $sc->from, $sc->amount, null, $orderBy);
|
||||
@@ -204,6 +209,8 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
|
||||
$inner = "";
|
||||
|
||||
|
||||
|
||||
foreach($list as $row)
|
||||
{
|
||||
$sc->setVars($row)
|
||||
@@ -212,6 +219,8 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
$inner .= $tp->parseTemplate($template['list']['item'], true, $sc);
|
||||
}
|
||||
|
||||
$sc->breadcrumb();
|
||||
|
||||
$text = $tp->parseTemplate($template['list']['start'], true, $sc);
|
||||
$text .= $inner;
|
||||
$text .= $tp->parseTemplate($template['list']['end'], true, $sc);
|
||||
|
Reference in New Issue
Block a user