@@ -145,8 +145,8 @@ discard block |
||
| 145 | 145 | $message_alerte_ouvrir = chercher_filtre('message_alerte_ouvrir'); |
| 146 | 146 | $message_alerte_fermer = chercher_filtre('message_alerte_fermer'); |
| 147 | 147 | $message = |
| 148 | - $message_alerte_ouvrir($titre, $class, $role, $id) . |
|
| 149 | - $texte . |
|
| 148 | + $message_alerte_ouvrir($titre, $class, $role, $id). |
|
| 149 | + $texte. |
|
| 150 | 150 | $message_alerte_fermer(); |
| 151 | 151 | |
| 152 | 152 | return $message; |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | ]; |
| 187 | 187 | $type = array_intersect(explode(' ', $class), $types); |
| 188 | 188 | $type = reset($type) ?: 'notice'; |
| 189 | - $class = trim(str_replace($types, '', $class) . " $type"); |
|
| 189 | + $class = trim(str_replace($types, '', $class)." $type"); |
|
| 190 | 190 | |
| 191 | 191 | // Role |
| 192 | 192 | $role = $role ?: 'alert'; |
@@ -217,8 +217,8 @@ discard block |
||
| 217 | 217 | $attr_data = ($type ? "data-$role=\"$type\"" : ''); |
| 218 | 218 | |
| 219 | 219 | $message = |
| 220 | - "<div class=\"$class_alerte\" role=\"$role\" $attr_id $attr_data>" . |
|
| 221 | - $titre . |
|
| 220 | + "<div class=\"$class_alerte\" role=\"$role\" $attr_id $attr_data>". |
|
| 221 | + $titre. |
|
| 222 | 222 | "<div class=\"$class_texte\">"; |
| 223 | 223 | |
| 224 | 224 | return $message; |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | $titre = "<h3>$titre</h3>"; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - return '<div class="' . $class . ($id ? "\" id=\"$id" : '') . '">' |
|
| 138 | + return '<div class="'.$class.($id ? "\" id=\"$id" : '').'">' |
|
| 139 | 139 | . ($titre ? "<div class=\"$head_class\">$titre<!--/hd--></div>" : '') |
| 140 | 140 | . '<div class="box__body clearfix">'; |
| 141 | 141 | } |
@@ -75,19 +75,18 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - $lib_bouton = (!acces_restreint_rubrique($id_rubrique) ? '' : |
|
| 79 | - http_img_pack( |
|
| 78 | + $lib_bouton = (!acces_restreint_rubrique($id_rubrique) ? '' : http_img_pack( |
|
| 80 | 79 | 'auteur-0minirezo-16.png', |
| 81 | 80 | '', |
| 82 | 81 | " width='16' height='16'", |
| 83 | 82 | _T('image_administrer_rubrique') |
| 84 | - )) . |
|
| 85 | - " <a dir='$lang_dir'" . |
|
| 86 | - ($row['lang'] !== $GLOBALS['spip_lang'] ? " hreflang='" . $row['lang'] . "'" : '') . |
|
| 87 | - " href='" . |
|
| 88 | - generer_url_entite($id_rubrique, 'rubrique') . |
|
| 89 | - "'>" . |
|
| 90 | - $rang . $titre |
|
| 83 | + )). |
|
| 84 | + " <a dir='$lang_dir'". |
|
| 85 | + ($row['lang'] !== $GLOBALS['spip_lang'] ? " hreflang='".$row['lang']."'" : ''). |
|
| 86 | + " href='". |
|
| 87 | + generer_url_entite($id_rubrique, 'rubrique'). |
|
| 88 | + "'>". |
|
| 89 | + $rang.$titre |
|
| 91 | 90 | . '</a>' |
| 92 | 91 | . (is_string($logo) ? $logo : ''); |
| 93 | 92 | |
@@ -96,8 +95,8 @@ discard block |
||
| 96 | 95 | ; |
| 97 | 96 | |
| 98 | 97 | $res[] = |
| 99 | - debut_cadre_sous_rub(($id_parent ? 'rubrique-24.png' : 'secteur-24.png'), true, '', $titre) . |
|
| 100 | - $les_sous_enfants . |
|
| 98 | + debut_cadre_sous_rub(($id_parent ? 'rubrique-24.png' : 'secteur-24.png'), true, '', $titre). |
|
| 99 | + $les_sous_enfants. |
|
| 101 | 100 | fin_cadre_sous_rub(true); |
| 102 | 101 | } |
| 103 | 102 | } |
@@ -128,10 +127,10 @@ discard block |
||
| 128 | 127 | * Si > 500 on affiche une pagination |
| 129 | 128 | */ |
| 130 | 129 | if ($nb > $limite) { |
| 131 | - $debut = _request('debut_rubrique' . $collection2) ? _request('debut_rubrique' . $collection2) : $debut; |
|
| 130 | + $debut = _request('debut_rubrique'.$collection2) ? _request('debut_rubrique'.$collection2) : $debut; |
|
| 132 | 131 | $pagination = chercher_filtre('pagination'); |
| 133 | - $pagination = '<p class="pagination">' . $pagination($nb, '_rubrique' . $collection2, $debut, $limite, true, |
|
| 134 | - 'prive') . '</p>'; |
|
| 132 | + $pagination = '<p class="pagination">'.$pagination($nb, '_rubrique'.$collection2, $debut, $limite, true, |
|
| 133 | + 'prive').'</p>'; |
|
| 135 | 134 | $limite = $debut + $limite; |
| 136 | 135 | } |
| 137 | 136 | |
@@ -158,14 +157,14 @@ discard block |
||
| 158 | 157 | changer_typo($row['lang']); |
| 159 | 158 | $lang_dir = lang_dir($row['lang']); |
| 160 | 159 | if (autoriser('voir', 'rubrique', $id_rubrique2)) { |
| 161 | - $retour .= "\n<li class='item' dir='$lang_dir'><a href='" . generer_url_entite( |
|
| 160 | + $retour .= "\n<li class='item' dir='$lang_dir'><a href='".generer_url_entite( |
|
| 162 | 161 | $id_rubrique2, |
| 163 | 162 | 'rubrique' |
| 164 | - ) . "'>" . $rang2 . $titre2 . "</a></li>\n"; |
|
| 163 | + )."'>".$rang2.$titre2."</a></li>\n"; |
|
| 165 | 164 | } |
| 166 | 165 | } |
| 167 | 166 | |
| 168 | - $retour = $pagination . $retour . $pagination; |
|
| 167 | + $retour = $pagination.$retour.$pagination; |
|
| 169 | 168 | |
| 170 | 169 | if (!$retour) { |
| 171 | 170 | return ''; |
@@ -174,7 +173,7 @@ discard block |
||
| 174 | 173 | return debut_block_depliable($debut > 0 ? true : false, "enfants$collection2") |
| 175 | 174 | . "\n<ul class='liste-items sous-sous-rub'>\n" |
| 176 | 175 | . $retour |
| 177 | - . "</ul>\n" . fin_block() . "\n\n"; |
|
| 176 | + . "</ul>\n".fin_block()."\n\n"; |
|
| 178 | 177 | } |
| 179 | 178 | |
| 180 | 179 | /** |
@@ -196,10 +195,10 @@ discard block |
||
| 196 | 195 | $nb = sql_countsel('spip_rubriques', 'id_parent='.intval($id_rubrique)); |
| 197 | 196 | |
| 198 | 197 | if ($nb > $limite) { |
| 199 | - $debut = _request('debut_rubrique' . $id_rubrique) ? _request('debut_rubrique' . $id_rubrique) : $debut; |
|
| 198 | + $debut = _request('debut_rubrique'.$id_rubrique) ? _request('debut_rubrique'.$id_rubrique) : $debut; |
|
| 200 | 199 | $pagination = chercher_filtre('pagination'); |
| 201 | - $pagination = '<br class="nettoyeur"><p class="pagination">' . |
|
| 202 | - $pagination($nb, '_rubrique' . $id_rubrique, $debut, $limite, true, 'prive') . |
|
| 200 | + $pagination = '<br class="nettoyeur"><p class="pagination">'. |
|
| 201 | + $pagination($nb, '_rubrique'.$id_rubrique, $debut, $limite, true, 'prive'). |
|
| 203 | 202 | '</p>'; |
| 204 | 203 | } |
| 205 | 204 | |