3 * @file view/theme/frio/php/modes/default.php
4 * @brief The default site template
9 use Friendica\Core\Config;
10 use Friendica\Core\PConfig;
11 use Friendica\Core\System;
12 require_once('view/theme/frio/php/frio_boot.php');
14 // $minimal = is_modal();
15 if (!isset($minimal)) {
21 <title><?php if(x($page,'title')) echo $page['title'] ?></title>
22 <meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
23 <script type="text/javascript">var baseurl="<?php echo System::baseUrl() ?>";</script>
24 <script type="text/javascript">var frio="<?php echo "view/theme/frio"; ?>";</script>
25 <?php $baseurl = System::baseUrl(); ?>
26 <?php $frio = "view/theme/frio"; ?>
28 // Because we use minimal for modals the header and the included js stuff should be only loaded
29 // if the page is an standard page (so we don't have it twice for modals)
31 /// @todo Think about to move js stuff in the footer
33 if(x($page,'htmlhead')) echo $page['htmlhead'];
37 // Add the theme color meta
38 // It makes mobile Chrome UI match Frio's top bar color.
39 $uid = $a->profile_uid;
41 $uid = get_theme_uid();
43 $schema = PConfig::get($uid, 'frio', 'schema');
44 if (($schema) && ($schema != '---')) {
45 if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
46 $schemefile = 'view/theme/frio/schema/'.$schema.'.php';
47 require_once($schemefile);
50 $nav_bg = PConfig::get($uid, 'frio', 'nav_bg');
55 echo '<meta name="theme-color" content="'.$nav_bg.'" />';
60 if(($_SERVER['REQUEST_URI'] != "/register") && ($_SERVER['REQUEST_URI'] != "/lostpass") && ($_SERVER['REQUEST_URI'] != "/login"))
62 echo"<body id=\"top\">";
66 echo"<body id=\"top\">";
69 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
71 if(x($page,'nav') && (!$minimal)){
72 echo str_replace("~config.sitename~",Config::get('config','sitename'),
73 str_replace("~system.banner~",Config::get('system','banner'),
77 // special minimal style for modal dialogs
80 <section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important;display:block!important;"><?php if(x($page,'content')) echo $page['content']; ?>
81 <div id="page-footer"></div>
84 // the style for all other pages
87 <div class="container">
90 if(($_REQUEST['pagename'] != "lostpass") && ($_SERVER['REQUEST_URI'] != "/"))
93 <aside class=\"col-lg-3 col-md-3 offcanvas-sm offcanvas-xs\">
94 "; if(x($page,'aside')) echo $page['aside']; echo"
95 "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
98 <div class=\"col-lg-7 col-md-7 col-sm-12 col-xs-12\" id=\"content\">
99 <section class=\"sectiontop "; echo $a->argv[0]; echo "-content-wrapper\">";
100 if(x($page,'content')) echo $page['content']; echo"
101 <div id=\"pause\"></div> <!-- The pause/resume Ajax indicator -->
109 <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" id=\"content\" style=\"margin-top:50px;\" >
110 "; if(x($page,'content')) echo $page['content']; echo"
116 </div><!-- container -->
118 <div id="back-to-top" title="back to top">⇧</div>
122 <?php if(x($page,'footer')) echo $page['footer']; ?>
124 <div id="modal" class="modal fade" tabindex="-1" role="dialog" 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 -->
140 <!-- Dummy div to append other div's when needed (e.g. used for js function editpost() -->
141 <div id="cache-container"></div>
144 <?php } ?> <!-- End of condition if $minal else the rest -->