modifiche per eliminare il tag meta author da alcune pagine.
modifiche su metadata opengraph per gli articoli
This commit is contained in:
@@ -31,9 +31,16 @@ class GUIHandler {
|
||||
$description = $data["description"];
|
||||
}
|
||||
|
||||
$useAuthor = true;
|
||||
$author = $conf->info->author;
|
||||
if (array_key_exists("author", $data)){
|
||||
$author = $data["author"];
|
||||
if ($data["author"] === false){
|
||||
$useAuthor = false;
|
||||
$author = "";
|
||||
}
|
||||
else {
|
||||
$author = $data["author"];
|
||||
}
|
||||
}
|
||||
|
||||
header("Content-type: text/html; charset=utf-8");
|
||||
@@ -44,7 +51,9 @@ class GUIHandler {
|
||||
echo "<title>$title</title>\n";
|
||||
echo "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n";
|
||||
echo "<meta name=\"description\" content=\"$description\">\n";
|
||||
echo "<meta name=\"author\" content=\"$author\">\n";
|
||||
if ($useAuthor){
|
||||
echo "<meta name=\"author\" content=\"$author\">\n";
|
||||
}
|
||||
echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge,chrome=1\">\n";
|
||||
echo '<link rel="shortcut icon" href="images/favicon.ico">'."\n";
|
||||
echo '<link href="http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext" rel="stylesheet" type="text/css">'."\n";
|
||||
|
||||
Reference in New Issue
Block a user