1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +02:00

Gallery breadcrumb added.

This commit is contained in:
Cameron
2013-06-23 19:55:52 -07:00
parent 6b53d47ba4
commit 451e044078
4 changed files with 35 additions and 6 deletions

View File

@@ -84,12 +84,19 @@ class plugin_gallery_index_controller extends eControllerFront
$sc = e107::getScBatch('gallery',TRUE);
$text = "";
$text = e107::getParser()->parseTemplate($template['CAT_START'],TRUE, $sc);
foreach($this->catList as $val)
{
$sc->setVars($val);
$text .= e107::getParser()->parseTemplate($template['CAT_ITEM'],TRUE);
}
$text = $template['CAT_START'].$text.$template['CAT_END'];
$text .= e107::getParser()->parseTemplate($template['CAT_END'],TRUE, $sc);
// $text = $template['CAT_START'].$text.$template['CAT_END'];
$this->addTitle(LAN_PLUGIN_GALLERY_TITLE)
->addBody($text);
}