mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
[feature/bbcode-icon-name] Update the frontend template vars
PHPBB3-17326
This commit is contained in:
parent
af0e666be8
commit
c3b65fd81a
3 changed files with 5 additions and 5 deletions
|
@ -1087,7 +1087,7 @@ function display_custom_bbcodes()
|
|||
$num_predefined_bbcodes = NUM_PREDEFINED_BBCODES;
|
||||
|
||||
$sql_ary = [
|
||||
'SELECT' => 'b.bbcode_id, b.bbcode_tag, b.bbcode_helpline, b.bbcode_icon_name, b.bbcode_match',
|
||||
'SELECT' => 'b.bbcode_id, b.bbcode_tag, b.bbcode_helpline, b.bbcode_font_icon, b.bbcode_match',
|
||||
'FROM' => [BBCODES_TABLE => 'b'],
|
||||
'WHERE' => 'b.display_on_posting = 1',
|
||||
'ORDER_BY' => 'b.bbcode_tag',
|
||||
|
@ -1130,7 +1130,7 @@ function display_custom_bbcodes()
|
|||
'BBCODE_TAG' => $row['bbcode_tag'],
|
||||
'BBCODE_TAG_CLEAN' => str_replace('=', '-', $row['bbcode_tag']),
|
||||
'BBCODE_HELPLINE' => $row['bbcode_helpline'],
|
||||
'BBCODE_ICON_NAME' => $row['bbcode_icon_name'],
|
||||
'BBCODE_FONT_ICON' => $row['bbcode_font_icon'],
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -32,7 +32,7 @@ class add_bbcode_font_icon extends \phpbb\db\migration\migration
|
|||
return [
|
||||
'add_columns' => [
|
||||
$this->table_prefix . 'bbcodes' => [
|
||||
'bbcode_font_icon' => ['VCHAR_UNI:255', ''],
|
||||
'bbcode_font_icon' => ['VCHAR:50', ''],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
@ -97,8 +97,8 @@
|
|||
|
||||
<!-- 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 }}">
|
||||
<!-- IF custom_tags.BBCODE_TAG != '' -->
|
||||
<i class="icon fa-{custom_tags.BBCODE_ICON_NAME} fa-fw" aria-hidden="true"></i>
|
||||
<!-- IF custom_tags.BBCODE_FONT_ICON != '' -->
|
||||
<i class="icon fa-{custom_tags.BBCODE_FONT_ICON} fa-fw" aria-hidden="true"></i>
|
||||
<!-- ELSE -->
|
||||
{custom_tags.BBCODE_TAG}
|
||||
<!-- ENDIF -->
|
||||
|
|
Loading…
Add table
Reference in a new issue