diff --git a/core/core.php b/core/core.php index 7c6e0cc..bc51b31 100644 --- a/core/core.php +++ b/core/core.php @@ -1935,9 +1935,9 @@ class common { } /** - * Affiche les balises meta property + * Affiche les balises meta property propres à Facebook */ - public function showMetaProperty() { + public function showMetaPropertyFacebook() { echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; diff --git a/core/layout/main.php b/core/layout/main.php index b0783f0..53e4522 100644 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -3,13 +3,13 @@ $lang = $this->getData(['config', 'i18n', 'langBase']); if( $this->getInput('DELTA_I18N_SITE') !== '' && $this->getInput('DELTA_I18N_SITE') !== null && $this->getInput('DELTA_I18N_SITE') !== 'base') $lang = $this->getInput('DELTA_I18N_SITE'); ?> - +getData(['config', 'social', 'headFacebook' ]) === true) echo 'prefix="og: http://ogp.me/ns#"'; ?> lang=""> showMetaTitle(); - $this->showMetaProperty(); + if( $this->getData(['config', 'social', 'headFacebook' ]) === true) $this->showMetaPropertyFacebook(); ?> showFavicon(); diff --git a/core/module/config/config.php b/core/module/config/config.php index a5e6792..ce018ff 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -405,7 +405,8 @@ class config extends common { 'twitterId' => $this->getInput('socialTwitterId'), 'youtubeId' => $this->getInput('socialYoutubeId'), 'youtubeUserId' => $this->getInput('socialYoutubeUserId'), - 'githubId' => $this->getInput('socialGithubId') + 'githubId' => $this->getInput('socialGithubId'), + 'headFacebook' => $this->getInput('socialHeadFacebook', helper::FILTER_BOOLEAN) ], 'smtp' => [ 'enable' => $this->getInput('smtpEnable',helper::FILTER_BOOLEAN), diff --git a/core/module/config/lang/en/lex_config.php b/core/module/config/lang/en/lex_config.php index be2e617..8d6410b 100644 --- a/core/module/config/lang/en/lex_config.php +++ b/core/module/config/lang/en/lex_config.php @@ -167,6 +167,8 @@ $text['core_config_view']['social'][12] = 'Enter your ID: https://twitter.com/[I $text['core_config_view']['social'][13] = 'Enter your ID: https://pinterest.com/[ID].'; $text['core_config_view']['social'][14] = 'Enter your Linkedin ID: https://fr.linkedin.com/in/[ID].'; $text['core_config_view']['social'][15] = 'Enter your Github ID: https://github.com/[ID].'; +$text['core_config_view']['social'][16] = 'head Facebook'; +$text['core_config_view']['social'][17] = 'Insert in the head of the page the meta properties specific to Facebook'; $text['core_config']['generateFiles'][0] = 'Updated sitemap and robots.txt files'; $text['core_config']['generateFiles'][1] = 'Writing failure, site map not updated'; $text['core_config']['backup'][0] = 'Save'; diff --git a/core/module/config/lang/fr/lex_config.php b/core/module/config/lang/fr/lex_config.php index bcc32af..9b179a1 100644 --- a/core/module/config/lang/fr/lex_config.php +++ b/core/module/config/lang/fr/lex_config.php @@ -167,6 +167,8 @@ $text['core_config_view']['social'][12] = 'Saisissez votre ID : https://twitter. $text['core_config_view']['social'][13] = 'Saisissez votre ID : https://pinterest.com/[ID].'; $text['core_config_view']['social'][14] = 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].'; $text['core_config_view']['social'][15] = 'Saisissez votre ID Github : https://github.com/[ID].'; +$text['core_config_view']['social'][16] = 'head Facebook'; +$text['core_config_view']['social'][17] = 'Insère dans le head de la page les propriétés meta propres à Facebook'; $text['core_config']['generateFiles'][0] = 'Mises à jour des fichiers sitemap et robots.txt'; $text['core_config']['generateFiles'][1] = 'Echec d\'écriture, le site map n\'a pas été mis à jour'; $text['core_config']['backup'][0] = 'Sauvegarder'; diff --git a/core/module/config/view/social/social.php b/core/module/config/view/social/social.php index fa6ab5e..aaeb89c 100644 --- a/core/module/config/view/social/social.php +++ b/core/module/config/view/social/social.php @@ -102,6 +102,14 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm ]); ?> +
+
+ $this->getData(['config', 'social','headFacebook']), + 'help' => $text['core_config_view']['social'][17] + ]); ?> +
+
-