2 /* vim: set expandtab sw=4 ts=4 sts=4: */
6 * @package PhpMyAdmin-template
8 * @param bool $displayLogo Display logo or not
9 * @param bool $useLogoLink Use link on logo or not
10 * @param string $logoLink Destination of link on logo
11 * @param string $linkAttribs Link's attributes
13 $displayLogo = isset($displayLogo) ? $displayLogo : true;
14 $useLogoLink = isset($useLogoLink) ? $useLogoLink : false;
15 $logoLink = isset($logoLink) ? $logoLink : '#';
16 $linkAttribs = isset($linkAttribs) ? $linkAttribs : null;
19 if (isset($GLOBALS['pmaThemeImage'])) {
20 $imgTag = '<img src="%s%s" ' . 'alt="phpMyAdmin" id="imgpmalogo" />';
21 if (@file_exists($GLOBALS['pmaThemeImage'] . 'logo_left.png')) {
22 $logo = sprintf($imgTag, $GLOBALS['pmaThemeImage'], 'logo_left.png');
23 } elseif (@file_exists($GLOBALS['pmaThemeImage'] . 'pma_logo2.png')) {
24 $logo = sprintf($imgTag, $GLOBALS['pmaThemeImage'], 'pma_logo2.png');
30 <?php if (false === $displayLogo) : ?>
36 <?php if (true === $useLogoLink) : ?>
37 <a href="<?= $logoLink; ?>"<?= isset($linkAttribs) ? ' ' . $linkAttribs : null; ?>>
40 <?php if (true === $useLogoLink) : ?>