/** * Returns the URL to a specified image * * @param string $image image source * @param bool $notheme [optional] whether this is a themed image or a top level path * * @return string */ function image_url($image, $notheme = false, $module = 'core', $relative = true) { $image_src = ''; if ($notheme) { $image_src = $image; } else { $image_src = \thebuggenie\core\framework\Context::getWebroot() . "images/"; if ($module != 'core') { $image_src .= "modules/{$module}/"; } $image_src .= $image; } return $relative ? $image_src : \thebuggenie\core\framework\Context::getUrlHost() . $image_src; }
/** * Returns the URL to a specified image * * @param string $image image source * @param bool $notheme [optional] whether this is a themed image or a top level path * * @return string */ function image_url($image, $notheme = false, $module = 'core', $relative = true) { $image_src = ''; if ($notheme) { $image_src = $image; } else { if ($module != 'core' && !file_exists(THEBUGGENIE_PATH . 'iconsets/' . Settings::getIconsetName() . "/{$module}/" . $image)) { $image_src = \thebuggenie\core\framework\Context::getWebroot() . "iconsets/" . Settings::getIconsetName() . "/modules/{$module}/" . $image; } elseif ($module != 'core') { $image_src = \thebuggenie\core\framework\Context::getWebroot() . 'iconsets/' . Settings::getIconsetName() . "/{$module}/" . $image; } else { $image_src = \thebuggenie\core\framework\Context::getWebroot() . 'iconsets/' . Settings::getIconsetName() . '/' . $image; } } return $relative ? $image_src : \thebuggenie\core\framework\Context::getUrlHost() . $image_src; }
echo mb_strtolower(str_replace('_', '-', \thebuggenie\core\framework\Context::getI18n()->getCurrentLanguage())); ?> </language> <image> <?php if (\thebuggenie\core\framework\Settings::isUsingCustomHeaderIcon() == '2') { ?> <url><?php echo \thebuggenie\core\framework\Settings::getHeaderIconURL(); ?> </url> <?php } elseif (\thebuggenie\core\framework\Settings::isUsingCustomHeaderIcon() == '1') { ?> <url><?php echo \thebuggenie\core\framework\Context::getUrlHost() . \thebuggenie\core\framework\Context::getWebroot() . 'header.png'; ?> </url> <?php } else { ?> <url><?php echo image_url('logo_24.png', false, null, false); ?> </url> <?php } ?> <title><?php echo \thebuggenie\core\framework\Settings::getSiteHeaderName() . ' ~ ' . $searchtitle; ?>