@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $les_couleurs = $couleurs(); |
| 46 | 46 | foreach ($les_couleurs as $k => $c) { |
| 47 | 47 | $valeurs['_couleurs_url'][$k] = generer_url_public('style_prive.css', 'ltr=' |
| 48 | - . $GLOBALS['spip_lang_left'] . '&' |
|
| 48 | + . $GLOBALS['spip_lang_left'].'&' |
|
| 49 | 49 | . $couleurs($k)); |
| 50 | 50 | $valeurs['couleurs'][$k] = $c; |
| 51 | 51 | } |
@@ -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 | } |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | // Espacements pour le rythme vertical et les gouttières |
| 51 | 51 | // Basés sur la hauteur d'une ligne de texte à la racine du document |
| 52 | - $vars->add('--spip-spacing-y', round(strmult($Pile[0]['font-size'], $Pile[0]['line-height']), 4) . 'rem'); |
|
| 53 | - $vars->add('--spip-spacing-x', round(strmult($Pile[0]['font-size'], $Pile[0]['line-height']), 4) . 'rem'); |
|
| 52 | + $vars->add('--spip-spacing-y', round(strmult($Pile[0]['font-size'], $Pile[0]['line-height']), 4).'rem'); |
|
| 53 | + $vars->add('--spip-spacing-x', round(strmult($Pile[0]['font-size'], $Pile[0]['line-height']), 4).'rem'); |
|
| 54 | 54 | $vars->add('--spip-margin-bottom', $Pile[0]['margin-bottom']); // À déprécier |
| 55 | 55 | |
| 56 | 56 | // Bordures |
@@ -60,20 +60,20 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | // Ombres portées |
| 62 | 62 | $shadow_mini = |
| 63 | - '0 0.05em 0.1em hsla(0, 0%, 0%, 0.33),' . |
|
| 64 | - '0 0.1em 0.15em hsla(0, 0%, 0%, 0.05),' . |
|
| 63 | + '0 0.05em 0.1em hsla(0, 0%, 0%, 0.33),'. |
|
| 64 | + '0 0.1em 0.15em hsla(0, 0%, 0%, 0.05),'. |
|
| 65 | 65 | '0 0.1em 0.25em hsla(0, 0%, 0%, 0.05)'; |
| 66 | 66 | $shadow = |
| 67 | - '0 0.05em 0.15em hsla(0, 0%, 0%, 0.33),' . |
|
| 68 | - '0 0.1em 0.25em hsla(0, 0%, 0%, 0.05),' . |
|
| 67 | + '0 0.05em 0.15em hsla(0, 0%, 0%, 0.33),'. |
|
| 68 | + '0 0.1em 0.25em hsla(0, 0%, 0%, 0.05),'. |
|
| 69 | 69 | '0 0.1em 0.5em hsla(0, 0%, 0%, 0.05)'; |
| 70 | 70 | $shadow_large = |
| 71 | - '0 0.05em 0.15em hsla(0, 0%, 0%, 0.1),' . |
|
| 72 | - '0 0.2em 0.5em hsla(0, 0%, 0%, 0.1),' . |
|
| 71 | + '0 0.05em 0.15em hsla(0, 0%, 0%, 0.1),'. |
|
| 72 | + '0 0.2em 0.5em hsla(0, 0%, 0%, 0.1),'. |
|
| 73 | 73 | '0 0.2em 1em hsla(0, 0%, 0%, 0.075)'; |
| 74 | 74 | $shadow_huge = |
| 75 | - '0 0.1em 0.25em hsla(0, 0%, 0%, 0.1),' . |
|
| 76 | - '0 0.25em 1em hsla(0, 0%, 0%, 0.1),' . |
|
| 75 | + '0 0.1em 0.25em hsla(0, 0%, 0%, 0.1),'. |
|
| 76 | + '0 0.25em 1em hsla(0, 0%, 0%, 0.1),'. |
|
| 77 | 77 | '0 0.5em 2em hsla(0, 0%, 0%, 0.075)'; |
| 78 | 78 | $vars->add('--spip-box-shadow-mini', $shadow_mini); |
| 79 | 79 | $vars->add('--spip-box-shadow-mini-hover', $shadow); |
@@ -19,12 +19,12 @@ |
||
| 19 | 19 | $primary = id_table_objet($objet); |
| 20 | 20 | |
| 21 | 21 | $select = "$primary as id,lang"; |
| 22 | - $where = 'id_trad=' . intval($id_trad); |
|
| 22 | + $where = 'id_trad='.intval($id_trad); |
|
| 23 | 23 | $trouver_table = charger_fonction('trouver_table', 'base'); |
| 24 | 24 | $desc = $trouver_table($table_objet_sql); |
| 25 | 25 | if (isset($desc['field']['statut'])) { |
| 26 | 26 | $select .= ',statut'; |
| 27 | - $where .= ' AND statut!=' . sql_quote('poubelle'); |
|
| 27 | + $where .= ' AND statut!='.sql_quote('poubelle'); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | $rows = sql_allfetsel($select, $table_objet_sql, $where); |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | function formulaires_configurer_ecran_connexion_data(): array { |
| 4 | 4 | return [ |
| 5 | 5 | 'couleur_defaut' => '#db1762', |
| 6 | - 'img_fond' => _DIR_IMG . 'spip_fond_login.jpg', |
|
| 6 | + 'img_fond' => _DIR_IMG.'spip_fond_login.jpg', |
|
| 7 | 7 | ]; |
| 8 | 8 | } |
| 9 | 9 | |
@@ -77,19 +77,19 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | switch ($objet) { |
| 79 | 79 | case 'article': |
| 80 | - $libelle .= ' ' . aider('logoart'); |
|
| 80 | + $libelle .= ' '.aider('logoart'); |
|
| 81 | 81 | break; |
| 82 | 82 | case 'breve': |
| 83 | - $libelle .= ' ' . aider('breveslogo'); |
|
| 83 | + $libelle .= ' '.aider('breveslogo'); |
|
| 84 | 84 | break; |
| 85 | 85 | case 'rubrique': |
| 86 | - $libelle .= ' ' . aider('rublogo'); |
|
| 86 | + $libelle .= ' '.aider('rublogo'); |
|
| 87 | 87 | break; |
| 88 | 88 | default: |
| 89 | 89 | break; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - $options['titre'] = $img . $libelle; |
|
| 92 | + $options['titre'] = $img.$libelle; |
|
| 93 | 93 | } |
| 94 | 94 | if (!isset($options['editable'])) { |
| 95 | 95 | include_spip('inc/autoriser'); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | foreach ($etats as $etat) { |
| 115 | 115 | $logo = $chercher_logo($id_objet, $_id_objet, $etat); |
| 116 | 116 | if ($logo) { |
| 117 | - $res['logo_' . $etat] = $logo[0]; |
|
| 117 | + $res['logo_'.$etat] = $logo[0]; |
|
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | // pas de logo_on -> pas de formulaire pour le survol |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $extensions_possibles |
| 181 | 181 | ) |
| 182 | 182 | ) { |
| 183 | - $erreurs['logo_' . $etat] = _L('Extension non reconnue'); |
|
| 183 | + $erreurs['logo_'.$etat] = _L('Extension non reconnue'); |
|
| 184 | 184 | } |
| 185 | 185 | } elseif ($file and $file['error'] != 0 and isset($file['msg'])) { |
| 186 | 186 | $erreurs['message_erreur'] = $file['msg']; |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | include_spip('inc/documents'); |
| 266 | 266 | $sources = []; |
| 267 | 267 | foreach (['on', 'off'] as $etat) { |
| 268 | - $logo = 'logo_' . $etat; |
|
| 268 | + $logo = 'logo_'.$etat; |
|
| 269 | 269 | if (isset($_FILES[$logo])) { |
| 270 | 270 | if ($_FILES[$logo]['error'] == 0) { |
| 271 | 271 | $sources[$etat] = $_FILES[$logo]; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | foreach ($langues as $l) { |
| 32 | 32 | $res .= "<option value='$l'" |
| 33 | 33 | . ($l == $l_site ? " selected='selected'" : '') |
| 34 | - . '>' . traduire_nom_langue($l) . "</option>\n"; |
|
| 34 | + . '>'.traduire_nom_langue($l)."</option>\n"; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | $valeurs = [ |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | include_spip('inc/texte'); // pour aide, couper, lang |
| 49 | 49 | $info = ''; |
| 50 | 50 | if (!need_proxy($t['host'], $http_proxy, $http_noproxy)) { |
| 51 | - $info = '<strong>' . _T('page_pas_proxy') . '</strong><br />'; |
|
| 51 | + $info = '<strong>'._T('page_pas_proxy').'</strong><br />'; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // il faut fausser le proxy actuel pour faire le test ! |
@@ -61,14 +61,14 @@ discard block |
||
| 61 | 61 | $GLOBALS['meta']['http_proxy'] = $cur_http_proxy; |
| 62 | 62 | $GLOBALS['meta']['http_noproxy'] = $cur_http_noproxy; |
| 63 | 63 | if ($page) { |
| 64 | - $erreurs['message_ok'] = _T('info_proxy_ok') . "<br />$info\n<tt>" . couper(entites_html($page), 300) . '</tt>'; |
|
| 64 | + $erreurs['message_ok'] = _T('info_proxy_ok')."<br />$info\n<tt>".couper(entites_html($page), 300).'</tt>'; |
|
| 65 | 65 | $erreurs['message_erreur'] = ''; |
| 66 | 66 | } else { |
| 67 | - $erreurs['message_erreur'] = $info . _T( |
|
| 67 | + $erreurs['message_erreur'] = $info._T( |
|
| 68 | 68 | 'info_impossible_lire_page', |
| 69 | 69 | ['test_proxy' => "<tt>$test_proxy</tt>"] |
| 70 | 70 | ) |
| 71 | - . ' <b><tt>' . no_password_proxy_url($http_proxy) . '</tt></b>.' |
|
| 71 | + . ' <b><tt>'.no_password_proxy_url($http_proxy).'</tt></b>.' |
|
| 72 | 72 | . aider('confhttpproxy'); |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -112,23 +112,23 @@ discard block |
||
| 112 | 112 | return false; |
| 113 | 113 | } |
| 114 | 114 | // scheme |
| 115 | - $uri = (!empty($url['scheme'])) ? $url['scheme'] . '://' : ''; |
|
| 115 | + $uri = (!empty($url['scheme'])) ? $url['scheme'].'://' : ''; |
|
| 116 | 116 | // user & pass |
| 117 | 117 | if (!empty($url['user'])) { |
| 118 | - $uri .= $url['user'] . ':' . $url['pass'] . '@'; |
|
| 118 | + $uri .= $url['user'].':'.$url['pass'].'@'; |
|
| 119 | 119 | } |
| 120 | 120 | // host |
| 121 | 121 | $uri .= $url['host']; |
| 122 | 122 | // port |
| 123 | - $port = (!empty($url['port'])) ? ':' . $url['port'] : ''; |
|
| 123 | + $port = (!empty($url['port'])) ? ':'.$url['port'] : ''; |
|
| 124 | 124 | $uri .= $port; |
| 125 | 125 | // path |
| 126 | 126 | $uri .= $url['path']; |
| 127 | 127 | // fragment or query |
| 128 | 128 | if (isset($url['fragment'])) { |
| 129 | - $uri .= '#' . $url['fragment']; |
|
| 129 | + $uri .= '#'.$url['fragment']; |
|
| 130 | 130 | } elseif (isset($url['query'])) { |
| 131 | - $uri .= '?' . $url['query']; |
|
| 131 | + $uri .= '?'.$url['query']; |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | return $uri; |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | $id_job = job_queue_add('mail', 'Test Envoi des nouveautes', [0], 'genie/'); |
| 97 | 97 | include_spip('inc/queue'); |
| 98 | 98 | queue_schedule([$id_job]); |
| 99 | - $res['message_ok'] .= '<br />' . _T('info_liste_nouveautes_envoyee'); |
|
| 99 | + $res['message_ok'] .= '<br />'._T('info_liste_nouveautes_envoyee'); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | return $res; |