Commit 39ab4221 authored by JM Oupah's avatar JM Oupah

V1.4.2 : gestion de l'adresse email dans Identité Extra

parent e05cda5d
[<!--(#REM)
http://schema-creator.org/organization.php
-->]
<div class="schema organization" itemscope itemtype="http://schema.org/Organization">
[<div itemprop="name" class="item organization__nom">
<a itemprop="url" href="#URL_SITE_SPIP"><strong>(#IDENTITE_NOM_ORGANISATION)</strong></a>
</div>]
[<div class="organization__adresse item" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<i class="icon-location"></i>
<span class="item__sub">
<span class="#EDIT{meta-identite_extra/adresse}" itemprop="streetAddress">(#IDENTITE_ADRESSE)</span><span class="sep">, </span>
</span>
<span class="item__sub">
[<span class="#EDIT{meta-identite_extra/code_postal} code-postal zip" itemprop="postalCode">(#IDENTITE_CODE_POSTAL)</span>][
<span class="#EDIT{meta-identite_extra/ville} ville" itemprop="addressLocality">(#IDENTITE_VILLE)</span>][<span class="sep">, </span>
<span class="#EDIT{meta-identite_extra/region} region" itemprop="addressRegion">(#IDENTITE_REGION)</span>][<span class="sep">, </span>
<span class="#EDIT{meta-identite_extra/pays} pays" itemprop="addressCountry">(#IDENTITE_PAYS)</span>]
</span>
</div>]
<div class="item">
[T : <a href="tel:#IDENTITE_TELEPHONE" class="organization__telephone telephone" itemprop="telephone">(#IDENTITE_EMAIL)</a>]
[M : <a href="mailto:#IDENTITE_EMAIL" class="organization__email email" itemprop="email">(#IDENTITE_EMAIL)</a>]
</div>
</div><!-- .schema.organization -->
\ No newline at end of file
<paquet
prefix="zcm"
categorie="squelette"
version="1.4.1"
version="1.4.2"
etat="test"
compatibilite="[3.2.0;3.2.*]"
logo="prive/themes/spip/images/zcm-32.png"
......
......@@ -3,6 +3,21 @@
// Sécurité
if (!defined('_ECRIRE_INC_VERSION')) {return;}
// Ajout du champ téléphone dans Identité Extra
$GLOBALS['spip_pipeline']['identite_extra_champs'] .= "|zcm_champs_identite";
function zcm_champs_identite($champs){
$nouveaux_champs = array(
'email'
);
// on complète le liste
$champs = array_merge($champs, $nouveaux_champs);
return $champs;
}
// H2 par défaut pour les intertitres
$GLOBALS['debut_intertitre'] = "\n<h2 class=\"spip\">\n";
$GLOBALS['fin_intertitre'] = "</h2>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment