Skip to content

Commit

Permalink
T196759: add support for the echo MW extension
Browse files Browse the repository at this point in the history
  • Loading branch information
0x010C committed Jun 1, 2020
1 parent a5257ae commit 9757eb8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 18 deletions.
16 changes: 7 additions & 9 deletions BlueLL.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public function execute() {
<?php echo $this->makeLink( "RecordWizard", [ "msg" => "Record", "href" => $recordwizardTitle->getFullURL(), "accesskey" => "r" ] ); ?></a>
</li>

<!-- If user is logged in output echo location -->
<?php if ($wgUser->isLoggedIn()): ?>
<div id="echo-notifications-alerts"></div>
<div id="echo-notifications-notice"></div>
<?php endif; ?>

<!-- Personal menu dropdown -->
<li id="personal-menu" class="dropdown mobile-menu">
<input id="personal-input" type="checkbox" role="button" aria-labelledby="personal-button" autocomplete="off" class="dropdown-input mobile-menu-input">
Expand Down Expand Up @@ -148,15 +154,7 @@ public function execute() {
</header>

<section id="page-content">
<aside style="display: none;"> <!-- TODO: temporary hidden, how should it be styled ?
<!-- If user is logged in output echo location -->
<?php if ($wgUser->isLoggedIn()): ?>
<div id="echo-notifications">
<div id="echo-notifications-alerts"></div>
<div id="echo-notifications-messages"></div>
<div id="echo-notifications-notice"></div>
</div>
<?php endif; ?>
<aside style="display: none;"> <!-- TODO: temporary hidden, how should it be styled ? -->

<?php if ( $this->data['sitenotice'] ) { ?><div id="siteNotice" class="sitenotice"><?php $this->html( 'sitenotice' ); ?></div><?php } ?>
<?php if ( $this->data['newtalk'] ) { ?><div id="usermessage" class="newtalk"><?php $this->html( 'newtalk' ); ?></div><?php } ?>
Expand Down
8 changes: 0 additions & 8 deletions assets/stylesheets/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@
color: white;
}

#contentHeading h1,
#contentHeading h2,
#contentHeading h4 {
z-index: 5;
position: relative;
}

#contentHeading h4 {
display: none;
}
Expand All @@ -78,7 +71,6 @@
background-position: bottom right;
background-repeat: no-repeat;
background-size: auto 100%;
z-index: 2
}
#mw-indicator-mw-helplink {
display: none;
Expand Down
20 changes: 20 additions & 0 deletions assets/stylesheets/ext.echo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#echo-notifications-alerts,
#echo-notifications-notice {
width: 24px;
margin-right: 10px;
}

#pt-notifications-alert,
#pt-notifications-notice {
position: relative;
top: 12px;
}

#pt-notifications-alert .mw-echo-notifications-badge.oo-ui-flaggedElement-unseen::after,
#pt-notifications-alert .mw-echo-notifications-badge.mw-echo-unseen-notifications::after {
background-color: #dd3333;
}
#pt-notifications-notice .mw-echo-notifications-badge.oo-ui-flaggedElement-unseen::after,
#pt-notifications-notice .mw-echo-notifications-badge.mw-echo-unseen-notifications::after {
background-color: #3366cc;
}
3 changes: 2 additions & 1 deletion skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"assets/stylesheets/content.css",
"assets/stylesheets/footer.css",
"assets/stylesheets/static.css",
"assets/stylesheets/print.css"
"assets/stylesheets/print.css",
"assets/stylesheets/ext.echo.css"
]
},
"skins.bluell.js": {
Expand Down

0 comments on commit 9757eb8

Please sign in to comment.