amélioration blog, pagination et liste

This commit is contained in:
chankalan 2021-09-06 22:06:58 +02:00
parent 932d669180
commit c425d90991
3 changed files with 152 additions and 133 deletions

View File

@ -10,88 +10,89 @@ function libreavous_declarer_champs_extras($champs = array()) {
} }
$champs['spip_articles']['podcast_code'] = array( $champs['spip_articles']['podcast_code'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'podcast_code', 'nom' => 'podcast_code',
'label' => 'Code', 'label' => 'Code',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['podcast_duree'] = array( $champs['spip_articles']['podcast_duree'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'podcast_duree', 'nom' => 'podcast_duree',
'label' => 'Durée', 'label' => 'Durée',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['podcast_mp3'] = array( $champs['spip_articles']['podcast_mp3'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'podcast_mp3', 'nom' => 'podcast_mp3',
'label' => 'Taille mp3', 'label' => 'Taille mp3',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['podcast_ogg'] = array( $champs['spip_articles']['podcast_ogg'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'podcast_ogg', 'nom' => 'podcast_ogg',
'label' => 'Taille Ogg', 'label' => 'Taille Ogg',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['podcast_transcription'] = array( $champs['spip_articles']['podcast_transcription'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'podcast_transcription', 'nom' => 'podcast_transcription',
'label' => 'Lien transcription', 'label' => 'Lien transcription',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['podcast_personnes'] = array( $champs['spip_articles']['podcast_personnes'] = array(
'saisie' => 'textarea', 'saisie' => 'textarea',
'options' => array( 'options' => array(
'nom' => 'podcast_personnes', 'nom' => 'podcast_personnes',
'label' => 'Personnes participantes', 'label' => 'Personnes participantes',
'rows' => '10', 'rows' => '10',
'cols' => '40', 'cols' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), 'inserer_barre' => 'edition',
'verifier' => array( ),
), 'verifier' => array(
); ),
);
$champs['spip_articles']['podcast_references'] = array( $champs['spip_articles']['podcast_references'] = array(
'saisie' => 'textarea', 'saisie' => 'textarea',
'options' => array( 'options' => array(
@ -100,79 +101,81 @@ function libreavous_declarer_champs_extras($champs = array()) {
'rows' => '20', 'rows' => '20',
'cols' => '40', 'cols' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
'inserer_barre' => 'edition',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['podcast_galeriephotos'] = array( $champs['spip_articles']['podcast_galeriephotos'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'podcast_galeriephotos', 'nom' => 'podcast_galeriephotos',
'label' => 'Galerie Photos', 'label' => 'Galerie Photos',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['podcast_musique'] = array( $champs['spip_articles']['podcast_musique'] = array(
'saisie' => 'textarea', 'saisie' => 'textarea',
'options' => array( 'options' => array(
'nom' => 'podcast_musique', 'nom' => 'podcast_musique',
'label' => 'Pauses musicales', 'label' => 'Pauses musicales',
'rows' => '5', 'rows' => '5',
'cols' => '40', 'cols' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), 'inserer_barre' => 'edition',
'verifier' => array( ),
), 'verifier' => array(
); ),
);
$champs['spip_articles']['drupal_guid'] = array( $champs['spip_articles']['drupal_guid'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'drupal_guid', 'nom' => 'drupal_guid',
'label' => 'GUID Drupral', 'label' => 'GUID Drupal',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['drupal_pubdate'] = array( $champs['spip_articles']['drupal_pubdate'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'drupal_pubdate', 'nom' => 'drupal_pubdate',
'label' => 'PubDate Drupal', 'label' => 'PubDate Drupal',
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
$champs['spip_articles']['chronique'] = array( $champs['spip_articles']['chronique'] = array(
'saisie' => 'input', 'saisie' => 'input',
'options' => array( 'options' => array(
'nom' => 'chronique', 'nom' => 'chronique',
'label' => _T('libreavous:chronique_label'), 'label' => _T('libreavous:chronique_label'),
'type' => 'text', 'type' => 'text',
'size' => '40', 'size' => '40',
'autocomplete' => 'defaut', 'autocomplete' => 'defaut',
'sql' => 'text DEFAULT \'\' NOT NULL', 'sql' => 'text DEFAULT \'\' NOT NULL',
'explication' => _T('libreavous:chronique_explications'), 'explication' => _T('libreavous:chronique_explications'),
), ),
'verifier' => array( 'verifier' => array(
), ),
); );
return $champs; return $champs;
} }

View File

@ -91,11 +91,14 @@
</B_photos> </B_photos>
<div class="fb detail_emission"> <div class="fb detail_emission">
[(#PODCAST_PERSONNES|oui)<a href="#personnesparticipantes" class="btn taille70 blanc"><:libreavous:personnes_participantes:></a>] <p>[(#PODCAST_PERSONNES|oui)<a href="#personnesparticipantes" class="btn taille70 blanc"><:libreavous:personnes_participantes:></a>]
[(#PODCAST_REFERENCES|ou{#GET{references}|=={oui}}|oui)<a href="#references" class="btn taille70 blanc"><:libreavous:references:></a>] [(#PODCAST_REFERENCES|ou{#GET{references}|=={oui}}|oui)<a href="#references" class="btn taille70 blanc"><:libreavous:references:></a>]
[(#PODCAST_TRANSCRIPTION|oui)<a href="#transcription" class="btn taille70 blanc"><:libreavous:transcription:></a>] [(#PODCAST_TRANSCRIPTION|oui)<a href="#transcription" class="btn taille70 blanc"><:libreavous:transcription:></a>]
[(#PODCAST_MUSIQUE|oui)<a href="#pausesmusicales" class="btn taille70 blanc"><:libreavous:pauses_musicales:></a>] [(#PODCAST_MUSIQUE|oui)<a href="#pausesmusicales" class="btn taille70 blanc"><:libreavous:pauses_musicales:></a>]
[(#CONFIG{libreavous/licence}|oui)<a href="#licence" class="btn taille70 blanc"><:libreavous:licence:></a>] [(#CONFIG{libreavous/licence}|oui)<a href="#licence" class="btn taille70 blanc"><:libreavous:licence:></a>]
</p>
[<div class="texte #EDIT{texte}">(#TEXTE)</div>]
[<h2 id="personnesparticipantes">Personnes participantes</h2> [<h2 id="personnesparticipantes">Personnes participantes</h2>
<div class="#EDIT{podcast_personnes}">(#PODCAST_PERSONNES|propre)</div>] <div class="#EDIT{podcast_personnes}">(#PODCAST_PERSONNES|propre)</div>]

View File

@ -218,6 +218,14 @@ span.btn {
position:absolute; position:absolute;
margin-top:-2.6rem; margin-top:-2.6rem;
} }
.article_blog & {
margin-top:0;
padding:$spacer ($spacer*2);
background-color:white;
.pagination .pagination-items a, .pagination .lien_pagination a {
color:$couleurPrincipale;
}
}
} }
} }
@ -330,6 +338,8 @@ h2 {
} }
} }
.liste.articles.blog { .liste.articles.blog {
padding:$spacer ($spacer*2);
background-color:white;
.liste-items { .liste-items {
list-style:none; list-style:none;
margin:0 0 ($spacer*2); margin:0 0 ($spacer*2);
@ -634,8 +644,11 @@ div.rating-cancel a {
color:$couleurSecondaire; color:$couleurSecondaire;
} }
.pagination .pagination-items a { .pagination .pagination-items a, .pagination .lien_pagination a /* spip 3 et 4 */ {
color:white; color:white;
.composition_blog & {
color:$couleurPrincipale;
}
} }