Add configurable link/icon for english subpages

This commit is contained in:
Björn Fromme
2018-09-18 14:01:25 +02:00
parent 1172a4d890
commit 0a2ed5491b
8 changed files with 39 additions and 7 deletions
@@ -47,6 +47,8 @@ plugin.tx_eptheme {
watchlistPageUid = watchlistPageUid =
# cat=eptheme/200/270; type=string; label=Skipass info page UID # cat=eptheme/200/270; type=string; label=Skipass info page UID
skipassPageUid = skipassPageUid =
# cat=eptheme/200/280; type=string; label=English page UID
englishPageUid =
# cat=eptheme/400/100; type=string; label=Phone number general # cat=eptheme/400/100; type=string; label=Phone number general
phoneNumber = 0221 - 272 276 0 phoneNumber = 0221 - 272 276 0
@@ -84,6 +84,7 @@ plugin.tx_eptheme {
ratingPageUid = {$plugin.tx_eptheme.settings.ratingPageUid} ratingPageUid = {$plugin.tx_eptheme.settings.ratingPageUid}
watchlistPageUid = {$plugin.tx_eptheme.settings.watchlistPageUid} watchlistPageUid = {$plugin.tx_eptheme.settings.watchlistPageUid}
skipassPageUid = {$plugin.tx_eptheme.settings.skipassPageUid} skipassPageUid = {$plugin.tx_eptheme.settings.skipassPageUid}
englishPageUid = {$plugin.tx_eptheme.settings.englishPageUid}
} }
view { view {
templateRootPaths.0 = EXT:ep_theme/Resources/Private/Templates templateRootPaths.0 = EXT:ep_theme/Resources/Private/Templates
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

@@ -8,7 +8,9 @@ require('../images/at.png');
require('../images/ch.png'); require('../images/ch.png');
require('../images/de.png'); require('../images/de.png');
require('../images/fr.png'); require('../images/fr.png');
require('../images/gb.png');
require('../images/badge_skipass.png'); require('../images/badge_skipass.png');
require('../images/polygon.jpg');
require('../images/icons/tx_eptheme_gridelements_half_and_two_quarters.png'); require('../images/icons/tx_eptheme_gridelements_half_and_two_quarters.png');
require('../images/icons/tx_eptheme_gridelements_halves.png'); require('../images/icons/tx_eptheme_gridelements_halves.png');
@@ -1,7 +1,7 @@
.area-nav { .area-nav {
width: 100%; width: 100%;
height: $area-nav-height; height: $area-nav-height;
background: #006db6 url(../images/polygon.jpg) no-repeat top center; background: #006db6 url(../../images/polygon.jpg) no-repeat top center;
background-size: cover; background-size: cover;
@include mq($from: desktop) { @include mq($from: desktop) {
position: fixed; position: fixed;
@@ -55,10 +55,15 @@
span{ span{
font-size: 22px; font-size: 22px;
display: inline-block;
@include mq($from: mobile-landscape) { @include mq($from: mobile-landscape) {
width: 37px; width: 37px;
height: 100%;
float: left; float: left;
padding: 7px 8px; padding: 7px 8px;
display: flex;
align-items: center;
justify-content: center;
} }
} }
@@ -79,8 +84,11 @@
} }
@include mq($from: mobile-landscape) { @include mq($from: mobile-landscape) {
&.phone { &.english {
top: 0; top: 0;
}
&.phone {
top: 44px;
width: 190px; width: 190px;
right: -150px; right: -150px;
div { div {
@@ -89,7 +97,7 @@
} }
&.whatsapp{ &.whatsapp{
top: 44px; top: 88px;
width: 350px; width: 350px;
right: -310px; right: -310px;
div{ div{
@@ -98,18 +106,18 @@
} }
&.facebook { &.facebook {
top: 88px; top: 132px;
} }
&.instagram { &.instagram {
top: 132px top: 176px
} }
&.youtube { &.youtube {
top: 176px; top: 220px;
} }
&.watchlist { &.watchlist {
top: 220px; top: 264px;
} }
&:hover{ &:hover{
right: 0; right: 0;
@@ -126,5 +134,18 @@
.bg-yellow{ .bg-yellow{
background-color: #FECB00; background-color: #FECB00;
} }
.bg-blue{
background-color: #006db6;
}
} }
.ep-contactnav__icon {
display: block;
height: 22px;
width: auto;
@include mq($from: mobile-landscape) {
width: 22px;
height: auto;
}
}
@@ -24,4 +24,10 @@
<span class="fa fa-youtube-play" aria-hidden="true"></span> <span class="fa fa-youtube-play" aria-hidden="true"></span>
<div>Youtube</div> <div>Youtube</div>
</a> </a>
<f:if condition="{settings.englishPageUid}">
<f:link.typolink parameter="{settings.englishPageUid}" title="English" class="bg-yellow english">
<span><f:image src="EXT:ep_theme/Resources/Public/images/gb.png" alt="English" class="ep-contactnav__icon"/></span>
<div>English</div>
</f:link.typolink>
</f:if>
</div> </div>