1 <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
3 <title>photo theme macros</title>
4 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
7 <div metal:define-macro="search_bar"
8 style="vertical-align:middle">
9 <form action="search" method="get" tal:attributes="action string:${portal_url}/search">
10 <div id="quicksearch" i18n:domain="cmf_default">
11 <span i18n:translate="" tal:omit-tag="">Search</span>
12 <input name="SearchableText" type="text" size="16" />
13 <input name="portal_type:list" type="hidden" value="Photo" />
14 <input type="image" tal:attributes="src string:${portal_url}/topic_icon.gif"
15 width="16" height="16" alt="Search" i18n:attributes="alt"/>
17 <a tal:attributes="href string:${portal_url}/search_form" i18n:translate="">Advanced search</a>
22 <span tal:define="uname python: (isAnon and [''] or [member.getMemberFullName(nameBefore=0)])[0]" tal:content="uname" style="font-weight:bold">bob</span>
23
24 <span tal:repeat="action user_actions">
25 <a href="#" tal:attributes="href action/url" tal:content="action/title">Login</a>
26 <span tal:condition="not: repeat/action/end" tal:omit-tag=""> | </span>
28 <span tal:condition="nothing"><a href="join_form" i18n:translate="">Join</a></span>