mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-24 02:38:44 +00:00
Moved contact button to global config, fixed php quote styles
This commit is contained in:
parent
0e286b7dbd
commit
dc7453ec7c
|
@ -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' );
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
20
skin.json
20
skin.json
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue