Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F422380
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
12 KB
Subscribers
None
View Options
diff --git a/assets/scripts/foreground.js b/assets/scripts/foreground.js
index b7b2a04..010ecdb 100644
--- a/assets/scripts/foreground.js
+++ b/assets/scripts/foreground.js
@@ -1,10 +1,10 @@
jQuery(document).ready(function() {
jQuery(document).foundation();
// Split the namespace title into a title and a label
- var $title = jQuery("h2:contains(':')").not(":contains('\"')").not(":contains('as of')").text().split(":");
- jQuery("h2:contains(':')").not(":contains('\"')").not(":contains('as of')").html('<small class="label">' + $title[0] + '</small><span>' + $title[1] + '</span>');
+ var $title = jQuery("h2.title:contains(':')").not(":contains('\"')").not(":contains('as of')").text().split(":");
+ jQuery("h2.title:contains(':')").not(":contains('\"')").not(":contains('as of')").html('<small class="label">' + $title[0] + '</small><span>' + $title[1] + '</span>');
// Turn categories into labels
jQuery('#mw-normal-catlinks ul li a').addClass('label');
});
\ No newline at end of file
diff --git a/assets/stylesheets/foreground.css b/assets/stylesheets/foreground.css
index 970035d..13b6a51 100644
--- a/assets/stylesheets/foreground.css
+++ b/assets/stylesheets/foreground.css
@@ -1,366 +1,367 @@
body {
line-height: 1.6em;
}
p {
margin-bottom: 0.25em;
}
td.mw-submit a,
.htmlform-tip,
#mw-upload-permitted p {
font-size: 90%;
}
code {
font-weight: normal;
color: #222222;
}
small {
font-size: 80%;
}
h2 small.label {
font-size: small;
display:inline-block;
}
h2 span {
+ display:block;
clear:both;
}
.clear_both {
clear:both;
}
.large-2 {
text-align: right;
}
.large-2 strong, .large-2 b {
display: block;
}
.large-2 strong, .large-2 b, table th {
font-size: 0.875em;
color: #4d4d4d;
font-weight: 500;
}
/* LAYOUT */
.row .row {
margin-bottom: 0.9em;
}
div.small-10 .row {
margin: 1em 0 0 0;
}
div.small-9.columns textarea {
margin-bottom: 0.25em;
}
footer.row {
margin-top: 3em;
text-align: center;
font-size: 80%;
color: grey;
}
div {
line-height: 1.60em;
}
/* NOTICES, ALERTS, WARNINGS */
div#userloginprompt, p#userloginlink {
font-size: 80%;
}
/* LISTS */
#mw-content-text ul {
list-style-type: disc;
margin: .5em 1.25em;
}
footer.row ul {
list-style-type: none;
margin: .5em 1.25em;
}
footer.row ul.views.columns li {
margin-right: 1em;
}
/*.columns li {
float:left;
width: 45%;
}*/
.columns ul.special li {
float:none;
width: 100%;
}
.columns div#uploadtext ul {
list-style-type: disc;
}
.columns div#uploadtext ul li {
float: none;
width: 95%;
margin-left: 2em;
}
.mw-specialpages-table td ul.columns li {width: 50%;}
#mw-content-text .columns li {float:none;width:90%;}
footer.row ul.columns li { display: inline;float:none;}
.columns #mw-normal-catlinks ul li {
float: none;
width: auto;
}
#mw-normal-catlinks a.new {
color: white;
}
/* HEADERS */
h1,h2,h3,h4,h5,h6 {
margin-top: 0em;
- margin-bottom: 0em;
+ line-height: 1em;
}
.page-Special_SpecialPages h2 {
margin-bottom: 0.5em;
}
.editsection {
font-weight: normal;
font-size: 0.3em;
}
h3 {
font-weight: normal;
font-size:1em;
}
.ns-subject h3,
.ns-special h3,
.page-Main_Page h3 {
font-weight: bold;
font-size: 2em;
}
p.title {
padding: 0.9375em;
}
/* TABLES */
table.formtable {
border: none;
}
/* TURN OFF TABLE STRIPING FOR EDITFORMS */
table.formedit tr.even,
table.formedit tr.alt,
table.formedit tr:nth-of-type(even) {
background: transparent;
}
table {
width: 100%;
}
td.mw-label {
width: 20%;
}
td.mw-input {
width: 80%;
}
thead tr th {
cursor: pointer;
}
table.formtable th {
text-align: right !important;
}
td.smwpropname, th.smwpropname, td.smwspecname {
text-align:left;
}
table tbody tr td, table tr td {
line-height: 1.6em;
}
table.wikitable {
margin: 0em 0 1em 0;
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
text-align: left;
}
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
border: 3px #fff solid;
padding: 0.6em;
}
/* FORMS, INPUTS, FIELDSETS */
.multipleTemplateInstance {
background-color: white !important;
border: none !important;
border-bottom: 1px dashed #999999 !important;
}
.multipleTemplateInstance table {
border: none !important;
}
.novalue {
color: #999999;
font-style:italic;
font-size:small;
}
.inputSpan select.createboxInput,
.dateInput select.monthInput,
input.hourInput,
input.minuteInput,
input.secondInput,
input.dayInput,
input.yearInput,
input[name="Website[Founded date][hour]"],
input[name="Website[Founded date][minute]"],
input[name="Website[Founded date][second]"] {
width: auto;
float: left;
margin-right: 1em;
}
select {width:auto;}
input.createboxInput {
width: 100%;
}
input[type="checkbox"].createboxInput {
width: auto;
}
label.checkboxLabel {
margin-right: 0.5em;
}
.edit_with_form {
margin: -2em 0 0 0;
float:right;
}
input[type="radio"],
input[type="checkbox"] {
display:inline;
}
input[type='file'] {
margin-top: 0.4em;
}
input:not([type]),
textarea,
p.meta {
margin-bottom: 4px;
}
label { display: inline;}
.mw-input label { font-weight: normal; }
li label.inline {
margin-bottom: 2px;
padding: 0;
}
div.small-9.columns label,
div.small-10.columns label {
font-weight: normal;
}
button, .button {
margin: 0.5em 0;
padding: 0.3em 0.75em 0.4em 0.75em;
}
input[type="submit"] {
background-color: #5da423;
border-color: #457a1a;
color: white;
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
-webkit-transition: background-color 300ms ease-out;
-moz-transition: background-color 300ms ease-out;
transition: background-color 300ms ease-out;
}
.editButtons input[type="submit"] {
display: inline-block;
}
legend {
font-size: 0.875em;
color: #4d4d4d;
cursor: pointer;
display: block;
font-weight: 500;
}
fieldset {
line-height: 1.6em;
padding: 0.25em 1.25em 1em 1.25em;
}
span.smwbuiltin,
span.smwttactiveinline span.smwbuiltin {
font-style: normal;
}
/* MW still generates a label column for checkboxes, this minimizes is */
div.mw-htmlform-field-HTMLCheckField div.mw-label { height:0; }
/* UNTIL I CAN DETERMINE WHY toolboxend GENERATES AN EMPTY <li> IN THE MENU, I'M HIDING IT */
#p-toolboxend { display:none;}
/* Jamie's Header Hider */
body.page-Main_Page h1.firstHeading,
body.page-Main_Page #siteSub,
body.page-Extension_Main_Page h1.firstHeading,
body.page-Extension_Main_Page #siteSub,
body.page-Skin_Main_Page h1.firstHeading,
body.page-Skin_Main_Page #siteSub,
body.page-Farm_Main_Pageh1.firstHeading,
body.page-Farm_Main_Page #siteSub {
display:none;
}
diff --git a/foreground.skin.php b/foreground.skin.php
index 6f67b5d..89da932 100755
--- a/foreground.skin.php
+++ b/foreground.skin.php
@@ -1,144 +1,144 @@
<?php
/**
* Skin file for skin WWFoundation.
*
* @file
* @ingroup Skins
*/
class SkinForeground extends SkinTemplate {
public $skinname = 'foreground', $stylename = 'foreground', $template = 'ForegroundTemplate', $useHeadElement = true;
public function setupSkinUserCss(OutputPage $out) {
parent::setupSkinUserCss($out);
$out->addModuleStyles('skins.foreground');
}
public function initPage( OutputPage $out ) {
global $wgLocalStylePath;
parent::initPage($out);
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0';
$out->addMeta('viewport', $viewport_meta);
$out->addModuleScripts('skins.foreground');
}
}
class ForegroundTemplate extends BaseTemplate {
public function execute() {
global $wgUser;
wfSuppressWarnings();
$this->html('headelement');
?>
<!-- START FOREGROUNDTEMPLATE -->
<nav class="top-bar">
<ul class="title-area">
<li class="name"><h1><a href="<?php echo $this->data['nav_urls']['mainpage']['href']; ?>"><?php echo $this->text('sitename'); ?></a></h1></li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
<ul class="left">
<li class="divider"></li>
<?php foreach ( $this->getSidebar() as $boxName => $box ) { ?>
<li class="has-dropdown active" id='<?php echo Sanitizer::escapeId( $box['id'] ) ?>'<?php echo Linker::tooltip( $box['id'] ) ?>>
<a href="#"><?php echo htmlspecialchars( $box['header'] ); ?></a>
<?php if ( is_array( $box['content'] ) ) { ?>
<ul class="dropdown">
<?php foreach ( $box['content'] as $key => $item ) { echo $this->makeListItem( $key, $item ); } ?>
</ul>
<?php } ?>
</li>
<?php } ?>
</ul>
<ul class="right">
<li class="has-form">
<form action="<?php $this->text( 'wgScript' ); ?>" id="searchform" class="mw-search">
<div class="row collapse">
<div class="small-8 columns">
<?php echo $this->makeSearchInput(array('placeholder' => 'Search...', 'id' => 'searchInput') ); ?>
</div>
<div class="small-4 columns">
<button type="submit" calass="alert button">Search</button>
</div>
</form>
</li>
<li class="divider show-for-small"></li>
<li class="has-form">
<?php if ($wgUser->isLoggedIn()): ?>
<li class="has-dropdown active"><a href="#">Personal</a>
<ul class="dropdown">
<?php foreach ( $this->getPersonalTools() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
</ul>
</li>
<?php else: ?>
<li>
<?php if (isset($this->data['personal_urls']['anonlogin'])): ?>
<a href="<?php echo $this->data['personal_urls']['anonlogin']['href']; ?>">Sign In</a>
<?php elseif (isset($this->data['personal_urls']['login'])): ?>
<a href="<?php echo $this->data['personal_urls']['login']['href']; ?>">Sign In</a>
<?php else: ?>
<?php echo Linker::link(Title::newFromText('Special:UserLogin'), 'Sign In'); ?>
<?php endif; ?>
</li>
<?php endif; ?>
</ul>
</section>
</nav>
<?php if ( $this->data['sitenotice'] ) { ?><div id="siteNotice" class="row notice large-12 columns"><?php $this->html( 'sitenotice' ); ?></div><?php } ?>
<?php if ( $this->data['newtalk'] ) { ?><div class="usermessage row notice large-12 columns"><?php $this->html( 'newtalk' ); ?></div><?php } ?>
<div id="mw-js-message" style="display:none;"></div>
<div class="row">
<div class="large-12 columns">
- <h2><?php $this->html('title') ?></h2>
- <h5><?php $this->html('subtitle') ?></h5>
+ <h2 class="title"><?php $this->html('title') ?></h2>
+ <h5 class="subtitle"><?php $this->html('subtitle') ?></h5>
<?php $this->html('bodytext') ?>
<div class="group"><?php $this->html('catlinks'); ?></div>
<?php $this->html('dataAfterContent'); ?>
</div>
</div>
<footer class="row">
<?php if ($wgUser->isLoggedIn()): ?>
<ul class="views large-12 columns">
<?php foreach( $this->data['content_actions'] as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
<?php wfRunHooks( SkinTemplateToolboxEnd, array( &$this, true ) ); ?>
</ul>
<?php endif; ?>
<ul class="large-12 columns">
<?php foreach ( $this->getFooterLinks( "flat" ) as $key ) { ?>
<li><?php $this->html( $key ) ?></li>
<?php } ?>
</ul>
<ul> <?php foreach ( $this->getFooterIcons( "nocopyright" ) as $blockName => $footerIcons ) { ?>
<li><?php foreach ( $footerIcons as $icon ) { ?>
<?php echo $this->getSkin()->makeFooterIcon( $icon, 'withoutImage' ); ?>
<?php } ?>
</li>
<?php } ?>
</ul>
</footer>
<div id="mw-js-message" style="display:none;"></div>
<?php $this->printTrail(); ?>
</body>
</html>
<?php
wfRestoreWarnings();
}
}
?>
\ No newline at end of file
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Aug 7, 11:55 PM (16 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
65003
Default Alt Text
(12 KB)
Attached To
rKIBA kiba-one
Event Timeline
Log In to Comment