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