openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

index.php (4805B)


      1     <?php
      2         extract($output);
      3  if (!defined('OR_VERSION')) die('Forbidden');
      4  if (!headers_sent()) header('Content-Type: text/html; charset=UTF-8')
      5 ?><!DOCTYPE html>
      6 <html class="theme-<?php echo strtolower($style) ?> nojs" lang="<?php echo Conf()->subset('language')->get('language_code') ?>">
      7 <head>
      8 <?php $appName = config('application','name'); $appOperator = config('application','operator');
      9       $title = $appName.(($appOperator!=$appName)?' - '.$appOperator:''); ?>
     10   <title data-default="<?php echo htmlentities($title,ENT_QUOTES|ENT_HTML5) ?>"><?php echo htmlentities($title,ENT_COMPAT|ENT_HTML5) ?></title>
     11   <meta name="viewport" content="width=device-width, initial-scale=1.0">
     12   <meta charset="utf-8">
     13     <?php if ( isset($refresh_url) ) { ?>
     14   <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>">
     15 <?php } ?>
     16   <meta name="robots" content="noindex,nofollow" >
     17 <?php foreach( $jsFiles  as $jsFile ) { ?>  <script src="<?php echo $jsFile ?>" defer></script>
     18 <?php } ?>
     19   <link rel="stylesheet" type="text/css" href="<?php echo OR_HTML_MODULES_DIR . 'editor/codemirror/lib/codemirror.css' ?>" />
     20 <?php foreach( $cssFiles as $cssFile) { ?>  <link rel="stylesheet" type="text/css" href="<?php echo $cssFile ?>" />
     21 <?php } ?>
     22   <link rel="stylesheet" type="text/css" href="<?php echo Html::url('index','themestyle',0,array('embed'=>'1')) ?>" />
     23   <meta id="theme-color" name="theme-color" content="<?php echo $themeColor ?>" />
     24   <link rel="manifest" href="<?php echo Html::url('index','manifest',0,array('embed'=>'1')) ?>" />
     25   <link rel="shortcut icon" type="image/x-icon" href="<?php echo $favicon_url ?>">
     26 </head>
     27 
     28 <body>
     29 
     30 
     31 <div id="workbench" class="initial-hidden">
     32 
     33     <header id="title" class="view view-static" data-action="title" data-method="show">
     34     </header>
     35 
     36 
     37     <div class="or-main-area">
     38 
     39         <nav class="or-navigation">
     40             <header>
     41                 <a href=""></a>
     42             </header>
     43             <div id="navigation" class="or-navtree view view-static" data-action="tree" data-method="tree">
     44             </div>
     45 
     46         </nav>
     47 
     48         <div class="or-workplace">
     49 
     50             <main id="editor">
     51                 <header>
     52                     <div class="or-breadcrumb"></div>
     53                 </header>
     54 
     55                 <?php foreach( $methodList as $method ) { ?>
     56                 <?php if (DEVELOPMENT) echo "<!-- Section for: ".$method['name']." -->";  ?>
     57                 <section class="toggle-open-close <?php echo $method ['open']?'open':'closed' ?>">
     58 
     59                     <header class="or-view-header on-click-open-close">
     60                         <!--
     61                         <div class="arrow arrow-right on-closed"></div><div class="arrow arrow-down on-open"></div>
     62                         -->
     63                         <span class="or-view-icon image-icon image-icon--method-<?php echo $method['name'] ?>" ></span>
     64                         <h1 class="or-view-headline"><?php echo lang('METHOD_'.$method['name'] ) ?></h1>
     65                     </header>
     66 
     67                     <!--
     68                     <div class="view-toolbar">
     69                         <img src="<?php echo OR_THEMES_DIR ?>/default/images/icon/menu/fullscreen.svg" class="image-icon on-normalscreen toolbar-action-fullscreen" />
     70                         <img src="<?php echo OR_THEMES_DIR ?>/default/images/icon/menu/fullscreen_exit.svg" class="image-icon on-fullscreen toolbar-action-exit-fullscreen"  />
     71                         <img src="<?php echo OR_THEMES_DIR ?>/default/images/icon/menu/refresh.svg" class="image-icon toolbar-action-refresh" />
     72                     </div>
     73                         -->
     74 
     75 
     76                     <div class="view view-loader closable" data-method="<?php echo $method['name'] ?>"></div>
     77 
     78                 </section>
     79                 <?php } ?>
     80 
     81             </main>
     82         </div>
     83 
     84     </div>
     85 
     86 </div>
     87 
     88 
     89 <?php /* Modal dialog */ ?>
     90 <div id="dialog" class="is-<?php echo empty($dialogAction)?'closed':'open' ?>" data-action="<?php echo (!empty($dialogAction)?$dialogAction:'') ?>" data-method="<?php echo (!empty($dialogMethod)?$dialogMethod:'') ?>">
     91     <div class="view or-round-corners">
     92     </div>
     93 
     94     <div class="filler"><?php /* empty element, this is only for styling the background. */ ?>
     95         <span class="icon">X</span>
     96     </div>
     97 </div>
     98 
     99 
    100 <div id="noticebar">
    101 </div>
    102 
    103 <?php /* Inline Notices */ foreach( $notices as $notice ) { ?>
    104 <div class="invisible or-initial-notice"><?php echo $notice['text'] ?></div>
    105 <?php } ?>
    106 
    107 
    108 <footer class="initial-hidden" id="footer">
    109 
    110 </footer>
    111 
    112 <noscript><div class="noscript"><em>Javascript is required to view this site</em></div></noscript>
    113 
    114 </body>
    115 </html>