Skip to content

Commit

Permalink
Fix admin menu images when default set
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Nov 6, 2021
1 parent c16c2ad commit d95efb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/hooks/admin/siteWide/hMenu.php
Expand Up @@ -69,7 +69,7 @@ public function listen_injectBodyStart() {
$n++;
}

$icon = new Image('images/CE-Phoenix-30-30.png', [], 'CE Phoenix v' . Versions::get('Phoenix'), 30, 30);
$icon = $GLOBALS['Admin']->image('images/CE-Phoenix-30-30.png', [], 'CE Phoenix v' . Versions::get('Phoenix'), 30, 30);
$output = '<nav class="navbar navbar-expand-md sticky-top navbar-dark bg-dark">';
$output .= '<a class="navbar-brand" href="' . $GLOBALS['Admin']->link('index.php') . '">' . $icon->set_responsive(false) . '</a>';
$output .= '<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarAdmin" aria-controls="navbarAdmin" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>';
Expand All @@ -78,7 +78,7 @@ public function listen_injectBodyStart() {
$output .= '</div>';
$output .= '</nav>';

$icon = new Image('images/icon_phoenix.png', [], 'Phoenix');
$icon = $GLOBALS['Admin']->image('images/icon_phoenix.png', [], 'Phoenix');
$output .= '<div class="col bg-light mb-1 border-bottom d-print-none">';
$output .= '<ul class="nav justify-content-end">';
$output .= '<li class="nav-item"><a class="nav-link" target="_blank" rel="noreferrer" href="https://phoenixcart.org/forum/">' . $icon . ' ' . HEADER_TITLE_PHOENIX_CLUB . '</a></li>';
Expand Down

0 comments on commit d95efb8

Please sign in to comment.