Exemplo n.º 1
0
 /**
  * @return string
  */
 public function getMetadatas()
 {
     $html = '';
     foreach ($this->page->getMetas() as $type => $metas) {
         foreach ((array) $metas as $name => $meta) {
             list($content, $extras) = $meta;
             if (!empty($content)) {
                 $html .= sprintf("<meta %s=\"%s\" content=\"%s\" />\n", $type, $this->normalize($name), $this->normalize($content));
             } else {
                 $html .= sprintf("<meta %s=\"%s\" />\n", $type, $this->normalize($name));
             }
         }
     }
     return $html;
 }