Browse Source

add footer content and logo special file

master
Dom SP 3 years ago
parent
commit
c98e3044c4
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      app/controller/page.php

+ 18
- 0
app/controller/page.php View File

'templateContent'=>'maincontent.html' 'templateContent'=>'maincontent.html'
)); ));
self::folder2(); 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; break;
} }
} }
'unpublish'=>'hidden' 'unpublish'=>'hidden'
), ),
'keyfiles'=>array( 'keyfiles'=>array(
'logo'=>array(
'until'=>$f3->get("CONTENT"),
'type'=>'pic'
),
'banner'=>array( 'banner'=>array(
'until'=>$f3->get("CONTENT"), 'until'=>$f3->get("CONTENT"),
'type'=>'pic' 'type'=>'pic'
//$banner = new \Modules\CachedImage($folder->extras['banner']); //$banner = new \Modules\CachedImage($folder->extras['banner']);
$f3->set('banner',$folder->extras['banner']);//$banner->get_src(2000)); $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'] if ($folder->extras['background']
&& !$folder->config['supressBackground']) { && !$folder->config['supressBackground']) {
//$background = new \Modules\CachedImage($folder->extras['background']); //$background = new \Modules\CachedImage($folder->extras['background']);

Loading…
Cancel
Save