3 * @file view/theme/frio/php/modes/default.php
4 * @brief The default site template
9 require_once('view/theme/frio/php/frio_boot.php');
11 // $minimal = is_modal();
16 <title><?php if(x($page,'title')) echo $page['title'] ?></title>
17 <meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
18 <script>var baseurl="<?php echo App::get_baseurl() ?>";</script>
19 <script>var frio="<?php echo "view/theme/frio"; ?>";</script>
20 <?php $baseurl = App::get_baseurl(); ?>
21 <?php $frio = "view/theme/frio"; ?>
23 // Because we use minimal for modals the header and the included js stuff should be only loaded
24 // if the page is an standard page (so we don't have it twice for modals)
26 /// @todo Think about to move js stuff in the footer
28 if(x($page,'htmlhead')) echo $page['htmlhead'];
33 if(($_SERVER['REQUEST_URI'] != "/register") && ($_SERVER['REQUEST_URI'] != "/lostpass") && ($_SERVER['REQUEST_URI'] != "/login"))
35 echo"<body id=\"top\">";
39 echo"<body id=\"top\">";
42 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
44 if(x($page,'nav') && (!$minimal)){
45 echo str_replace("~config.sitename~",get_config('config','sitename'),
46 str_replace("~system.banner~",get_config('system','banner'),
50 // special minimal style for modal dialogs
53 <section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important;display:block!important;"><?php if(x($page,'content')) echo $page['content']; ?>
54 <div id="page-footer"></div>
57 // the style for all other pages
60 <div class="container">
63 if(($_REQUEST['pagename'] != "register") && ($_REQUEST['pagename'] != "lostpass") && ($_REQUEST['pagename'] != "login") && ($_SERVER['REQUEST_URI'] != "/"))
66 <aside class=\"col-lg-3 col-md-3 offcanvas-sm offcanvas-xs\">
67 "; if(x($page,'aside')) echo $page['aside']; echo"
68 "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
71 <div class=\"col-lg-7 col-md-7 col-sm-12 col-xs-12\" id=\"content\">
72 <section class=\"sectiontop "; echo $a->argv[0]; echo "-content-wrapper\">";
73 if(x($page,'content')) echo $page['content']; echo"
74 <div id=\"pause\"></div> <!-- The pause/resume Ajax indicator -->
82 <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" id=\"content\" style=\"margin-top:50px;\" >
83 "; if(x($page,'content')) echo $page['content']; echo"
89 </div><!-- container -->
91 <div id="back-to-top" title="back to top">⇧</div>
95 <?php if(x($page,'footer')) echo $page['footer']; ?>
97 <div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="plan-info" aria-hidden="true">
98 <div class="modal-dialog modal-full-screen">
99 <div class="modal-content">
100 <div id="modal-header" class="modal-header">
101 <button id="modal-cloase" type="button" class="close" data-dismiss="modal" aria-hidden="true">
104 <h4 id="modal-title" class="modal-title"></h4>
106 <div id="modal-body" class="modal-body">
107 <!-- /# content goes here -->
113 <!-- Dummy div to append other div's when needed (e.g. used for js function editpost() -->
114 <div id="cache-container"></div>
117 <?php } ?> <!-- End of condition if $minal else the rest -->