]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/default.php
Merge branch 'master' of ../save/merge/frio into frio_merge
[friendica.git] / view / theme / frio / default.php
1 <?php 
2
3 /**
4  * @file view/theme/frio/default.php
5  * 
6  * @brief load site template in dependence of the mode
7  *      You will find the site templates under:
8  *      {{?themepath}}/php/modes/
9  */
10 require_once('view/theme/frio/php/frio_boot.php');
11
12
13 // Check if page is defined as model and set it as modal
14 // This is a workaround, where we can't change the page the
15 // page mode in the template with javascript
16 $page_type = get_page_type($a->argv[0]);
17
18 // This is uncommented because we don't need it anymore.
19 // We try to to use links which resulting in $_GET["mode"] = "none"
20 //if($page_type === "none") {
21 //      $_GET["mode"] = "none";
22 //}
23
24 if((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) {
25
26         require "view/theme/frio/php/modes/none.php";
27 } elseif($page_type === "standard_page") {
28         require "view/theme/frio/php/modes/standard.php";
29 } else {
30         require "view/theme/frio/php/modes/default.php";
31 }
32