3 * @file view/theme/frio/php/modes/default.php
4 * @brief The default site template
11 require_once('view/theme/frio/php/frio_boot.php');
13 // $minimal = is_modal();
19 <title><?php if(x($page,'title')) echo $page['title'] ?></title>
20 <meta request="<?php echo $_REQUEST['pagename'] ?> ">
21 <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
22 <script>var frio="<?php echo "view/theme/frio"; ?>";</script>
23 <?php $baseurl = $a->get_baseurl(); ?>
24 <?php $frio = "view/theme/frio"; ?>
26 // Because we use minimal for modals the header and the included js stuff should be only loaded
27 // if the page is an standard page (so we don't have it twice for modals)
29 /// @todo Think about to move js stuff in the footer
31 if(x($page,'htmlhead')) echo $page['htmlhead'];
38 if(($_SERVER['REQUEST_URI'] != "/register") && ($_SERVER['REQUEST_URI'] != "/lostpass") && ($_SERVER['REQUEST_URI'] != "/login"))
40 echo"<body id=\"top\">";
44 echo"<body id=\"top\">";
47 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
49 if(x($page,'nav') && (!$minimal)){
50 echo str_replace("~config.sitename~",get_config('config','sitename'),
51 str_replace("~system.banner~",get_config('system','banner'),
55 // special minimal style for modal dialogs
58 <section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important;display:block!important;"><?php if(x($page,'content')) echo $page['content']; ?>
59 <div id="page-footer"></div>
62 // the style for all other pages
65 <div class="container">
68 if(($_REQUEST['pagename'] != "register") && ($_REQUEST['pagename'] != "lostpass") && ($_REQUEST['pagename'] != "login") && ($_SERVER['REQUEST_URI'] != "/"))
71 <aside class=\"col-lg-3 col-md-3 offcanvas-sm offcanvas-xs\">
72 "; if(x($page,'aside')) echo $page['aside']; echo"
73 "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
76 <!-- The following paragraph can maybe deleted because we don't need it anymore -->
77 <div id=\"NavAside\" class=\"navmenu navmenu-default navmenu-fixed-left offcanvas hidden-lg hidden-md\">
78 <div class=\"nav-container\">
79 <div class=\"list-group\">
80 "; if(x($page,'aside')) echo $page['aside']; echo"
81 "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
84 </div><!--/.sidebar-offcanvas-->
86 <div class=\"col-lg-7 col-md-7 col-sm-12 col-xs-12\" id=\"content\">
87 <section class=\"sectiontop "; echo $a->argv[0]; echo "-content-wrapper\">";
88 if(x($page,'content')) echo $page['content']; echo"
89 <div id=\"pause\"></div> <!-- The pause/resume Ajax indicator -->
97 <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" id=\"content\" style=\"margin-top:50px;\" >
98 "; if(x($page,'content')) echo $page['content']; echo"
105 </div><!-- container -->
107 <div id="back-to-top" title="back to top">⇧</div>
111 <?php if(x($page,'footer')) echo $page['footer']; ?>
113 <div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="plan-info" aria-hidden="true">
114 <div class="modal-dialog modal-full-screen">
115 <div class="modal-content">
116 <div id="modal-header" class="modal-header">
117 <button id="modal-cloase" type="button" class="close" data-dismiss="modal" aria-hidden="true">
120 <h4 id="modal-title" class="modal-title"></h4>
122 <div id="modal-body" class="modal-body">
123 <!-- /# content goes here -->
129 <!-- Dummy div to append other div's when needed (e.g. used for js function editpost() -->
130 <div id="cache-container"></div>
133 <?php } ?> <!-- End of condition if $minal else the rest -->