Merge "Remove VectorAfterToolbox hook"
This commit is contained in:
commit
f2e7fe5fee
12
hooks.txt
12
hooks.txt
|
@ -1,12 +0,0 @@
|
||||||
Hooks provided by the Vector skin.
|
|
||||||
|
|
||||||
'VectorAfterToolbox': Called after rendering the toolbox portlet (#p-tb).
|
|
||||||
You can use this to inject items (such as ads or a hit counter, for example)
|
|
||||||
from an extension.
|
|
||||||
This is the Vector counterpart to the MonoBookAfterToolbox hook in the MonoBook
|
|
||||||
skin.
|
|
||||||
|
|
||||||
'VectorBeforeFooter': Called before the footer (#footer) is output, but after
|
|
||||||
#mw-navigation has been closed.
|
|
||||||
You can use this to inject items (such as ads or a hit counter, for example)
|
|
||||||
from an extension.
|
|
|
@ -305,22 +305,13 @@ class VectorTemplate extends BaseTemplate {
|
||||||
case 'SEARCH':
|
case 'SEARCH':
|
||||||
break;
|
break;
|
||||||
case 'TOOLBOX':
|
case 'TOOLBOX':
|
||||||
$portal = $this->getMenuData(
|
$props[] = $this->getMenuData(
|
||||||
'tb', $content, self::MENU_TYPE_PORTAL
|
'tb', $content, self::MENU_TYPE_PORTAL
|
||||||
);
|
);
|
||||||
// Run deprecated hook.
|
|
||||||
// Use SidebarBeforeOutput instead.
|
|
||||||
ob_start();
|
|
||||||
Hooks::run( 'VectorAfterToolbox', [], '1.35' );
|
|
||||||
$props[] = $portal + [
|
|
||||||
'html-hook-vector-after-toolbox' => ob_get_clean(),
|
|
||||||
];
|
|
||||||
break;
|
break;
|
||||||
case 'LANGUAGES':
|
case 'LANGUAGES':
|
||||||
$portal = $this->getMenuData(
|
$portal = $this->getMenuData(
|
||||||
'lang',
|
'lang', $content, self::MENU_TYPE_PORTAL
|
||||||
$content,
|
|
||||||
self::MENU_TYPE_PORTAL
|
|
||||||
);
|
);
|
||||||
// The language portal will be added provided either
|
// The language portal will be added provided either
|
||||||
// languages exist or there is a value in html-after-portal
|
// languages exist or there is a value in html-after-portal
|
||||||
|
|
|
@ -20,5 +20,3 @@
|
||||||
{{{html-after-portal}}}
|
{{{html-after-portal}}}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{{! Note: html-hook-vector-after-toolbox is deprecated. }}
|
|
||||||
{{{html-hook-vector-after-toolbox}}}
|
|
||||||
|
|
|
@ -59,7 +59,5 @@
|
||||||
* @property {string} list-classes of the unordered list element inside the menu
|
* @property {string} list-classes of the unordered list element inside the menu
|
||||||
* @property {string} [html-user-language-attributes]
|
* @property {string} [html-user-language-attributes]
|
||||||
* @property {boolean} [is-dropdown]
|
* @property {boolean} [is-dropdown]
|
||||||
* @property {string} [html-hook-vector-after-toolbox] Deprecated and used
|
|
||||||
* by the toolbox portal menu.
|
|
||||||
* @property {string} [html-after-portal] Additional HTML specific to portal menus.
|
* @property {string} [html-after-portal] Additional HTML specific to portal menus.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue