Skip to content

Commit

Permalink
added option to hide smilies at first with slideToggle
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Lodder committed Jan 20, 2015
1 parent 0c16dd8 commit df6a4ac
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
3 changes: 2 additions & 1 deletion mod_shoutbox/language/en-GB/en-GB.mod_shoutbox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ JON="On"
JOFF="Off"
SHOUT_SMILIES_ON="Enable but dont show"
SHOUT_SMILIES_ON_FIXED="Enable and show"
SHOUT_SMILIES_ON_SLIDE="Enable with slideToggle"
SHOUT_SMILIES_ON_SLIDE_HIDE="SlideToggle (Hide at first)"
SHOUT_SMILIES_ON_SLIDE_SHOW="SlideToggle (Show at first)"
SHOUT_SMILIES_DISABLE="Disable"
SHOUT_BBCODELABEL="BBCode"
SHOUT_BBCODEDESC="Select whether you would like to enable BBCode"
Expand Down
3 changes: 2 additions & 1 deletion mod_shoutbox/language/it-IT/it-IT.mod_shoutbox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ JON="Attivo"
JOFF="Disattivato"
SHOUT_SMILIES_ON="Attiva ma non visualizza"
SHOUT_SMILIES_ON_FIXED="Attiva e visualizza"
SHOUT_SMILIES_ON_SLIDE="Attiva con togli-slide"
SHOUT_SMILIES_ON_SLIDE_HIDE="Togli-slide (Hide at first)"
SHOUT_SMILIES_ON_SLIDE_SHOW="Togli-slide (Show at first)"
SHOUT_SMILIES_DISABLE="Disabilita"
SHOUT_BBCODELABEL="BBCode"
SHOUT_BBCODEDESC="Select whether you would like to enable BBCode"
Expand Down
3 changes: 2 additions & 1 deletion mod_shoutbox/language/nl-NL/nl_NL.mod_shoutbox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ JON="Aan"
JOFF="Uit"
SHOUT_SMILIES_ON="Inschakelen maar verbergen"
SHOUT_SMILIES_ON_FIXED="Inschakelen en laten zien"
SHOUT_SMILIES_ON_SLIDE="Inschakelen met slideToggle"
SHOUT_SMILIES_ON_SLIDE_HIDE="SlideToggle (Hide at first)"
SHOUT_SMILIES_ON_SLIDE_SHOW="SlideToggle (Show at first)"
SHOUT_SMILIES_DISABLE="Uitschakelen"
SHOUT_BBCODELABEL="BBCode"
SHOUT_BBCODEDESC="Select whether you would like to enable BBCode"
Expand Down
3 changes: 2 additions & 1 deletion mod_shoutbox/language/pl-PL/pl-PL.mod_shoutbox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ JON="Włączone"
JOFF="Wyłączone"
SHOUT_SMILIES_ON="Włączone, ale nie pokazuj"
SHOUT_SMILIES_ON_FIXED="Włączone"
SHOUT_SMILIES_ON_SLIDE="Włączone z ukrywaniem"
SHOUT_SMILIES_ON_SLIDE_HIDE="SlideToggle (Hide at first)"
SHOUT_SMILIES_ON_SLIDE_SHOW="SlideToggle (Show at first)"
SHOUT_SMILIES_DISABLE="Wyłączone"
SHOUT_BBCODELABEL="BBCode"
SHOUT_BBCODEDESC="Select whether you would like to enable BBCode"
Expand Down
5 changes: 3 additions & 2 deletions mod_shoutbox/mod_shoutbox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@
<field name="smile" type="list" default="1" label="SHOUT_SMILELABEL" description="SHOUT_SMILEDESC">
<option value="0">SHOUT_SMILIES_ON</option>
<option value="1">SHOUT_SMILIES_ON_FIXED</option>
<option value="2">SHOUT_SMILIES_ON_SLIDE</option>
<option value="3">SHOUT_SMILIES_DISABLE</option>
<option value="2">SHOUT_SMILIES_ON_SLIDE_HIDE</option>
<option value="3">SHOUT_SMILIES_ON_SLIDE_SHOW</option>
<option value="4">SHOUT_SMILIES_DISABLE</option>
</field>
<field name="bbcode" type="radio" class="btn-group" default="0" label="SHOUT_BBCODELABEL" description="SHOUT_BBCODEDESC">
<option value="0">JOFF</option>
Expand Down
9 changes: 4 additions & 5 deletions mod_shoutbox/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,13 @@
</div>
<?php endif; ?>

<?php if ($smile == 1 || $smile == 2) : ?>
<?php if ($smile == 2) : ?>
<?php if ($smile == 1 || $smile == 2 || $smile == 3) : ?>
<?php if ($smile == 2 || $smile == 3) : ?>
<div id="jj_smiley_button">
<a href="#" id="jj_btn" class="btn btn-mini" />&#9650;</a>
<a href="#" id="jj_btn" class="btn btn-mini <?php echo ($smile == 2 ? 'rotated' : ''); ?>" />&#9650;</a>
</div>
<?php endif; ?>

<div id="jj_smiley_box"><?php echo $helper->smileyshow(); ?></div>
<div id="jj_smiley_box" style="<?php echo ($smile == 2 ? 'display:none;' : 'display:block;'); ?>"><?php echo $helper->smileyshow(); ?></div>
<?php endif; ?>

<?php
Expand Down

0 comments on commit df6a4ac

Please sign in to comment.