v8.4.2 : conformités W3C

This commit is contained in:
fredtempez 2018-11-14 18:51:29 +01:00
parent 428c0f7324
commit bc17ea8978
6 changed files with 15 additions and 6 deletions

View File

@ -4,6 +4,10 @@
* Correction : * Correction :
- URL incorrecte dans Metaimage - URL incorrecte dans Metaimage
- Erreur dans la génération du sitemap - Erreur dans la génération du sitemap
- Taille du texte de la bannnière maximale relative (vmax)
- Préfixe des en-têtes html pour OpenGraph
- Balise Titre dans Socials
- Conformité W3C des URL dans socials
## Version 8.4.2 ## Version 8.4.2
* Correction : * Correction :

View File

@ -1821,7 +1821,7 @@ class layout extends common {
*/ */
public function showCopyright() { public function showCopyright() {
$items = '<div id="footerCopyright">'; $items = '<div id="footerCopyright">';
$items .= 'Motorisé par <a href="http://zwiicms.com/" target="_blank">Zwii</a>'; $items .= 'Motorisé par <a href="http://zwiicms.com/" onclick="window.open(this.href);return false" title="Zwii CMS sans base de données, très léger et performant">Zwii</a>';
$items .= ' | <a href="' . helper::baseUrl() . 'sitemap">Plan du site</a>'; $items .= ' | <a href="' . helper::baseUrl() . 'sitemap">Plan du site</a>';
if( if(
( (
@ -2129,18 +2129,23 @@ class layout extends common {
switch($socialName) { switch($socialName) {
case 'facebookId': case 'facebookId':
$socialUrl = 'https://www.facebook.com/'; $socialUrl = 'https://www.facebook.com/';
$title = 'Facebook';
break; break;
case 'googleplusId': case 'googleplusId':
$socialUrl = 'https://plus.google.com/'; $socialUrl = 'https://plus.google.com/';
$title = 'Google +';
break; break;
case 'instagramId': case 'instagramId':
$socialUrl = 'https://www.instagram.com/'; $socialUrl = 'https://www.instagram.com/';
$title = 'Instagram';
break; break;
case 'pinterestId': case 'pinterestId':
$socialUrl = 'https://pinterest.com/'; $socialUrl = 'https://pinterest.com/';
$title = 'Twitter';
break; break;
case 'twitterId': case 'twitterId':
$socialUrl = 'https://twitter.com/'; $socialUrl = 'https://twitter.com/';
$title = 'Youtube';
break; break;
case 'youtubeId': case 'youtubeId':
$socialUrl = 'https://www.youtube.com/channel/'; $socialUrl = 'https://www.youtube.com/channel/';
@ -2149,7 +2154,7 @@ class layout extends common {
$socialUrl = ''; $socialUrl = '';
} }
if($socialId !== '') { if($socialId !== '') {
$socials .= '<a href="' . $socialUrl . $socialId . '" target="_blank">' . template::ico(substr($socialName, 0, -2)) . '</a>'; $socials .= '<a href="' . $socialUrl . $socialId . '" onclick="window.open(this.href);return false" title="' . $title . '">' . template::ico(substr($socialName, 0, -2)) . '</a>';
} }
} }
if($socials !== '') { if($socials !== '') {

View File

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

View File

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

View File

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

View File

@ -90,7 +90,7 @@ class theme extends common {
'1.8em' => 'Petite', '1.8em' => 'Petite',
'2em' => 'Moyenne', '2em' => 'Moyenne',
'2.2em' => 'Grande', '2.2em' => 'Grande',
'2.4em' => 'Très grande' '2.4vmax' => 'Très grande'
]; ];
public static $headerHeights = [ public static $headerHeights = [
'100px' => 'Très petite (100 pixels)', '100px' => 'Très petite (100 pixels)',