3e55e80902957ca212821bcb96b86f85d33afd16
[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 <script type="text/javascript" tal:attributes="src string:$portal_url/fileupload.js"charset="utf-8"></script>
10 </metal:block>
11 <title>portfolio_view</title>
12 </head>
13
14 <body i18n:domain="portfolio">
15 <div metal:fill-slot="header" tal:omit-tag="" tal:condition="not:here/hasPresentationPage">
16 <h1 id="DesktopTitle">
17 <span tal:replace="here/title_or_id">Page Title</span>
18 </h1>
19 <div id="DesktopDescription" tal:content="structure here/Description">
20 Description of the resource goes here, perhaps even wrapping lines; this is to make it long enough to test.
21 </div>
22 </div>
23
24 <div metal:fill-slot="main" tal:omit-tag=""
25 tal:define="Batch python:modules['Products.Plinn'].Batch;
26 pho_start python:request.get('pho_start', 0);
27 port_start python:request.get('port_start', 0);
28 portfolios python:Batch(here.listNearestFolderContents(contentFilter={'portal_type' : 'Portfolio'}),
29 16, port_start, orphan=1, quantumleap=1, b_start_str='port_start');">
30 <div tal:condition="python:here.hasPresentationPage() and pho_start < 20"
31 tal:content="structure here/presentation_page">custom presentation</div>
32 <div tal:condition="portfolios" tal:omit-tag="">
33 <div tal:define="batch portfolios" tal:omit-tag="">
34 <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
35 <div class="portfolio_lightbox">
36 <a tal:repeat="portfolio batch"
37 tal:attributes="href portfolio/absolute_url">
38 <span tal:define="sphoto portfolio/samplePhoto" tal:omit-tag="">
39 <span tal:condition="sphoto" tal:omit-tag="">
40 <img tal:attributes="src sphoto/src;
41 alt sphoto/alt;
42 height sphoto/height;
43 width sphoto/width;"/>
44 </span>
45 <span tal:condition="not:sphoto" tal:omit-tag="">
46 <img tal:attributes="src here/empty_portfolio.gif/absolute_url;
47 alt portfolio/title_or_id"/>
48 </span>
49 </span>
50 <h3 tal:content="portfolio/Title">Portfolio title or id</h3>
51 <div tal:content="portfolio/Description"></div>
52 </a>
53 </div>
54 </div>
55 </div>
56
57 <div tal:define="batchInfos python:here.getPhotosInfos(here);
58 batch batchInfos/batch;
59 infos batchInfos/infos;
60 features batchInfos/features"
61 tal:omit-tag="">
62 <div metal:use-macro="here/photo_layout_macros/macros/grid">
63 affichage grille
64 </div>
65 </div>
66 <br clear="all"/>
67 </div>
68 </body>
69
70 </html>