Beispiel #1
0
<?php 
$navi = array('licence' => array(lang::get('licence'), 'graduation-cap'), 'general' => array(lang::get('general'), 'cogs'), 'database' => array(lang::get('db'), 'database'), 'finish' => array(lang::get('finish'), 'thumbs-o-up'));
layout::addCSS('//fonts.googleapis.com/css?family=Lato:300,400,700');
layout::addCSS('//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css');
layout::addCSS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css');
layout::addCSS('../admin/layout/css/style.css');
layout::addJS('//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js');
layout::addJS('//code.jquery.com/ui/1.10.3/jquery-ui.js');
layout::addJS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js');
layout::addJS('../admin/layout/js/session.js');
layout::addJS('../admin/layout/js/headroom.js');
layout::addJS('../admin/layout/js/swipe.js');
layout::addJS('../admin/layout/js/scripts.js');
?>
<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
	<title><?php 
echo lang::get('installation');
?>
 - dynao CMS</title>
    
    <?php 
echo layout::getCSS();
?>
    
</head>
Beispiel #2
0
<?php

layout::addNav(lang::get('console'), 'console', 'terminal', [], true);
layout::addCSS('addons/console/layout/css/console.css');
if ($page == 'console') {
    function consolePath()
    {
        return 'addons/console/console.php';
    }
    extension::add('PAGE_PATH', 'consolePath');
    layout::addJS('addons/console/layout/js/console.js');
}
Beispiel #3
0
<?php

layout::addCSS('//fonts.googleapis.com/css?family=Lato:300,400,700');
layout::addCSS('//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css');
layout::addCSS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css');
layout::addCSS('layout/css/style.css');
layout::addJS('//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js');
layout::addJS('//code.jquery.com/ui/1.10.3/jquery-ui.js');
layout::addJS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js');
layout::addJS('layout/js/session.js');
layout::addJS('layout/js/headroom.js');
layout::addJS('layout/js/swipe.js');
layout::addJS('layout/js/dropzone.js');
layout::addJS('layout/js/scripts.js');
userPerm::add('page[edit]', lang::get('page[edit]'));
userPerm::add('page[delete]', lang::get('page[delete]'));
userPerm::add('page[content]', lang::get('page[content]'));
userPerm::add('page[module]', lang::get('page[module]'));
userPerm::add('admin[user]', lang::get('admin[user]'));
userPerm::add('admin[addon]', lang::get('admin[addon]'));
backend::addNavi(lang::get('dashboard'), url::backend('dashboard'), 'desktop');
if (dyn::get('user')->hasPerm('page[edit]') || dyn::get('user')->hasPerm('page[delete]') || dyn::get('user')->hasPerm('page[content]') || dyn::get('user')->hasPerm('page[module]')) {
    backend::addNavi(lang::get('content'), url::backend('structure'), 'list');
}
if (dyn::get('user')->hasPerm('admin[user]')) {
    backend::addNavi(lang::get('user'), url::backend('user'), 'user');
}
if (dyn::get('user')->hasPerm('admin[addon]')) {
    backend::addNavi(lang::get('addons'), url::backend('addons'), 'code-fork');
}
if (dyn::get('user')->isAdmin()) {
Beispiel #4
0
<?php

layout::addJS('addons/tinyMCE/layout/js/tinymce/tinymce.min.js');
layout::addJsCode('tinymce.init({
    selector: "textarea.tinyMCE",
    plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste"
    ],
    toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
', false);