remove font awesome stuff

This commit is contained in:
rnsrk 2024-09-24 10:50:26 +02:00
parent 334c872b93
commit 5e7f96a82e

View file

@ -221,14 +221,12 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
if ($config->get(SettingsForm::DISPLAY_LIST_FLAG) == 1) { if ($config->get(SettingsForm::DISPLAY_LIST_FLAG) == 1) {
$display_options['list'] = [ $display_options['list'] = [
'icon' => 'fa-list',
'title' => $this->t('List'), 'title' => $this->t('List'),
]; ];
} }
if ($config->get(SettingsForm::DISPLAY_GRID_FLAG) == 1) { if ($config->get(SettingsForm::DISPLAY_GRID_FLAG) == 1) {
$display_options['grid'] = [ $display_options['grid'] = [
'icon' => 'fa-th',
'title' => $this->t('Grid'), 'title' => $this->t('Grid'),
]; ];
} }
@ -240,7 +238,7 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
'query' => array_merge($query_parameters, ['display' => $display]), 'query' => array_merge($query_parameters, ['display' => $display]),
'absolute' => TRUE, 'absolute' => TRUE,
]); ]);
$text = "<i class='fa {$options['icon']}' aria-hidden='true'>&nbsp;</i><span class='display-mode'>{$options['title']}</span>"; $text = "<span class='display-mode'>{$options['title']}</span>";
$active = $active_display == $display; $active = $active_display == $display;
$items[] = [ $items[] = [
'#type' => 'link', '#type' => 'link',