r252702 - in plonetheme.arnolfini/trunk: . docs plonetheme/arnolfini/browser plonetheme/arnolfini/browser/javascripts plonetheme/arnolfini/browser/stylesheets plonetheme/arnolfini/profiles/default

"David Jonas Castanheira" <svn-changes-z4DKO/[email protected]> Thu, 12 Dec 2013 11:13:55 +0000 (UTC)
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: davidjonas
Date: Thu Dec 12 11:13:55 2013
New Revision: 252702

Modified:
   plonetheme.arnolfini/trunk/docs/HISTORY.txt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/blog_view.pt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/carousel_item_tile.pt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/collection.pt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/event_view.pt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/javascripts/arnolfini.js
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/manual_related.pt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/mediaShow.py
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/relateditems.pt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/stylesheets/main.css
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml
   plonetheme.arnolfini/trunk/setup.py
Log:
Added cropped images to al the views and code for fourdigits.portlet.twitter

Modified: plonetheme.arnolfini/trunk/docs/HISTORY.txt
==============================================================================
--- plonetheme.arnolfini/trunk/docs/HISTORY.txt	(original)
+++ plonetheme.arnolfini/trunk/docs/HISTORY.txt	Thu Dec 12 11:13:55 2013
@@ -1,5 +1,10 @@
 Changelog
 =========
+0.95 (2013-12-12)
+---------------------
+- Cropping scale now spans through all the views.
+- Adaptation for the upgrade to fourdigits.portlet.twitter
+
 0.94 (2013-08-19)
 ---------------------
 - Donation forms changed and ordering the related items on document view.

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/blog_view.pt
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/blog_view.pt	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/blog_view.pt	Thu Dec 12 11:13:55 2013
@@ -66,7 +66,7 @@
 			    tal:define="tileclass python:item.hasMedia and 'tileItem' or 'tileItem no-media';"
 			    tal:attributes="class python: tileclass + (odd and ' odd' or ' even')">
 			    
-			    <a class="imagelink" tal:condition="python: item.hasMedia or item.portal_type == 'Link'" href="" tal:attributes="href  item_link"><tal:image replace="structure python:view.getLeadMediaTag(item, scale='large')"></tal:image></a>
+			    <a class="imagelink" tal:condition="python: item.hasMedia or item.portal_type == 'Link'" href="" tal:attributes="href  item_link"><tal:image replace="structure python:view.getLeadMediaTag(item, scale='crop')"></tal:image></a>
 			      <div class="res-info">
 				    <h2 class="summary"  tal:attributes="class python: 'summary %s'%item_wf_state_class">
 					<a

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/carousel_item_tile.pt
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/carousel_item_tile.pt	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/carousel_item_tile.pt	Thu Dec 12 11:13:55 2013
@@ -5,7 +5,7 @@
                   item_title_or_id context/pretty_title_or_id;
                 ">
 <div class="" tal:attributes="class python:'carousel_inner_item ' + view.getTagsAsClass(context)">
-      <a class="imagelink" tal:condition="python: view.containsMedia(context)" href="" tal:attributes="href  item_url"><tal:image replace="structure python:view.getLeadMediaTag(context, scale='large')"></tal:image></a>
+      <a class="imagelink" tal:condition="python: view.containsMedia(context)" href="" tal:attributes="href  item_url"><tal:image replace="structure python:view.getLeadMediaTag(context, scale='crop')"></tal:image></a>
       <div class="res-info">
 	  <h2 class="summary">
 	      <a href="#"

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/collection.pt
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/collection.pt	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/collection.pt	Thu Dec 12 11:13:55 2013
@@ -27,7 +27,7 @@
         tal:attributes="class python:oddrow and 'portletItem even' + ' ' + view.getTagsAsClass(item) or 'portletItem odd' + ' ' + view.getTagsAsClass(item)">
         
 	<a class="imagelink" tal:condition="item/hasMedia" href="" tal:attributes="href string:${item/getURL}/view;">
