示例#1
0
function HTMLBody()
{
    $page = Page::getInstance();
    $html = "<body>";
    $html .= "<div id='pageCSS'>" . $page->getCSS() . "</div>";
    $html .= "<div id='fs'></div>";
    //$html.= file_get_contents("img/icons.svg");
    $html .= "<header class='headerContainer' >";
    $html .= SiteHeader();
    $html .= "</header>";
    $html .= "<nav class='menuContainer'>";
    $html .= SiteMenu();
    $html .= "</nav>";
    $html .= "<div class='pageContainer'>";
    $html .= "<div class='module module--page pageWrapper'>";
    $html .= PageHeader();
    $html .= PageNav();
    $html .= PageContent();
    $html .= PageAds();
    $html .= "</div>";
    $html .= "</div>";
    $html .= "<footer class='footerContainer'>";
    $html .= SiteFooter();
    $html .= "</footer>";
    //$html.= js('_assets/js/components/es5-shim');
    //$html .= "<script>var DEBUG = true, POLYFILLPROMISE = false;</script>";
    /*
    $html .= js('_assets/js/olli/module');
    $html .= includelib('_assets/js/olli', 'build.json');
    
    //$html.= js('js/olli');
    
    $html .= js('_assets/js/olli/test');
    */
    ///*
    $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>";
    $html .= js('_assets/es6/vendors/browser');
    $html .= js('_assets/es6/vendors/system-polyfills');
    $html .= js('_assets/es6/vendors/system');
    $html .= "<script>";
    $html .= "System.config({";
    $html .= "    transpiler: 'babel'";
    //$html .= "    baseURL: '_assets/es6/olli'";
    $html .= "  });";
    $html .= "System.import('_assets/es6/olli/olli-test.js?cache=" . time() . "');";
    $html .= "</script>";
    //*/
    /*
        $html.= js('js/olli-dev');
        $html .= js('_assets/js/olli/test');
    */
    $html .= "</body>";
    return $html;
}
示例#2
0
function HTMLBody()
{
    $page = Page::getInstance();
    $html = "<body>";
    $html .= "<div id='pageCSS'>" . $page->getCSS() . "</div>";
    $html .= "<header class='headerContainer' >";
    $html .= SiteHeader();
    $html .= "</header>";
    $html .= "<nav class='menuContainer'>";
    $html .= SiteMenu();
    $html .= "</nav>";
    $html .= "<div class='pageContainer'>";
    $html .= "<div class='module module--page pageWrapper'>";
    $html .= PageHeader();
    $html .= PageNav();
    $html .= PageContent();
    $html .= PageAds();
    $html .= "</div>";
    $html .= "</div>";
    $html .= "<footer class='footerContainer'>";
    $html .= SiteFooter();
    $html .= "</footer>";
    /*
        $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>";
        $html.= js('_assets/es6/vendors/browser');
        $html.= js('_assets/es6/vendors/system-polyfills');
        $html.= js('_assets/es6/vendors/system');
        $html .= "<script>";
        $html .= "System.config({";
        $html .= "    transpiler: 'babel'";
        //$html .= "    baseURL: '_assets/es6/olli'";
        $html .= "  });";
        $html .= "System.import('_assets/es6/olli/olli-test.js?cache=".time()."');";
        $html .="</script>";
    */
    /*
        $html .= js('js/dist/app.min');
    */
    //    /*
    $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>";
    $html .= js('_assets/es6/vendors/browser');
    $html .= js('_assets/es6/vendors/system-polyfills');
    $html .= js('_assets/es6/vendors/system');
    $html .= "<script>";
    $html .= "System.config({";
    $html .= "    transpiler: 'babel'";
    //$html .= "    baseURL: '_assets/es6/olli'";
    $html .= "  });";
    $html .= "System.import('_assets/es6/app.js?cache=" . time() . "');";
    $html .= "</script>";
    //    */
    $html .= "</body>";
    return $html;
}