From: Benoît Pin <benoit.pin@gmail.com> Date: Mon, 1 Sep 2014 18:40:17 +0000 (+0200) Subject: realis-- X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/af9b2459c45635addd229e3265bd0018d71fde3b?hp=c67cc6b720fe34909cebe9532c61d2c8e631d3f9 realis-- --- diff --git a/skins/photo_theme/main_template_standard.pt b/skins/photo_theme/main_template_standard.pt index d157ba1..51c6846 100755 --- a/skins/photo_theme/main_template_standard.pt +++ b/skins/photo_theme/main_template_standard.pt @@ -97,7 +97,7 @@ <a href="#documentContent" i18n:translate="" i18n:domain="plinn" class="hidden">Skip to content</a> <div metal:use-macro="main_macros/top_bar">Top bar</div> <div id="search_bar"> - <div metal:use-macro="here/realis_main_macros/macros/search_bar">Barre de recherche réalis</div> + <div metal:use-macro="here/photo_main_macros/macros/search_bar">Barre de recherche réalis</div> </div> <div id="Breadcrumbs"><div metal:use-macro="main_macros/Breadcrumbs">Breadcrumbs</div></div> diff --git a/skins/photo_theme/photo_main_macros.pt b/skins/photo_theme/photo_main_macros.pt new file mode 100644 index 0000000..3f021e5 --- /dev/null +++ b/skins/photo_theme/photo_main_macros.pt @@ -0,0 +1,33 @@ +<html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal"> + <head> + <title>photo theme macros</title> + <meta http-equiv="content-type" content="text/html;charset=utf-8" /> + </head> + <body> + <div metal:define-macro="search_bar" + style="vertical-align:middle"> + <form action="search" method="get" tal:attributes="action string:${portal_url}/search"> + <div id="quicksearch" i18n:domain="cmf_default"> + <span i18n:translate="" tal:omit-tag="">Search</span> + <input name="SearchableText" type="text" size="16" /> + <input name="portal_type:list" type="hidden" value="Photo" /> + <input type="image" tal:attributes="src string:${portal_url}/topic_icon.gif" + width="16" height="16" alt="Search" i18n:attributes="alt"/> + <!-- + <a tal:attributes="href string:${portal_url}/search_form" i18n:translate="">Advanced search</a> + --> + </div> + </form> + <div id="quickuser"> + <span tal:define="uname python: (isAnon and [''] or [member.getMemberFullName(nameBefore=0)])[0]" tal:content="uname" style="font-weight:bold">bob</span> + + <span tal:repeat="action user_actions"> + <a href="#" tal:attributes="href action/url" tal:content="action/title">Login</a> + <span tal:condition="not: repeat/action/end" tal:omit-tag=""> | </span> + </span> + <span tal:condition="nothing"><a href="join_form" i18n:translate="">Join</a></span> + </div> + <br clear="all"/> + </div> + </body> +</html>