Update template.php

This commit is contained in:
FusionPBX 2016-10-06 18:18:52 -06:00 committed by GitHub
parent 11c8f75946
commit b3386b1d4c
1 changed files with 2 additions and 1 deletions

View File

@ -543,10 +543,11 @@
switch ($menu_style) { switch ($menu_style) {
case 'inline': case 'inline':
$logo_align = ($_SESSION['theme']['logo_align']['text'] != '') ? $_SESSION['theme']['logo_align']['text'] : 'left'; $logo_align = ($_SESSION['theme']['logo_align']['text'] != '') ? $_SESSION['theme']['logo_align']['text'] : 'left';
$logo_style = ($_SESSION['theme']['logo_style']['text'] != '') ? $_SESSION['theme']['logo_style']['text'] : '';
echo str_replace("center", $logo_align, $open_container); echo str_replace("center", $logo_align, $open_container);
if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/core/install/install.php") { if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/core/install/install.php") {
$logo = ($_SESSION['theme']['logo']['text'] != '') ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH."/themes/default/images/logo.png"; $logo = ($_SESSION['theme']['logo']['text'] != '') ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH."/themes/default/images/logo.png";
echo "<a href='".((PROJECT_PATH != '') ? PROJECT_PATH : '/')."'><img src='".$logo."' style='padding: 15px 20px;'></a>"; echo "<a href='".((PROJECT_PATH != '') ? PROJECT_PATH : '/')."'><img src='".$logo."' style='padding: 15px 20px;$logo_style'></a>";
} }
show_menu($menu_array, $menu_style, $menu_position); show_menu($menu_array, $menu_style, $menu_position);