From ea4326838d2c9d4bb7d87c41f3d114fa9a5b8de5 Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 30 Jan 2015 08:37:59 +0000 Subject: [PATCH] It is now possible to assign different layout templates to for a content item depending if the content item is displayed by a ContentItemPortlet, as a GreetingItem or as a normal item. git-svn-id: https://svn.libreccm.org/ccm/trunk@3108 8810af33-2d31-482b-a856-94f89814c4df --- .../lib/template-tags/content-items.xsl | 60 ++++++++++++------- .../foundry/lib/template-tags/html-tags.xsl | 13 +++- .../template-tags/portlets/contentitem.xsl | 1 + 3 files changed, 50 insertions(+), 24 deletions(-) diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl index 9789eee1e..4082684da 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl @@ -138,17 +138,31 @@ + + - - - - + + + + + + + + + + + + + + @@ -656,32 +670,32 @@

                 /* Sets the reference point for position: absolute 
-                   to the main element block */
+                to the main element block */
                 main {
-                    position: relative;
+                position: relative;
                 }
 
                 /* Don't show the edit link on a first glance */
                 main .edit-link {
-                    display: none;
+                display: none;
                 }
 
                 /* Display the edit link in the top right corner 
-                    of the content item area if the cursor is in 
-                    the content item area */
+                of the content item area if the cursor is in 
+                the content item area */
                 main:hover .edit-link {
-                    display: block; 
-                    position: absolute;
-                    right: 0;
-                    top: 0;
-                    font-size: 30px;
-                    color: #0776a0;
-                    /* Blue border around the link */
-                    border: 1px solid #0776a0; 
-                    /* Make the link 32px in width and height */
-                    width: 32px; 
-                    height: 32px;
-                    text-align: center;
+                display: block; 
+                position: absolute;
+                right: 0;
+                top: 0;
+                font-size: 30px;
+                color: #0776a0;
+                /* Blue border around the link */
+                border: 1px solid #0776a0; 
+                /* Make the link 32px in width and height */
+                width: 32px; 
+                height: 32px;
+                text-align: center;
                 }
 
                 /* Remove default decoration for links */
@@ -689,8 +703,8 @@
                 main:hover .edit-link a:hover,
                 main:hover .edit-link a:active, 
                 main:hover .edit-link a:visited {
-                    color: #0776a0;
-                    text-decoration: none;
+                color: #0776a0;
+                text-decoration: none;
                 }
 
             
diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl index 0442466b8..ca8f2d707 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl @@ -172,12 +172,23 @@ + + + + + + + + + + + - diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/portlets/contentitem.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/portlets/contentitem.xsl index 710b37be4..cb2d776db 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/portlets/contentitem.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/portlets/contentitem.xsl @@ -32,6 +32,7 @@ +