122 lines
3.3 KiB
PHP
122 lines
3.3 KiB
PHP
<?php
|
|
if (!defined("_ECRIRE_INC_VERSION")) return;
|
|
|
|
// des champs extras
|
|
function librealire_declarer_champs_extras($champs = array()) {
|
|
$champs['spip_articles']['transcriptions'] = array(
|
|
'saisie' => 'fieldset',
|
|
'options' => array(
|
|
'nom' => _T('librealire:transcriptions'),
|
|
'label' => _T('librealire:transcriptions_label'),
|
|
'explication' => 'Utilisez les raccourcis typo courant de SPIP (lien = [texte du lien->url])...'
|
|
),
|
|
'saisies' => array(
|
|
'titre_t' => array(
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom'=>'titre_t',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => true,
|
|
'label' => _T('librealire:titre_t'),
|
|
'explication' => _T('librealire:titre_t_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
),
|
|
'source' => array(
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom'=>'source',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => true,
|
|
'label' => _T('librealire:source'),
|
|
'explication' => _T('librealire:source_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
),
|
|
'lieu' => array(
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom'=>'lieu',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => true,
|
|
'label' => _T('librealire:lieu'),
|
|
'explication' => _T('librealire:lieu_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
),
|
|
'date_t' => array(
|
|
'saisie' => 'date',
|
|
'options' => array(
|
|
'nom'=>'date_t',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => true,
|
|
'label' => _T('librealire:date_t'),
|
|
'explication' => _T('librealire:date_t_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
),
|
|
'duree' => array(
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom'=>'duree',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => false,
|
|
'label' => _T('librealire:duree'),
|
|
'explication' => _T('librealire:duree_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
),
|
|
'liens' => array(
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom'=>'liens',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => false,
|
|
'label' => _T('librealire:liens'),
|
|
'explication' => _T('librealire:liens_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
),
|
|
'evenement' => array(
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom'=>'evenement',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => false,
|
|
'label' => _T('librealire:evenement'),
|
|
'explication' => _T('librealire:evenement_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
),
|
|
'licence' => array(
|
|
'saisie' => 'checkbox',
|
|
'options' => array(
|
|
'nom'=>'licence',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => false,
|
|
'label' => _T('librealire:licence'),
|
|
'explication' => _T('librealire:licence_explications'),
|
|
'obligatoire' => false,
|
|
'datas' => array(
|
|
'verbatim' => 'verbatim',
|
|
'autrelicence' => 'autrelicence'
|
|
),
|
|
'defaut' => 'verbatim'
|
|
)
|
|
),
|
|
'creditsvisuels' => array(
|
|
'saisie' => 'input',
|
|
'options' => array(
|
|
'nom'=>'creditsvisuels',
|
|
'sql' => "text NOT NULL DEFAULT ''",
|
|
'rechercher' => false,
|
|
'label' => _T('librealire:creditsvisuels'),
|
|
'explication' => _T('librealire:creditsvisuels_explications'),
|
|
'obligatoire' => false
|
|
)
|
|
)
|
|
)
|
|
);
|
|
return $champs;
|
|
}
|