mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fixes #2816 - Gallery custom caption fix.
This commit is contained in:
parent
4794990be3
commit
bbe3731cc7
@ -136,7 +136,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
|
||||
$text .= e107::getParser()->parseTemplate($template['cat']['end'], true, $sc);
|
||||
|
||||
if(isset($template['cat_caption']))
|
||||
if(isset($template['cat']['caption']))
|
||||
{
|
||||
$title = e107::getParser()->parseTemplate($template['cat']['caption'], true, $sc);
|
||||
|
||||
@ -183,6 +183,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
$tp = e107::getParser();
|
||||
$template = $this->getTemplate();
|
||||
$template = array_change_key_case($template);
|
||||
|
||||
$sc = e107::getScBatch('gallery', true);
|
||||
|
||||
if(defset('BOOTSTRAP') === true || defset('BOOTSTRAP') === 2) // Convert bootsrap3 to bootstrap2 compat.
|
||||
@ -215,7 +216,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
$text .= $inner;
|
||||
$text .= $tp->parseTemplate($template['list']['end'], true, $sc);
|
||||
|
||||
if(isset($template['list_caption']))
|
||||
if(isset($template['list']['caption']))
|
||||
{
|
||||
$title = $tp->parseTemplate($template['list']['caption'], true, $sc);
|
||||
$this->addTitle($title)->addBody($text);
|
||||
|
@ -69,7 +69,11 @@ class gallery_shortcodes extends e_shortcode
|
||||
{
|
||||
$breadcrumb = array();
|
||||
|
||||
$breadcrumb[] = array('text' => LAN_PLUGIN_GALLERY_TITLE, 'url' => e107::getUrl()->create('gallery', $this->var));
|
||||
$template = e107::getTemplate('gallery', 'gallery', 'cat');
|
||||
|
||||
$caption = isset($template['caption']) ? $template['caption'] : LAN_PLUGIN_GALLERY_TITLE;
|
||||
|
||||
$breadcrumb[] = array('text' => $caption, 'url' => e107::getUrl()->create('gallery', $this->var));
|
||||
|
||||
if(vartrue($this->curCat))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user