-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.ctp
More file actions
71 lines (57 loc) · 1.91 KB
/
default.ctp
File metadata and controls
71 lines (57 loc) · 1.91 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
<?php
/**
* ページ全体 Layout
*
* @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
*/
$bodyCss = '';
if (!empty($modal)) {
$bodyCss = 'modal-open';
}
/* 未ログイン時にはヘッダーメニューを表示しないこともカスタマイズでできるようにcss追加 */
if (AuthComponent::user()) {
$bodyCss .= ' body-loggedin';
} else {
$bodyCss .= ' body-nologgedin';
}
?>
<!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) : ''); ?></title>
<?php
echo $this->element('NetCommons.common_favicon');
echo $this->fetch('meta');
echo $this->element('NetCommons.common_css');
echo $this->fetch('css');
echo $this->element('NetCommons.common_theme_css');
echo $this->element('NetCommons.common_js');
echo $this->element('Wysiwyg.mathjax_js');
echo $this->fetch('script');
?>
</head>
<body class="<?php echo $bodyCss; ?>" ng-controller="NetCommons.base">
<?php echo $this->Flash->render(); ?>
<?php echo $this->element('NetCommons.common_header'); ?>
<main id="nc-container" class="<?php echo $pageContainerCss; ?>" ng-init="hashChange()">
<?php echo $pageHeader; ?>
<div class="row">
<?php echo $pageContent; ?>
<?php echo $pageMajor; ?>
<?php echo $pageMinor; ?>
</div>
<?php echo $pageFooter; ?>
</main>
<?php echo $this->element('NetCommons.common_footer'); ?>
<?php if (!empty($modal)) : ?>
<div class="modal-backdrop fade in"></div>
<?php endif; ?>
</body>
</html>