Changeset 53922 in spip-zone
- Timestamp:
- Oct 31, 2011, 10:24:40 PM (9 years ago)
- Location:
- _plugins_/sel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/sel/pipelines/complement_editer_auteur.php
r53891 r53922 1 1 <?php 2 2 function sel_editer_contenu_objet($flux){ 3 3 $spip_branche_principale = substr($GLOBALS[spip_version_branche], 0, 1); 4 4 if ($flux['args']['type']=='auteur') { 5 5 6 $flux['data'] = preg_replace('%(<li class="editer editer_bio(.*?)</li>)%is','',$flux['data']); 7 $flux['data'] = preg_replace('%(<li class="editer editer_pgp(.*?)</li>)%is','',$flux['data']); 6 if ($spip_branche_principale==3) $flux['data'] = preg_replace('%(<li class="editer editer_bio(.*?)</li>)%is','',$flux['data']); 7 if ($spip_branche_principale==2) $flux['data'] = preg_replace('%(<li class="editer_bio(.*?)</li>)%is','',$flux['data']); 8 9 if ($spip_branche_principale==3) $flux['data'] = preg_replace('%(<li class="editer editer_pgp(.*?)</li>)%is','',$flux['data']); 10 if ($spip_branche_principale==2) $flux['data'] = preg_replace('%(<li class="editer_pgp(.*?)</li>)%is','',$flux['data']); 8 11 9 12 // visiteur (6forum) : utilisateur non certifié --> pas d'accès aux statuts des utilisateurs … … 14 17 15 18 if (in_array($GLOBALS[auteur_session][statut],array('','1comite','6forum'))) 16 { 17 $flux['data'] = preg_replace("%(<li class='editer_statut'>(.*?)</script>(.*?)</li>)%is","",$flux['data']); 19 { 20 if ($spip_branche_principale==3) $flux['data'] = preg_replace("%(<li class='editer_statut'>(.*?)</script>(.*?)</li>)%is","",$flux['data']); 21 if ($spip_branche_principale==2) $flux['data'] = preg_replace("%(<li class='editer_statut'>(.*?)</li>)%is","",$flux['data']); 18 22 } 19 23 … … 25 29 if (($GLOBALS[auteur_session][statut]=='0minirezo') && ($GLOBALS[auteur_session][webmestre]=='oui')) 26 30 { 27 $flux['data'] = preg_replace('%(<label for="webmestre">(.*?)</label>)%is','<label for="webmestre">'._T('auteur:info_admin_statuer_webmestre').'</label>',$flux['data']); 31 if ($spip_branche_principale==3) $flux['data'] = preg_replace('%(<label for="webmestre">(.*?)</label>)%is','<label for="webmestre">'._T('auteur:info_admin_statuer_webmestre').'</label>',$flux['data']); 32 if ($spip_branche_principale==2) $flux['data'] = preg_replace("%(<label for='webmestre'>(.*?)</label>)%is","<label for='webmestre'>"._T('auteur:info_admin_statuer_webmestre').'</label>',$flux['data']); 28 33 } 29 34 -
_plugins_/sel/sel_administrations.php
r53891 r53922 46 46 sql_insertq_multi($qqs_sels, array( 47 47 array( 48 'id_sel' => ' 0',48 'id_sel' => '1', 49 49 'nom' => 'JEU', 50 50 'num_adhesion' => '', … … 67 67 68 68 array( 69 'id_sel' => ' 1',69 'id_sel' => '2', 70 70 'nom' => 'SEL de Paris', 71 71 'num_adhesion' => '', … … 87 87 ), 88 88 array( 89 'id_sel' => ' 2',89 'id_sel' => '3', 90 90 'nom' => 'SEL de Loire', 91 91 'num_adhesion' => '', … … 175 175 sql_insertq_multi($qqs_sels, array( 176 176 array( 177 'id_sel' => ' 0',177 'id_sel' => '1', 178 178 'nom' => 'JEU', 179 179 'num_adhesion' => '', … … 196 196 197 197 array( 198 'id_sel' => ' 1',198 'id_sel' => '2', 199 199 'nom' => 'SEL de Paris', 200 200 'num_adhesion' => '', … … 215 215 'cotisation_montant_taux' => '' 216 216 ), 217 array( 218 'id_sel' => '2', 217 218 array( 219 'id_sel' => '3', 219 220 'nom' => 'SEL de Loire', 220 221 'num_adhesion' => '', -
_plugins_/sel/sommaire.html
r53859 r53922 1 <!-- PAGE SOMMAIRE à inclusions CONDITIONNELLES : SPIP3 par défaut / SPIP2 sinon --> 2 1 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 4 [(#REM) Cf.: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ ] … … 10 12 <title>[(#NOM_SITE_SPIP|textebrut)][ - (#SLOGAN_SITE_SPIP|textebrut)]</title> 11 13 [<meta name="description" content="(#DESCRIPTIF_SITE_SPIP|couper{150}|textebrut)" />] 12 <INCLURE{fond=inclure/head} /> 14 [(#CHEMIN{inclure/head.html}|oui) <INCLURE{fond=inclure/head} />] 15 [(#CHEMIN{inclure/head.html}|non) <INCLURE{fond=inc-head}>] 13 16 </head> 14 17 15 18 <body class="pas_surlignable page_sommaire"> 16 19 <div class="page"> 20 [(#CHEMIN{inclure/header.html}|oui) <INCLURE{fond=inclure/header}{home=oui} />] 21 [(#CHEMIN{inclure/header.html}|non) <INCLURE{fond=inc-entete}>] 17 22 18 <INCLURE{fond=inclure/header}{home=oui} /> 19 <INCLURE{fond=inclure/nav,env} /> 23 [(#CHEMIN{inclure/nav.html}|oui) <INCLURE{fond=inclure/nav,env} />] 24 [(#CHEMIN{inclure/nav.html}|non) <INCLURE{fond=inc-rubriques}>] 25 20 26 #FORMULAIRE_RECHERCHE 21 27 … … 23 29 <div class="content" id="content"> 24 30 [<div class="chapo">(#DESCRIPTIF_SITE_SPIP)</div>] 25 <INCLURE{fond=inclure/recents,env,ajax} />31 [(#CHEMIN{inclure/recents.html}|oui) <INCLURE{fond=inclure/recents,env,ajax} />] 26 32 27 33 #FORMULAIRE_EDITER_AUTEUR … … 32 38 33 39 <div class="aside"> 34 <INCLURE{fond=inclure/navsub} />40 [(#CHEMIN{inclure/navsub.html}|oui) <INCLURE{fond=inclure/navsub} />] 35 41 36 42 [(#REM) Breves ] … … 73 79 </div><!--.aside--> 74 80 75 <INCLURE{fond=inclure/footer, skel=#SQUELETTE} /> 76 81 [(#CHEMIN{inclure/footer.html}|oui) <INCLURE{fond=inclure/footer, skel=#SQUELETTE} />] 82 [(#CHEMIN{inclure/footer.html}|non) <INCLURE{fond=inc-pied}{skel=#SQUELETTE}>] 83 77 84 </div><!--.page--> 78 85 </body>
Note: See TracChangeset
for help on using the changeset viewer.