From 33aabe59ce4818cd0f94bd1148043f27e0d79efa Mon Sep 17 00:00:00 2001 From: Nao Date: Sun, 25 May 2014 11:41:57 +0200 Subject: [PATCH] ! Calendar icon didn't account for SKIN_SHORTMENU situations. (calendar/CalendarMenu.php) Signed-off-by: Nao --- calendar/CalendarMenu.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/CalendarMenu.php b/calendar/CalendarMenu.php index 432b422..ab97dae 100644 --- a/calendar/CalendarMenu.php +++ b/calendar/CalendarMenu.php @@ -23,6 +23,7 @@ function calendarMenu(&$items) 'title' => $txt['calendar'], 'href' => SCRIPT . '?action=calendar', 'show' => $context['allow_calendar'], + 'icon' => true, 'items' => array( 'view' => array( 'title' => $txt['calendar_menu'], @@ -40,7 +41,7 @@ function calendarMenu(&$items) // An array_merge on $items['home']['items'] would be simpler, but I wanted to show off. $items = array_insert($items, 'home items media', $menu_item, true); - add_css('#m_calendar { float: left; width: 16px; height: 16px; padding: 0; margin: 4px 4px 0 2px; background: url(' . $context['plugins_url']['Wedge:Calendar'] . '/img/calendar.gif) 0 2px no-repeat; }'); + add_css('#m_' . (SKIN_SHORTMENU ? 'home_' : '') . 'calendar { float: left; width: 16px; height: 16px; padding: 0; margin: ' . (SKIN_SHORTMENU ? '6px 4px 0 12px' : '4px 4px 0 2px') . '; background: url(' . $context['plugins_url']['Wedge:Calendar'] . '/img/calendar.gif) 0 2px no-repeat; }'); } // Remove these permissions if post-banned.