jslint.
[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="ModifyPortalContent modules/Products/CMFCore/permissions/ModifyPortalContent;
26 ctool nocall:here/portal_catalog;
27 slide_size portal_object/slide_size;
28 Batch python:modules['Products.Plinn'].Batch;
29 pho_start python:0;pho_start request/pho_start | pho_start;
30 port_start python:0;port_start request/port_start | port_start;
31 portfolios python:Batch(here.listNearestFolderContents(contentFilter={'portal_type' : 'Portfolio'}),
32 16, port_start, orphan=1, quantumleap=1, b_start_str='port_start');">
33 <div tal:condition="python:here.hasPresentationPage() and pho_start < 20"
34 tal:content="structure here/presentation_page">custom presentation</div>
35 <div tal:condition="portfolios" tal:omit-tag="">
36 <div tal:define="batch portfolios" tal:omit-tag="">
37 <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
38 <div class="portfolio_lightbox">
39 <a tal:repeat="portfolio batch"
40 tal:attributes="href portfolio/absolute_url">
41 <span tal:define="sphoto portfolio/samplePhoto" tal:omit-tag="">
42 <span tal:condition="sphoto" tal:omit-tag="">
43 <img tal:attributes="src sphoto/src;
44 alt sphoto/alt;
45 height sphoto/height;
46 width sphoto/width;"/>
47 </span>
48 <span tal:condition="not:sphoto" tal:omit-tag="">
49 <img tal:attributes="src here/empty_portfolio.gif/absolute_url;
50 alt portfolio/title_or_id"/>
51 </span>
52 </span>
53 <h3 tal:content="portfolio/Title">Portfolio title or id</h3>
54 <div tal:content="portfolio/Description"></div>
55 </a>
56 </div>
57 </div>
58 </div>
59
60 <div tal:define="batchInfos python:here.getPhotosInfos(here);
61 batch batchInfos/batch;
62 infos batchInfos/infos;
63 features batchInfos/features"
64 tal:omit-tag="">
65 <div metal:use-macro="here/photo_layout_macros/macros/grid">
66 affichage grille
67 </div>
68 </div>
69 <br clear="all"/>
70 </div>
71 </body>
72
73 </html>