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 :
- URL incorrecte dans Metaimage
- 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
* Correction :

View File

@ -1821,7 +1821,7 @@ class layout extends common {
*/
public function showCopyright() {
$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>';
if(
(
@ -2129,18 +2129,23 @@ class layout extends common {
switch($socialName) {
case 'facebookId':
$socialUrl = 'https://www.facebook.com/';
$title = 'Facebook';
break;
case 'googleplusId':
$socialUrl = 'https://plus.google.com/';
$title = 'Google +';
break;
case 'instagramId':
$socialUrl = 'https://www.instagram.com/';
$title = 'Instagram';
break;
case 'pinterestId':
$socialUrl = 'https://pinterest.com/';
$title = 'Twitter';
break;
case 'twitterId':
$socialUrl = 'https://twitter.com/';
$title = 'Youtube';
break;
case 'youtubeId':
$socialUrl = 'https://www.youtube.com/channel/';
@ -2149,7 +2154,7 @@ class layout extends common {
$socialUrl = '';
}
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 !== '') {

View File

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

View File

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