-	    <tal:image replace="structure python:view.getLeadMediaTag(item, scale='portlet')"></tal:image>
+	    <tal:image replace="structure python:view.getLeadMediaTag(item, scale='crop')"></tal:image>
 	</a>
 	
 	<a href="" tal:attributes="href itemUrl; title item/Description" class="relatedTitle" tal:content="item/Title"></a>

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/event_view.pt
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/event_view.pt	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/event_view.pt	Thu Dec 12 11:13:55 2013
@@ -47,7 +47,7 @@
             <a href="#"
                tal:define="here_url context/@@plone_context_state/object_url;"
                id="parent-fieldname-image">
-               <img tal:replace="structure python: context.tag(scale='preview', css_class='newsImage')" src="" alt="" />
+               <img tal:replace="structure python: context.tag(scale='crop', css_class='newsImage')" src="" alt="" />
             </a>
             <p class="discreet" tal:condition="context/imageCaption|nothing">
               <metal:field use-macro="python:context.widget('imageCaption', mode='view')">

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/javascripts/arnolfini.js
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/javascripts/arnolfini.js	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/javascripts/arnolfini.js	Thu Dec 12 11:13:55 2013
@@ -441,7 +441,7 @@
 	if (resizer.currentMode == "small" || resizer.currentMode == "mobile")
 	{
 		$('#portal-columns').after($("#FrontPageManagerLeft"));
-		Arnolfini.resizeImg("#FrontPageManagerRight .portletWrapper .portletCollection", "large");
+		Arnolfini.resizeImg("#FrontPageManagerRight .portletWrapper .portletCollection", "crop");
 		$('#FrontPageManagerLeft').masonry({columnWidth:189, gutterWidth:69, itemSelector:'.portletWrapper', isResizable:true, animate:false});
 		$('#portal-column-one').masonry({columnWidth:189, gutterWidth:69, itemSelector:'.portletWrapper', isResizable:true, animate:false});
 		$('#portal-column-two').masonry({columnWidth:189, gutterWidth:69, itemSelector:'.portletWrapper', isResizable:true, animate:false});
@@ -459,7 +459,7 @@
 			//Do nothing
 		}
 		
-		Arnolfini.resizeImg("#FrontPageManagerRight .portletWrapper .portletCollection", "portlet");
+		Arnolfini.resizeImg("#FrontPageManagerRight .portletWrapper .portletCollection", "crop");
 		
 		$("#FrontPageManagerRight").after($("#FrontPageManagerLeft"))
 	}

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/manual_related.pt
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/manual_related.pt	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/manual_related.pt	Thu Dec 12 11:13:55 2013
@@ -33,7 +33,7 @@
         tal:attributes="class python:oddrow and 'portletItem even'+ ' ' + view.getTagsAsClass(item) or 'portletItem odd'+ ' ' + view.getTagsAsClass(item)">
         
 	<a class="imagelink" tal:condition="item/hasMedia" href="" tal:attributes="href string:${item/getURL}/view;">
-	    <tal:image replace="structure python:view.getLeadMediaTag(item, scale='portlet')"></tal:image>
+	    <tal:image replace="structure python:view.getLeadMediaTag(item, scale='crop')"></tal:image>
 	</a>
 	
 	<a href="" tal:attributes="href itemUrl; title item/Description" class="relatedTitle" tal:content="item/Title"></a>

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/mediaShow.py
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/mediaShow.py	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/mediaShow.py	Thu Dec 12 11:13:55 2013
@@ -74,7 +74,7 @@
             return item.absolute_url()
         
         if item.portal_type == 'Image':
-            return item.absolute_url() + '/image_large'
+            return item.absolute_url() + '/image_crop'
         
         if item.portal_type == 'Link' and (item.remoteUrl.find("youtube.com") > -1 or item.remoteUrl.find("vimeo.com") > -1):
             return item.remoteUrl
@@ -88,7 +88,7 @@
             if len(results) > 0:
                 leadMedia = results[0]
                 if leadMedia.portal_type == 'Image':
