forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Copyless for pelt-dev - Re: svn commit: rev 36266 - in forrest/trunk/src/core/context/skins/pelt-dev: . css xslt/html
Date Thu, 12 Aug 2004 03:06:32 GMT
Hello Devs,

again, why I had to copy and paste the code from common to pelt-dev to 
enable the external link images?

BTW the tigris style does not support external link images (bug or 
feature?).

Any help to prevend that is very welcome!

king regards
thorsten

thorsten@apache.org wrote:
> Author: thorsten
> Date: Wed Aug 11 19:47:51 2004
> New Revision: 36266
> 
> Modified:
>    forrest/trunk/src/core/context/skins/pelt-dev/css/profile.css.xslt
>    forrest/trunk/src/core/context/skins/pelt-dev/css/screen.css
>    forrest/trunk/src/core/context/skins/pelt-dev/note.txt
>    forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl
> Log:
> - added external link image support
> - enhanced the underline 
> Modified: forrest/trunk/src/core/context/skins/pelt-dev/note.txt
> ==============================================================================
> --- forrest/trunk/src/core/context/skins/pelt-dev/note.txt	(original)
> +++ forrest/trunk/src/core/context/skins/pelt-dev/note.txt	Wed Aug 11 19:47:51 2004
> @@ -1,25 +1,34 @@
>  -- introduce the external-link-images.
> --> TODO
> +-> DONE
> 
> Modified: forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl
> ==============================================================================
> --- forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl	(original)
> +++ forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl	Wed Aug 11
19:47:51 2004
> @@ -325,7 +325,7 @@
> -
> + <!-- handle all obfuscating mail links and disabling external link images -->
> +  <xsl:template match="a">
> +    <xsl:choose>
> +      <xsl:when test="$obfuscate-mail-links='true' and starts-with(@href, 'mailto:')
and contains(@href, '@')">
> +        <xsl:variable name="mailto-1" select="substring-before(@href,'@')"/>
> +        <xsl:variable name="mailto-2" select="substring-after(@href,'@')"/>
> +          <a href="{$mailto-1}.at.{$mailto-2}">
> +            <xsl:apply-templates/>
> +          </a>
> +       </xsl:when>
> +       <xsl:when test="not($disable-external-link-image='true') and contains(@href,
':') and not(contains(@href, //skinconfig/group-url)) and not(contains(@href, //skinconfig/project-url))">
> +          <a href="{@href}" class="external">
> +            <xsl:apply-templates/>
> +          </a>
> +       </xsl:when>       
> +       <xsl:otherwise>
> +        <!-- xsl:copy-of makes sure we copy <a href> as well as <a name>
> +             or any other <a ...> forms -->
> +        <xsl:copy-of select="."/>
> +      </xsl:otherwise>
> +    </xsl:choose>
> +  </xsl:template>
>    <xsl:template name="menu">
>  <xsl:comment>+
>      |start Menu
> 


Mime
View raw message