if(is_array($custom_metatags['regex']) AND count($custom_metatags['regex'])) { foreach ($custom_metatags['regex'] as $key => $value) { if(preg_match($key, $r_uri)){ if( $value['title'] ) $metatags['title'] = $value['title']; if( $value['description'] ) $metatags['description'] = $value['description']; if( $value['keywords'] ) $metatags['keywords'] = $value['keywords']; } } } if( $newsid ) { $metatags['keywords2'] = "{$metatags['title']} "; } else { $metatags['keywords2'] = $metatags['keywords']; } $metatags['title']=str_replace(array("{", "}", "[", "]"), "", $metatags['title']); $metatags['description']=str_replace(array("{", "}", "[", "]"), "", $metatags['description']); $metatags['keywords']=str_replace(array("{", "}", "[", "]"), "", $metatags['keywords']); $meta_keys = ( $dle_module == "showfull" ) ? "" : "<meta name=\"keywords\" content=\"{$metatags['keywords']}\" />"; $metatags = <<<HTML <meta charset="{$config['charset']}"> <title>{$metatags['title']}</title> <meta name="description" content="{$metatags['description']}"> {$meta_keys}">{$disable_index} <meta name="generator" content="DataLife Engine (DataLife Engine (DLE) — система управления сайтом и контентом. Официальный сайт.)"> <meta name="news_keywords" content="{$metatags['keywords2']}"> {$s_meta}<link rel="search" type="application/opensearchdescription+xml" href="{$config['http_home_url']}engine/opensearch.php" title="{$config['home_title']}" /> HTML; if ($canonical) { if (strpos($canonical, "//") === 0) $canonical = "https:".$canonical; elseif (strpos($canonical, "/") === 0) $canonical = "http://".$_SERVER['HTTP_HOST'].$canonical; $metatags .= <<<HTML HTML; if ($canonical) { if (strpos($canonical, "//") === 0) $canonical = "https:".$canonical; elseif (strpos($canonical, "/") === 0) $canonical = "http://".$_SERVER['HTTP_HOST'].$canonical; $metatags .= <<<HTML HTML;
In post where it is you read how to make the keywords for version 10.6 - 11. You version is 13.0 maybe that the problem, my version also old. There are a lot of new things in your code, I think that does not output because syntaxes do not fail. One thing i see output on the keywords tag {$meta_keys}. That is all you did with keywords2 make same keys2, try to replace $metatags['keywords2'] to $metatags['keys2'] .