r252405 - in collective.phantasy/trunk: collective/phantasy/browser docs

"Thomas Desvenain" <svn-changes-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: thomasdesvenain
Date: Thu May 16 08:16:03 2013
New Revision: 252405

Modified:
   collective.phantasy/trunk/collective/phantasy/browser/viewlets.py
   collective.phantasy/trunk/docs/HISTORY.txt
Log:
Replace 'p' elements by 'span' in logo because logo is in an 'a' element.

Modified: collective.phantasy/trunk/collective/phantasy/browser/viewlets.py
==============================================================================
--- collective.phantasy/trunk/collective/phantasy/browser/viewlets.py	(original)
+++ collective.phantasy/trunk/collective/phantasy/browser/viewlets.py	Thu May 16 08:16:03 2013
@@ -241,7 +241,9 @@
 
         skin = self.getFirstPhantasySkinObject()
         if skin is not None:
-            return self.absolutiseUrls(skin, skin.getLogoViewlet())
+            logo = self.absolutiseUrls(skin, skin.getLogoViewlet())
+            logo = logo.replace('<p>', '<span>').replace('</p>', '</span>')
+            return logo
 
     def update(self):
         context = aq_inner(self.context)

Modified: collective.phantasy/trunk/docs/HISTORY.txt
==============================================================================
--- collective.phantasy/trunk/docs/HISTORY.txt	(original)
+++ collective.phantasy/trunk/docs/HISTORY.txt	Thu May 16 08:16:03 2013
@@ -4,6 +4,9 @@
 2.4 (unreleased)
 ----------------
 
+- Replace 'p' elements by 'span' in logo because logo is in an 'a' element.
+  [thomasdesvenain]
+
 - Collapsible border is no longer managed by phantasy.
   [thomasdesvenain]
 

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.