|
@@ -39,7 +39,7 @@ class Skinforeground extends SkinTemplate {
|
|
|
header('X-UA-Compatible: IE=edge');
|
|
|
break;
|
|
|
}
|
|
|
- $out->addModuleStyles('skins.foreground');
|
|
|
+ $out->addModuleStyles('skins.foreground.styles');
|
|
|
}
|
|
|
|
|
|
public function initPage( OutputPage $out ) {
|
|
@@ -48,7 +48,7 @@ class Skinforeground extends SkinTemplate {
|
|
|
|
|
|
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0';
|
|
|
$out->addMeta('viewport', $viewport_meta);
|
|
|
- $out->addModuleScripts('skins.foreground');
|
|
|
+ $out->addModules('skins.foreground.js');
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -183,10 +183,12 @@ class foregroundTemplate extends BaseTemplate {
|
|
|
<div id="p-cactions" class="large-12 columns">
|
|
|
<?php if ($wgUser->isLoggedIn() || $wgForegroundFeatures['showActionsForAnon']): ?>
|
|
|
<a href="#" data-dropdown="drop1" class="button dropdown small secondary radius"><i class="fa fa-cog"><span class="show-for-medium-up"> <?php echo wfMessage( 'actions' )->text() ?></span></i></a>
|
|
|
- <ul id="drop1" class="views large-12 columns f-dropdown">
|
|
|
+ <!--RTL -->
|
|
|
+ <ul id="drop1" class="views large-12 columns right f-dropdown">
|
|
|
<?php foreach( $this->data['content_actions'] as $key => $item ) { echo preg_replace(array('/\sprimary="1"/','/\scontext="[a-z]+"/','/\srel="archives"/'),'',$this->makeListItem($key, $item)); } ?>
|
|
|
- <?php wfRunHooks( SkinTemplateToolboxEnd, array( &$this, true ) ); ?>
|
|
|
+ <?php wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this, true ) ); ?>
|
|
|
</ul>
|
|
|
+ <!--RTL -->
|
|
|
<?php if ($wgUser->isLoggedIn()): ?>
|
|
|
<div id="echo-notifications"></div>
|
|
|
<?php endif; ?>
|
|
@@ -198,16 +200,18 @@ class foregroundTemplate extends BaseTemplate {
|
|
|
$newtitle = str_replace($namespace.':', '', $pagetitle);
|
|
|
$displaytitle = str_replace($pagetitle, $newtitle, $displaytitle);
|
|
|
?><h4 class="namespace label"><?php print $namespace; ?></h4><?php } ?>
|
|
|
- <h2 class="title"><?php print $displaytitle; ?></h2>
|
|
|
+ <div id="content">
|
|
|
+ <h2 id="firstHeading" class="title"><?php print $displaytitle; ?></h2>
|
|
|
<?php if ( $this->data['isarticle'] ) { ?><h3 id="tagline"><?php $this->msg( 'tagline' ) ?></h3><?php } ?>
|
|
|
- <h5 class="subtitle"><?php $this->html('subtitle') ?></h5>
|
|
|
- <div class="clear_both"></div>
|
|
|
- <div class="mw-bodytext">
|
|
|
+ <h5 id="siteSub" class="subtitle"><?php $this->html('subtitle') ?></h5>
|
|
|
+ <div id="contentSub" class="clear_both"></div>
|
|
|
+ <div id="bodyContent" class="mw-bodytext">
|
|
|
<?php $this->html('bodytext') ?>
|
|
|
<div class="clear_both"></div>
|
|
|
</div>
|
|
|
<div class="group"><?php $this->html('catlinks'); ?></div>
|
|
|
<?php $this->html('dataAfterContent'); ?>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -253,4 +257,4 @@ class foregroundTemplate extends BaseTemplate {
|
|
|
wfRestoreWarnings();
|
|
|
}
|
|
|
}
|
|
|
-?>
|
|
|
+?>
|