-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checkbox to quick thread creation
- Loading branch information
1 parent
13b0ba8
commit 7899878
Showing
6 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...put/template_modifications/public/hlmod_forum_rules_accept_forum_post_qthread_accept.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"template": "forum_post_quick_thread", | ||
"description": "Adds the row for accepting forum rules", | ||
"execution_order": 25, | ||
"enabled": true, | ||
"action": "str_replace", | ||
"find": "<xf:captcharow label=\"{{ phrase('verification') }}\" rowtype=\"fullWidth noGutter noLabel\" />", | ||
"replace": "$0\n\n<xf:macro template=\"hlmod_forum_rules_accept_macros\" name=\"accept_rules\"\n\t\t arg-forum=\"{$forum}\" arg-rowType=\"fullWidth noGutter noLabel\"\n\t\t arg-container=\".formButtonGroup-primary\"\n\t\t arg-controls=\"button[type=submit]:not([name=more-options])\" />" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"public/hlmod_forum_rules_accept_macros.html": { | ||
"version_id": 1000170, | ||
"version_string": "1.0.1", | ||
"hash": "ab0db537fe5313ae97e6327c87dca7c3" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
_output/templates/public/hlmod_forum_rules_accept_macros.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<xf:macro name="accept_rules" arg-forum="!" arg-container=".formSubmitRow" arg-controls="button[type=submit]" | ||
arg-rowType=""> | ||
<xf:if is="$forum.hlmod_rules_url is not empty"> | ||
<xf:checkboxrow rowtype="{$rowType}"> | ||
<xf:option data-xf-init="disabler" data-container="{$container}" data-controls="{$controls}"> | ||
{{ phrase('hlmod_forum_rules_accept.i_read_and_accept_forum_rules', {'url': $forum.hlmod_rules_url}) }} | ||
</xf:option> | ||
</xf:checkboxrow> | ||
</xf:if> | ||
</xf:macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters