[ticket/17291] Use font icons instead of SVGs

PHPBB3-17291

Signed-off-by: Matt Friedman <maf675@gmail.com>
This commit is contained in:
Matt Friedman 2024-02-23 16:39:40 -08:00
parent 873c838d57
commit 3cc3bc7e81
No known key found for this signature in database
4 changed files with 14 additions and 10 deletions

View file

@ -65,7 +65,6 @@ $template->set_custom_style(
$phpbb_admin_path . 'style', $phpbb_admin_path . 'style',
$phpbb_root_path . 'styles/all/imgs/', $phpbb_root_path . 'styles/all/imgs/',
$phpbb_root_path . 'styles/all/template/', $phpbb_root_path . 'styles/all/template/',
$phpbb_root_path . 'styles/prosilver/imgs/',
], ],
); );

View file

@ -473,12 +473,12 @@
<!-- BEGIN forums --> <!-- BEGIN forums -->
<tr> <tr>
<td class="folder"> <td class="folder">
{{ Icon('svg', { {{ Icon('font', {
'link-variant' : forums.S_FORUM_LINK, 'link' : forums.S_FORUM_LINK,
'lock' : forums.S_FORUM_LOCKED, 'lock' : forums.S_FORUM_LOCKED,
'file-document-box-multiple-outline' : forums.S_SUBFORUMS, 'comments' : forums.S_SUBFORUMS,
'file-document-box-outline' : true, 'comment' : true,
}, '', true, 'c-forum-row-icon') }} }, '', true) }}
</td> </td>
<td class="forum-desc"> <td class="forum-desc">
<!-- IF forums.FORUM_IMAGE --><div style="float: {S_CONTENT_FLOW_BEGIN}; margin-right: 5px;">{forums.FORUM_IMAGE}</div><!-- ENDIF --> <!-- IF forums.FORUM_IMAGE --><div style="float: {S_CONTENT_FLOW_BEGIN}; margin-right: 5px;">{forums.FORUM_IMAGE}</div><!-- ENDIF -->

View file

@ -133,11 +133,11 @@
<!-- BEGIN modules --> <!-- BEGIN modules -->
<tr> <tr>
<td style="width: 5%; text-align: center;"> <td style="width: 5%; text-align: center;">
{{ Icon('svg', { {{ Icon('font', {
'lock' : not modules.MODULE_ENABLED, 'lock' : not modules.MODULE_ENABLED,
'file-document-box-multiple-outline' : modules.S_SUB_MODULE, 'folder-tree' : modules.S_SUB_MODULE,
'file-document-box-outline' : true, 'folder-open' : true,
}, '', true, 'c-forum-row-icon', {'style' : 'width: 27px; height: 27px;'}) }} }, '', true, 'fas') }}
</td> </td>
<td><a href="{modules.U_MODULE}">{modules.MODULE_TITLE}</a><!-- IF not modules.MODULE_DISPLAYED --> <span class="small">[{L_HIDDEN_MODULE}]</span><!-- ENDIF --></td> <td><a href="{modules.U_MODULE}">{modules.MODULE_TITLE}</a><!-- IF not modules.MODULE_DISPLAYED --> <span class="small">[{L_HIDDEN_MODULE}]</span><!-- ENDIF --></td>
<td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;">&nbsp;<!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{modules.U_ENABLE}">{L_ENABLE}</a><!-- ENDIF -->&nbsp;</td> <td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;">&nbsp;<!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{modules.U_ENABLE}">{L_ENABLE}</a><!-- ENDIF -->&nbsp;</td>

View file

@ -2965,6 +2965,11 @@ fieldset.permissions .permissions-switch {
font-style: normal; font-style: normal;
} }
.table1 .o-icon {
font-size: 20px;
padding: 10px 0;
}
.send-stats-data-row { .send-stats-data-row {
background: #f9f9f9; background: #f9f9f9;
border: #dedede 1px solid; border: #dedede 1px solid;