22 lines
935 B
PHP
22 lines
935 B
PHP
<?php
|
|
class default_start implements SYSTEM\PAGE\Page {
|
|
public static function title(){
|
|
return \SYSTEM\PAGE\text::get('title_start');}
|
|
public static function meta(){
|
|
return \SYSTEM\PAGE\text::tag('meta_start');}
|
|
private $hash = NULL;
|
|
public function __construct($hash) {
|
|
$this->hash = $hash;}
|
|
public static function js(){
|
|
return array( new PPAGE('default_start/js/default_start.js'),
|
|
new PPAGE('default_start/js/default_log.js'));
|
|
}
|
|
public static function css(){
|
|
return array( new PPAGE('default_start/css/default_start.css'));}
|
|
public function html(){
|
|
$vars = array();
|
|
$vars['hash'] = $this->hash ? $this->hash : '';
|
|
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag('slingit'));
|
|
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_start/tpl/default_start.tpl'))->SERVERPATH(), $vars);
|
|
}
|
|
} |