Adaptation pour SPIP du squelette «Twenty» de html5up https://html5up.net/twenty
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
<?php
|
|
|
|
// Sécurité
|
|
if (!defined('_ECRIRE_INC_VERSION')) {return;}
|
|
|
|
// Déclaration des blocs Z
|
|
$GLOBALS['z_blocs'] = array('content', 'head', 'head_js', 'header', 'footer', 'breadcrumb');
|
|
|
|
// Activer HTML5 depuis le squelette
|
|
$GLOBALS['meta']['version_html_max'] = 'html5';
|
|
|
|
// Intertitres commençant par h2
|
|
$GLOBALS['debut_intertitre'] = "\n<h2 class=\"spip\">\n";
|
|
$GLOBALS['fin_intertitre'] = "</h2>\n";
|
|
|
|
// traitements tinytypo
|
|
if (!isset($GLOBALS['spip_pipeline']['affichage_final'])) {
|
|
$GLOBALS['spip_pipeline']['affichage_final'] = '';
|
|
}
|
|
$GLOBALS['spip_pipeline']['affichage_final'] .= '|tinytypo';
|
|
|
|
function tinytypo($texte) {
|
|
$texte = str_replace('hr class="spip"', 'hr', $texte);
|
|
$texte = str_replace('spip_out', 'external', $texte);
|
|
$texte = str_replace('spip_url', 'external', $texte);
|
|
$texte = str_replace('spip_mail', 'mailto', $texte);
|
|
$texte = str_replace('blockquote class="spip"', 'blockquote', $texte);
|
|
$texte = str_replace('<table class="spip', '<table class="table spip', $texte);
|
|
return $texte;
|
|
}
|