-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.ctp
More file actions
88 lines (77 loc) · 2.66 KB
/
default.ctp
File metadata and controls
88 lines (77 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
* ControlPanel index
*
* @author Noriko Arai <arai@nii.ac.jp>
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
?>
<!DOCTYPE html>
<html lang="<?php echo Configure::read('Config.language') ?>" ng-app="NetCommonsApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo (isset($pageTitle) ? h($pageTitle) . ' - ' . SiteSettingUtil::read('App.site_name') : ''); ?></title>
<?php
echo $this->html->meta('icon', '/net_commons/favicon.ico');
echo $this->fetch('meta');
echo $this->element('NetCommons.common_css');
echo $this->NetCommonsHtml->css('/control_panel/css/style.css');
echo $this->fetch('css');
echo $this->element('NetCommons.common_js');
echo $this->fetch('script');
?>
</head>
<body ng-controller="NetCommons.base">
<?php echo $this->Session->flash(); ?>
<?php echo $this->element('NetCommons.common_header', array('container' => 'container')); ?>
<main class="container">
<div class="row">
<!-- container-major -->
<div class="control-panel-nav col-sm-2">
<nav class="navbar-default">
<div class="clearfix">
<button type="button" class="btn btn-xs btn-default visible-xs-block pull-right" data-toggle="collapse" data-target="#container-major" aria-expanded="false">
<span class="glyphicon glyphicon-menu-hamburger"> </span>
</button>
</div>
<div id="container-major" class="collapse navbar-collapse">
<?php echo $this->element('ControlPanel.render_control_panel_menu', array(
'plugins' => $pluginsMenu
)); ?>
</div>
</nav>
</div>
<!-- container-main -->
<div role="main" id="container-main" class="control-panel col-sm-10">
<article class="<?php echo 'plugin-' . strtr(Current::read('Plugin.key', ''), '_', '-'); ?>">
<?php
if (! isset($title)) {
$title = $this->fetch('title');
}
?>
<?php if ($title) : ?>
<h1 class="clearfix">
<?php echo $title; ?>
<?php if ($subtitle = $this->fetch('subtitle')) : ?>
<small class="control-panel-subtitle">
<?php echo $subtitle; ?>
</small>
<?php endif; ?>
</h1>
<hr>
<?php else : ?>
<br>
<?php endif; ?>
<?php echo $this->fetch('content'); ?>
</article>
</div>
</div>
</main>
<?php echo $this->element('NetCommons.common_footer'); ?>
</body>
</html>