mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Issue #2331 Reduce space needed for menu-manager area buttons.
This commit is contained in:
@@ -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.
|
//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();
|
$layouts = self::getLayouts();
|
||||||
|
$tp = e107::getParser();
|
||||||
|
|
||||||
// $text .= print_a($layouts['menus'],true);
|
// $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>';
|
<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)
|
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)
|
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_56", "Custom Pages");
|
||||||
define("MENLAN_57", "Drag-and-Drop Menus");
|
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_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]");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
Reference in New Issue
Block a user