headerText = $vars['h']; if(!empty($vars['s'])) $this->subText = $vars['s']; } public function getEffectParams(): array { $vars = []; if(!empty($this->headerText)) $vars['h'] = $this->headerText; if(!empty($this->subText)) $vars['s'] = $this->subText; return $vars; } public function applyEffect(PageBuilder $builder): void { $builder->getContainer()->appendChild(new HtmlTag('div', ['class' => 'NewCreatePageEffect_Main'], [ new HtmlTag('h1', [], [new HtmlText($this->headerText ?? 'This page is still empty')]), new HtmlTag('p', [], [new HtmlText($this->subText ?? 'Please come back later')]), ])); } }