Skip to content

Commit f1ccfd5

Browse files
committed
Add option to define a CSS class to the container of a tagged list view
1 parent 590cd0c commit f1ccfd5

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

com.woltlab.wcf/templates/taggedListView.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
{include file='header'}
4343

44-
<div class="section">
44+
<div class="section {$containerCssClassName}">
4545
{unsafe:$listView->render()}
4646
</div>
4747

wcfsetup/install/files/lib/page/TaggedListViewPage.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ public function assignVariables()
149149
'objectType' => $this->objectType->objectType,
150150
'itemsPerType' => $this->itemsPerType,
151151
'contentTitle' => $this->provider->getContentTitle(),
152-
'objectTypeLinks' => $this->getObjectTypeLinks()
152+
'objectTypeLinks' => $this->getObjectTypeLinks(),
153+
'containerCssClassName' => $this->provider->getContainerCssClassName(),
153154
]);
154155
}
155156

wcfsetup/install/files/lib/system/tagging/AbstractTaggedListViewProvider.class.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ public function getContentTitle(): string
2929
{
3030
return WCF::getLanguage()->get('wcf.tagging.combinedTaggedObjects.' . $this->getDecoratedObject()->objectType);
3131
}
32+
33+
#[\Override]
34+
public function getContainerCssClassName(): string
35+
{
36+
return '';
37+
}
3238
}

wcfsetup/install/files/lib/system/tagging/ITaggedListViewProvider.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ public function getListView(array $tagIDs): AbstractListView;
2828
public function getObjectTypeTitle(): string;
2929

3030
public function getContentTitle(): string;
31+
32+
public function getContainerCssClassName(): string;
3133
}

0 commit comments

Comments
 (0)