Bladeren bron

add footer content and logo special file

master
Dom SP 3 jaren geleden
bovenliggende
commit
c98e3044c4
1 gewijzigde bestanden met toevoegingen van 18 en 0 verwijderingen
  1. +18
    -0
      app/controller/page.php

+ 18
- 0
app/controller/page.php Bestand weergeven

@@ -22,6 +22,17 @@ class Page {
'templateContent'=>'maincontent.html'
));
self::folder2();
$footer = new \Modules\FilesInFolders(
$f3->get('CONTENT')."footer/",
array('content'=>array(
'secondary'=>'secondary',
'zzz'=>'hidden',
'unpublish'=>'hidden'
))
);
$footer->prepare_files();
$footer->fill_content();
$f3->set('footer_content', implode("\n", $footer->content['default']));
break;
}
}
@@ -63,6 +74,10 @@ class Page {
'unpublish'=>'hidden'
),
'keyfiles'=>array(
'logo'=>array(
'until'=>$f3->get("CONTENT"),
'type'=>'pic'
),
'banner'=>array(
'until'=>$f3->get("CONTENT"),
'type'=>'pic'
@@ -105,6 +120,9 @@ class Page {
//$banner = new \Modules\CachedImage($folder->extras['banner']);
$f3->set('banner',$folder->extras['banner']);//$banner->get_src(2000));
}
if (isset($folder->extras['logo'])) {
$f3->set('logo', $folder->extras['logo']);
}
if ($folder->extras['background']
&& !$folder->config['supressBackground']) {
//$background = new \Modules\CachedImage($folder->extras['background']);

Laden…
Annuleren
Opslaan