@@ -203,22 +203,22 @@ class="<?php echo $input_txtarea; ?>"
203
203
<?php if ($ framework == 'uikit ' ) : ?>
204
204
<div class="uk-button-dropdown" data-uk-dropdown>
205
205
<button class="uk-button uk-button-small" type="button">
206
- <img src="<?php echo JUri::root (); ?> images/mod_shoutbox/icon_e_smile.gif" alt="☺" / >
206
+ <img src="<?php echo JUri::root (); ?> images/mod_shoutbox/icon_e_smile.gif" alt="☺">
207
207
</button>
208
208
<ul class="uk-dropdown uk-dropdown-flip">
209
209
<?php echo $ helper ->smileyshow (); ?>
210
210
</ul>
211
211
</div>
212
212
<?php elseif ($ framework == 'bootstrap ' ) : ?>
213
213
<button type="button" class="<?php echo $ button . $ button_small ; ?> dropdown-toggle" data-toggle="dropdown">
214
- <img src="<?php echo JUri::root (); ?> images/mod_shoutbox/icon_e_smile.gif" alt="☺" / >
214
+ <img src="<?php echo JUri::root (); ?> images/mod_shoutbox/icon_e_smile.gif" alt="☺">
215
215
</button>
216
216
<ul class="dropdown-menu inline unstyled">
217
217
<?php echo $ helper ->smileyshow (); ?>
218
218
</ul>
219
219
<?php else : ?>
220
220
<button type="button" class="<?php echo $ button . $ button_small ; ?> dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
221
- <img src="<?php echo JUri::root (); ?> images/mod_shoutbox/icon_e_smile.gif" alt="☺" / >
221
+ <img src="<?php echo JUri::root (); ?> images/mod_shoutbox/icon_e_smile.gif" alt="☺">
222
222
</button>
223
223
<ul class="dropdown-menu list-inline list-unstyled">
224
224
<?php echo $ helper ->smileyshow (); ?>
@@ -262,10 +262,15 @@ class="<?php echo $input_txtarea; ?>"
262
262
<?php $ que_number1 = $ helper ->randomnumber (1 ); ?>
263
263
<?php $ que_number2 = $ helper ->randomnumber (1 ); ?>
264
264
<div class="form-inline <?php echo $ form_row ; ?> ">
265
- <canvas id="mathscanvas" width="80" height="30">Your browser does not support the HTML5 canvas tag.</canvas>
266
- <input type="hidden" name="jjshout[sum1]" value="<?php echo $ que_number1 ; ?> " />
267
- <input type="hidden" name="jjshout[sum2]" value="<?php echo $ que_number2 ; ?> " />
268
- <input class="<?php echo $ input_txtarea ; ?> fullwidth" id="math_output" type="text" name="jjshout[human]" />
265
+ <?php if ($ rtl ) : ?>
266
+ <input class="<?php echo $ input_txtarea ; ?> fullwidth" id="math_output" type="text" name="jjshout[human]">
267
+ <canvas style="float:right" id="mathscanvas" width="80" height="30">Your browser does not support the HTML5 canvas tag.</canvas>
268
+ <?php else : ?>
269
+ <canvas id="mathscanvas" width="80" height="30">Your browser does not support the HTML5 canvas tag.</canvas>
270
+ <input class="<?php echo $ input_txtarea ; ?> fullwidth" id="math_output" type="text" name="jjshout[human]">
271
+ <?php endif ; ?>
272
+ <input type="hidden" name="jjshout[sum1]" value="<?php echo $ que_number1 ; ?> ">
273
+ <input type="hidden" name="jjshout[sum2]" value="<?php echo $ que_number2 ; ?> ">
269
274
</div>
270
275
<?php
271
276
}
@@ -277,7 +282,7 @@ class="<?php echo $input_txtarea; ?>"
277
282
<input id="shout-submit-type" type="hidden" data-shout-id="0" data-submit-type="insert" />
278
283
279
284
<?php if ($ entersubmit == 0 ) : ?>
280
- <input name="jjshout[shout]" id="shoutbox-submit" class="<?php echo $ button ; ?> fullwidth" type="submit" value="<?php echo JText::_ ('SHOUT_SUBMITTEXT ' ); ?> " <?php if (($ securitytype == 1 && !$ siteKey ) || ($ securitytype == 1 && !$ secretKey )) { echo 'disabled="disabled" ' ; }?> / >
285
+ <input name="jjshout[shout]" id="shoutbox-submit" class="<?php echo $ button ; ?> fullwidth" type="submit" value="<?php echo JText::_ ('SHOUT_SUBMITTEXT ' ); ?> " <?php if (($ securitytype == 1 && !$ siteKey ) || ($ securitytype == 1 && !$ secretKey )) { echo 'disabled="disabled" ' ; }?> >
281
286
<?php endif ; ?>
282
287
283
288
</form>
@@ -287,7 +292,7 @@ class="<?php echo $input_txtarea; ?>"
287
292
{
288
293
?>
289
294
<form method="post" <?php echo 'class=" ' . $ form . '" ' ; ?> >
290
- <input type="hidden" name="jjshout[max]" value="<?php echo $ count ; ?> " / >
295
+ <input type="hidden" name="jjshout[max]" value="<?php echo $ count ; ?> ">
291
296
292
297
<div class="mass_delete">
293
298
<?php $ style = ($ framework == 'bootstrap3 ' ) ? 'style="display:inline-block" ' : '' ; ?>
@@ -330,7 +335,7 @@ class="<?php echo $input_txtarea; ?>"
330
335
331
336
<?php if ($ securitytype == 2 ) {
332
337
if ($ securityHide == 0 || ($ user ->guest && $ securityHide == 1 )) { ?>
333
- JJShoutbox.drawMathsQuestion(<?php echo $ que_number1 ; ?> , <?php echo $ que_number2 ; ?> );
338
+ JJShoutbox.drawMathsQuestion(<?php echo $ que_number1 ; ?> , <?php echo $ que_number2 ; ?> , <?php echo $ rtl ; ?> );
334
339
<?php } } ?>
335
340
336
341
var JJ_frameworkType = '<?php echo $ framework ; ?> ';
@@ -422,6 +427,7 @@ class="<?php echo $input_txtarea; ?>"
422
427
instance : JJ_instance,
423
428
history : JJ_history,
424
429
session : '<?php echo JFactory::getSession ()->getState (); ?> ',
430
+ rtl : '<?php echo $ rtl ; ?> ',
425
431
};
426
432
427
433
JJShoutbox.submitPost(JJ_ShoutPostParams);
0 commit comments