diff --git a/includes/VectorTemplate.php b/includes/VectorTemplate.php index e13b0fc..a34b64d 100644 --- a/includes/VectorTemplate.php +++ b/includes/VectorTemplate.php @@ -415,10 +415,11 @@ class VectorTemplate extends BaseTemplate { */ private function buildNamespacesProps() : array { $props = [ - 'tabs-id' => 'p-namespaces', - 'empty-portlet' => ( count( $this->get( 'namespace_urls', [] ) ) == 0 ) ? 'emptyPortlet' : '', + 'id' => 'p-namespaces', + 'class' => ( count( $this->get( 'namespace_urls', [] ) ) == 0 ) ? + 'emptyPortlet vectorTabs' : 'vectorTabs', 'label-id' => 'p-namespaces-label', - 'msg-label' => $this->getMsg( 'namespaces' )->text(), + 'label' => $this->getMsg( 'namespaces' )->text(), 'html-userlangattributes' => $this->get( 'userlangattributes', '' ), 'html-items' => '', ]; @@ -464,10 +465,11 @@ class VectorTemplate extends BaseTemplate { */ private function buildViewsProps() : array { $props = [ - 'tabs-id' => 'p-views', - 'empty-portlet' => ( count( $this->get( 'view_urls', [] ) ) == 0 ) ? 'emptyPortlet' : '', + 'id' => 'p-views', + 'class' => ( count( $this->get( 'view_urls', [] ) ) == 0 ) ? + 'emptyPortlet vectorTabs' : 'vectorTabs', 'label-id' => 'p-views-label', - 'msg-label' => $this->getMsg( 'views' )->text(), + 'label' => $this->getMsg( 'views' )->text(), 'html-userlangattributes' => $this->get( 'userlangattributes', '' ), 'html-items' => '', ]; diff --git a/includes/templates/VectorTabs.mustache b/includes/templates/VectorTabs.mustache index 5d5aa2e..9ff2582 100644 --- a/includes/templates/VectorTabs.mustache +++ b/includes/templates/VectorTabs.mustache @@ -1,13 +1,8 @@ {{! - string tabs-id - string|null empty-portlet - string label-id - string|null msg-label - string|null html-userlangattributes - string|null html-items + See @typedef MenuDefinition }} -