]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/php/standard.php
Merge pull request #10054 from annando/json-ld-page
[friendica.git] / view / theme / frio / php / standard.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2020, Friendica
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  * The default site template
21  */
22
23 use Friendica\DI;
24
25 ?>
26 <!DOCTYPE html >
27 <html>
28 <head>
29         <title><?php if(!empty($page['title'])) echo $page['title'] ?></title>
30         <meta name="viewport" content="initial-scale=1.0">
31         <meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
32         <script type="text/javascript">var baseurl="<?php echo DI::baseUrl() ?>";</script>
33         <script type="text/javascript">var frio="<?php echo "view/theme/frio"; ?>";</script>
34         <?php $baseurl = DI::baseUrl(); ?>
35         <?php $frio = "view/theme/frio"; ?>
36         <?php if(!empty($page['htmlhead'])) echo $page['htmlhead']; ?>
37 </head>
38 <body id="top">
39 <?php if($_SERVER['REQUEST_URI'] == "/"){header('Location: /login');} ?>
40 <a href="#content" class="sr-only sr-only-focusable"><?php echo DI::l10n()->t('Skip to main content'); ?></a>
41 <?php
42         if(!empty($page['nav'])) {
43         echo    str_replace("~config.sitename~", DI::config()->get('config','sitename'),
44                         str_replace("~system.banner~", DI::config()->get('system','banner'),
45                         $page['nav']
46         ));};
47 ?>
48         <main>
49
50                 <div class="container">
51                         <div class="row">
52 <?php
53                                         echo"
54                                         <aside class=\"col-lg-3 col-md-3 hidden-sm hidden-xs\">
55                                                 "; if(!empty($page['aside'])) echo $page['aside']; echo"
56                                                 "; if(!empty($page['right_aside'])) echo $page['right_aside']; echo"
57                                                 "; include('includes/photo_side.php'); echo"
58                                         </aside>
59
60                                         <div class=\"col-lg-8 col-md-8 col-sm-12 col-xs-12\" id=\"content\">
61                                                 <section class=\"sectiontop\">
62                                                                 <div class=\"panel "; echo $a->argv[0]; echo "-content-wrapper\">
63                                                                         <div class=\"panel-body\">";
64                                                                                 if(!empty($page['content'])) echo $page['content']; echo"
65                                                                                 <div id=\"pause\"></div> <!-- The pause/resume Ajax indicator -->
66                                                                         </div>
67                                                                 </div>
68                                                 </section>
69                                         </div>
70                                                 ";
71 ?>
72                         </div><!--row-->
73                 </div><!-- container -->
74
75                 <div id="back-to-top" title="<?php echo DI::l10n()->t('Back to top')?>">⇧</div>
76         </main>
77
78 <footer>
79 <span id="notifsound"></span>
80 <script>
81         $("#menu-toggle").click(function(e) {
82                 e.preventDefault();
83                 $("#wrapper").toggleClass("toggled");
84         });
85 </script>
86 <script type="text/javascript">
87         $.fn.enterKey = function (fnc, mod) {
88                 return this.each(function () {
89                         $(this).keypress(function (ev) {
90                                 var keycode = (ev.keyCode ? ev.keyCode : ev.which);
91                                 if ((keycode == '13' || keycode == '10') && (!mod || ev[mod + 'Key'])) {
92                                         fnc.call(this, ev);
93                                 }
94                         })
95                 })
96         }
97
98         $('textarea').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
99         $('input').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
100 </script>
101
102 <script>
103 var pagetitle = null;
104 $("nav").bind('nav-update', function(e,data)
105 {
106         if (pagetitle==null) pagetitle = document.title;
107         var count = $(data).find('notif').attr('count');
108         if (count>0)
109         {
110                 document.title = "("+count+") "+pagetitle;
111                 /* 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>'; */
112         }
113         else
114         {
115                 document.title = pagetitle;
116         }
117 });
118 </script>
119 <script src="<?=$frio?>/js/theme.js"></script>
120 <script src="<?=$frio?>/frameworks/bootstrap/js/bootstrap.min.js"></script>
121 <script src="<?=$frio?>/frameworks/jasny/js/jasny-bootstrap.min.js"></script>
122 <script src="<?=$frio?>/frameworks/bootstrap-select/js/bootstrap-select.min.js"></script>
123 <script src="<?=$frio?>/frameworks/ekko-lightbox/ekko-lightbox.min.js"></script>
124 <script src="<?=$frio?>/frameworks/justifiedGallery/jquery.justifiedGallery.min.js"></script>
125
126 <!-- Modal  -->
127 <div id="modal" class="modal fade" tabindex="-1" role="dialog">
128         <div class="modal-dialog modal-full-screen">
129                 <div class="modal-content">
130                         <div id="modal-header" class="modal-header">
131                                 <button id="modal-cloase" type="button" class="close" data-dismiss="modal">
132                                         &times;
133                                 </button>
134                                 <h4 id="modal-title" class="modal-title"></h4>
135                         </div>
136                         <div id="modal-body" class="modal-body">
137                                 <!-- /# content goes here -->
138                         </div>
139                 </div>
140         </div>
141 </div>
142 </footer>
143 </body>