3 * @file view/theme/frio/php/modes/default.php
4 * @brief The default site template
10 use Friendica\Core\Config;
11 use Friendica\Core\PConfig;
12 use Friendica\Core\System;
14 require_once 'view/theme/frio/php/frio_boot.php';
16 // $minimal = is_modal();
17 if (!isset($minimal)) {
23 <title><?php if (x($page, 'title')) echo $page['title'] ?></title>
24 <meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
25 <script type="text/javascript">var baseurl = "<?php echo System::baseUrl(); ?>";</script>
26 <script type="text/javascript">var frio = "<?php echo 'view/theme/frio'; ?>";</script>
28 $baseurl = System::baseUrl();
29 $frio = "view/theme/frio";
30 // Because we use minimal for modals the header and the included js stuff should be only loaded
31 // if the page is an standard page (so we don't have it twice for modals)
33 /// @todo Think about to move js stuff in the footer
34 if (!$minimal && x($page, 'htmlhead')) {
35 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');
56 <meta name="theme-color" content="' . $nav_bg . '" />';
60 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
62 if (x($page, 'nav') && !$minimal) {
65 Config::get('config', 'sitename'),
68 Config::get('system', 'banner'),
74 // special minimal style for modal dialogs
77 <section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important;display:block!important;">
78 <?php if (x($page, 'content')) echo $page['content']; ?>
79 <div id="page-footer"></div>
83 // the style for all other pages
86 <div class="container">
89 if ((!x($_REQUEST, 'pagename') || $_REQUEST['pagename'] != "lostpass") && ($_SERVER['REQUEST_URI'] != "/")) {
91 <aside class="col-lg-3 col-md-3 offcanvas-sm offcanvas-xs">';
93 if (x($page, 'aside')) {
97 if (x($page, 'right_aside')) {
98 echo $page['right_aside'];
104 <div class="col-lg-7 col-md-7 col-sm-12 col-xs-12" id="content">
105 <section class="sectiontop ';
107 echo '-content-wrapper">';
108 if (x($page, 'content')) {
109 echo $page['content'];
112 <div id="pause"></div> <!-- The pause/resume Ajax indicator -->
118 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="content" style="margin-top:50px;">';
119 if (x($page, 'content')) {
120 echo $page['content'];
128 </div><!-- container -->
130 <div id="back-to-top" title="back to top">⇧</div>
134 <?php if (x($page, 'footer')) echo $page['footer']; ?>
136 <div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
137 <div class="modal-dialog modal-full-screen">
138 <div class="modal-content">
139 <div id="modal-header" class="modal-header">
140 <button id="modal-cloase" type="button" class="close" data-dismiss="modal" aria-hidden="true">
143 <h4 id="modal-title" class="modal-title"></h4>
145 <div id="modal-body" class="modal-body">
146 <!-- /# content goes here -->
152 <!-- Dummy div to append other div's when needed (e.g. used for js function editpost() -->
153 <div id="cache-container"></div>
156 <?php } ?> <!-- End of condition if $minimal else the rest -->