From 531279c3ccc6219920eabb863730a40aa2d146c4 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 4 Nov 2025 15:28:31 +0100 Subject: [PATCH] Remove obsolete classes --- .../Widget/ItemList/ContactGroupListItem.php | 52 ---------------- .../Widget/ItemList/ContactListItem.php | 62 ------------------- 2 files changed, 114 deletions(-) delete mode 100644 library/Notifications/Widget/ItemList/ContactGroupListItem.php delete mode 100644 library/Notifications/Widget/ItemList/ContactListItem.php diff --git a/library/Notifications/Widget/ItemList/ContactGroupListItem.php b/library/Notifications/Widget/ItemList/ContactGroupListItem.php deleted file mode 100644 index 3c6a0a24d..000000000 --- a/library/Notifications/Widget/ItemList/ContactGroupListItem.php +++ /dev/null @@ -1,52 +0,0 @@ -getAttributes()->set('data-action-item', true); - } - - protected function assembleVisual(BaseHtmlElement $visual): void - { - $visual->addHtml(new HtmlElement( - 'div', - Attributes::create(['class' => 'contact-ball']), - Text::create(grapheme_substr($this->item->name, 0, 1)) - )); - } - - protected function assembleMain(BaseHtmlElement $main): void - { - $main->addHtml($this->createHeader()); - } - - protected function assembleHeader(BaseHtmlElement $header): void - { - $header->addHtml($this->createTitle()); - } - - protected function assembleTitle(BaseHtmlElement $title): void - { - $title->addHtml(new Link($this->item->name, Links::contactGroup($this->item->id), ['class' => 'subject'])); - } -} diff --git a/library/Notifications/Widget/ItemList/ContactListItem.php b/library/Notifications/Widget/ItemList/ContactListItem.php deleted file mode 100644 index fb2da107d..000000000 --- a/library/Notifications/Widget/ItemList/ContactListItem.php +++ /dev/null @@ -1,62 +0,0 @@ -getAttributes() - ->set('data-action-item', true); - } - - protected function assembleVisual(BaseHtmlElement $visual): void - { - $visual->addHtml(new HtmlElement( - 'div', - Attributes::create(['class' => 'contact-ball']), - Text::create(grapheme_substr($this->item->full_name, 0, 1)) - )); - } - - protected function assembleTitle(BaseHtmlElement $title): void - { - $title->addHtml(new Link( - $this->item->full_name, - Url::fromPath('notifications/contact', ['id' => $this->item->id]), - ['class' => 'subject'] - )); - } - - protected function assembleHeader(BaseHtmlElement $header): void - { - $header->add($this->createTitle()); - } - - protected function assembleMain(BaseHtmlElement $main): void - { - $main->add($this->createHeader()); - - $main->add($this->createFooter()); - } -}