Skip to content
Extraits de code Groupes Projets
Valider 02ccfd4e rédigé par nicod's avatar nicod
Parcourir les fichiers

fix: Infos de titre plus utiles et lisibles

parent 128255aa
Aucune branche associée trouvée
Étiquettes spip/4.0.0-beta v0.4.1
Aucune requête de fusion associée trouvée
......@@ -113,7 +113,7 @@ function _block_charger_block(int $id_block): string {
'id_objet' => $id_block,
// 'id_block' => 'new',
'blocktype_parent' => block_get_blocktype($id_block),
'edit_block' => 1,
'edit_block' => 1,
],
[
'ajax' => 'new_block-' . $id_block,
......@@ -205,10 +205,10 @@ function generer_TITRE_BLOCK($id_block): string {
'spip_blocks',
'id_block = ' . (int)$id_block
)) {
$titre = blocktype_info($infos['blocktype'], 'titre');
$titre = _T('block:titre_block') . ' ' . blocktype_info($infos['blocktype'], 'titre');
if ($infos['id_objet'] && $infos['objet']) {
$titre = $titre . ' - ' . _T(objet_info($infos['objet'], 'texte_objet'));
$titre .= ' ' . $infos['id_objet'] . ' : ' . generer_objet_info($infos['id_objet'], $infos['objet'], 'titre');
$titre = $titre . ' - ' . _T(objet_info($infos['objet'], 'texte_objet')) . ' ' . $infos['id_objet'];
$titre .= ' (' . generer_objet_info($infos['id_objet'], $infos['objet'], 'titre').')';
}
} else {
$titre = _T('block:titre_block') . ' ' . $id_block;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter