Merge pull request #4885 from rabuzarus/20180421_-_fix_frio_in_directory
frio - fix default template if friendica is installed into a subdirectory
This commit is contained in:
commit
afced187bc
|
@ -26,8 +26,9 @@ if (!isset($minimal)) {
|
||||||
<script type="text/javascript">var baseurl = "<?php echo System::baseUrl(); ?>";</script>
|
<script type="text/javascript">var baseurl = "<?php echo System::baseUrl(); ?>";</script>
|
||||||
<script type="text/javascript">var frio = "<?php echo 'view/theme/frio'; ?>";</script>
|
<script type="text/javascript">var frio = "<?php echo 'view/theme/frio'; ?>";</script>
|
||||||
<?php
|
<?php
|
||||||
$baseurl = System::baseUrl();
|
$basepath = $a->path ? "/" . $a->path . "/" : "/";
|
||||||
$frio = "view/theme/frio";
|
$frio = "view/theme/frio";
|
||||||
|
|
||||||
// Because we use minimal for modals the header and the included js stuff should be only loaded
|
// Because we use minimal for modals the header and the included js stuff should be only loaded
|
||||||
// if the page is an standard page (so we don't have it twice for modals)
|
// if the page is an standard page (so we don't have it twice for modals)
|
||||||
//
|
//
|
||||||
|
@ -35,6 +36,7 @@ if (!isset($minimal)) {
|
||||||
if (!$minimal && x($page, 'htmlhead')) {
|
if (!$minimal && x($page, 'htmlhead')) {
|
||||||
echo $page['htmlhead'];
|
echo $page['htmlhead'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the theme color meta
|
// Add the theme color meta
|
||||||
// It makes mobile Chrome UI match Frio's top bar color.
|
// It makes mobile Chrome UI match Frio's top bar color.
|
||||||
$uid = $a->profile_uid;
|
$uid = $a->profile_uid;
|
||||||
|
@ -60,6 +62,7 @@ if (!isset($minimal)) {
|
||||||
$is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
|
$is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="top" class="mod-<?php echo $a->module." ".$is_singleuser_class;?>">
|
<body id="top" class="mod-<?php echo $a->module." ".$is_singleuser_class;?>">
|
||||||
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
|
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
|
||||||
<?php
|
<?php
|
||||||
|
@ -90,7 +93,7 @@ if (!isset($minimal)) {
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php
|
<?php
|
||||||
if ((!x($_REQUEST, 'pagename') || $_REQUEST['pagename'] != "lostpass") && ($_SERVER['REQUEST_URI'] != "/")) {
|
if ((!x($_REQUEST, 'pagename') || $_REQUEST['pagename'] != "lostpass") && ($_SERVER['REQUEST_URI'] != $basepath)) {
|
||||||
echo '
|
echo '
|
||||||
<aside class="col-lg-3 col-md-3 offcanvas-sm offcanvas-xs">';
|
<aside class="col-lg-3 col-md-3 offcanvas-sm offcanvas-xs">';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue