1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/prive/squelettes/contenu/article.html
2015-04-28 17:10:23 +02:00

70 lines
2.6 KiB
HTML

[(#AUTORISER{voir,article,#ID_ARTICLE}|sinon_interdire_acces)]
<BOUCLE_article(ARTICLES){id_article}{statut==.*}{si #ENV{exec}|=={article}}>
[(#LANG|changer_typo)]
[(#BOITE_OUVRIR{[
[(#AUTORISER{modifier,article,#ID_ARTICLE})
[(#ID_ARTICLE|afficher_qui_edite{article}|non)
[(#URL_ECRIRE{article_edit,id_article=#ID_ARTICLE}|icone_verticale{<:icone_modifier_article:>,article,edit,right ajax preload})]
]
[(#ID_ARTICLE|afficher_qui_edite{article}|oui)
[(#URL_ECRIRE{article_edit,id_article=#ID_ARTICLE}|icone_verticale{#ID_ARTICLE|afficher_qui_edite{article},warning-24,'',right edition_deja ajax preload})]
]
]
[<h4 class='surtitre'>(#SURTITRE)</h4>]
<h1>[(#RANG). ](#TITRE|sinon{<:info_sans_titre:>})[(#CHEMIN_IMAGE{article-24.png}|balise_img{article,cadre-icone})]</h1>
[<h2 class='soustitre'>(#SOUSTITRE)</h2>]
],simple fiche_objet})]
[(#REM|changer_typo)]
<div class="ajax">
#FORMULAIRE_DATER{article,#ID_ARTICLE}
</div>
<div class="ajax">
#FORMULAIRE_EDITER_LIENS{auteurs,article,#ID_ARTICLE}
</div>
<!--affiche_milieu-->
<BOUCLE_proposer(ARTICLES)
{id_article}
{statut=prepa}
{id_auteur=#SESSION{id_auteur}}
{si #SESSION{statut}|=={1comite}|et{#AUTORISER{modifier,article,#ID_ARTICLE}}}
>
#BOITE_OUVRIR{'',note center proposer}
<p><:texte_proposer_publication:></p>
[(#BOUTON_ACTION{<:bouton_demande_publication:>,#URL_ACTION_AUTEUR{instituer_objet,article-#ID_ARTICLE-prop,#SELF},'',<:confirm_changer_statut:>})]
#BOITE_FERMER
</BOUCLE_proposer>
[(#STATUT|=={prop}|oui)
#BOITE_OUVRIR{'',note center propose}
<p><:text_article_propose_publication:></p>
#BOITE_FERMER
]
<div id="wysiwyg">
<INCLURE{fond=prive/objets/contenu/article,id=#ID_ARTICLE,id_article=#ID_ARTICLE,virtuel=oui,ajax=wysiwyg,wysiwyg=1}>
</div>
<div class="nettoyeur"></div>
[(#AUTORISER{modifier,article,#ID_ARTICLE})
[(#ID_ARTICLE|afficher_qui_edite{article}|non)
[(#URL_ECRIRE{article_edit,id_article=#ID_ARTICLE}|icone_verticale{<:icone_modifier_article:>,article,edit,right ajax preload})]
]
[(#ID_ARTICLE|afficher_qui_edite{article}|oui)
[(#URL_ECRIRE{article_edit,id_article=#ID_ARTICLE}|icone_verticale{#ID_ARTICLE|afficher_qui_edite{article},warning-24,'',right edition_deja ajax preload})]
]
]
#PIPELINE{afficher_complement_objet,#ARRAY{args,#ARRAY{type,article,id,#ID_ARTICLE},data,'<div class="nettoyeur"></div>'}}
#BOITE_FERMER
[(#EVAL{_AJAX}|oui)
<script type="text/javascript">/*<!\[CDATA\[*/reloadExecPage('#ENV{exec}','#navigation,#chemin,#extra');/*\]\]>*/</script>
]
</BOUCLE_article>
[(#ENV**{exec}|=={article_edit}|?{#INCLURE{fond=prive/squelettes/contenu/article_edit,redirect='',env,retourajax=oui},#REM|sinon_interdire_acces})]
<//B_article>