Skip to content

Commit

Permalink
Update ACP icons
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Mar 4, 2024
1 parent 5a2fae1 commit 87611b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adm/style/boardrules.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', () => {
const icon = boardRulesFontIcon.nextElementSibling; // Assuming the <i> element is the next sibling

if (icon && icon.tagName.toLowerCase() === 'i') {
icon.setAttribute('class', 'icon fa-' + input);
icon.setAttribute('class', 'o-icon o-icon-font acp-icon fa-' + input);
}
};
});
8 changes: 7 additions & 1 deletion adm/style/boardrules_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ <h1>{{ lang('ACP_BOARDRULES_MANAGE') }}</h1>
{% for rules in loops.rules %}
<tr>
<td class="folder">
{% if rules.S_IS_CATEGORY %}<img src="images/icon_subfolder.gif" width="27" height="27" alt="{{ lang('ACP_BOARDRULES_CATEGORY') }}">{% else %}<img src="images/icon_folder.gif" width="27" height="27" alt="{{ lang('ACP_BOARDRULES_RULE') }}">{% endif %}
<span class="fa-stack fa-2x">
{{ Icon('font', 'circle', '', true, 'fas fa-stack-2x') }}
{{ Icon('font', {
'folder' : rules.S_IS_CATEGORY,
'file-lines' : true,
}, '', true, 'fas fa-inverse fa-stack-1x') }}
</span>
</td>
<td class="forum-desc">
<strong><a href="{{ rules.U_RULE }}">{{ rules.RULE_TITLE }}</a></strong>
Expand Down
2 changes: 1 addition & 1 deletion adm/style/boardrules_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>{{ lang('WARNING') }}</h3>
</dl>
<dl>
<dt><label for="boardrules_font_icon">{{ lang('ACP_BOARDRULES_FONT_ICON') ~ lang('COLON') }}</label><br><span>{{ lang('ACP_BOARDRULES_FONT_ICON_EXPLAIN', 'https://fontawesome.com/v6/search?o=r&m=free') }}</span></dt>
<dd><input name="boardrules_font_icon" id="boardrules_font_icon" placeholder="book" type="text" size="15" maxlength="255" value="{{ BOARDRULES_FONT_ICON }}"> <i style="font-size:14px" class="icon fa-{{ BOARDRULES_FONT_ICON }}"></i></dd>
<dd><input name="boardrules_font_icon" id="boardrules_font_icon" placeholder="book" type="text" size="15" maxlength="255" value="{{ BOARDRULES_FONT_ICON }}"> {{ Icon('font', BOARDRULES_FONT_ICON, '', true, 'acp-icon') }}</dd>
</dl>
<dl>
<dt><label for="boardrules_list_style">{{ lang('ACP_BOARDRULES_LIST_STYLE') ~ lang('COLON') }}</label><br><span>{{ lang('ACP_BOARDRULES_LIST_STYLE_EXPLAIN') }}</span></dt>
Expand Down

0 comments on commit 87611b0

Please sign in to comment.