Skip to content

Commit 88f1ff9

Browse files
authored
Merge pull request #74 from magento-hackathon/Schrank-patch-4
Update honeyspam.xml
2 parents 9e8889f + cc15913 commit 88f1ff9

File tree

1 file changed

+63
-48
lines changed

1 file changed

+63
-48
lines changed

app/design/frontend/base/default/layout/honeyspam.xml

+63-48
Original file line numberDiff line numberDiff line change
@@ -27,87 +27,102 @@
2727
<layout>
2828
<default>
2929
<reference name="head">
30-
<action method="addJs">
30+
<action method="addJs" ifconfig="hackathon/honeyspam/enableHoneypotName">
3131
<script>hackathon/HoneySpam/honeyspam.js</script>
3232
</action>
3333
</reference>
3434
<!-- base/default theme -->
35+
<block type="hackathon_honeyspam/honeypot"
36+
name="honeyspam.honeypot"
37+
template="hackathon/honeyspam/honeypot.phtml"/>
3538
<reference name="left.newsletter">
36-
<block type="core/text_list"
37-
name="newsletter.form.fields.before"
38-
as="form_fields_before"
39-
translate="label">
40-
<block type="hackathon_honeyspam/honeypot"
41-
name="honeyspam.honeypot"
42-
template="hackathon/honeyspam/honeypot.phtml"/>
43-
</block>
39+
<block type="core/text_list"
40+
name="newsletter.form.fields.before"
41+
as="form_fields_before"
42+
translate="label">
43+
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
44+
<block>honeyspam.honeypot</block>
45+
</action>
46+
</block>
4447
</reference>
4548
<!-- rwd/default theme -->
4649
<reference name="footer.newsletter">
47-
<block type="core/text_list"
48-
name="newsletter.form.fields.before"
49-
as="form_fields_before"
50-
translate="label">
51-
<block type="hackathon_honeyspam/honeypot"
52-
name="honeyspam.honeypot"
53-
template="hackathon/honeyspam/honeypot.phtml"/>
54-
</block>
50+
<block type="core/text_list"
51+
name="newsletter.form.fields.before"
52+
as="form_fields_before"
53+
translate="label">
54+
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
55+
<block>honeyspam.honeypot</block>
56+
</action>
57+
</block>
5558
</reference>
5659
<!-- default/modern theme -->
5760
<reference name="newsletter">
58-
<block type="core/text_list"
59-
name="newsletter.form.fields.before"
60-
as="form_fields_before"
61-
translate="label">
62-
<block type="hackathon_honeyspam/honeypot"
63-
name="honeyspam.honeypot"
64-
template="hackathon/honeyspam/honeypot.phtml"/>
65-
</block>
66-
</reference>
61+
<block type="core/text_list"
62+
name="newsletter.form.fields.before"
63+
as="form_fields_before"
64+
translate="label">
65+
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
66+
<block>honeyspam.honeypot</block>
67+
</action>
68+
</block>
69+
</reference>
6770
</default>
6871

6972
<customer_account_create>
70-
<reference name="form.additional.info">
71-
<block type="hackathon_honeyspam/honeypot"
73+
<block type="hackathon_honeyspam/honeypot"
7274
name="honeyspam.honeypot"
7375
template="hackathon/honeyspam/honeypot.phtml"/>
74-
</reference>
76+
<reference name="form.additional.info">
77+
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
78+
<block>honeyspam.honeypot</block>
79+
</action>
80+
</reference>
7581
</customer_account_create>
7682

7783
<customer_account_forgotpassword>
78-
<reference name="form.additional.info">
79-
<block type="hackathon_honeyspam/honeypot"
84+
<block type="hackathon_honeyspam/honeypot"
8085
name="honeyspam.honeypot"
8186
template="hackathon/honeyspam/honeypot.phtml"/>
82-
</reference>
87+
<reference name="form.additional.info">
88+
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
89+
<block>honeyspam.honeypot</block>
90+
</action>
91+
</reference>
8392
</customer_account_forgotpassword>
8493

8594
<review_product_list>
86-
<reference name="product.review.form.fields.before">
87-
<block type="hackathon_honeyspam/honeypot"
95+
<block type="hackathon_honeyspam/honeypot"
8896
name="honeyspam.honeypot"
8997
template="hackathon/honeyspam/honeypot.phtml"/>
90-
</reference>
98+
<reference name="product.review.form.fields.before">
99+
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
100+
<block>honeyspam.honeypot</block>
101+
</action>
102+
</reference>
91103
</review_product_list>
92104

105+
<contacts_index_index>
106+
<block type="hackathon_honeyspam/honeypot"
107+
name="honeyspam.honeypot"
108+
template="hackathon/honeyspam/honeypot.phtml"/>
109+
<reference name="contactForm">
110+
<block type="core/text_list"
111+
name="contacts.form.fields.before"
112+
as="form_fields_before"
113+
translate="label">
114+
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
115+
<block>honeyspam.honeypot</block>
116+
</action>
117+
</block>
118+
</reference>
119+
</contacts_index_index>
120+
93121
<hackathon_honeyspam_error_index>
94122
<reference name="content">
95123
<block type="core/template"
96124
name="honeyspam.error"
97125
template="hackathon/honeyspam/error.phtml"/>
98126
</reference>
99127
</hackathon_honeyspam_error_index>
100-
101-
<contacts_index_index>
102-
<reference name="contactForm">
103-
<block type="core/text_list"
104-
name="contacts.form.fields.before"
105-
as="form_fields_before"
106-
translate="label">
107-
<block type="hackathon_honeyspam/honeypot"
108-
name="honeyspam.honeypot"
109-
template="hackathon/honeyspam/honeypot.phtml"/>
110-
</block>
111-
</reference>
112-
</contacts_index_index>
113128
</layout>

0 commit comments

Comments
 (0)