Esempio n. 1
0
?>
</description>
        <language><?php 
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 
}
?>
Esempio n. 2
0
<header>
    <div id="logo_container">
        <?php 
\thebuggenie\core\framework\Event::createNew('core', 'header_before_logo')->trigger();
?>
        <span class="mobile_menuanchor" onclick="$('body').toggleClassName('mobile_leftmenu_visible');">&nbsp;</span>
        <?php 
$link = \thebuggenie\core\framework\Settings::getHeaderLink() == '' ? \thebuggenie\core\framework\Context::getWebroot() : \thebuggenie\core\framework\Settings::getHeaderLink();
?>
        <a class="logo" href="<?php 
print $link;
?>
"><?php 
echo image_tag(\thebuggenie\core\framework\Settings::getHeaderIconUrl(), array('style' => 'max-height: 24px;'), \thebuggenie\core\framework\Settings::isUsingCustomHeaderIcon());
?>
</a>
        <div class="logo_name"><?php 
echo \thebuggenie\core\framework\Settings::getSiteHeaderName();
?>
</div>
    </div>
    <?php 
if (!\thebuggenie\core\framework\Settings::isMaintenanceModeEnabled()) {
    ?>
        <div id="topmenu-container">
            <?php 
    if (\thebuggenie\core\framework\Event::createNew('core', 'header_mainmenu_decider')->trigger()->getReturnValue() !== false) {
        ?>
                <?php 
        require THEBUGGENIE_CORE_PATH . 'templates/headermainmenu.inc.php';
        ?>