add possibility to load custom page templates + none.php pagetemplate is part of core now
This commit is contained in:
parent
26098fa263
commit
15471f3835
15 changed files with 53 additions and 49 deletions
|
@ -1,32 +0,0 @@
|
|||
<?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]);
|
||||
|
||||
// This is uncommented because we don't need it anymore.
|
||||
// We try to to use links which resulting in $_GET["mode"] = "none"
|
||||
//if($page_type === "none") {
|
||||
// $_GET["mode"] = "none";
|
||||
//}
|
||||
|
||||
if((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) {
|
||||
|
||||
require "view/theme/frio/php/modes/none.php";
|
||||
} elseif($page_type === "standard_page") {
|
||||
require "view/theme/frio/php/modes/standard.php";
|
||||
} else {
|
||||
require "view/theme/frio/php/modes/default.php";
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file view/theme/frio/php/modes/none.php
|
||||
* @brief The site template for pure content (e.g. (modals)
|
||||
*
|
||||
* This themplate is used e.g for bs modals. So outputs
|
||||
* only the pure content
|
||||
*/
|
||||
|
||||
if(x($page,'content')) echo $page['content'];
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue