00001 <?php namespace Habari; ?>
00002 <?php if ( !defined( 'HABARI_PATH' ) ) { die( 'No direct access' ); }
00003 header( 'X-Frame-Options: DENY' );
00004 ?>
00005 <!doctype html>
00006 <html>
00007 <head>
00008 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
00009 <meta name="viewport" content="width=device-width">
00010 <title><?php Options::out('title'); ?> · <?php echo $admin_title; ?></title>
00011 <link rel="icon" type="image/png" href="<?php echo $theme->get_url('/images/habari.favicon.png'); ?>">
00012 <script type="text/javascript">
00013 var habari = {
00014 url: {
00015 habari: '<?php Site::out_url( 'habari' ); ?>',
00016 ajaxDashboard: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'dashboard' ) ); ?>',
00017 ajaxUpdatePosts: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_posts' ) ); ?>',
00018 ajaxLogDelete: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'delete_logs' ) ); ?>',
00019 ajaxUpdateUsers: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_users' ) ); ?>',
00020 ajaxUpdateGroups: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_groups' ) ); ?>',
00021 ajaxUpdateComment: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_comment' ) ); ?>',
00022 ajaxAddBlock: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'add_block' ) ); ?>',
00023 ajaxDeleteBlock: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'delete_block' ) ); ?>',
00024 ajaxSaveAreas: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'save_areas' ) ); ?>',
00025 ajaxConfigModule: '<?php echo URL::get('admin_ajax', array('context' => 'dashboard')); ?>'
00026 }
00027 };
00028
00029 if ( top != self ) {
00030 self.location.replace( 'about:blank' );
00031 }
00032 </script>
00033 <?php
00034 Plugins::act( 'admin_header', $this );
00035 Stack::out( 'admin_header_javascript', Method::create( '\\Habari\\Stack', 'scripts' ) );
00036 Stack::out( 'admin_stylesheet', Method::create( '\\Habari\\Stack' , 'styles' ) );
00037 ?>
00038 <!--[if IE 7]>
00039 <link rel="stylesheet" type="text/css" href="<?php Site::out_url( 'admin_theme' ); ?>/css/ie.css" media="screen">
00040 <![endif]-->
00041
00042 <?php
00043 Plugins::act( 'admin_header_after', $this );
00044 ?>
00045
00046 </head>
00047 <body class="page-<?php echo $page; ?>">
00048
00049 <div id="menubar">
00050
00051 <div id="menu">
00052 <h1 id="menubutton"><a href="<?php echo $admin_page_url; ?>"><?php echo ( isset( $mainmenu[$admin_page]['text'] ) ? $mainmenu[$admin_page]['text'] : $admin_page ); ?> <i class="arrow icon-circle-arrow-down"></i><span class="hotkey">Q</span></a></h1>
00053
00054 <div id="menulist">
00055 <ul>
00056 <?php foreach ( $mainmenu as $menu_id => $menu ): ?>
00057 <li id="link-<?php echo $menu_id ?>" class="<?php if ( $menu['selected'] == true ) { echo 'selected'; } if ( isset( $menu['submenu'] ) ) { echo ' submenu'; } if ( isset( $menu['class'] ) ) { echo " " . $menu['class']; } ?>" title="<?php echo $menu['title']; ?>"><a class="top" href="<?php echo Utils::de_amp($menu['url']); ?>"><?php echo $menu['text']; ?>
00058 <?php if( isset($menu['submenu']) ) { echo '<i class="arrow icon-circle-arrow-right"></i>'; } ?>
00059 <?php if ( isset( $menu['hotkey'] ) && $menu['hotkey'] != '' ): ?><span class="hotkey"><?php echo $menu['hotkey']; ?></span><?php endif; ?>
00060 </a>
00061 <?php if ( isset( $menu['submenu'] ) ): ?>
00062 <ul class="submenu">
00063 <?php foreach ( $menu['submenu'] as $submenu_id => $submenu_item ): ?>
00064 <li id="link-<?php echo $submenu_id ?>" title="<?php echo $submenu_item['title']; ?>" class="sub<?php if ( isset($submenu_item['hotkey'] ) && $submenu_item['hotkey'] != '' ): ?> hotkey-<?php echo $submenu_item['hotkey']; if ( isset( $submenu_item['class'] ) ) { echo " " . $submenu_item['class']; } ?><?php endif; ?>"><a href="<?php echo Utils::amp($submenu_item['url']); ?>"><?php echo $submenu_item['text']; ?>
00065 <?php if ( isset( $submenu_item['hotkey'] ) && $submenu_item['hotkey'] != '' ): ?><span class="hotkey"><?php echo $submenu_item['hotkey']; ?></span><?php endif; ?>
00066 </a></li>
00067 <?php endforeach; ?>
00068 </ul>
00069 <?php endif; ?>
00070 </li>
00071 <?php endforeach; ?>
00072 </ul>
00073 </div>
00074 </div>
00075
00076 <a href="<?php Site::out_url( 'site' ); ?>" id="site" title="<?php _e( 'Go to Site' ); ?>"><?php Options::out( 'title' ); ?></a>
00077
00078 </div>
00079
00080 <div id="spinner"></div>
00081
00082 <div id="page">
00083
00084 <?php Plugins::act( 'admin_info', $theme, $page ); ?>