예제 #1
0
    <meta charset="utf-8">
    <title><?php 
echo $pageTitle;
?>
</title>
    <base href="<?php 
echo Config::get()->url;
?>
">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="favicon.ico">
    <?php 
echo Assets::getCss();
?>
    <?php 
echo Assets::getJS();
?>
    <style type="text/css">
        body {
            background-color: #f5f5f5;
        }

        .form-signin {
            max-width: 300px;
            padding: 19px 29px 29px;
            margin: 0 auto 20px;
            background-color: #fff;
            border: 1px solid #e5e5e5;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 0px;
예제 #2
0
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head> 
<title>Electronic Convention Management (ECM)<?php 
echo $title ? "::{$title}" : "";
?>
</title> 
<?php 
echo HTML::style(url::site('static/css/main2.css', TRUE), NULL, TRUE) . "\n";
echo HTML::style(url::site('static/css/jquery-ui.css', TRUE), NULL, TRUE) . "\n";
echo HTML::script(url::site('static/js/jquery.js', TRUE), NULL, TRUE) . "\n";
echo HTML::script(url::site('static/js/jquery-ui.js', TRUE), NULL, TRUE) . "\n";
foreach (Assets::getCSS() as $style) {
    echo HTML::style(url::site("static/css/{$style}", TRUE), NULL, TRUE);
}
foreach (Assets::getJS() as $js) {
    echo HTML::script(url::site("static/js/{$js}", TRUE), NULL, TRUE);
}
?>
</head> 
 
<body> 
 
<!-- Content container beings here --> 
<div id="container"> 
    <!-- Header --> 
	<?php 
if ($isLoggedIn) {
    // || $menu
    ?>
    <div id="menu">
예제 #3
0
파일: Response.php 프로젝트: LobbyOS/server
 /**
  * Print the <head> tag
  */
 public static function head($title = "")
 {
     header('Content-type: text/html; charset=utf-8');
     if ($title != "") {
         self::setTitle($title);
     }
     if (Assets::issetJS('jquery')) {
         /**
          * Load jQuery, jQuery UI, Lobby Main, App separately without async
          */
         $url = L_URL . "/includes/serve-assets.php?type=js&assets=" . implode(",", array(Assets::getJS('jquery'), Assets::getJS('jqueryui'), Assets::getJS('main'), Assets::issetJS('app') ? Assets::getJS('app') : ""));
         echo "<script src='{$url}'></script>";
         Assets::removeJS("jquery");
         Assets::removeJS("jqueryui");
         Assets::removeJS("main");
     }
     $jsURLParams = array("THEME_URL" => Themes::getThemeURL());
     if (Apps::isAppRunning()) {
         $jsURLParams["APP_URL"] = urlencode(Apps::getInfo("url"));
         $jsURLParams["APP_SRC"] = urlencode(Apps::getInfo("srcURL"));
     }
     $jsURL = Assets::getServeURL("js", $jsURLParams);
     echo "<script>lobby.load_script_url = '" . $jsURL . "';</script>";
     $cssServeParams = array("THEME_URL" => THEME_URL);
     /**
      * CSS Files
      */
     if (Apps::isAppRunning()) {
         $cssServeParams["APP_URL"] = urlencode(Apps::getInfo("url"));
         $cssServeParams["APP_SRC"] = urlencode(Apps::getInfo("srcURL"));
     }
     echo Assets::getServeLinkTag($cssServeParams);
     echo "<link href='" . L_URL . "/favicon.ico' sizes='16x16 32x32 64x64' rel='shortcut icon' />";
     /* Title */
     echo "<title>" . self::$title . "</title>";
 }