Skip to content
Snippets Groups Projects
Commit 6bacd848 authored by rohieb's avatar rohieb
Browse files

split into StratumSponsors.php, OpenCloseSidebar.php and UploadWizard patches

parent 568f16d4
Branches master
No related tags found
No related merge requests found
<?php
#
# Add the Open/Close status to the sidebar for the 'openclosestatus' item
#
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'stratumOpenCloseSidebarHook';
function stratumOpenCloseSidebarHook($skin, $tpl) {
if(isset($tpl->data['sidebar']['openclosestatus']))
$tpl->data['sidebar']['openclosestatus'] = '<ul><li><a title="'.
'&Ouml;ffnungsstatus" href="/wiki/Open/Close-Monitor">'.
'<img style="border:none; height:2em;" src="https://stratum0.org/status/'.
'status.png" /></a></li></ul>';
return true;
}
?>
<?php
#
# Add a sponsor link to the sidebar for the "sponsorlink" item
#
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'stratumSponsorsHook';
function stratumSponsorsHook($skin, $tpl) {
$sponsors = array(
#array(
# "name" => "Stratum 0",
# "image" => "120px-Sanduhr-wiki-logo.svg.png"
#),
array(
"name" => "TRIOLOGY – Agility for your business",
"image" => "TRIO_Logo-o-Slogan_web.png"
),
#array(
# "name" => "GNS Systems",
# "image" => "GNS-Systems-Logo-1c-HKS41_neu2014-120x120.png"
#),
#array(
# "name" => "BEL NET",
# "image" => "RZ_BelnetLogo_120x120.jpg"
#),
#array(
# "name" => "LINET Services",
# "image" => "Linet_logo_cmyk.png"
#),
);
if(isset($tpl->data['sidebar']['sponsorlink'])) {
$i = rand(0, count($sponsors) - 1);
$v = $sponsors[$i];
$tpl->data['sidebar']['sponsorlink'] =
sprintf("<p style='text-align:center'><img alt='%s'".
" title='%s' src='/mediawiki/images/sponsors/%s' /></p>", $v["name"],
$v["name"], $v["image"]);
}
return true;
}
?>
<?php
$wgMessagesDirs['StratumFixes'] = __DIR__ . '/i18n';
$wgMessagesDirs['StratumFixes'] = __DIR__ . '/UploadWizard-i18n';
#
# Add a sponsor link to the sidebar for the "sponsorlink" item
#
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'stratumSponsorsHook';
function stratumSponsorsHook($skin, $tpl) {
$sponsors = array(
#array(
# "name" => "Stratum 0",
# "image" => "120px-Sanduhr-wiki-logo.svg.png"
#),
array(
"name" => "TRIOLOGY – Agility for your business",
"image" => "TRIO_Logo-o-Slogan_web.png"
),
#array(
# "name" => "GNS Systems",
# "image" => "GNS-Systems-Logo-1c-HKS41_neu2014-120x120.png"
#),
#array(
# "name" => "BEL NET",
# "image" => "RZ_BelnetLogo_120x120.jpg"
#),
#array(
# "name" => "LINET Services",
# "image" => "Linet_logo_cmyk.png"
#),
);
if(isset($tpl->data['sidebar']['sponsorlink'])) {
$i = rand(0, count($sponsors) - 1);
$v = $sponsors[$i];
$tpl->data['sidebar']['sponsorlink'] =
sprintf("<p style='text-align:center'><img alt='%s'".
" title='%s' src='/mediawiki/images/sponsors/%s' /></p>", $v["name"],
$v["name"], $v["image"]);
}
return true;
}
#
# Add the Open/Close status to the sidebar for the 'openclosestatus' item
#
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'stratumOpenCloseSidebarHook';
function stratumOpenCloseSidebarHook($skin, $tpl) {
if(isset($tpl->data['sidebar']['openclosestatus']))
$tpl->data['sidebar']['openclosestatus'] = '<ul><li><a title="'.
'&Ouml;ffnungsstatus" href="/wiki/Open/Close-Monitor">'.
'<img style="border:none; height:2em;" src="https://stratum0.org/status/'.
'status.png" /></a></li></ul>';
return true;
}
include("SponsorsSidebar.php");
include("OpenCloseSidebar.php");
?>
{
"@metadata": {
"authors": [
"rohieb"
]
},
"mwe-upwiz-license-pd-author": "Dieses Werk wurde von seinem Urheber als gemeinfrei veröffentlicht.",
"mwe-upwiz-license-nonfree-head": "Die {{PLURAL:$1|Datei ist|Dateien sind}} nicht unter einer freien Lizenz veröffentlicht worden.",
"mwe-upwiz-license-nonfree": "Mir ist bewusst, dass {{PLURAL:$1|die Datei|die Dateien}} bei Urheberrechtsansprüchen von Dritten jederzeit gelöscht werden {{PLURAL:$1|kann|können}}."
}
{
"@metadata": {
"authors": [
"rohieb"
]
},
"mwe-upwiz-license-pd-author": "This work has been released into the public domain by its author.",
"mwe-upwiz-license-nonfree-head": "The {{PLURAL:$1|file|files}} have not been published under a free license.",
"mwe-upwiz-license-nonfree": "I understand that the {{PLURAL:$1|file|files}} can be deleted any time if a third party claims copyright."
}
{
"@metadata": {
"authors": [
"rohieb"
]
},
"mwe-upwiz-license-pd-author": "statement that file/s are in the public domain",
"mwe-upwiz-license-nonfree-head": "statement that file/s are not licensed under a free license",
"mwe-upwiz-license-nonfree": "notice to users that files with nonfree licenses can be deleted"
}
......@@ -4,11 +4,6 @@
"rohieb"
]
},
"mwe-upwiz-license-pd-author": "Dieses Werk wurde von seinem Urheber als gemeinfrei veröffentlicht.",
"mwe-upwiz-license-nonfree-head": "Die {{PLURAL:$1|Datei ist|Dateien sind}} nicht unter einer freien Lizenz veröffentlicht worden.",
"mwe-upwiz-license-nonfree": "Mir ist bewusst, dass {{PLURAL:$1|die Datei|die Dateien}} bei Urheberrechtsansprüchen von Dritten jederzeit gelöscht werden {{PLURAL:$1|kann|können}}.",
"openclosestatus": "Space-Status",
"sponsorlink": "Unterstützt durch"
}
......@@ -4,11 +4,6 @@
"rohieb"
]
},
"mwe-upwiz-license-pd-author": "This work has been released into the public domain by its author.",
"mwe-upwiz-license-nonfree-head": "The {{PLURAL:$1|file|files}} have not been published under a free license.",
"mwe-upwiz-license-nonfree": "I understand that the {{PLURAL:$1|file|files}} can be deleted any time if a third party claims copyright.",
"openclosestatus": "Opening Status",
"sponsorlink": "Supported by"
}
......@@ -4,11 +4,6 @@
"rohieb"
]
},
"mwe-upwiz-license-pd-author": "statement that file/s are in the public domain",
"mwe-upwiz-license-nonfree-head": "statement that file/s are not licensed under a free license",
"mwe-upwiz-license-nonfree": "notice to users that files with nonfree licenses can be deleted",
"openclosestatus": "Opening status of the space",
"sponsorlink": "Heading in the sidebar over the sponsor logo"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment