ajout des balises opengraph title et description

This commit is contained in:
fredtempez 2018-10-23 16:57:19 +02:00
parent 32f39b3feb
commit 62a1ce7f0d
6 changed files with 8 additions and 5 deletions

View File

@ -6,6 +6,7 @@
- Footer dans 3 blocs contenant dans l'ordre : Texte, Réseaux sociaux, Copyright
- Pagination variable du nombres d'articles par page (news, blog et form)
- Position du module Galerie dans une page ; haut ; bas ou libre avec les doubles crochets insérés dans l'article [] (PeterRabbit)
- Prise en compte des balises OpenGraph title et description
## version 8.3.13 :
* Modifications :

View File

@ -1972,13 +1972,15 @@ class layout extends common {
*/
public function showMetaTitle() {
echo '<title>' . $this->core->output['metaTitle'] . '</title>';
echo '<meta property="og:title" content="' . $this->core->output['metaTitle'] . '" />';
}
/**
* Affiche la meta description
*/
public function showMetaDescription() {
echo '<meta name="description" content="' . $this->core->output['metaDescription'] . '">';
echo '<meta name="description" content="' . $this->core->output['metaDescription'] . '" />';
echo '<meta property="og:description" content="' . $this->core->output['metaDescription'] . '" />';
}
/**

View File

@ -1,6 +1,6 @@
<?php $layout = new layout($this); ?>
<!DOCTYPE html>
<html>
<html xmlns:og="http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -1,6 +1,6 @@
<?php $layout = new layout($this); ?>
<!DOCTYPE html>
<html>
<html xmlns:og="http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -1,6 +1,6 @@
<?php $layout = new layout($this); ?>
<!DOCTYPE html>
<html>
<html xmlns:og="http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

File diff suppressed because one or more lines are too long