@@ -47,11 +47,11 @@ discard block |
||
| 47 | 47 | $_class = interprete_argument_balise(3, $p); |
| 48 | 48 | $_role = interprete_argument_balise(4, $p); |
| 49 | 49 | $_id = interprete_argument_balise(5, $p); |
| 50 | - $_texte = ($_texte ? $_texte : "''"); |
|
| 50 | + $_texte = ($_texte ? $_texte : "''"); |
|
| 51 | 51 | $_titre = ($_titre ? ", $_titre" : ", ''"); |
| 52 | 52 | $_class = (($_class and $_class !== "''") ? ", $_class" : ", 'notice'"); // cf. @note |
| 53 | - $_role = ($_role ? ", $_role" : ", 'alert'"); |
|
| 54 | - $_id = ($_id ? ", $_id" : ''); |
|
| 53 | + $_role = ($_role ? ", $_role" : ", 'alert'"); |
|
| 54 | + $_id = ($_id ? ", $_id" : ''); |
|
| 55 | 55 | |
| 56 | 56 | $f = chercher_filtre('message_alerte'); |
| 57 | 57 | $p->code = "$f($_texte$_titre$_class$_role$_id)"; |
@@ -88,10 +88,10 @@ discard block |
||
| 88 | 88 | $_class = interprete_argument_balise(2, $p); |
| 89 | 89 | $_role = interprete_argument_balise(3, $p); |
| 90 | 90 | $_id = interprete_argument_balise(4, $p); |
| 91 | - $_titre = ($_titre ? "$_titre" : "''"); |
|
| 91 | + $_titre = ($_titre ? "$_titre" : "''"); |
|
| 92 | 92 | $_class = (($_class and $_class !== "''") ? ", $_class" : ", 'notice'"); // cf. @note |
| 93 | - $_role = ($_role ? ", $_role" : ", 'alert'"); |
|
| 94 | - $_id = ($_id ? ", $_id" : ''); |
|
| 93 | + $_role = ($_role ? ", $_role" : ", 'alert'"); |
|
| 94 | + $_id = ($_id ? ", $_id" : ''); |
|
| 95 | 95 | |
| 96 | 96 | $f = chercher_filtre('message_alerte_ouvrir'); |
| 97 | 97 | $p->code = "$f($_titre$_class$_role$_id)"; |
@@ -154,8 +154,8 @@ discard block |
||
| 154 | 154 | $message_alerte_ouvrir = chercher_filtre('message_alerte_ouvrir'); |
| 155 | 155 | $message_alerte_fermer = chercher_filtre('message_alerte_fermer'); |
| 156 | 156 | $message = |
| 157 | - $message_alerte_ouvrir($titre, $class, $role, $id) . |
|
| 158 | - $texte . |
|
| 157 | + $message_alerte_ouvrir($titre, $class, $role, $id). |
|
| 158 | + $texte. |
|
| 159 | 159 | $message_alerte_fermer(); |
| 160 | 160 | |
| 161 | 161 | return $message; |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | ]; |
| 196 | 196 | $type = array_intersect(explode(' ', $class), $types); |
| 197 | 197 | $type = reset($type) ?: ''; |
| 198 | - $class = trim(str_replace($types, '', $class) . " $type"); |
|
| 198 | + $class = trim(str_replace($types, '', $class)." $type"); |
|
| 199 | 199 | |
| 200 | 200 | // Classes |
| 201 | 201 | $class_racine = 'msg-alert'; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $titre = "<title>[" |
| 92 | 92 | . $nom_site_spip |
| 93 | - . "] " . $match |
|
| 93 | + . "] ".$match |
|
| 94 | 94 | . "</title>"; |
| 95 | 95 | |
| 96 | 96 | $texte = substr_replace($texte, $titre, $p + 6, 0); |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | } elseif ($fond == "prive/squelettes/extra/$typepage") { |
| 149 | 149 | include_spip('inc/presentation_mini'); |
| 150 | 150 | $flux['data']['texte'] = pipeline('affiche_droite', |
| 151 | - array('args' => $flux['args']['contexte'], 'data' => $flux['data']['texte'])) . liste_objets_bloques($exec, |
|
| 151 | + array('args' => $flux['args']['contexte'], 'data' => $flux['data']['texte'])).liste_objets_bloques($exec, |
|
| 152 | 152 | $flux['args']['contexte']); |
| 153 | 153 | } elseif ($fond == "prive/squelettes/hierarchie/$typepage" and $o[$exec]) { |
| 154 | 154 | // id non defini sur les formulaire de nouveaux objets |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | ) { |
| 177 | 177 | // inserer le formulaire de traduction |
| 178 | 178 | $flux['data']['texte'] = str_replace("<!--affiche_milieu-->", recuperer_fond('prive/objets/editer/traductions', |
| 179 | - array('objet' => $objet, 'id_objet' => $id, 'espace_prive' => 1)) . "<!--affiche_milieu-->", $flux['data']['texte']); |
|
| 179 | + array('objet' => $objet, 'id_objet' => $id, 'espace_prive' => 1))."<!--affiche_milieu-->", $flux['data']['texte']); |
|
| 180 | 180 | $flux['data']['texte'] = pipeline('afficher_fiche_objet', array( |
| 181 | 181 | 'args' => array( |
| 182 | 182 | 'contexte' => $flux['args']['contexte'], |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $full_marqueur = "$ouvrir$marqueur$fermer"; |
| 240 | 240 | |
| 241 | 241 | // Le marqueur est absent : on l'ajoute avant l'élément indiqué |
| 242 | - if ($marqueur_pos === false) { |
|
| 242 | + if ($marqueur_pos === false) { |
|
| 243 | 243 | $texte = preg_replace( |
| 244 | 244 | ",$inserer_avant,", |
| 245 | 245 | "$full_marqueur\\0", |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | } elseif ( |
| 252 | 252 | $marqueur_pos !== false |
| 253 | 253 | and $encapsuler |
| 254 | - and substr($texte, $marqueur_pos-strlen($ouvrir), strlen($ouvrir)) !== $ouvrir |
|
| 254 | + and substr($texte, $marqueur_pos - strlen($ouvrir), strlen($ouvrir)) !== $ouvrir |
|
| 255 | 255 | ) { |
| 256 | 256 | $texte = substr_replace( |
| 257 | 257 | $texte, |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | } |
| 284 | 284 | } |
| 285 | 285 | if ($res) { |
| 286 | - $flux['data'] = $res . $flux['data']; |
|
| 286 | + $flux['data'] = $res.$flux['data']; |
|
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | return $flux; |