Permalink
Browse files

add the new panelet for banners

  • Loading branch information...
1 parent 1aed50e commit 5e664651f63804aef34dc9c574bd27d9d60e9a91 @Tamosauskas committed Feb 14, 2012
Showing with 60 additions and 0 deletions.
  1. +59 −0 Products/CMFContentPanels/skins/cp_viewlets/viewlets_banners.pt
  2. +1 −0 docs/HISTORY.txt
@@ -0,0 +1,59 @@
+<html xmlns:tal="http://xml.zope.org/namespaces/tal"
+ xmlns:metal="http://xml.zope.org/namespaces/metal"
+ i18n:domain="plone">
+<body>
+
+ <div metal:define-macro="viewlet_viewletconf">
+
+ <div class="field">
+ <label i18n:domain="plone">Link</label>
+ <input size=30 name="link" tal:attributes="value viewletOptions/link|string:${context/portal_url}"/>
+ </div>
+
+
+ <label i18n:domain="plone">Size</label>
+ <select name="ImagemSize"
+ tal:define="ImagemSize viewletOptions/ImagemSize | string:;
+ sizes python:{'image':'Original',
+ 'image_large':'Large',
+ 'image_preview':'Preview',
+ 'image_mini':'Mini',
+ 'image_thumb':'Thumb', }"
+
+
+
+>
+ <option value=""
+ tal:repeat="v python:['image','image_large','image_preview','image_mini','image_thumb']"
+ tal:content="python:sizes[v]"
+ tal:attributes="value v;
+ selected python:v==ImagemSize">original</option>
+ </select>
+
+<br>
+
+ </div>
+
+
+
+ <div metal:define-macro="title_only_viewletconf">
+ <div metal:use-macro="here/content_list_macros/macros/content_list_viewletconf" />
+ </div>
+
+
+<div metal:define-macro="viewlet" class="portlet" id="panelet-master"
+ tal:define="link viewletOptions/link|string:${context/portal_url};
+ ImagemSize viewletOptions/ImagemSize|string:image;
+">
+
+<div class="banner">
+ <a href="#" tal:attributes="href link">
+ <img tal:attributes="src string:${here/absolute_url}/${ImagemSize}" /></a>
+ </div>
+
+<div class="visualClear"></div>
+
+</div>
+
+</body>
+</html>
View
@@ -4,6 +4,7 @@ Changelog
2.6a10 (2011-02-14)
------------------
* Added the Advanced topic result List panelet [tamosauskas]
+* Added the new panelet for Banners [tamosauskas]
2.6a9 (2010-12-22)
------------------

0 comments on commit 5e66465

Please sign in to comment.