21 lines
1.1 KiB
PHP

<?php
class default_artist extends \SYSTEM\PAGE\Page {
var $id = null;
public static function js(){
return array(new PPAGE('default_artist/js/default_artist.js'));}
public function __construct($id) {
$this->id = $id;}
public function html(){
$element = array();
$element['artist_info'] = \SYSTEM\PAGE\text::get($this->id.'_info');
$element['artist_name'] = \SYSTEM\PAGE\text::get($this->id.'_name');
$element['artist_name_path'] = \SYSTEM\PAGE\text::get($this->id.'_name_path');
$element['artist_text'] = \SYSTEM\PAGE\text::get($this->id.'_text');
$element['artist_releases'] = \SYSTEM\PAGE\text::get($this->id.'_releases');
$element['artist_fb'] = \SYSTEM\PAGE\text::get($this->id.'_fb');
$element['artist_additional'] = \SYSTEM\PAGE\text::get($this->id.'_additional');
$element['IMG_PATH'] = (new PPAGE('default_page/img/'))->WEBPATH(false);
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_artist/tpl/artist.tpl'))->SERVERPATH(), $element);
}
}