Last change
on this file since 67544 was
67544,
checked in by cedric@…, 8 years ago
|
Permettre l'ajout d'un chapitre en debut de page et d'une page en debut de doc
Permettre de voir les chapitres dépubliés (basculement en mode preview)
|
File size:
849 bytes
|
Line | |
---|
1 | <BOUCLE_rub(RUBRIQUES){id_rubrique}> |
---|
2 | <h1 class="#EDIT{titre}">#TITRE</h1> |
---|
3 | <div class="#EDIT{descriptif} lead">[(#DESCRIPTIF|placeholder)]</div> |
---|
4 | <?php if ($GLOBALS['visiteur_session']['statut'] |
---|
5 | AND include_spip('inc/autoriser') |
---|
6 | AND autoriser('publierdans','rubrique','#ID_RUBRIQUE')){ |
---|
7 | ?> |
---|
8 | <div class="actions"> |
---|
9 | <BOUCLE_hasprop(ARTICLES){id_rubrique}{statut=prop}{pagination 1}> |
---|
10 | <?php if (_request('var_mode')=='preview'){ |
---|
11 | ?> |
---|
12 | <a class="btn btn-small" href="#URL_RUBRIQUE">N'afficher que les chapitres publiés</a> |
---|
13 | <?php } |
---|
14 | else { |
---|
15 | ?> |
---|
16 | <a class="btn btn-small" href="[(#URL_RUBRIQUE|parametre_url{var_mode,preview})]">Afficher les #GRAND_TOTAL chapitres en attente</a> |
---|
17 | <?php } |
---|
18 | ?> |
---|
19 | </BOUCLE_hasprop> |
---|
20 | #BOUTON_ACTION{'Ajouter une page',#URL_ACTION_AUTEUR{zdoc_ajouter_page,#ENV{id_rubrique}},'btn-small btn-primary'} |
---|
21 | </div> |
---|
22 | <?php } |
---|
23 | ?> |
---|
24 | </BOUCLE_rub> |
---|
Note: See
TracBrowser
for help on using the repository browser.