A lot of things.
This commit is contained in:
11
_output/template_modifications/_metadata.json
Normal file
11
_output/template_modifications/_metadata.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"public/rhpz_above_thread_list_clubs.json": {
|
||||
"hash": "c261ea6e33cf5eb7ab0a7f6fe934de7c"
|
||||
},
|
||||
"public/rhpz_above_thread_list_clubs_buttons.json": {
|
||||
"hash": "c783001e00f7a63389c9ae988012f5fe"
|
||||
},
|
||||
"public/rhpz_category_view_clubs_submit_button.json": {
|
||||
"hash": "a24a5a4b130b6198de7ef37610aa1a7d"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"template": "forum_view",
|
||||
"description": "Add the club banner above the threads list.",
|
||||
"execution_order": 10,
|
||||
"enabled": true,
|
||||
"action": "str_replace",
|
||||
"find": "<xf:extension id=\"above_thread_list\"></xf:extension>",
|
||||
"replace": "$0\n<xf:if is=\"$forum.Node.parent_node_id == $xf.options.rhpz_club_node_id\">\n <div class=\"club-banner-container\">\n <xf:if is=\"$forum.Club.banner_date\">\n <img src=\"{$forum.Club.getBannerUrl()}\" alt=\"Banner {$forum.title}\" class=\"club-banner\" />\n </xf:if>\n </div>\n</xf:if>"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"template": "forum_view",
|
||||
"description": "Add Owner edit/delete buttons.",
|
||||
"execution_order": 5,
|
||||
"enabled": true,
|
||||
"action": "str_replace",
|
||||
"find": "<xf:extension id=\"above_thread_list\"></xf:extension>",
|
||||
"replace": "$0\n<xf:if is=\"$forum.Club && $forum.Club.user_id == $xf.visitor.user_id\">\n <div class=\"block-outer-opposite u-marginBottom\">\n <div class=\"buttonGroup\">\n <a href=\"{{ link('clubs/edit', $forum.Club) }}\" class=\"button button--link\" icon=\"edit\">Edit</a>\n <a href=\"{{ link('clubs/delete', $forum.Club) }}\" class=\"button button--link\" icon=\"delete\" overlay=\"true\">Delete</a>\n </div>\n </div>\n</xf:if>"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"template": "category_view",
|
||||
"description": "Add Club Submit button",
|
||||
"execution_order": 10,
|
||||
"enabled": true,
|
||||
"action": "str_replace",
|
||||
"find": "\t\t\t\t\t\t\t<xf:button href=\"{{ link('categories/mark-read', $category, {'date': $xf.time}) }}\"\n\t\t\t\t\t\t\t\tclass=\"button--link\" overlay=\"true\">",
|
||||
"replace": "<xf:if is=\"$xf.options.rhpz_club_node_id == $category.node_id\">\n\t<xf:button href=\"{{ link('clubs/submit') }}\"\n\t\t\t class=\"button--link\">\n\t\tRequest a club\n\t</xf:button>\n</xf:if>\n$0"
|
||||
}
|
||||
Reference in New Issue
Block a user