Author: hansbak
Date: Thu Sep 17 13:57:14 2009
New Revision: 816193
URL:
http://svn.apache.org/viewvc?rev=816193&view=revLog:
unwanted change by the community
Modified:
ofbiz/trunk/applications/content/template/HelpTemplate.ftl
Modified: ofbiz/trunk/applications/content/template/HelpTemplate.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/HelpTemplate.ftl?rev=816193&r1=816192&r2=816193&view=diff==============================================================================
--- ofbiz/trunk/applications/content/template/HelpTemplate.ftl (original)
+++ ofbiz/trunk/applications/content/template/HelpTemplate.ftl Thu Sep 17 13:57:14 2009
@@ -21,14 +21,9 @@
specific language governing permissions and limitations
under the License.
-->
-<style>
-<#if layoutSettings.VT_NAME[0] == "BIZZNESS_TIME">
-body{background:none;}
-.left-border{float:left;width:25%;}
-.contentarea{margin: 0 0 0 0.5em;padding:0 0 0 0.5em;}
-.leftonly{float:none;min-height:25em;}
-</#if>
-</style>
+
+<#if layoutSettings.VT_NAME[0] == "FLAT_GREY">
+<#------------------------------------------->
<#macro para para>
<p>
<#list para?children as child>
@@ -58,8 +53,7 @@
</#list>
<br/><br/>
</#macro>
-<#if layoutSettings.VT_NAME[0] == "FLAT_GREY">
-<#------------------------------------------->
+
<div class="contentarea">
<div id="column-container">
<div id="content-main-section">
@@ -67,10 +61,39 @@
</div>
</div>
</div>
-<#elseif layoutSettings.VT_NAME[0] == "BIZZNESS_TIME">
- <@section inSection=doc.section first="yes"/>
+
<#else><#-- other templates -->
<#----------------------------->
+<#macro para para>
+<p>
+ <#list para?children as child>
+ <#if child?node_type = "text">
+ ${child}
+ <#elseif child?node_type = 'element' && child?node_name = "link">
+ <a href="${child["@xl:href"]}">${child}</a>
+ </#if>
+ </#list>
+ <br/>
+</p>
+</#macro>
+
+<#macro section inSection first="no">
+ <#list inSection.* as subSection>
+ <#if subSection?node_name = "title">
+ <#if first = "yes">
+ <h1>${subSection}</h1>
+ <#else>
+ <h2>${subSection}</h2>
+ </#if>
+ <#elseif subSection?node_name = "para">
+ <@para para=subSection/>
+ <#elseif subSection?node_name = "section">
+ <@section inSection=subSection/>
+ </#if>
+ </#list>
+ <br/><br/>
+</#macro>
+
<div class="contentarea">
<div id="column-container">
<div id="content-main-section">