Viewing File: /usr/local/cpanel/base/frontend/jupiter/core/partials/main_menu_nav_items.html.tt
[%
USE Menu;
SET menu_items = get_menu_by_name("LeftMenu");
SET links = [
{
id => 'tools-main-menu',
iconSvg => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path fill="var(--cp-tertiary-contrast, #e5e7e9)" d="M5.33 3.271a3.5 3.5 0 0 1 4.254 4.963l10.709 10.71-1.414 1.414-10.71-10.71a3.502 3.502 0 0 1-4.962-4.255L5.444 7.63a1.5 1.5 0 1 0 2.121-2.121L5.329 3.27zm10.367 1.884l3.182-1.768 1.414 1.414-1.768 3.182-1.768.354-2.12 2.121-1.415-1.414 2.121-2.121.354-1.768zm-6.718 8.132l1.414 1.414-5.303 5.303a1 1 0 0 1-1.492-1.327l.078-.087 5.303-5.303z"/></svg>',
linkUrl => "index.html",
userText => locale.maketext("Tools"),
},
];
FOREACH item IN menu_items;
IF !item.if || ExpVar.expand(item.if);
SET app = CPBranding.get_application_from_available_applications(varcache.available_applications, item.key);
IF app;
SET link = {
id => item.key _ '-main-menu',
iconSvg => item.icon,
linkUrl => app.url,
userText => app.itemdesc,
};
links.push(link);
END;
END;
END;
%]
Back to Directory
File Manager