Move some more page tools to 'page tools'

Extensions:
* Cite
* Wikibase
* Collection

Change-Id: If3f1627f91d398596d8e4e9c648688e42377b64d
isekai
Isarra 6 years ago
parent 073c37d33b
commit 91b22e854a

@ -15,6 +15,9 @@ class TimelessTemplate extends BaseTemplate {
/** @var array|null */ /** @var array|null */
protected $otherProjects; protected $otherProjects;
/** @var array|null */
protected $collectionPortlet;
/** /**
* Outputs the entire contents of the page * Outputs the entire contents of the page
*/ */
@ -28,6 +31,11 @@ class TimelessTemplate extends BaseTemplate {
$this->otherProjects = $this->sidebar['wikibase-otherprojects']; $this->otherProjects = $this->sidebar['wikibase-otherprojects'];
unset( $this->sidebar['wikibase-otherprojects'] ); unset( $this->sidebar['wikibase-otherprojects'] );
} }
// Collection sidebar thing
if ( isset( $this->sidebar['coll-print_export'] ) ) {
$this->collectionPortlet = $this->sidebar['coll-print_export'];
unset( $this->sidebar['coll-print_export'] );
}
// Open html, body elements, etc // Open html, body elements, etc
$html = $this->get( 'headelement' ); $html = $this->get( 'headelement' );
@ -481,6 +489,12 @@ class TimelessTemplate extends BaseTemplate {
$this->pileOfTools['page-secondary'], $this->pileOfTools['page-secondary'],
'timeless-pageactions' 'timeless-pageactions'
); );
if ( isset( $this->collectionPortlet ) ) {
$pageTools .= $this->getPortlet(
'coll-print_export',
$this->collectionPortlet['content']
);
}
$pageTools .= $this->getPortlet( $pageTools .= $this->getPortlet(
'userpagetools', 'userpagetools',
$this->pileOfTools['user'], $this->pileOfTools['user'],
@ -739,7 +753,9 @@ class TimelessTemplate extends BaseTemplate {
'info', 'info',
'pagelog', 'pagelog',
'recentchangeslinked', 'recentchangeslinked',
'permalink' 'permalink',
'wikibase',
'cite'
] ) ) { ] ) ) {
$currentSet = 'page-tertiary'; $currentSet = 'page-tertiary';
} elseif ( in_array( $navKey, [ } elseif ( in_array( $navKey, [

Loading…
Cancel
Save