mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Menu button was not displaying under some circumstances.
This commit is contained in:
@@ -258,7 +258,7 @@ class cpage_shortcodes extends e_shortcode
|
|||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(trim($this->var['page_text']) == '') // Hide the button when there is no page content. (avoids templates with and without buttons)
|
if(trim($this->var['page_text']) == '' && empty($this->var['menu_button_url'])) // Hide the button when there is no page content. (avoids templates with and without buttons)
|
||||||
{
|
{
|
||||||
return "<!-- Button Removed: No page text exists! -->";
|
return "<!-- Button Removed: No page text exists! -->";
|
||||||
}
|
}
|
||||||
|
@@ -9,12 +9,12 @@
|
|||||||
$MENU_TEMPLATE['default']['end'] = '';
|
$MENU_TEMPLATE['default']['end'] = '';
|
||||||
|
|
||||||
$MENU_TEMPLATE['button']['start'] = '<div class="cpage-menu">';
|
$MENU_TEMPLATE['button']['start'] = '<div class="cpage-menu">';
|
||||||
$MENU_TEMPLATE['button']['body'] = '{CMENUBODY}<br />{CPAGEBUTTON}';
|
$MENU_TEMPLATE['button']['body'] = '<div>{CMENUBODY}</div>{CPAGEBUTTON}';
|
||||||
$MENU_TEMPLATE['button']['end'] = '</div>';
|
$MENU_TEMPLATE['button']['end'] = '</div>';
|
||||||
|
|
||||||
### Additional control over image thumbnailing is possible via SETIMAGE e.g. {SETIMAGE: w=200&h=150&crop=1}
|
### Additional control over image thumbnailing is possible via SETIMAGE e.g. {SETIMAGE: w=200&h=150&crop=1}
|
||||||
$MENU_TEMPLATE['buttom-image']['start'] = '<div class="cpage-menu">';
|
$MENU_TEMPLATE['buttom-image']['start'] = '<div class="cpage-menu">';
|
||||||
$MENU_TEMPLATE['buttom-image']['body'] = '{CMENUIMAGE}<br />{CPAGEBUTTON}';
|
$MENU_TEMPLATE['buttom-image']['body'] = '<div>{CMENUIMAGE}</div>{CPAGEBUTTON}';
|
||||||
$MENU_TEMPLATE['buttom-image']['end'] = '</div>';
|
$MENU_TEMPLATE['buttom-image']['end'] = '</div>';
|
||||||
|
|
||||||
$MENU_TEMPLATE['image-only']['start'] = '';
|
$MENU_TEMPLATE['image-only']['start'] = '';
|
||||||
|
Reference in New Issue
Block a user