Affichage / masquage de la cible du dépôt d'images.
[Portfolio.git] / skins / portfolio_view.pt
1 <html xmlns="http://www.w3.org/1999/xhtml"
2 metal:use-macro="here/main_template/macros/master">
3
4 <head>
5 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
6 <metal:block metal:fill-slot="javascript_head_slot">
7 <script type="text/javascript" tal:attributes="src string:$portal_url/cart_widgets.js"></script>
8 <script type="text/javascript" tal:attributes="src string:$portal_url/photo_lightbox_viewer.js"></script>
9 <tal:block
10 tal:define="AddPortalContent modules/Products/CMFCore/permissions/AddPortalContent"
11 tal:condition="python: mtool.checkPermission(AddPortalContent, here)">
12 <script type="text/javascript" tal:attributes="src string:$portal_url/fileupload.js"charset="utf-8"></script>
13 </tal:block>
14 </metal:block>
15 <title>portfolio_view</title>
16 </head>
17
18 <body i18n:domain="portfolio">
19 <div metal:fill-slot="header" tal:omit-tag="" tal:condition="not:here/hasPresentationPage">
20 <h1 id="DesktopTitle">
21 <span tal:replace="here/title_or_id">Page Title</span>
22 </h1>
23 <div id="DesktopDescription" tal:content="structure here/Description">
24 Description of the resource goes here, perhaps even wrapping lines; this is to make it long enough to test.
25 </div>
26 </div>
27
28 <div metal:fill-slot="main" tal:omit-tag=""
29 tal:define="AddPortalContent modules/Products/CMFCore/permissions/AddPortalContent;
30 dropable python:mtool.checkPermission(AddPortalContent, here);
31 Batch python:modules['Products.Plinn'].Batch;
32 pho_start python:request.get('pho_start', 0);
33 port_start python:request.get('port_start', 0);
34 portfolios python:Batch(here.listNearestFolderContents(contentFilter={'portal_type' : 'Portfolio'}),
35 16, port_start, orphan=1, quantumleap=1, b_start_str='port_start');">
36 <div tal:condition="python:here.hasPresentationPage() and pho_start < 20"
37 tal:content="structure here/presentation_page">custom presentation</div>
38 <div tal:condition="portfolios" tal:omit-tag="">
39 <div tal:define="batch portfolios" tal:omit-tag="">
40 <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
41 <div class="portfolio_lightbox">
42 <a tal:repeat="portfolio batch"
43 tal:attributes="href portfolio/absolute_url">
44 <span tal:define="sphoto portfolio/samplePhoto" tal:omit-tag="">
45 <span tal:condition="sphoto" tal:omit-tag="">
46 <img tal:attributes="src sphoto/src;
47 alt sphoto/alt;
48 height sphoto/height;
49 width sphoto/width;"/>
50 </span>
51 <span tal:condition="not:sphoto" tal:omit-tag="">
52 <img tal:attributes="src here/empty_portfolio.gif/absolute_url;
53 alt portfolio/title_or_id"/>
54 </span>
55 </span>
56 <h3 tal:content="portfolio/Title">Portfolio title or id</h3>
57 <div tal:content="portfolio/Description"></div>
58 </a>
59 </div>
60 </div>
61 </div>
62
63 <div tal:define="batchInfos python:here.getPhotosInfos(here);
64 batch batchInfos/batch;
65 infos batchInfos/infos;
66 features batchInfos/features"
67 tal:omit-tag="">
68 <div metal:use-macro="here/photo_layout_macros/macros/grid">
69 affichage grille
70 </div>
71 </div>
72 <br clear="all"/>
73 </div>
74 </body>
75
76 </html>