3 * @file view/theme/frio/php/modes/default.php
4 * @brief The default site template
12 <title><?php if(x($page,'title')) echo $page['title'] ?></title>
13 <meta name="viewport" content="initial-scale=1.0">
14 <meta request="<?php echo $_REQUEST['pagename'] ?> ">
15 <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
16 <script>var frio="<?php echo "view/theme/frio"; ?>";</script>
17 <?php $baseurl = $a->get_baseurl(); ?>
18 <?php $frio = "view/theme/frio"; ?>
19 <?php if(x($page,'htmlhead')) echo $page['htmlhead']; ?>
24 <?php if($_SERVER['REQUEST_URI'] == "/"){header('Location: /login');} ?>
25 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
28 echo str_replace("~config.sitename~",get_config('config','sitename'),
29 str_replace("~system.banner~",get_config('system','banner'),
35 <div class="container">
39 <aside class=\"col-lg-3 col-md-3 hidden-sm hidden-xs\">
40 "; if(x($page,'aside')) echo $page['aside']; echo"
41 "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
42 "; include('includes/photo_side.php'); echo"
45 <div id=\"NavAside\" class=\"navmenu navmenu-default navmenu-fixed-left offcanvas hidden-lg hidden-md\">
46 <div class=\"nav-container\">
47 <div class=\"list-group\">
48 "; if(x($page,'aside')) echo $page['aside']; echo"
49 "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
50 "; include('includes/photo_side.php'); echo"
53 </div><!--/.sidebar-offcanvas-->
55 <div class=\"col-lg-8 col-md-8 col-sm-12 col-xs-12\" id=\"content\">
56 <section class=\"sectiontop\">
57 <div class=\"panel "; echo $a->argv[0]; echo "-content-wrapper\">
58 <div class=\"panel-body\">";
59 if(x($page,'content')) echo $page['content']; echo"
60 <div id=\"pause\"></div> <!-- The pause/resume Ajax indicator -->
69 </div><!-- container -->
71 <div id="back-to-top" title="back to top">⇧</div>
75 <span id="notifsound"></span>
77 $("#menu-toggle").click(function(e) {
79 $("#wrapper").toggleClass("toggled");
82 <script type="text/javascript">
83 $.fn.enterKey = function (fnc, mod) {
84 return this.each(function () {
85 $(this).keypress(function (ev) {
86 var keycode = (ev.keyCode ? ev.keyCode : ev.which);
87 if ((keycode == '13' || keycode == '10') && (!mod || ev[mod + 'Key'])) {
94 $('textarea').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
95 $('input').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
100 $("nav").bind('nav-update', function(e,data)
102 if (pagetitle==null) pagetitle = document.title;
103 var count = $(data).find('notif').attr('count');
106 document.title = "("+count+") "+pagetitle;
107 /* document.getElementById('notifsound').innerHTML='<object type="audio/mpeg" width="0" height="0" data="<?=$frio?>/audios/901.mp3"><param name="notif" value="<?=$frio?>/audios/901.mp3" /><param name="autostart" value="true" /><param name="loop" value="false" /></object>'; */
111 document.title = pagetitle;
115 <script src="<?=$frio?>/js/theme.js"></script>
116 <script src="<?=$frio?>/js/acl.js"></script>
117 <script src="<?=$frio?>/frameworks/bootstrap/js/bootstrap.min.js"></script>
118 <script src="<?=$frio?>/frameworks/jasny/js/jasny-bootstrap.min.js"></script>
119 <script src="<?=$frio?>/frameworks/bootstrap-select/js/bootstrap-select.min.js"></script>
120 <script src="<?=$frio?>/frameworks/ekko-lightbox/ekko-lightbox.min.js"></script>
121 <script src="<?=$frio?>/frameworks/justifiedGallery/jquery.justifiedGallery.min.js"></script>
124 <div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="plan-info" aria-hidden="true">
125 <div class="modal-dialog modal-full-screen">
126 <div class="modal-content">
127 <div id="modal-header" class="modal-header">
128 <button id="modal-cloase" type="button" class="close" data-dismiss="modal" aria-hidden="true">
131 <h4 id="modal-title" class="modal-title"></h4>
133 <div id="modal-body" class="modal-body">
134 <!-- /# content goes here -->