Skip to content

Commit f5f0300

Browse files
committed
Conside bbcode settings
1 parent 143831d commit f5f0300

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

imcger/imgupload/styles/all/template/event/overall_footer_body_after.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@
112112
// If image add thumbnail to the link
113113
if (isImage) {
114114
let getThumbnail = '&t=1';
115-
{% if IUL_IMG_SET_INLINE %}
115+
{% if (IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG) ? 1 : 0 %}
116116
link.html('<img src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\'; $(\'[data-attach-id=' + attach_id + ']\').find(\'.button2.file-inline-bbcode\').hide();" title="' + real_filename + '; " alt="' + real_filename + '">');
117117
{% else %}
118118
link.html('<img src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\';" title="' + real_filename + '; " alt="' + real_filename + '">');
119119
{% endif %}
120120

121-
if ({{ IUL_IMG_SET_INLINE }}) {
121+
if ({{ (IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG) ? 1 : 0 }}) {
122122
// Add button for img BBCode
123123
$('[data-attach-id="' + attach_id + '"]').find('.attach-controls').prepend('<input type="button" value="{{ lang("IUL_IMAGE_PLACE_INLINE")|e("js") }}" class="button2 image-inline-bbcode">&nbsp;');
124124
$('[data-attach-id="' + attach_id + '"]').find('.button2.file-inline-bbcode').attr('value', '{{ lang("IUL_PLACE_INLINE")|e("js") }}');
@@ -168,7 +168,7 @@
168168
let getThumbnail = '&t=1';
169169
link.attr('href', url).html('<img src="' + url + getThumbnail + '" onerror="this.src=\'' + url + '\';" title="' + attach.real_filename + '" alt="' + attach.real_filename + '">');
170170

171-
if ({{ IUL_IMG_SET_INLINE }}) {
171+
if ({{ (IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG) ? 1 : 0 }}) {
172172
// Add button for img BBCode
173173
row.find('.attach-controls').prepend('<input type="button" value="{{ lang("IUL_IMAGE_PLACE_INLINE")|e("js") }}" class="button2 image-inline-bbcode">&nbsp;');
174174
row.find('.button2.file-inline-bbcode').attr('value', '{{ lang("IUL_PLACE_INLINE")|e("js") }}');

0 commit comments

Comments
 (0)