@@ -203,22 +203,22 @@ class="<?php echo $input_txtarea; ?>"
203203 <?php if ($ framework == 'uikit ' ) : ?>
204204 <div class="uk-button-dropdown" data-uk-dropdown>
205205 <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="☺">
207207 </button>
208208 <ul class="uk-dropdown uk-dropdown-flip">
209209 <?php echo $ helper ->smileyshow (); ?>
210210 </ul>
211211 </div>
212212 <?php elseif ($ framework == 'bootstrap ' ) : ?>
213213 <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="☺">
215215 </button>
216216 <ul class="dropdown-menu inline unstyled">
217217 <?php echo $ helper ->smileyshow (); ?>
218218 </ul>
219219 <?php else : ?>
220220 <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="☺">
222222 </button>
223223 <ul class="dropdown-menu list-inline list-unstyled">
224224 <?php echo $ helper ->smileyshow (); ?>
@@ -262,10 +262,15 @@ class="<?php echo $input_txtarea; ?>"
262262 <?php $ que_number1 = $ helper ->randomnumber (1 ); ?>
263263 <?php $ que_number2 = $ helper ->randomnumber (1 ); ?>
264264 <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 ; ?> ">
269274 </div>
270275 <?php
271276 }
@@ -277,7 +282,7 @@ class="<?php echo $input_txtarea; ?>"
277282 <input id="shout-submit-type" type="hidden" data-shout-id="0" data-submit-type="insert" />
278283
279284 <?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" ' ; }?> >
281286 <?php endif ; ?>
282287
283288 </form>
@@ -287,7 +292,7 @@ class="<?php echo $input_txtarea; ?>"
287292 {
288293 ?>
289294 <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 ; ?> ">
291296
292297 <div class="mass_delete">
293298 <?php $ style = ($ framework == 'bootstrap3 ' ) ? 'style="display:inline-block" ' : '' ; ?>
@@ -330,7 +335,7 @@ class="<?php echo $input_txtarea; ?>"
330335
331336 <?php if ($ securitytype == 2 ) {
332337 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 ; ?> );
334339 <?php } } ?>
335340
336341 var JJ_frameworkType = '<?php echo $ framework ; ?> ';
@@ -422,6 +427,7 @@ class="<?php echo $input_txtarea; ?>"
422427 instance : JJ_instance,
423428 history : JJ_history,
424429 session : '<?php echo JFactory::getSession ()->getState (); ?> ',
430+ rtl : '<?php echo $ rtl ; ?> ',
425431 };
426432
427433 JJShoutbox.submitPost(JJ_ShoutPostParams);
0 commit comments