From: nan010 <svn...@pl...> - 2006-07-12 14:47:56
|
Author: nan010 Date: Wed Jul 12 14:47:38 2006 New Revision: 26064 Modified: sdotNews/trunk/skins/sdotnews/portlet_newscategories.pt sdotNews/trunk/skins/sdotnews/viewlet_sdotnews.pt Log: viewlet and portlet updated to new plone 2.1.3/2.5 style Modified: sdotNews/trunk/skins/sdotnews/portlet_newscategories.pt ============================================================================== --- sdotNews/trunk/skins/sdotnews/portlet_newscategories.pt (original) +++ sdotNews/trunk/skins/sdotnews/portlet_newscategories.pt Wed Jul 12 14:47:38 2006 @@ -9,7 +9,11 @@ tal:define="props here/portal_properties/sdotNews_properties; showIcons props/iconsInPortlet; showTitle props/titleInPortlet;"> - <dt class="portletHeader" i18n:translate="news_categories">News Categories</dt> + <dt class="portletHeader"> + <span class="portletTopLeft"></span> + <a tal:attributes="href string:${here/portal_url}/sdot_categories" i18n:translate="news_categories">News Categories</a> + <span class="portletTopRight"></span> + </dt> <dd class="portletItem odd" tal:repeat="mru here/mrucategories"> <a tal:attributes="href string:${mru/absolute_url}"> @@ -21,15 +25,18 @@ </a> </dd> - <dd class="portletItem even"> - <a tal:attributes="href string:${here/portal_url}/sdot_categories" i18n:translate="all_categories">all categories ...</a> - </dd> - <dd class="portletItem odd" tal:condition="not: isAnon" > + + <dd class="portletItem even" tal:condition="not: isAnon" > <img tal:attributes="src string:${here/portal_url}/newsitem_icon.gif;" alt="Post news"/> <a tal:attributes="href string:${here/portal_url}/sdot_add_news" i18n:translate="add_news_in_category"> Add News </a> </dd> + <dd class="portletFooter"> + <span class="portletBottomLeft"></span> + <a tal:attributes="href string:${here/portal_url}/sdot_categories" i18n:translate="all_categories">all categories ...</a> + <span class="portletBottomRight"></span> + </dd> </dl> </div> </body> Modified: sdotNews/trunk/skins/sdotnews/viewlet_sdotnews.pt ============================================================================== --- sdotNews/trunk/skins/sdotnews/viewlet_sdotnews.pt (original) +++ sdotNews/trunk/skins/sdotnews/viewlet_sdotnews.pt Wed Jul 12 14:47:38 2006 @@ -33,30 +33,34 @@ home_url python: mtool.getHomeUrl; global toLocalizedTime nocall:here/toLocalizedTime;"> - <tal:block tal:condition="results" + <dl class="portlet" id ="viewlet-sdotnews" tal:condition="results" tal:define="batch python:Batch(results, int(itemCount), int(b_start), orphan=1)"> - <h5 class="portletHeader"> + <dt class="portletHeader"> <span class="portletTopLeft"></span> <span tal:content="viewletOptions/viewlet_title | nothing">The Title</span> <span class="portletTopRight"></span> - </h5> - + </dt> + <dd class="portletItem odd"> <metal:block tal:repeat="result batch"> <div metal:use-macro="here/sdotnews_view/macros/listitem" /> </metal:block> + </dd> + - <!-- Navigation --> - <div metal:use-macro="here/batch_macros/macros/navigation" /> - - </tal:block> + - <p tal:condition="not: results" i18n:translate="no_post" + <dd class="portletItem odd" tal:condition="not: results" i18n:translate="no_post" i18n:domain="contentpanels"> No post. - </p> - + </dd> + <dd class="portletItem lastItem"> + <!-- Navigation --> + <div metal:use-macro="here/batch_macros/macros/navigation" /> + <span class="portletBottomLeft"></span> + <span class="portletBottomRight"></span> + </dl> </div> <!--div metal:define-macro="news_categories_viewletconf"> @@ -74,21 +78,30 @@ </div> <div metal:define-macro="news_categories"> - <h5 class="portletHeader"> + <dl class="portlet" + tal:define="itemCount viewletOptions/itemCount | python:4;" + id="viewletnewscategories"> + <dt class="portletHeader"> <span class="portletTopLeft"></span> <span tal:content="viewletOptions/viewlet_title | nothing">message</span> <span class="portletTopRight"></span> - </h5> - <ul class="viewletnewscategories" tal:define="itemCount viewletOptions/itemCount | python:4;"> - <tal:block tal:repeat="mru python: here.mrucategories(itemsToDisplay =itemCount) "> - <li> + </dt> + <dd class="portletItem odd"> + <ul class="list-sdot-categories"> + <li tal:repeat="mru python: here.mrucategories(itemsToDisplay =itemCount) "> + <a tal:attributes="href string:${mru/absolute_url}"> <img tal:attributes="src string:${mru/absolute_url}/sdot_folder_icon; alt string:${mru/title}; title string:${mru/title}" /> </a> - </li> - </tal:block> - </ul> - <div class="visualClear"><!-- --></div> + </li> + </ul> + </dd> + <dd class="portletItem lastItem" > + <span class="portletBottomLeft"></span> + <span class="portletBottomRight"></span> + </dd> + <!--div class="visualClear"> </div--> + </dl> </div> </body> |