1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/17326] Add font icon field for custom BBCodes

Adds a new field to the custom BBCode add/edit form that
allows admins to define a Font Awesome icon to be displayed
instead of the BBCodes name on the posting.php editor page.

PHPBB-17326
This commit is contained in:
Daniel James
2024-06-25 16:36:49 +01:00
committed by Marc Alexander
parent f6c9d15b0c
commit f5bb065a4d
8 changed files with 92 additions and 4 deletions

View File

@@ -97,7 +97,11 @@
<!-- BEGIN custom_tags -->
<button type="button" class="button button-secondary bbcode-{custom_tags.BBCODE_TAG_CLEAN}" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE }}">
{custom_tags.BBCODE_TAG}
{% if custom_tags.BBCODE_FONT_ICON != '' %}
{{ Icon('font', custom_tags.BBCODE_FONT_ICON, '', false, custom_tags.BBCODE_TAG_CLEAN) }}
{% else %}
{{ custom_tags.BBCODE_TAG }}
{%
</button>
<!-- END custom_tags -->
</div>