diff --git a/admin/pages/menus.php b/admin/pages/menus.php
index b5e7dbdf..bd1635a6 100644
--- a/admin/pages/menus.php
+++ b/admin/pages/menus.php
@@ -46,6 +46,7 @@ if (isset($_REQUEST['template'])) {
if ($cache->enabled()) {
$cache->delete('template_menus');
}
+
success('Saved at ' . date('H:i'));
}
@@ -56,6 +57,7 @@ if (isset($_REQUEST['template'])) {
echo 'Cannot find template config.php file.';
return;
}
+
if (!isset($config['menu_categories'])) {
echo "No menu categories set in template config.php.
This template doesn't support dynamic menus.";
return;
@@ -75,6 +77,7 @@ if (isset($_REQUEST['template'])) {
$menus_db = $db->query('SELECT `name`, `link`, `blank`, `color`, `category`, `ordering` FROM `' . TABLE_PREFIX . 'menu` WHERE `enabled` = 1 AND `template` = ' . $db->quote($template) . ' ORDER BY `ordering` ASC;')->fetchAll();
foreach ($menus_db as $menu) {
$menus[$menu['category']][] = array('name' => $menu['name'], 'link' => $menu['link'], 'blank' => $menu['blank'], 'color' => $menu['color'], 'ordering' => $menu['ordering']);
+ var_dump($menu['color']);
}
$last_id = array();
?>
@@ -98,7 +101,7 @@ if (isset($_REQUEST['template'])) {
-
+
display('admin.menus.js.html.twig', array(
'menus' => $menus,
- 'last_id' => $last_id
+ 'last_id' => $last_id,
+ 'menu_default_color' => $config['menu_default_color'] ?? '#ffffff'
));
?>
'); //add input bo
+ $('#sortable-' + cat).append('