]> git.mxchange.org Git - friendica.git/blob - default.php
first files - move to Version 0.1
[friendica.git] / 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 if($page_type === "modal") {
18         $_GET["mode"] = "modal";
19 }
20
21 if((isset($_GET["mode"]) AND ($_GET["mode"] == "modal"))) {
22
23         require "view/theme/frio/php/modes/modal.php";
24 } elseif($page_type === "standard_page") {
25         require "view/theme/frio/php/modes/standard.php";
26 } else {
27         require "view/theme/frio/php/modes/default.php";
28 }
29