mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Issue #2331 Reduce space needed for menu-manager area buttons.
This commit is contained in:
parent
faf2eb71f7
commit
96250005d7
@ -955,6 +955,7 @@ class e_menu_layout
|
||||
//TODO FIXME parse the theme file (or store it somewhere) to get the number of menu areas for each layout. ie. $menu_areas below.
|
||||
|
||||
$layouts = self::getLayouts();
|
||||
$tp = e107::getParser();
|
||||
|
||||
// $text .= print_a($layouts['menus'],true);
|
||||
|
||||
@ -964,17 +965,19 @@ class e_menu_layout
|
||||
|
||||
<a class="btn btn-default btn-sm e-mm-selector " title="Activate">'.LAN_GO." ".e107::getParser()->toGlyph('fa-chevron-right').'</a>';
|
||||
|
||||
$menuButtonLabel = defset("MENLAN_59", "Area [x]");
|
||||
|
||||
foreach($layouts['menus'] as $name=>$areas)
|
||||
{
|
||||
$text .= '<ul class="dropdown-menu e-mm-selector '.$name.'" >';
|
||||
$text .= '<ul class="dropdown-menu e-mm-selector '.$name.'" >
|
||||
<li><div class="btn-group">';
|
||||
|
||||
foreach ($areas as $menu_act)
|
||||
{
|
||||
$text .= "<li><input type='submit' class='btn btn-primary btn-block' name='menuActivate[".trim($menu_act)."]' value='".MENLAN_13." ".trim($menu_act)."' /></li>\n";
|
||||
$text .= "<input type='submit' class='btn btn-sm btn-primary col-xs-6' name='menuActivate[".trim($menu_act)."]' value=\"".$tp->lanVars($menuButtonLabel,trim($menu_act))."\" />\n";
|
||||
}
|
||||
|
||||
$text .= '</ul>';
|
||||
$text .= '</div></li></ul>';
|
||||
|
||||
}
|
||||
|
||||
|
@ -73,4 +73,10 @@ define("MENLAN_55", "Menu Layout");
|
||||
define("MENLAN_56", "Custom Pages");
|
||||
define("MENLAN_57", "Drag-and-Drop Menus");
|
||||
define("MENLAN_58", "The Menu-Manager allows you to place and arrange your menus within your theme template. Hover over the sub-areas to modify existing menu items.");
|
||||
?>
|
||||
|
||||
define("MENLAN_59", "Area [x]");
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user