Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F408482
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
9 KB
Subscribers
None
View Options
diff --git a/foreground.i18n.php b/foreground.i18n.php
index 5c8f94b..ab0dbcd 100755
--- a/foreground.i18n.php
+++ b/foreground.i18n.php
@@ -1,18 +1,18 @@
<?php
/**
* Internationalization file for skin Laravel.
*
* @file
* @ingroup Skins
*/
-
+
$messages = array();
/** English
* @author WikiWonders
*/
$messages['en'] = array(
- 'skinname-wwfoundation' => 'wwfounadtion',
- 'wwfoundation-desc' => 'WikiWonders base skin.'
+ 'skinname-foreground' => 'Foreground',
+ 'foreground-desc' => 'A MediaWiki skin that focuses on putting your content in the foreground.'
);
\ No newline at end of file
diff --git a/foreground.php b/foreground.php
index bf7a0ae..38eeba2 100755
--- a/foreground.php
+++ b/foreground.php
@@ -1,58 +1,58 @@
<?php
/**
* WikiWonders foreground Skin
*
* @file
* @ingroup Skins
* @author WikiWonders <skins@wikiwonders.net>
* @license 2-clause BSD
*/
if( ! defined( 'MEDIAWIKI' ))
{
die("Wiki Wonders What You're Doing");
}
$wgExtensionCredits['skin'][] = array(
'path' => __FILE__,
'name' => 'Foreground',
'url' => 'http://foreground.wikiwonders.net/',
'author' => 'WikiWonders',
'descriptionmsg' => 'A MediaWiki skin that focuses on putting your content in the foreground.',
);
$wgValidSkinNames['foreground'] = 'Foreground';
-$wgAutoloadClasses['Skinforeground'] = __DIR__.'/foreground.skin.php';
+$wgAutoloadClasses['SkinForeground'] = __DIR__.'/Foreground.skin.php';
-$wgExtensionMessagesFiles['foreground'] = __DIR__.'/foreground.i18n.php';
+$wgExtensionMessagesFiles['SkinForeground'] = __DIR__.'/Foreground.i18n.php';
$wgResourceModules['skins.foreground'] = array(
'styles' => array(
'foreground/assets/stylesheets/normalize.css',
'foreground/assets/stylesheets/font-awesome.css',
'foreground/assets/stylesheets/foundation.css',
'foreground/assets/stylesheets/foreground.css',
'foreground/assets/stylesheets/foreground-print.css',
'foreground/assets/stylesheets/jquery.autocomplete.css',
'foreground/assets/stylesheets/responsive-tables.css'
),
'scripts' => array(
'foreground/assets/scripts/vendor/custom.modernizr.js',
'foreground/assets/scripts/vendor/fastclick.js',
'foreground/assets/scripts/foundation/foundation.js',
'foreground/assets/scripts/foundation/foundation.topbar.js',
'foreground/assets/scripts/foundation/foundation.dropdown.js',
'foreground/assets/scripts/foundation/foundation.section.js',
'foreground/assets/scripts/foundation/foundation.clearing.js',
'foreground/assets/scripts/foundation/foundation.cookie.js',
'foreground/assets/scripts/foundation/foundation.placeholder.js',
'foreground/assets/scripts/foundation/foundation.forms.js',
'foreground/assets/scripts/foundation/foundation.alerts.js',
'foreground/assets/scripts/foreground.js'
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory']
);
diff --git a/foreground.skin.php b/foreground.skin.php
index 32407f8..63ea084 100755
--- a/foreground.skin.php
+++ b/foreground.skin.php
@@ -1,160 +1,164 @@
<?php
/**
- * Skin file for skin WWFoundation.
+ * Skin file for skin WikiWonders' Foreground
*
* @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');
}
}
+// public static function foregroundHTMLUpdate( OutputPage &$out, &$text ) {
+// print_r($out);
+// }
+
class foregroundTemplate extends BaseTemplate {
public function execute() {
global $wgUser;
wfSuppressWarnings();
$this->html('headelement');
?>
<!-- START FOREGROUNDTEMPLATE -->
<nav class="top-bar">
<section class="top-bar-section">
<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>
<ul class="left">
<li class="divider"></li>
<?php foreach ( $this->getSidebar() as $boxName => $box ) { if ($box['header'] != "Toolbox") { ?>
<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" class="button search">Search</button>
</div>
</div>
</form>
</li>
<li class="divider show-for-small"></li>
<li class="has-form">
<li class="has-dropdown active"><a href="#"><i class="icon-cogs"></i></a>
<ul class="dropdown">
<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
<li id="n-recentchanges"><a href="/wiki/Special:RecentChanges">Recent Changes</a></li>
<li id="n-help"><a href="/wiki/Help:Contents">Help</a></li>
</ul>
</li>
<?php if ($wgUser->isLoggedIn()): ?>
<li class="has-dropdown active"><a href="#"><i class="icon-user"></i></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>
<div class="row">
<div class="large-12 columns">
<?php if ( $this->data['sitenotice'] ) { ?><div id="siteNotice" class="sitenotice panel radius"><?php $this->html( 'sitenotice' ); ?></div><?php } ?>
<?php if ( $this->data['newtalk'] ) { ?><div id="usermessage" class="newtalk panel radius"><?php $this->html( 'newtalk' ); ?></div><?php } ?>
</div>
</div>
<div id="mw-js-message" style="display:none;"></div>
<div class="row">
<div class="large-12 columns">
<?php if ($wgUser->isLoggedIn()): ?>
<a href="#" data-dropdown="drop1" class="button dropdown small secondary radius"><i class="icon-cog"><span class="show-for-medium-up"> Actions<span></i></a>
<ul id="drop1" class="views large-12 columns f-dropdown">
<?php foreach( $this->data['content_actions'] as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
<?php wfRunHooks( SkinTemplateToolboxEnd, array( &$this, true ) ); ?>
</ul>
<?php endif; ?>
<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">
<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();
}
}
?>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jun 9, 3:04 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
46378
Default Alt Text
(9 KB)
Attached To
rKIBA kiba-one
Event Timeline
Log In to Comment