Ejemplo n.º 1
0
 public static function head()
 {
     $jdocument = self::instance();
     $meta = joosDocument::get_data('meta');
     $n = count($meta);
     $description = $keywords = false;
     for ($i = 0; $i < $n; $i++) {
         if ($meta[$i][0] == 'keywords') {
             $keywords = $meta[$i][1];
         } else {
             if ($meta[$i][0] == 'description') {
                 $description = $meta[$i][1];
             }
         }
     }
     $description ? null : $jdocument->append_meta_tag('description', joosConfig::get2('info', 'description'));
     $keywords ? null : $jdocument->append_meta_tag('keywords', joosConfig::get2('info', 'keywords'));
     if (joosDocument::$config['seotag'] == true) {
         foreach (self::$seotag as $key => $value) {
             $value != false ? $jdocument->add_meta_tag($key, $value) : null;
         }
     }
     echo $jdocument->get_head();
     // favourites icon
     if (self::$config['favicon'] == true) {
         $icon = JPATH_SITE . '/media/favicon.ico?v=2';
         echo "\t" . '<link rel="shortcut icon" href="' . $icon . '" />' . "\n\t";
     }
 }