Adjust to translated content
This commit is contained in:
@@ -40,9 +40,13 @@ class SectionCssClassViewHelper extends AbstractViewHelper
|
||||
*/
|
||||
protected static $cssClasses = [
|
||||
1 => 'incentives',
|
||||
14 => 'incentives',
|
||||
2 => 'teambuilding',
|
||||
18 => 'teambuilding',
|
||||
3 => 'meetings',
|
||||
16 => 'meetings',
|
||||
4 => 'events',
|
||||
11 => 'events',
|
||||
];
|
||||
|
||||
public function initializeArguments()
|
||||
|
||||
@@ -40,9 +40,13 @@ class SectionIconViewHelper extends AbstractViewHelper
|
||||
*/
|
||||
protected static $icons = [
|
||||
1 => 'icon_incentives',
|
||||
14 => 'icon_incentives',
|
||||
2 => 'icon_teambuilding',
|
||||
18 => 'icon_teambuilding',
|
||||
3 => 'icon_meetings',
|
||||
16 => 'icon_meetings',
|
||||
4 => 'icon_events',
|
||||
11 => 'icon_events',
|
||||
];
|
||||
|
||||
public function initializeArguments()
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
<v:menu useShortcutUid="1" levels="1">
|
||||
<f:for each="{menu}" as="item">
|
||||
<a class="iconnav__link{f:if(condition: item.active, then: ' iconnav__link--active')}" href="{item.link}" title="{item.linktext}">
|
||||
<img class="iconnav__icon {ep:sectionCssClass(sectionValue: item.tx_epevents_configurator_travel_type)}" src="{f:uri.resource(path: 'images/{ep:sectionIcon(sectionValue: item.tx_epevents_configurator_travel_type, opaque: 1)}', extensionName: 'ep_events')}" alt="{item.linktext}">
|
||||
<span class="iconnav__label {ep:sectionCssClass(sectionValue: item.tx_epevents_configurator_travel_type)}">{item.linktext}</span>
|
||||
<img class="iconnav__icon {ep:sectionCssClass(sectionValue: item.tx_epevents_traveltype)}" src="{f:uri.resource(path: 'images/{ep:sectionIcon(sectionValue: item.tx_epevents_traveltype, opaque: 1)}', extensionName: 'ep_events')}" alt="{item.linktext}">
|
||||
<span class="iconnav__label {ep:sectionCssClass(sectionValue: item.tx_epevents_traveltype)}">{item.linktext}</span>
|
||||
</a>
|
||||
</f:for>
|
||||
</v:menu>
|
||||
|
||||
Reference in New Issue
Block a user