Exemplo n.º 1
0
 /**
  * Add meta tag
  *
  * @param string       $key      item key
  * @param string|array $contents meta content
  * @return void
  */
 protected function addMeta($key, $contents)
 {
     $contents = (array) $contents;
     foreach ($contents as $content) {
         $content = array_key_exists($key, $this->cuts) ? $this->substr($content, $this->cuts[$key]) : $content;
         $content = in_array($key, $this->needHost) ? $this->prependHost($content) : $content;
         //            $this->frontend->meta($this->makeName())
         $this->frontend->meta()->property($this->metaItems[$key])->content($content)->load();
     }
 }