mirror of
https://github.com/Hutchy68/pivot.git
synced 2024-11-24 19:39:04 +01:00
commit
c5e82a8f08
@ -180,6 +180,9 @@ class pivotTemplate extends BaseTemplate {
|
||||
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<!-- Output page indicators -->
|
||||
<?php echo $this->getIndicators(); ?>
|
||||
<!-- If user is logged in output echo location -->
|
||||
<?php if ($wgUser->isLoggedIn()): ?>
|
||||
<div id="echo-notifications">
|
||||
<div id="echo-notifications-alerts"></div>
|
||||
@ -210,6 +213,7 @@ class pivotTemplate extends BaseTemplate {
|
||||
$newtitle = str_replace($namespace.':', '', $pagetitle);
|
||||
$displaytitle = str_replace($pagetitle, $newtitle, $displaytitle);
|
||||
?><h4 class="namespace label"><?php print $namespace; ?></h4><?php } ?>
|
||||
<div id="content">
|
||||
<h2 class="title"><?php print $displaytitle; ?></h2>
|
||||
<?php if ($wgPivotFeatures['useAddThisShare'] !== '') { ?>
|
||||
<!-- Go to www.addthis.com/dashboard to customize your tools -->
|
||||
@ -232,6 +236,7 @@ class pivotTemplate extends BaseTemplate {
|
||||
?>
|
||||
<div class="clear_both"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="categories" class="row">
|
||||
<div class="small-12 columns">
|
||||
<div class="group"><?php $this->html('catlinks'); ?></div>
|
||||
|
@ -17,8 +17,6 @@ jQuery(document).ready(function() {
|
||||
// Append font-awesome icons
|
||||
jQuery('[id^=ca-nstab] a').prepend('<div id="drop-icon"><i class="fa fa-file fa-fw"></i></div>')
|
||||
jQuery('li#ca-talk a').prepend('<div id="drop-icon"><i class="fa fa-comments-o fa-fw"></i></div>')
|
||||
jQuery('li#ca-edit a').prepend('<div id="drop-icon"><i class="fa fa-pencil-square-o fa-fw"></i></div>')
|
||||
jQuery('li#ca-viewsource a').prepend('<div id="drop-icon"><i class="fa fa-book fa-fw"></i></div>')
|
||||
jQuery('li#ca-form_edit a').prepend('<div id="drop-icon"><i class="fa fa-pencil-square fa-fw"></i></div>')
|
||||
jQuery('li#ca-history a').prepend('<div id="drop-icon"><i class="fa fa-archive fa-fw"></i></div>')
|
||||
jQuery('li#ca-delete a').prepend('<div id="drop-icon"><i class="fa fa-trash-o fa-fw"></i></div>')
|
||||
@ -68,7 +66,11 @@ if ( jQuery( '#ca-addsection' ).length ) {
|
||||
// Turn categories into labels
|
||||
jQuery('#mw-normal-catlinks ul li a').addClass('label');
|
||||
|
||||
// Make the Page Action button respond to hover
|
||||
|
||||
|
||||
});
|
||||
|
||||
// Have to wait until the window is fully loaded because of Visual Editor to prepend icons for editing
|
||||
jQuery(window).load(function() {
|
||||
jQuery('li#ca-ve-edit a').prepend('<div id="drop-icon"><i class="fa fa-pencil fa-fw"></i></div>')
|
||||
jQuery('li#ca-viewsource a').prepend('<div id="drop-icon"><i class="fa fa-book fa-fw"></i></div>')
|
||||
jQuery('li#ca-edit a').prepend('<div id="drop-icon"><i class="fa fa-pencil-square-o fa-fw"></i></div>')
|
||||
});
|
@ -1144,3 +1144,26 @@ ul[class*="block-grid"] {
|
||||
.wikiEditor-ui-buttons {
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
|
||||
/* Visual Editor Fixes */
|
||||
.ve-activated #content {
|
||||
margin-top: 4em;
|
||||
}
|
||||
.ve-ce-documentNode {
|
||||
background:#fff;
|
||||
}
|
||||
.oo-ui-barToolGroup.oo-ui-widget-enabled > .oo-ui-toolGroup-tools > .oo-ui-tool > .oo-ui-tool-link,
|
||||
.oo-ui-barToolGroup > .oo-ui-toolGroup-tools > .oo-ui-tool.oo-ui-widget-disabled > .oo-ui-tool-link {
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
.mw-indicators {
|
||||
float: right;
|
||||
line-height: 1.6;
|
||||
font-size: 0.875em;
|
||||
position: relative;
|
||||
margin: -.5em .5em 0;
|
||||
max-height: 25px;
|
||||
width: auto;
|
||||
z-index: 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user