/** * Module Logic * * @return void */ public function execute() { $options = $this->options; $options[] = 'doNotSelfQlose'; if (in_array('compress', $options)) { $options[] = 'inlineInner'; } $Tag = new HTML\Tag('style', $this->args, $options); $Tag->open(); $Tag->content(); $Tag->close(); }
/** * Module Logic * * @return void */ public function execute() { if ($this->hasOption('start')) { $this->options[] = 'doNotSelfQlose'; echo new HTML\Tag('script', $this->args, $this->options); return; } $options = $this->options; $options[] = 'doNotSelfQlose'; if (in_array('compressJs', $options)) { $options[] = 'inlineInner'; } $Tag = new HTML\Tag('script', $this->args, $options); $Tag->open(); $Tag->content(); $Tag->close(); }