You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by si...@apache.org on 2012/01/04 22:06:32 UTC
svn commit: r1227319 - in /maven/skins/trunk/maven-fluido-skin/src:
it/mskins-24/ it/mskins-24/src/ it/mskins-24/src/site/
it/mskins-24/src/site/apt/ it/mskins-24_topbar/ it/mskins-24_topbar/src/
it/mskins-24_topbar/src/site/ it/mskins-24_topbar/src/si...
Author: simonetripodi
Date: Wed Jan 4 21:06:31 2012
New Revision: 1227319
URL: http://svn.apache.org/viewvc?rev=1227319&view=rev
Log:
[MSKINS-24] Add the Twitter follow button support
Added:
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml (with props)
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm (with props)
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml (with props)
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml (with props)
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm (with props)
maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml (with props)
Modified:
maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
maven/skins/trunk/maven-fluido-skin/src/site/apt/index.apt.vm
Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml?rev=1227319&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml (added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml Wed Jan 4 21:06:31 2012
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-parent</artifactId>
+ <version>21</version>
+ </parent>
+
+ <groupId>org.apache.maven.skins.its</groupId>
+ <artifactId>@project.artifactId@-mskins-24</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <name>@project.name@ IT, MSKINS-24</name>
+ <url>http://maven.apache.org/skins/@project.artifactId@/mskins-23/</url>
+
+ <properties>
+ <skinName>@project.name@</skinName>
+ <skinDescription>@project.description@</skinDescription>
+ <skinGroupId>@project.groupId@</skinGroupId>
+ <skinArtifactId>@project.artifactId@</skinArtifactId>
+ <skinVersion>@project.version@</skinVersion>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+ <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>summary</report>
+ <report>license</report>
+ <report>project-team</report>
+ <report>scm</report>
+ <report>issue-tracking</report>
+ <report>mailing-list</report>
+ <report>dependencies</report>
+ <report>cim</report>
+ <report>plugin-management</report>
+ <report>plugins</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm?rev=1227319&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm (added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm Wed Jan 4 21:06:31 2012
@@ -0,0 +1,16 @@
+ ------
+ ${project.name}
+ ------
+ Simo
+ ------
+ 2011-12-26
+ ------
+
+${project.name}
+
+ This is a test for ${skinName} with MOJOs profiles enabled.
+ ${skinDescription}
+
+* Actual configuration
+
+%{snippet|id=skin-custom-config|file=${project.basedir}/src/site/site.xml}
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml?rev=1227319&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml (added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml Wed Jan 4 21:06:31 2012
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ -->
+
+<project xmlns="http://maven.apache.org/DECORATION/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 http://maven.apache.org/xsd/decoration-1.1.0.xsd"
+ name="${skinName}">
+
+ <skin>
+ <groupId>${skinGroupId}</groupId>
+ <artifactId>${skinArtifactId}</artifactId>
+ <version>${skinVersion}</version>
+ </skin>
+
+ <!-- START SNIPPET: skin-custom-config -->
+ <custom>
+ <fluidoSkin>
+ <twitter>
+ <user>simonetripodi</user>
+ <showUser>true</showUser>
+ <showFollowers>true</showFollowers>
+ </twitter>
+ </fluidoSkin>
+ </custom>
+ <!-- END SNIPPET: skin-custom-config -->
+
+ <publishDate format="yyyy-MM-dd" position="right" />
+ <version position="right" />
+
+ <body>
+ <breadcrumbs>
+ <item name="skins" href="/skins/"/>
+ <item name="${skinArtifactId}" href="/skins/${skinArtifactId}/"/>
+ </breadcrumbs>
+
+ <menu name="Overview">
+ <item name="Introduction" href="index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+ <div class="row span16">Apache Maven, Apache @project.name@, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
+ <div class="row span16">
+ <div class="span4">
+ <address>
+ <strong>The Apache Software Foundation</strong><br/>
+ <i>Dept. 9660</i><br/>
+ <i>Los Angeles, CA 90084-9660</i><br/>
+ <i>USA</i><br/>
+ <abbr title="Fax">Fax:</abbr> <i>+1.919.573.9199</i>
+ </address>
+ </div>
+ <div class="span4">
+ <address>
+ <strong>The Apache Software Foundation</strong><br/>
+ <i>1901 Munsey Drive</i><br/>
+ <i>Forest Hill, MD 21050-2747</i><br/>
+ <i>USA</i><br/>
+ <a href="mailto:apache at apache dot org">apache at apache dot org</a>
+ </address>
+ </div>
+ </div>
+ </footer>
+ </body>
+
+</project>
\ No newline at end of file
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24/src/site/site.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml?rev=1227319&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml (added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml Wed Jan 4 21:06:31 2012
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-parent</artifactId>
+ <version>21</version>
+ </parent>
+
+ <groupId>org.apache.maven.skins.its</groupId>
+ <artifactId>@project.artifactId@-mskins-24_topbar</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <name>@project.name@ IT, MSKINS-24</name>
+ <url>http://maven.apache.org/skins/@project.artifactId@/mskins-23/</url>
+
+ <properties>
+ <skinName>@project.name@</skinName>
+ <skinDescription>@project.description@</skinDescription>
+ <skinGroupId>@project.groupId@</skinGroupId>
+ <skinArtifactId>@project.artifactId@</skinArtifactId>
+ <skinVersion>@project.version@</skinVersion>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+ <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>summary</report>
+ <report>license</report>
+ <report>project-team</report>
+ <report>scm</report>
+ <report>issue-tracking</report>
+ <report>mailing-list</report>
+ <report>dependencies</report>
+ <report>cim</report>
+ <report>plugin-management</report>
+ <report>plugins</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm?rev=1227319&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm (added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm Wed Jan 4 21:06:31 2012
@@ -0,0 +1,16 @@
+ ------
+ ${project.name}
+ ------
+ Simo
+ ------
+ 2011-12-26
+ ------
+
+${project.name}
+
+ This is a test for ${skinName} with MOJOs profiles enabled.
+ ${skinDescription}
+
+* Actual configuration
+
+%{snippet|id=skin-custom-config|file=${project.basedir}/src/site/site.xml}
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/apt/index.apt.vm
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml?rev=1227319&view=auto
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml (added)
+++ maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml Wed Jan 4 21:06:31 2012
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ -->
+
+<project xmlns="http://maven.apache.org/DECORATION/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 http://maven.apache.org/xsd/decoration-1.1.0.xsd"
+ name="${skinName}">
+
+ <skin>
+ <groupId>${skinGroupId}</groupId>
+ <artifactId>${skinArtifactId}</artifactId>
+ <version>${skinVersion}</version>
+ </skin>
+
+ <!-- START SNIPPET: skin-custom-config -->
+ <custom>
+ <fluidoSkin>
+ <twitter>
+ <user>simonetripodi</user>
+ <showUser>true</showUser>
+ <showFollowers>true</showFollowers>
+ </twitter>
+ <topBarEnabled>true</topBarEnabled>
+ <sideBarEnabled>false</sideBarEnabled>
+ </fluidoSkin>
+ </custom>
+ <!-- END SNIPPET: skin-custom-config -->
+
+ <publishDate format="yyyy-MM-dd" position="right" />
+ <version position="right" />
+
+ <body>
+ <breadcrumbs>
+ <item name="skins" href="/skins/"/>
+ <item name="${skinArtifactId}" href="/skins/${skinArtifactId}/"/>
+ </breadcrumbs>
+
+ <menu name="Overview">
+ <item name="Introduction" href="index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+ <div class="row span16">Apache Maven, Apache @project.name@, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
+ <div class="row span16">
+ <div class="span4">
+ <address>
+ <strong>The Apache Software Foundation</strong><br/>
+ <i>Dept. 9660</i><br/>
+ <i>Los Angeles, CA 90084-9660</i><br/>
+ <i>USA</i><br/>
+ <abbr title="Fax">Fax:</abbr> <i>+1.919.573.9199</i>
+ </address>
+ </div>
+ <div class="span4">
+ <address>
+ <strong>The Apache Software Foundation</strong><br/>
+ <i>1901 Munsey Drive</i><br/>
+ <i>Forest Hill, MD 21050-2747</i><br/>
+ <i>USA</i><br/>
+ <a href="mailto:apache at apache dot org">apache at apache dot org</a>
+ </address>
+ </div>
+ </div>
+ </footer>
+ </body>
+
+</project>
\ No newline at end of file
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: maven/skins/trunk/maven-fluido-skin/src/it/mskins-24_topbar/src/site/site.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm?rev=1227319&r1=1227318&r2=1227319&view=diff
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm (original)
+++ maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm Wed Jan 4 21:06:31 2012
@@ -594,6 +594,46 @@
#end
#end
##
+#macro ( followTwitter $sideBarEnabled )
+ #if ( $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'twitter' )
+ && $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'twitter' ).getChild( 'user' ) )
+ #set ( $user = $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'twitter' ).getChild( 'user' ).getValue() )
+
+ #if ( $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'twitter' ).getChild( 'showUser' )
+ && $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'twitter' ).getChild( 'showUser' ).getValue().equalsIgnoreCase( "true" ) )
+ #set( $showUser = true )
+ #else
+ #set( $showUser = false )
+ #end
+
+ #if ( $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'twitter' ).getChild( 'showFollowers' )
+ && $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'twitter' ).getChild( 'showFollowers' ).getValue().equalsIgnoreCase( "true" ) )
+ #set( $showFollowers = true )
+ #else
+ #set( $showFollowers = false )
+ #end
+
+ #if ( $sideBarEnabled )
+ #set( $dataSize = "medium" )
+ #set( $dataAlign = "left" )
+ <div id="twitter">
+ #else
+ #set( $dataSize = "large" )
+ #set( $dataAlign = "right" )
+ <ul class="nav secondary-nav"><li>
+ #end
+
+ <a href="https://twitter.com/${user}" class="twitter-follow-button" data-show-count="${showFollowers}" data-align="${dataAlign}" data-size="${dataSize}" data-show-screen-name="${showUser}" data-lang="${locale}">Follow ${user}</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+
+ #if ( $sideBarEnabled )
+ </div>
+ #else
+ </li></ul>
+ #end
+ #end
+#end
+##
<html xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
@@ -721,6 +761,11 @@
#if ( $searchEnabled && !$sideBarEnabled )
#googleSearch(true)
#end
+
+ #if ( !$sideBarEnabled )
+ #followTwitter( $sideBarEnabled )
+ #end
+
#if( $decoration.body.links.size() > 0 )
<ul class="nav secondary-nav">
<li class="menu">
@@ -778,6 +823,9 @@
#if ( $searchEnabled )
#googleSearch( false )
#end
+
+ #followTwitter( $sideBarEnabled )
+
<div id="poweredBy">
#poweredByLogo( $decoration.poweredBy )
</div>
Modified: maven/skins/trunk/maven-fluido-skin/src/site/apt/index.apt.vm
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/site/apt/index.apt.vm?rev=1227319&r1=1227318&r2=1227319&view=diff
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/site/apt/index.apt.vm (original)
+++ maven/skins/trunk/maven-fluido-skin/src/site/apt/index.apt.vm Wed Jan 4 21:06:31 2012
@@ -222,3 +222,32 @@ ${project.name}
[...]
</project>
+-----+
+
+** Twitter follow button
+
+ Since version <<1.1>>, fluido-skin supports the Twitter {{{https://dev.twitter.com/docs/follow-button}follow button}}
+ to simplify its integration. Users must define:
+
+ * <<<custom.fluidoSkin.twitter.user>>>: <<required>>, it is the Twitter id to suggest to follow;
+
+ * <<<custom.fluidoSkin.twitter.showUser>>>: <<optional>>, flag to mark the user has to be shown (<<<false>>> by default);
+
+ * <<<custom.fluidoSkin.twitter.showFollowers>>>: <<optional>>, flag to mark the followers ribbon has to be shown (<<<false>>> by default).
+
++-----+
+<project name="xxx">
+ [...]
+ <custom>
+ <fluidoSkin>
+ <twitter>
+ <user>simonetripodi</user>
+ <showUser>true</showUser>
+ <showFollowers>true</showFollowers>
+ </twitter>
+ </fluidoSkin>
+ </custom>
+ [...]
+</project>
++-----+
+
+ By default, it is rendered in the sidebar, if the topbar only is available it will be rendered there.