Added possibility to customise feedback container URL and Label

This commit is contained in:
Massimiliano Assante 2021-12-17 11:02:20 +01:00
parent 01f1615afd
commit bcced8680f
5 changed files with 19 additions and 3 deletions

View File

@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
This project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v6.5.0-SNAPSHOT] - 2021-12-17
Added possibility to customise feedback container URL and Label (Report an issue)
## [v6.4.0-SNAPSHOT] - 2017-01-24

View File

@ -11,7 +11,7 @@
<artifactId>generic-configurable-theme</artifactId>
<packaging>war</packaging>
<name>generic-configurable-theme Theme</name>
<version>6.4.0-SNAPSHOT</version>
<version>6.5.0-SNAPSHOT</version>
<description>
D4Science Generic Configurable Liferay Theme
</description>

View File

@ -17,6 +17,8 @@
<setting configurable="true" key="footer-website-url" type="text" />
<setting configurable="true" key="footer-website-name" type="text" />
<setting configurable="true" key="footer-text-about" type="text" />
<setting configurable="true" key="feedback-website-url" type="text" />
<setting configurable="true" key="feedback-label" type="text" />
<setting configurable="true" key="body-background-color">
<![CDATA[
AUI().ready(

View File

@ -1,6 +1,6 @@
name=generic-configurable-theme
module-group-id=liferay
module-incremental-version=5
module-incremental-version=6
tags=
short-description=
change-log=

View File

@ -72,6 +72,17 @@
</style>
</head>
#if ($theme.getSetting("feedback-website-url") !="")
#set ($feedback-website-url = $theme.getSetting("feedback-website-url"))
#else
#set ($feedback-website-url = "https//support.d4science.org")
#end
#if ($theme.getSetting("feedback-label") !="")
#set ($feedback-label = $theme.getSetting("feedback-label"))
#else
#set ($feedback-label = "Report an issue")
#end
<body class="$css_class">
<!-- start customisation -->
@ -104,7 +115,7 @@ $theme.include($body_top_include)
#dockbar()
</div>
#if($is_signed_in)
<div class="feedback-container"><a href="http://support.d4science.org" target="_blank"><span>Report an issue</span><a></div>
<div class="feedback-container"><a href="$feedback-website-url" target="_blank"><span>$feedback-label</span><a></div>
#end
<header id="banner" role="banner">