Skip to content

Commit

Permalink
! Calendar icon didn't account for SKIN_SHORTMENU situations. (calend…
Browse files Browse the repository at this point in the history
…ar/CalendarMenu.php)

Signed-off-by: Nao <nao@wedge>
  • Loading branch information
Nao committed May 25, 2014
1 parent ded7730 commit 33aabe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion calendar/CalendarMenu.php
Expand Up @@ -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'],
Expand All @@ -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.
Expand Down

0 comments on commit 33aabe5

Please sign in to comment.