mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/15538] Allow array of icons: icon_name => boolean
PHPBB3-15538
This commit is contained in:
@@ -311,6 +311,50 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case
|
||||
'<i class="o-icon o-icon-font fa-pencil a-class another-class" title="Pencil icon" aria-hidden="true" data-attr-1="true" data-attr-2="two"></i>
|
||||
<span class="sr-only">Pencil icon</span>'
|
||||
],
|
||||
/** Font: icons array */
|
||||
[
|
||||
[
|
||||
'type' => 'font',
|
||||
'icon' => [
|
||||
'bullhorn' => false,
|
||||
'star' => false,
|
||||
'lock' => true,
|
||||
'fire' => false,
|
||||
'file' => true,
|
||||
],
|
||||
'title' => 'ICON_TOPIC',
|
||||
'hidden' => false,
|
||||
'classes' => '',
|
||||
'attributes' => [],
|
||||
],
|
||||
[
|
||||
'ICON_TOPIC' => 'Topic icon',
|
||||
],
|
||||
'<i class="o-icon o-icon-font fa-lock"></i>
|
||||
<span>Topic icon</span>',
|
||||
],
|
||||
/** Font: icons array with no key for the default */
|
||||
[
|
||||
[
|
||||
'type' => 'font',
|
||||
'icon' => [
|
||||
'bullhorn' => false,
|
||||
'star' => false,
|
||||
'lock' => false,
|
||||
'fire' => false,
|
||||
'file',
|
||||
],
|
||||
'title' => 'ICON_TOPIC',
|
||||
'hidden' => false,
|
||||
'classes' => '',
|
||||
'attributes' => [],
|
||||
],
|
||||
[
|
||||
'ICON_TOPIC' => 'Topic icon',
|
||||
],
|
||||
'<i class="o-icon o-icon-font fa-file"></i>
|
||||
<span>Topic icon</span>',
|
||||
],
|
||||
/** Iconify: default */
|
||||
[
|
||||
[
|
||||
|
Reference in New Issue
Block a user