From 5b858c521a86b5646cb7c3c1a2cee57b9aad2a84 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 18 Nov 2024 23:47:11 +0100 Subject: [PATCH] target_blank in template menus links --- system/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/template.php b/system/template.php index 72ae3792..80759770 100644 --- a/system/template.php +++ b/system/template.php @@ -147,7 +147,7 @@ function get_template_menus() { $menus = array(); foreach($result as $menu) { $link_full = strpos(trim($menu['link']), 'http') === 0 ? $menu['link'] : getLink($menu['link']); - $menus[$menu['category']][] = array('name' => $menu['name'], 'link' => $menu['link'], 'link_full' => $link_full, 'blank' => $menu['blank'] == 1, 'color' => $menu['color']); + $menus[$menu['category']][] = array('name' => $menu['name'], 'link' => $menu['link'], 'link_full' => $link_full, 'blank' => $menu['blank'] == 1, 'target_blank' => ($menu['blank'] == 1 ? ' target="blank"' : ''), 'color' => $menu['color']); } $new_menus = array();