Update 1.4
This commit is contained in:
parent
8126e99fb3
commit
72322737bf
@ -30,6 +30,7 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)
|
||||
$articleID = $result[0]['ID'];
|
||||
$articleTitle = $result[0]['title'];
|
||||
$articleResume = $result[0]['resume'];
|
||||
$articleDescription = str_replace("<br />", "", $articleResume);
|
||||
$miniatureURL = $result[0]['miniature'];
|
||||
$authorUsername = $result[0]['username'];
|
||||
$authorDisplayName = $result[0]['display_name'];
|
||||
@ -61,14 +62,14 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)
|
||||
echo ('<meta charset="UTF-8">');
|
||||
echo ('<meta name="viewport" content="width=device-width, initial-scale=1.0">');
|
||||
|
||||
echo ('<meta name="description" content="' . $articleResume . '">');
|
||||
echo ('<meta name="description" content="' . $articleDescription . '">');
|
||||
echo ('<meta name="author" content="' . $authorDisplayName . '">');
|
||||
|
||||
echo ('<meta property="og:locale" content="fr_FR">');
|
||||
echo ('<meta property="og:site_name" content="E59">');
|
||||
echo ('<meta property="og:type" content="article">');
|
||||
echo ('<meta property="og:title" content="' . $articleTitle . '">');
|
||||
echo ('<meta property="og:description" content="' . $articleResume . '">');
|
||||
echo ('<meta property="og:description" content="' . $articleDescription . '">');
|
||||
echo ('<meta property="og:url" content="' . $rootPageURL . 'news?article=' . $articleID . '">');
|
||||
echo ('<meta property="og:image" content="' . $rootPageURL . $miniatureURL . '">');
|
||||
echo ('<meta property="og:image:width" content="500">');
|
||||
@ -80,11 +81,11 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)
|
||||
echo ('<meta property="twitter:card" content="summary_large_image">');
|
||||
echo ('<meta property="twitter:site" content="@clubreseaux">');
|
||||
echo ('<meta property="twitter:title" content="' . $articleTitle . '">');
|
||||
echo ('<meta property="twitter:description" content="' . $articleResume . '">');
|
||||
echo ('<meta property="twitter:description" content="' . $articleDescription . '">');
|
||||
echo ('<meta property="twitter:url" content="' . $rootPageURL . 'news?article=' . $articleID . '">');
|
||||
echo ('<meta property="twitter:image" content="' . $rootPageURL . $miniatureURL . '">');
|
||||
echo ('<meta property="ownpage:title" content="' . $articleTitle . '">');
|
||||
echo ('<meta property="ownpage:description" content="' . $articleResume . '">');
|
||||
echo ('<meta property="ownpage:description" content="' . $articleDescription . '">');
|
||||
echo ('<meta property="ownpage:published_date" content="' . $pubDateTime . '">');
|
||||
echo ('<meta property="ownpage:image" content="' . $rootPageURL . $miniatureURL . '">');
|
||||
echo ('<meta property="ownpage:offer_url" content="' . $rootPageURL . 'news?article=' . $articleID . '">');
|
||||
|
Loading…
x
Reference in New Issue
Block a user