コード例 #1
0
ファイル: header_default.php プロジェクト: armpit/e107
    // N: Send other top-of-body HTML
    //
    if (ADMIN && !vartrue($_SERVER['E_DEV']) && file_exists(e_BASE . 'install.php')) {
        echo "<div class='installer alert alert-danger alert-block text-center'><b>*** " . CORE_LAN4 . " ***</b><br />" . CORE_LAN5 . "</div>";
    }
    //XXX TODO LAN in English.php
    echo "<noscript><div class='alert alert-block alert-error alert-danger'><strong>This web site requires that javascript be enabled. <a rel='external' href='http://activatejavascript.org'>Click here for instructions.</a>.</strong></div></noscript>";
    if (deftrue('BOOTSTRAP')) {
        echo "<div id='uiAlert' class='notifications center'></div>";
        // Popup Alert Message holder. @see http://nijikokun.github.io/bootstrap-notify/
    }
    /**
     * Display Welcome Message when old method activated.
     * fix - only when e_FRONTPAGE set to true
     * @see \core_index_index_controller\actionIndex
     */
    if (deftrue('e_FRONTPAGE') && strstr($HEADER, "{WMESSAGE") === false && strstr($FOOTER, "{WMESSAGE") === false) {
        echo e107::getParser()->parseTemplate("{WMESSAGE}");
    }
    if (!deftrue('e_IFRAME') && (strstr($HEADER, "{ALERTS}") === false && strstr($FOOTER, "{ALERTS}") === false)) {
        if (deftrue('e_DEBUG')) {
            e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in the \$HEADER or \$FOOTER template. It has been automatically added here. ");
        }
        echo e107::getParser()->parseTemplate("{ALERTS}");
    }
    if (defined("PREVIEWTHEME")) {
        themeHandler::showPreview();
    }
    unset($text);
}
//Trim whitepsaces after end of the script