2016-03-28 10:29:05 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file view/theme/frio/default.php
|
|
|
|
*
|
|
|
|
* @brief load site template in dependence of the mode
|
|
|
|
* You will find the site templates under:
|
|
|
|
* {{?themepath}}/php/modes/
|
|
|
|
*/
|
|
|
|
require_once('view/theme/frio/php/frio_boot.php');
|
|
|
|
|
|
|
|
|
|
|
|
// Check if page is defined as model and set it as modal
|
|
|
|
// This is a workaround, where we can't change the page the
|
|
|
|
// page mode in the template with javascript
|
|
|
|
$page_type = get_page_type($a->argv[0]);
|
2016-04-20 21:14:48 -04:00
|
|
|
|
|
|
|
// This is uncommented because we don't need it anymore.
|
2016-05-15 07:41:37 -04:00
|
|
|
// We try to to use links which resulting in $_GET["mode"] = "none"
|
|
|
|
//if($page_type === "none") {
|
|
|
|
// $_GET["mode"] = "none";
|
2016-04-20 21:14:48 -04:00
|
|
|
//}
|
2016-03-28 10:29:05 -04:00
|
|
|
|
2016-05-15 07:41:37 -04:00
|
|
|
if((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) {
|
2016-03-28 10:29:05 -04:00
|
|
|
|
2016-05-15 07:41:37 -04:00
|
|
|
require "view/theme/frio/php/modes/none.php";
|
2016-03-28 10:29:05 -04:00
|
|
|
} elseif($page_type === "standard_page") {
|
|
|
|
require "view/theme/frio/php/modes/standard.php";
|
|
|
|
} else {
|
|
|
|
require "view/theme/frio/php/modes/default.php";
|
|
|
|
}
|
|
|
|
|