File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
imcger/imgupload/styles/all/template/event Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 112
112
// If image add thumbnail to the link
113
113
if ( isImage ) {
114
114
let getThumbnail = '&t=1' ;
115
- { % if IUL_IMG_SET_INLINE % }
115
+ { % if ( IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG ) ? 1 : 0 % }
116
116
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 + '">' ) ;
117
117
{ % else % }
118
118
link . html ( '<img src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\';" title="' + real_filename + '; " alt="' + real_filename + '">' ) ;
119
119
{ % endif % }
120
120
121
- if ( { { IUL_IMG_SET_INLINE } } ) {
121
+ if ( { { ( IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG ) ? 1 : 0 } } ) {
122
122
// Add button for img BBCode
123
123
$ ( '[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"> ' ) ;
124
124
$ ( '[data-attach-id="' + attach_id + '"]' ) . find ( '.button2.file-inline-bbcode' ) . attr ( 'value' , '{{ lang("IUL_PLACE_INLINE")|e("js") }}' ) ;
168
168
let getThumbnail = '&t=1' ;
169
169
link . attr ( 'href' , url ) . html ( '<img src="' + url + getThumbnail + '" onerror="this.src=\'' + url + '\';" title="' + attach . real_filename + '" alt="' + attach . real_filename + '">' ) ;
170
170
171
- if ( { { IUL_IMG_SET_INLINE } } ) {
171
+ if ( { { ( IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG ) ? 1 : 0 } } ) {
172
172
// Add button for img BBCode
173
173
row . find ( '.attach-controls' ) . prepend ( '<input type="button" value="{{ lang("IUL_IMAGE_PLACE_INLINE")|e("js") }}" class="button2 image-inline-bbcode"> ' ) ;
174
174
row . find ( '.button2.file-inline-bbcode' ) . attr ( 'value' , '{{ lang("IUL_PLACE_INLINE")|e("js") }}' ) ;
You can’t perform that action at this time.
0 commit comments