Squelette simple et complet sous Bootstrap4.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
781 B

<?php
if (!defined("_ECRIRE_INC_VERSION")) {
return;
}
function kamakura_declarer_champs_extras($champs = array()) {
// Table spip_rubriques
$champs['spip_rubriques']['kamakura_type_rubrique'] = array(
'saisie' => 'radio',
'options' => array(
'nom' => 'kamakura_type_rubrique',
'label' => _T('kamakura:kamakura_type_rubrique'),
'sql' => "varchar(30) NOT NULL DEFAULT ''",
'defaut' => 'tri_date',
'data' => array(
'tri_date' => _T('kamakura:kamakura_type_rubrique_tri_date'),
'tri_num' => _T('kamakura:kamakura_type_rubrique_tri_num'),
),
'restrictions'=>array('voir' => array('auteur' => ''), //Tout le monde peut voir
'modifier' => array('auteur' => 'webmestre')), //Seuls les webmestres peuvent modifier
),
);
return $champs;
}