示例#1
0
文件: Css.php 项目: xiphe/html
 /**
  * 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();
 }
示例#2
0
文件: Script.php 项目: xiphe/html
 /**
  * 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();
 }