Moved contact button to global config, fixed php quote styles

This commit is contained in:
alistair3149 2019-12-20 15:19:17 -05:00
parent 0e286b7dbd
commit dc7453ec7c
3 changed files with 26 additions and 18 deletions

View file

@ -96,26 +96,16 @@ class CitizenTemplate extends BaseTemplate {
*/
protected function getBottomBar() {
$linkDiscord = 'https://discord.gg/3kjftWK';
$titleDiscord = 'Contact Us on Discord';
$textDiscord = 'Discord';
/*
$linkReddit = 'https://www.reddit.com/r/starcitizen';
$titleReddit = 'Visit /r/starcitizen';
$textReddit = 'Reddit';
*/
$linkButton = $this->getConfig()->get( 'CitizenButtonLink' );
$titleButton = $this->getConfig()->get( 'CitizenButtonTitle' );
$textButton = $this->getConfig()->get( 'CitizenButtonText' );
$html = Html::openElement( 'div', [ 'id' => 'mw-bottombar' ] );
$html .= Html::rawElement( 'div', [ 'id' => 'mw-bottombar-contact' ],
Html::rawElement( 'div', [ 'class' => 'citizen-ui-icon', 'id' => 'citizen-ui-discord' ],
Html::rawElement( 'a', [ 'href' => $linkDiscord, 'title' => $titleDiscord, 'rel' => 'noopener noreferrer', 'target' => '_blank' ], $textDiscord )
$html .= Html::rawElement( 'div', [ 'id' => 'mw-bottombar-buttons' ],
Html::rawElement( 'div', [ 'class' => 'citizen-ui-icon', 'id' => 'citizen-ui-button' ],
Html::rawElement( 'a', [ 'href' => $linkButton, 'title' => $titleButton, 'rel' => 'noopener noreferrer', 'target' => '_blank' ], $textButton )
)
/*
Html::rawElement( 'div', [ 'class' => 'citizen-ui-icon', 'id' => 'citizen-ui-reddit' ],
Html::rawElement( 'a', [ 'href' => $linkReddit, 'title' => $titleReddit, 'target' => '_blank' ], $textReddit )
)
*/
);
$html .= Html::closeElement( 'div' );

View file

@ -11,7 +11,7 @@
transform: translate(0px, @header-height + @margin-side);
transition: @transition-transform;
&-contact {
&-buttons {
display: flex;
margin: @margin-side;
padding: 0 @margin-side / 2;

View file

@ -13,6 +13,24 @@
},
"config_prefix": "wgCitizen",
"config": {
"ButtonLink": {
"value": "",
"description": "The link of the floating action button",
"descriptionmsg": "citizen-config-buttonlink",
"public": true
},
"ButtonLabel": {
"value": "",
"description": "The label of the floating action button",
"descriptionmsg": "citizen-config-buttonlabel",
"public": true
},
"ButtonTitle": {
"value": "",
"description": "The title in the link element of the floating action button",
"descriptionmsg": "citizen-config-buttontitle",
"public": true
},
"ThemeColor": {
"value": "#11151d",
"description": "The theme color defined in the meta tag",
@ -111,7 +129,7 @@
"defaultColor": "#000",
"useDataURI": false,
"images": {
"discord": "resources/images/icons/discord.svg"
"button": "resources/images/icons/discord.svg"
}
},
"skins.citizen.icons.ca": {