Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Commit

Permalink
Un portfolio simple sur les articles page
Browse files Browse the repository at this point in the history
  • Loading branch information
kent1D committed Jun 27, 2013
1 parent cd446cf commit 09bf6ce
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
8 changes: 2 additions & 6 deletions geodiversite/content/article-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ <h1 class="entry-title h1">#TITRE</h1>
</div>
[(#REM) Inclure le modele des liens de traductions ]
#MODELE{article_traductions}

</div>

<div class="surlignable">
Expand All @@ -28,11 +27,8 @@ <h1 class="entry-title h1">#TITRE</h1>
[(#REM) Gestion du portfolio et des documents
Le critere {env} permet de passer d'autres arguments de la page
par exemple l'id_document choisi pour un affichage complet

[(#INCLURE{fond=inc-documents-noflv}
{id_article}
{env}
)]]
]
[(#INCLURE{fond=inclure/inc-documents-images,id_article,ajax,env})]
</div>

[(#REM) Petition :
Expand Down
1 change: 1 addition & 0 deletions geodiversite/geol.css.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
.documents_annexes .documents_portfolio { text-align: left; }
.documents_annexes .documents_portfolio .liste-items .item { display: inline-block; text-align: center; }
.documents_annexes .documents_portfolio .spip_logos { border: 1px solid #aaa; padding: 4px; }
.documents_annexes .documents_portfolio .on .spip_logos { border: 3px solid #aaa; padding: 2px; }
.documents_annexes .documents_portfolio a { border: 0; }

/* Listes d'articles et extraits introductifs */
Expand Down
25 changes: 25 additions & 0 deletions geodiversite/inclure/inc-documents-images.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div class="documents_annexes">
<BOUCLE_document_previsu(DOCUMENTS){id_article}{id_document}>
<div id="document_previsu">
[(#INCLURE{fond=inclure/media_doc,id_document,id_article,largeur=560,hauteur=430,class=media,self=#SELF,modifier_echelle})]
[<div class="titre #EDIT{titre}">(#TITRE)</div>]
[<div class="descriptif #EDIT{descriptif}">(#DESCRIPTIF)</div>]
[<div class="credits #EDIT{credits}">(#CREDITS)</div>]
</div>
</BOUCLE_document_previsu>

<B_doc>
<div class="liste documents documents_portfolio">
<ul class="liste-items">
<BOUCLE_doc(DOCUMENTS){id_article}{mode=document}{vu=non}>
<li class="item #EXPOSE">
<a href="[(#SELF|parametre_url{id_document,#ID_DOCUMENT}|ancre_url{document_previsu})]" type="#MIME_TYPE"
rel="documents_portfolio[-a(#ID_ARTICLE)][-r(#ID_RUBRIQUE)]" class="ajax">
[(#LOGO_DOCUMENT|image_passe_partout{#ENV{largeur,52},#ENV{hauteur,52}}|image_recadre{#ENV{largeur,52},#ENV{hauteur,52},center}|inserer_attribut{alt,[(#INFO_TITRE{#OBJET,#ID_OBJET}|texte_backend)]})]
</a>
</li>
</BOUCLE_doc>
</ul>
</div>
</B_doc>
</div>

0 comments on commit 09bf6ce

Please sign in to comment.