ajout des balises opengraph title et description
This commit is contained in:
parent
32f39b3feb
commit
62a1ce7f0d
@ -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 :
|
||||
|
@ -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'] . '" />';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user