From: <fg...@us...> - 2013-10-13 19:13:01
|
Revision: 4376 http://openutils.svn.sourceforge.net/openutils/?rev=4376&view=rev Author: fgiust Date: 2013-10-13 19:12:57 +0000 (Sun, 13 Oct 2013) Log Message: ----------- cleanup samples Modified Paths: -------------- magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-files/templates/samples-tagcloud/template.jsp Added Paths: ----------- magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-resources/tagcloud/samples/ magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-resources/tagcloud/samples/css/ magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-resources/tagcloud/samples/css/bootstrap.min.css magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-resources/tagcloud/samples/css/tagcloud-samples.css magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/samples-tagcloud/ Modified: magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-files/templates/samples-tagcloud/template.jsp =================================================================== --- magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-files/templates/samples-tagcloud/template.jsp 2013-10-13 19:12:41 UTC (rev 4375) +++ magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-files/templates/samples-tagcloud/template.jsp 2013-10-13 19:12:57 UTC (rev 4376) @@ -1,50 +1,47 @@ <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core" - xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" - xmlns:cms="http://magnolia-cms.com/taglib/templating-components/cms" - xmlns:tagcloud="http://net.sourceforge.openutils/mgnlTagCloud" xmlns:su="http://openutils.sf.net/openutils-stringutils"> + xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" + xmlns:cms="http://magnolia-cms.com/taglib/templating-components/cms" xmlns:tagcloud="http://net.sourceforge.openutils/mgnlTagCloud" + xmlns:su="http://openutils.sf.net/openutils-stringutils"> <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> <jsp:text> - <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]> + <![CDATA[<!DOCTYPE html> ]]> </jsp:text> <html> <head> <cms:init /> - <title>${actpage.title}</title> + <title>${content.title}</title> + <link rel="stylesheet" type="text/css" + href="${pageContext.request.contextPath}/.resources/tagcloud/samples/css/bootstrap.min.css" /> + <link rel="stylesheet" type="text/css" + href="${pageContext.request.contextPath}/.resources/tagcloud/samples/css/tagcloud-samples.css" /> </head> <body> - <h1>${actpage.title}</h1> - <h2>Samples:</h2> - <p>Tagcloud created from scratch, retrieve tags from configured node and set tag url to current page:</p> - <code> + <div class="container"> + <h1>${content.title}</h1> + <h2>Samples:</h2> + <p>Tagcloud created from scratch, retrieve tags from configured node and set tag url to current page:</p> + <code> <![CDATA[ <tagcloud:tagcloud id="cloud1" url="${actpage.handle}/" showFreq="true" /> ]]> - </code> - <p>Produce:</p> - <tagcloud:tagcloud id="cloud1" url="${actpage.handle}/" showFreq="true" /> - <p>Tagcloud created from scratch, retrieve tags from your configured path (in this sample are /sample-tagcloud/) - </p> - <code> + </code> + <tagcloud:tagcloud id="cloud1" url="${actpage.handle}/" showFreq="true" /> + <p>Tagcloud created from scratch, retrieve tags from your configured path (in this sample are /sample-tagcloud/) + </p> + <code> <![CDATA[ <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/path/to/my/pages" /> ]]> - </code> - <p>Produce:</p> - <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/sample-tagcloud/" /> - <p>Retrieve tagcloud where 'tags' is the name</p> - <code> + </code> + <tagcloud:tagcloud id="cloud2" orderby="count asc" path="/sample-tagcloud/" /> + <p>Retrieve tagcloud where 'tags' is the name</p> + <code> <![CDATA[ <tagcloud:tagcloud id="cloud3" name="tags" orderby="name asc" showFreq="true" /> ]]> - </code> - <p>Produce:</p> - <tagcloud:tagcloud id="cloud3" name="tags" orderby="name asc" showFreq="true" /> - <p>A sample where you can add tagcloud control on media dialog and retrieve a media tagcloud</p> - <code> - <![CDATA[ - <tagcloud:tagcloud id="cloudMedia" name="tagsMedia" orderby="name asc" showFreq="true"> - ]]> - </code> + </code> + <tagcloud:tagcloud id="cloud3" name="tags" orderby="name asc" showFreq="true" /> + </div> </body> </html> </jsp:root> \ No newline at end of file Added: magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-resources/tagcloud/samples/css/bootstrap.min.css =================================================================== --- magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-resources/tagcloud/samples/css/bootstrap.min.css (rev 0) +++ magnoliamodules/trunk/openutils-mgnltagcloud/src/main/resources/mgnl-resources/tagcloud/samples/css/bootstrap.min.css 2013-10-13 19:12:57 UTC (rev 4376) @@ -0,0 +1,9 @@ +/*! + * Bootstrap v3.0.0 + * + * Copyright 2013 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world by @mdo and @fat. @@ Diff output truncated at 100000 characters. @@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |