mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Fixes #2816 - Gallery custom caption fix.
This commit is contained in:
@@ -136,7 +136,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
|||||||
|
|
||||||
$text .= e107::getParser()->parseTemplate($template['cat']['end'], true, $sc);
|
$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);
|
$title = e107::getParser()->parseTemplate($template['cat']['caption'], true, $sc);
|
||||||
|
|
||||||
@@ -183,6 +183,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
|||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$template = $this->getTemplate();
|
$template = $this->getTemplate();
|
||||||
$template = array_change_key_case($template);
|
$template = array_change_key_case($template);
|
||||||
|
|
||||||
$sc = e107::getScBatch('gallery', true);
|
$sc = e107::getScBatch('gallery', true);
|
||||||
|
|
||||||
if(defset('BOOTSTRAP') === true || defset('BOOTSTRAP') === 2) // Convert bootsrap3 to bootstrap2 compat.
|
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 .= $inner;
|
||||||
$text .= $tp->parseTemplate($template['list']['end'], true, $sc);
|
$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);
|
$title = $tp->parseTemplate($template['list']['caption'], true, $sc);
|
||||||
$this->addTitle($title)->addBody($text);
|
$this->addTitle($title)->addBody($text);
|
||||||
|
@@ -69,7 +69,11 @@ class gallery_shortcodes extends e_shortcode
|
|||||||
{
|
{
|
||||||
$breadcrumb = array();
|
$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))
|
if(vartrue($this->curCat))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user