Skip to content

Commit de76fc7

Browse files
authored
Merge pull request #4 from jorgenqv/patch-1
Add control function for rating and quick reply
2 parents 7808b63 + bff70e3 commit de76fc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/newbb_viewtopic.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<{if $viewer_level gt 0}>
5454

5555
<{* modal for rate // *}>
56+
<{if $rating_enable}>
5657
<div class="modal fade bs-example-modal-sm container" id="replyrate" tabindex="-1" role="dialog" aria-labelledby="replyrate">
5758
<div class="modal-dialog btn-bottom" role="document">
5859
<div class="modal-content btn-group" role="group">
@@ -64,15 +65,18 @@
6465
</div>
6566
</div>
6667
</div>
68+
<{/if}>
6769

6870
<{* modal for quickreply // *}>
71+
<{if $quickreply.show}>
6972
<div class="modal fade bs-example-modal-sm container" id="replyquick" tabindex="-1" role="dialog" aria-labelledby="replyquick">
7073
<div class="modal-dialog btn-bottom" role="document">
7174
<div class="modal-content modal-body"><button type="button btn-default" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&amp;times;</span></button>
7275
<{$quickreply.form|default:''}>
7376
</div>
7477
</div>
7578
</div>
79+
<{/if}>
7680

7781
<{* fix bottom navbar // *}>
7882
<div class="navbar-fixed-bottom container" id="postnav" style="bottom:12px;">
@@ -330,3 +334,4 @@ xoopsGetElementById('aktuell').scrollIntoView(true);
330334
}
331335
</script>
332336
<{* END irmtfan add scroll js function to scroll down to current post or top of the topic *}>
337+

0 commit comments

Comments
 (0)