-                    return leadMedia.getURL() + '/image_large'
+                    return leadMedia.getURL() + '/image_crop'
                 else:
                     return leadMedia.getURL()
             else:

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/relateditems.pt
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/relateditems.pt	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/relateditems.pt	Thu Dec 12 11:13:55 2013
@@ -19,7 +19,7 @@
             tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
                 
 		<a class="imagelink" tal:condition="item/hasMedia" href="" tal:attributes="href string:${item/getURL}/view;">
-		    <tal:image replace="structure python:view.getLeadMediaTag(item, scale='portlet')"></tal:image>
+		    <tal:image replace="structure python:view.getLeadMediaTag(item, scale='crop')"></tal:image>
 		</a>
 		
 		<a href="" tal:attributes="href string:${item/getURL}/view; title item/Description" class="relatedTitle" tal:content="item/Title"></a>

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/stylesheets/main.css
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/stylesheets/main.css	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/stylesheets/main.css	Thu Dec 12 11:13:55 2013
@@ -1359,19 +1359,25 @@
     border-bottom: 1px solid silver !important;
 }*/
 
-.twitterSearchPortlet, .twitterProfilePortlet {
+.twitterSearchPortlet, .twitterProfilePortlet , .portletTwitterPortlet {
     color: inherit;
     font-family: inherit !important;
     font-size: inherit !important;
     background-color: transparent;
     border-radius: 0;
     padding-bottom: inherit !important;
-    padding-top: 22px !important;
     background-image: url(++resource++plonetheme.arnolfini.images/twitter.png);
     background-position: top left;
     background-repeat: no-repeat;
 }
 
+#content dl.portletTwitterPortlet a.tile
+{
+    margin-left: 20px;
+    border-bottom: medium none !important;
+    line-height: 21px;
+}
+
 .twitterSearchPortlet .result-item, .twitterProfilePortlet .result-item
 {
     border-bottom: none;
@@ -1404,14 +1410,15 @@
     text-align: left;
 }
 
-#content .twitterProfilePortlet div.tweet-actions a.tweet-timestamp, #content .twitterSearchPortlet div.tweet-actions a.tweet-timestamp, #portal-columns .twitterProfilePortlet div.tweet-actions a.tweet-timestamp, #portal-columns .twitterSearchPortlet div.tweet-actions a.tweet-timestamp
+#content .twitterProfilePortlet div.tweet-actions a.tweet-timestamp, #content .twitterSearchPortlet div.tweet-actions a.tweet-timestamp, #portal-columns .twitterProfilePortlet div.tweet-actions a.tweet-timestamp, #portal-columns .twitterSearchPortlet div.tweet-actions a.tweet-timestamp, #content dl.portletTwitterPortlet .portletItemDetails.tweetDate
 {
     border-bottom: medium none !important;
     color: gray !important;
     display: inline;
     padding: 0;
-    margin: 0;
+    margin: 10px 0 0 0;
     font-size:11px;
+    line-height: 30px;
 }
 
 .twitterProfilePortlet .tweet-actions .reply, .twitterSearchPortlet .tweet-actions .reply, .twitterProfilePortlet .tweet-actions .retweet, .twitterSearchPortlet .tweet-actions .retweet, .twitterProfilePortlet .tweet-actions .fav, .twitterSearchPortlet .tweet-actions .fav

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml	Thu Dec 12 11:13:55 2013
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <metadata>
-  <version>0.94</version>
+  <version>0.95</version>
   <dependencies>
        <dependency>profile-plonetheme.intkBase:default</dependency>
  </dependencies>

Modified: plonetheme.arnolfini/trunk/setup.py
==============================================================================
--- plonetheme.arnolfini/trunk/setup.py	(original)
+++ plonetheme.arnolfini/trunk/setup.py	Thu Dec 12 11:13:55 2013
@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 import os
 
-version = '0.94'
+version = '0.95'
 
 setup(name='plonetheme.arnolfini',
       version=version,

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk