-
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 Template Modification for displaying checkbox
- Loading branch information
1 parent
4e11afe
commit 4b2c15b
Showing
4 changed files
with
19 additions
and
0 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
1 change: 1 addition & 0 deletions
1
_output/phrases/hlmod_forum_rules_accept.i_read_and_accept_forum_rules.txt
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 @@ | ||
I read and accept <a href="{url}" target="_blank">forum rules</a> |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"admin/hlmod_forum_rules_accept_forum_edit_row.json": { | ||
"hash": "a54324f77cab384754110160be865fbf" | ||
}, | ||
"public/hlmod_forum_rules_accept_forum_post_thread_accept.json": { | ||
"hash": "1ef6d0c0408ec4f5e0462339463e088e" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
_output/template_modifications/public/hlmod_forum_rules_accept_forum_post_thread_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_thread", | ||
"description": "Adds the row for accepting forum rules", | ||
"execution_order": 25, | ||
"enabled": true, | ||
"action": "str_replace", | ||
"find": "<xf:captcharow label=\"{{ phrase('verification') }}\" />", | ||
"replace": "$0\n<xf:if is=\"$forum.hlmod_rules_url is not empty\">\n\t<xf:checkboxrow>\n\t\t<xf:option data-xf-init=\"disabler\" data-container=\".formSubmitRow\">\n\t\t\t{{ phrase('hlmod_forum_rules_accept.i_read_and_accept_forum_rules', {'url': $forum.hlmod_rules_url}) }}\n\t\t</xf:option>\n\t</xf:checkboxrow>\n</xf:if>" | ||
} |