示例#1
0
    <meta name="viewport" content="width=device-width, initial-scale=1,  maximum-scale=1.0, user-scalable=false">

<?php 
foreach ($this->application->GetCSSDependency() as $stylesheet) {
    ?>
    <link rel="stylesheet" href="<?php 
    echo $stylesheet;
    ?>
">
<?php 
}
?>
</head>
<body>
    <?php 
echo getHTMLFlashMessage();
?>
    <?php 
echo $headerHook;
?>
    <header>
        <div id="menu_open"></div>
        <nav>
            <?php 
echo $this->RenderNav($page);
?>
        </nav>
        <h1><?php 
echo $page->GetName();
?>
</h1>
示例#2
0
    public function Render($body)
    {
        $message = getHTMLFlashMessage();
        return <<<HTML
<!doctype html>

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Administration  - {$this->application->Setting("page-site-title")->GetValue()}></title>
    <link rel="icon" type="image/png" href="/favicon.png">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/vendors/sweetalert.css">
    <link rel="stylesheet" href="/css/admin.css?v=1.0">
    <script src="/scripts/jquery.js"></script>
    <script src="/vendors/sweetalert.min.js"></script>
    <script src="/vendors/tinymce/tinymce.min.js"></script>
    <script type="text/javascript" src="/vendors/fancybox/jquery.fancybox.pack.js"></script>
    <script src="/scripts/admin.js"></script>
    <script src="/scripts/scripts.js"></script>
    <script>
        tinymce.init({
            height: 500,
            selector:'.tinyMCE',
            valid_elements : '*[*]',
            plugins: [
                "advlist autolink lists link image charmap preview hr",
                "code responsivefilemanager",
                "fontawesome noneditable",
                "insertdatetime media nonbreaking contextmenu table contextmenu",
                "colorpicker imagetools importcss"
            ],
            extended_valid_elements: 'span[class]',
            content_css: [
                'https://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css',
                '/css/normalize.css',
                '/css/tiny.css'
            ],
            importcss_append: true,
            image_advtab: true,
            external_filemanager_path:"/vendors/filemanager/",
            filemanager_title:"Filemanager" ,
            external_plugins: { "filemanager" : "/vendors/filemanager/plugin.min.js"},
            removed_menuitems: 'newdocument print',
            toolbar: "undo redo | bold italic underline | responsivefilemanager | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | fontawesome styleselect | forecolor backcolor | link unlink anchor | image media | preview code"
        });
    </script>

    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<body>
    {$message}
    <div id="menu_open"></div>
    <nav>
        <ul>
            {$this->GetNavItems()}
        </ul>
    </nav>
    <main>
        <div class="wrapper">
            {$body}
        </div>
    </main>


</body>
</html>
HTML;
    }