[(#REM) Présentation résumée d'un abonnement et de l'offre associée. Si on trouve une commande liée à l'abonnement, on prend certaines infos dans cette dernière en priorité, car ça peut différer de ce qu'il y a dans l'offre (prix, durée, etc). **Important** : la commande est supposée ne comprendre que l'offre d'abonnement. On affiche les informations suivantes : - Logo et titre de l'offre - Infos techniques de l'abo : prix, dates... - Descriptif de l'offre Paramètres : **obligatoire - **id_abonnement - masquer : tableau d'éléments à masquer logo | descriptif - class : classe ajoutée au conteneur ] [(#REM) L'offre d'abonnement liée ] #SET{offre,#ARRAY{ logo, #LOGO_ABONNEMENTS_OFFRE|extraire_attribut{src}, titre, #TITRE, prix, #PRIX*, renouvellement, #RENOUVELLEMENT_AUTO, periode, #PERIODE, duree, #DUREE, descriptif, #DESCRIPTIF, }} [(#REM) L'éventuelle commande liée ] #SET{commande,#ARRAY{ prix, #PRIX*, reference, #REFERENCE, periode, #ECHEANCES_TYPE|replace{annee,an}, renouvellement, #ECHEANCES_TYPE|?{on}, }} [(#REM) L'abonnement lui-même ] [(#REM) Infos sur l'abonnement : prendre en priorité dans la commande éventuelle ] #SET{prix, #GET{commande/prix}|sinon{#GET{offre/prix}}} #SET{renouvellement, #GET{commande}|?{#GET{commande/renouvellement},#GET{offre/renouvellement}}} #SET{periode, #GET{commande/periode}|sinon{#GET{offre/periode}}} #SET{duree, #GET{offre/duree}} #SET{actif, #PUBLIE} #SET{statut, #STATUT}
[(#REM) Logo ] [(#VAL{logo}|in_any{#ENV{masquer}}|non) [
(#GET{offre/logo}|balise_img{'','abonnement__logo spip_logo'})
] ] [(#REM) Ttire, infos techniques, descriptif ]
[

(#GET{offre/titre})

]
[(#REM) Commande liée éventuelle ]
[<:commandes:commande_titre:> (#GET{commande/reference}) ]
[(#REM) Montant et période éventuelle ]
<:abonnement:label_montant:> [(#GET{prix}|prix_formater)] [(#GET{renouvellement}|oui) / [(#VAL{abonnementsoffre:champ_periode_choix_#GET{periode}}|_T)] ]
[(#REM) Durée / renouvellement ]
<:abonnement:label_duree:> [(#GET{renouvellement}|?{ <:abonnementsoffre:info_renouvellement_auto:>[ - (#DATE_FIN|intval|oui)[(#VAL{abonnement:info_date_fin}|_T{#ARRAY{date,#DATE_FIN|affdate}})]], [(#GET{duree}|abonnements_afficher_duree{#GET{periode}})] })]
[(#REM) Dates ]
<:abonnement:label_dates:> [(#GET{renouvellement}|et{#GET{actif}}|?{ [<:abonnement:label_date_depuis:> (#DATE_DEBUT|affdate)], [(#DATE_DEBUT|affdate_debut_fin{#DATE_FIN})] })]
[(#REM) Statut ]
<:abonnement:label_statut:> [(#GET{actif}|?{ <:abonnement:statut_actif|ucfirst:>, <:abonnement:statut_inactif|ucfirst:> })]
[(#VAL{descriptif}|in_any{#ENV{masquer}}|non) [
(#GET{offre/descriptif})
] ]
[(#REM) Footer : boutons, liens... ] []