|
|
|
@ -82,6 +82,17 @@ function enfant_rub($collection, $debut = 0, $limite = 500) {
|
|
|
|
|
. (is_string($logo) ? $logo : '') |
|
|
|
|
. '</a>'; |
|
|
|
|
|
|
|
|
|
// déterminer le complément au titre, cad , la catégorie ou le préfixe. |
|
|
|
|
$complement = ''; |
|
|
|
|
if ($categorie or $prefixe) { |
|
|
|
|
include_spip('inc/contrib_rubrique'); |
|
|
|
|
$classe = 'couleur_' . rubrique_lire_categorie_secteur($id_rubrique); |
|
|
|
|
$complement = ($categorie ? _T('svptype:categorie_identifiant_label') : _T('svp:label_prefixe')) |
|
|
|
|
. " : <span class='plugin ${classe}'>" |
|
|
|
|
. ($categorie ? $categorie : $prefixe) |
|
|
|
|
. '</span></p>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$titre = bouton_block_depliable($lib_bouton, $les_sous_enfants ? false : -1, "enfants${id_rubrique}") |
|
|
|
|
. (!$complement ? '' : "\n<div class='descriptif'>${complement}</div>") |
|
|
|
|
. (!$descriptif ? '' : "\n<div class='descriptif'>${descriptif}</div>") |
|
|
|
@ -94,17 +105,6 @@ function enfant_rub($collection, $debut = 0, $limite = 500) {
|
|
|
|
|
? 'plugin-24.png' |
|
|
|
|
: ($id_parent ? 'rubrique' : 'secteur') . ($type ? '_' . $type : '') . '-24.png'; |
|
|
|
|
|
|
|
|
|
// déterminer le complément au titre, cad , la catégorie ou le préfixe. |
|
|
|
|
$complement = ''; |
|
|
|
|
if ($categorie or $prefixe) { |
|
|
|
|
include_spip('inc/contrib_rubrique'); |
|
|
|
|
$classe = 'couleur_' . rubrique_lire_categorie_secteur($id_rubrique); |
|
|
|
|
$complement = ($categorie ? _T('svptype:categorie_identifiant_label') : _T('svp:label_prefixe')) |
|
|
|
|
. " : <span class='plugin ${classe}'>" |
|
|
|
|
. ($categorie ? $categorie : $prefixe) |
|
|
|
|
. '</span></p>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$res[] = |
|
|
|
|
debut_cadre_sous_rub($icone, true, '', $titre) . |
|
|
|
|
$les_sous_enfants . |
|
|
|
|