Skip to content
Snippets Groups Projects
Commit 12babda9 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

rename files; add {{PAGE_TITLE}}

parent 5bb63b77
Branches
No related tags found
1 merge request!1Update 2022 12
......@@ -27,6 +27,7 @@ Variable | Description
{{NAVI_TOP}} | top navigation bar |
{{BRAND}} | sidebar: logo area on top; default color: `bg-primary`
{{NAVI_LEFT}} | left sidebar with navigation |
{{PAGE_TITLE}} | page: title in html head |
{{PAGE_HEADER_LEFT}} | page: head area left: h1 headline |
{{PAGE_HEADER_RIGHT}} | page: head area right: breadcrumb |
{{PAGE_BODY}} | page: main content |
......
This diff is collapsed.
<?php
return [
// '{{DIR_ADMINLTE}}' =>'https://cdnjs.cloudflare.com/ajax/libs/admin-lte/3.2.0/',
'{{DIR_ADMINLTE}}' =>'/vendor/admin-lte/3.2.0',
'{{DIR_ADMINLTEPLUGINS}}' =>'/vendor/admin-lte-plugins',
'{{PAGE_TITLE}}' =>'My Admin page using AdminLTE',
'{{PAGE_SKIN}}' =>'',
'{{PAGE_LAYOUT}}' =>'layout-navbar-fixed layout-fixed sidebar-mini',
'{{NAVI_TOP}}' =>'{{NAVI_TOP}}',
'{{BRAND}}' =>'<a href="/" class="brand-link bg-teal">
<!--
<img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
-->
Render
<span class="brand-text font-weight-light">AdminLTE 3</span>
</a>',
'{{NAVI_LEFT}}' =>'{{NAVI_LEFT}}',
'{{PAGE_HEADER_LEFT}}'=>'<h1>{{PAGE_HEADER_LEFT}}</h1>',
'{{PAGE_HEADER_RIGHT}}'=>'{{PAGE_HEADER_RIGHT}}',
'{{PAGE_BODY}}'=>'{{PAGE_BODY}}',
'{{PAGE_FOOTER_LEFT}}'=>'&copy; Institute for Medical education * University of Bern',
'{{PAGE_FOOTER_RIGHT}}'=>'{{TODO: PAGE_FOOTER_RIGHT}}',
];
\ No newline at end of file
......@@ -3,6 +3,8 @@
return [
'{{DIR_ADMINLTE}}' =>'/vendor/admin-lte/3.2.0',
'{{DIR_ADMINLTEPLUGINS}}' =>'/vendor/admin-lte-plugins',
'{{PAGE_TITLE}}' =>'My Admin page using AdminLTE',
'{{PAGE_SKIN}}' =>'',
'{{PAGE_LAYOUT}}' =>'layout-navbar-fixed layout-fixed sidebar-mini',
'{{NAVI_TOP}}' =>'{{NAVI_TOP}}',
......
......@@ -3,7 +3,7 @@
require_once('classes/render-adminlte.class.php');
$renderAdminLTE=new renderadminlte();
$aReplace=include("./config/replace_defaults.php.dist");
$aReplace=include("./config/page_replacements.php.dist");
// ---------- TOP BAR
$aReplace['{{NAVI_TOP}}']=''
......@@ -31,5 +31,5 @@ $aReplace['{{NAVI_LEFT}}']=''
;
// ---------- send content
$sTemplate=file_get_contents('config/00_page.tpl.php');
$sTemplate=file_get_contents('config/page.tpl.php');
echo $renderAdminLTE->render($sTemplate,$aReplace);
......@@ -9,7 +9,7 @@ require_once('inc_functions.php');
// CONFIG
// ----------------------------------------------------------------------
$aReplace=include("./config/replace_defaults.php");
$aReplace=include("./config/page_replacements.php");
// $aReplace['{{DIR_ADMINLTE}}']='/vendor/admin-lte/AdminLTE-3.2.0/';
......@@ -143,5 +143,5 @@ $aReplace['{{PAGE_BODY}}']=$sBody
// ---------- send content
$sTemplate=file_get_contents('config/00_page.tpl.php');
$sTemplate=file_get_contents('config/page.tpl.php');
echo $renderAdminLTE->render($sTemplate,$aReplace);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment