source: trunk/skins/lemill/lemill_content_view.pt @ 1312

Revision 1312, 3.8 KB checked in by tarmo, 13 years ago (diff)

Fixed XHTML incompatibilities.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="lemill">
5<body>
6
7<div metal:fill-slot="main" style="width:100%" tal:define="piece_results python:here.getSearchObject(portal_type='Piece');
8         material_results python:here.getSearchObject(portal_type=context.getMaterialTypes());
9         search_results python:piece_results+material_results">
10
11    <h1 i18n:translate="heading_featured_content">Featured content</h1>
12   <span tal:define="samples python:here.getSamples(search_results);" tal:condition="samples" tal:omit-tag="">
13
14    <ul class="coverimages">
15        <li tal:repeat="sample samples">
16            <div>
17                <a href="#" tal:attributes="href string:${sample_link}/view" tal:define="obj sample/getObject; piccy obj/getCoverImage; sample_link sample/getURL;">
18                <span class="coverimg"><span></span>
19                  <img tal:attributes="src piccy/absolute_url | nothing; onclick string:document.location='${sample_link}/view'; alt sample/Title;" src="images/default_learningresource.png" style="cursor: pointer;" tal:define="obj sample/getObject; piccy obj/getCoverImage; sample_link sample/getURL;" alt="Cover image" />
20                </span>
21                <span class="caption" tal:content="sample/Title" />
22              </a>
23            </div>
24        </li>
25    </ul>
26
27   </span>   
28    <h1 i18n:translate="heading_browse_content">Browse content</h1>
29   
30    <ul>
31        <li tal:define="results python:here.getTopResults(search_results, 'Language')">
32            <a i18n:translate="label_browse_by_language" href="language?filter=resources" class="byTextsFont">by language</a>:
33            <span tal:repeat="result results">
34                <a href="" tal:attributes="href python:'language?Language=%s&amp;filter=resources' % here.url_quote(result)" tal:content="python:here.script_getPrettyLanguage(result)">PLACEHOLDER</a>,
35            </span>
36            <a href="language">...</a>
37        </li>
38       
39        <li tal:define="results python:here.getTopResults(material_results, 'getSubject_area')">
40            <a i18n:translate="label_browse_by_subject_area" href="subject_area?filter=resources" class="byTextsFont">by subject area</a>:
41            <span tal:repeat="result results">
42                <a href="" tal:attributes="href python:'subject_area?getSubject_area=%s&amp;filter=resources' % here.url_quote(result)" tal:content="result" i18n:translate="">PLACEHOLDER</a>,
43            </span>
44            <a href="subject_area">...</a>
45        </li>
46
47        <li tal:define="results python:here.getTopResults(material_results, 'getTarget_group')">
48            <a i18n:translate="label_browse_by_target_group" href="target_group?filter=resources" class="byTextsFont">by target group</a>:
49            <span tal:repeat="result results">
50                <a href="" tal:attributes="href python:'target_group?getTarget_group=%s&amp;filter=resources' % here.url_quote(result)" tal:content="result" i18n:translate="">PLACEHOLDER</a>,
51            </span>
52            <a href="target_group">...</a>
53        </li>
54       
55        <li tal:define="results python:here.getTopResults(search_results, 'getTags')">
56            <a i18n:translate="label_browse_by_tags" href="tags?filter=resources" class="byTextsFont">by tags</a>:
57            <span tal:repeat="result results">
58                <a href="" tal:attributes="href python:'tags?getTags=%s&amp;filter=resources' % here.url_quote(result)" tal:content="result">PLACEHOLDER</a>,
59            </span>
60            <a href="tags?filter=resources">...</a>
61        </li>
62    </ul>
63
64    <div style="margin-top:30px">
65        <a i18n:translate="label_recent_changes" href="recent">Recent changes</a> | <a i18n:translate="label_faq" href="FAQ">FAQ</a>
66    </div>
67
68</div>
69</body>
70</html>
71
Note: See TracBrowser for help on using the repository browser.