]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/php/modes/standard.php
profice a general content wrapper template.
[friendica.git] / view / theme / frio / php / modes / standard.php
1 <?php
2 /**
3  * @file view/theme/frio/php/modes/default.php
4  * @brief The default site template
5  */
6 ?>
7
8 <!DOCTYPE html >
9
10 <html>
11 <head>
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']; ?>
20         
21
22 </head>
23 <body id=\"top\">";
24 <?php if($_SERVER['REQUEST_URI'] == "/"){header('Location: /login');} ?>
25 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
26 <?php
27         if(x($page,'nav')) {
28         echo    str_replace("~config.sitename~",get_config('config','sitename'),
29                         str_replace("~system.banner~",get_config('system','banner'),
30                         $page['nav']
31         ));};
32 ?>
33         <main>
34
35                 <div class="container">
36                         <div class="row">
37 <?php
38                                         echo"
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"
43                                         </aside>
44
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"
51                                                         </div>
52                                                 </div>
53                                         </div><!--/.sidebar-offcanvas-->
54
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 -->
61                                                                         </div>
62                                                                 </div>
63                                                 </section>
64                                         </div>
65                                                 ";
66 ?>
67                 
68                         </div><!--row-->
69                 </div><!-- container -->
70
71                 <div id="back-to-top" title="back to top">&#8679;</div>
72         </main>
73
74 <footer>
75 <span id="notifsound"></span>
76 <script>
77         $("#menu-toggle").click(function(e) {
78                 e.preventDefault();
79                 $("#wrapper").toggleClass("toggled");
80         });
81 </script>
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'])) {
88                                         fnc.call(this, ev);
89                                 }
90                         })
91                 })
92         }
93         
94         $('textarea').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
95         $('input').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
96 </script>
97
98 <script>
99 var pagetitle = null;
100 $("nav").bind('nav-update', function(e,data)
101 {
102         if (pagetitle==null) pagetitle = document.title;
103         var count = $(data).find('notif').attr('count');
104         if (count>0)
105         {
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>'; */
108         }
109         else
110         {
111                 document.title = pagetitle;
112         }
113 });
114 </script>
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>
122
123 <!-- Modal  -->
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">
129                                         &times;
130                                 </button>
131                                 <h4 id="modal-title" class="modal-title"></h4>
132                         </div>
133                         <div id="modal-body" class="modal-body">
134                                 <!-- /# content goes here -->
135                         </div>
136                 </div>
137         </div>
138 </div>
139
140
141 </footer>
142 </body>