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 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"> ' ) ;
124124 $ ( '[data-attach-id="' + attach_id + '"]' ) . find ( '.button2.file-inline-bbcode' ) . attr ( 'value' , '{{ lang("IUL_PLACE_INLINE")|e("js") }}' ) ;
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"> ' ) ;
174174 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