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
19
view/php/default.php
Normal file
19
view/php/default.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html >
|
||||
<html itemscope itemtype="http://schema.org/Blog" lang="<?php echo $lang; ?>">
|
||||
<head>
|
||||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
|
||||
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php if(x($page,'nav')) echo $page['nav']; ?>
|
||||
<aside><?php if(x($page,'aside')) echo $page['aside']; ?></aside>
|
||||
<section>
|
||||
<?php if(x($page,'content')) echo $page['content']; ?>
|
||||
<div id="pause"></div> <!-- The pause/resume Ajax indicator -->
|
||||
<div id="page-footer"></div>
|
||||
</section>
|
||||
<right_aside><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></right_aside>
|
||||
<footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
|
||||
</body>
|
||||
</html>
|
14
view/php/minimal.php
Normal file
14
view/php/minimal.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html >
|
||||
<html>
|
||||
<head>
|
||||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
|
||||
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
|
||||
</head>
|
||||
<body>
|
||||
<section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important;display:block!important;"><?php if(x($page,'content')) echo $page['content']; ?>
|
||||
<div id="page-footer"></div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
11
view/php/none.php
Normal file
11
view/php/none.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?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