1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Menu button was not displaying under some circumstances.

This commit is contained in:
Cameron 2015-05-12 20:13:32 -07:00
parent d4f38c96ed
commit 921ff1ff69
2 changed files with 3 additions and 3 deletions

View File

@ -258,7 +258,7 @@ class cpage_shortcodes extends e_shortcode
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! -->";
}

View File

@ -9,12 +9,12 @@
$MENU_TEMPLATE['default']['end'] = '';
$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>';
### 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']['body'] = '{CMENUIMAGE}<br />{CPAGEBUTTON}';
$MENU_TEMPLATE['buttom-image']['body'] = '<div>{CMENUIMAGE}</div>{CPAGEBUTTON}';
$MENU_TEMPLATE['buttom-image']['end'] = '</div>';
$MENU_TEMPLATE['image-only']['start'] = '';