|
27 | 27 | <layout>
|
28 | 28 | <default>
|
29 | 29 | <reference name="head">
|
30 |
| - <action method="addJs"> |
| 30 | + <action method="addJs" ifconfig="hackathon/honeyspam/enableHoneypotName"> |
31 | 31 | <script>hackathon/HoneySpam/honeyspam.js</script>
|
32 | 32 | </action>
|
33 | 33 | </reference>
|
34 | 34 | <!-- base/default theme -->
|
| 35 | + <block type="hackathon_honeyspam/honeypot" |
| 36 | + name="honeyspam.honeypot" |
| 37 | + template="hackathon/honeyspam/honeypot.phtml"/> |
35 | 38 | <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> |
44 | 47 | </reference>
|
45 | 48 | <!-- rwd/default theme -->
|
46 | 49 | <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> |
55 | 58 | </reference>
|
56 | 59 | <!-- default/modern theme -->
|
57 | 60 | <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> |
67 | 70 | </default>
|
68 | 71 |
|
69 | 72 | <customer_account_create>
|
70 |
| - <reference name="form.additional.info"> |
71 |
| - <block type="hackathon_honeyspam/honeypot" |
| 73 | + <block type="hackathon_honeyspam/honeypot" |
72 | 74 | name="honeyspam.honeypot"
|
73 | 75 | 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> |
75 | 81 | </customer_account_create>
|
76 | 82 |
|
77 | 83 | <customer_account_forgotpassword>
|
78 |
| - <reference name="form.additional.info"> |
79 |
| - <block type="hackathon_honeyspam/honeypot" |
| 84 | + <block type="hackathon_honeyspam/honeypot" |
80 | 85 | name="honeyspam.honeypot"
|
81 | 86 | 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> |
83 | 92 | </customer_account_forgotpassword>
|
84 | 93 |
|
85 | 94 | <review_product_list>
|
86 |
| - <reference name="product.review.form.fields.before"> |
87 |
| - <block type="hackathon_honeyspam/honeypot" |
| 95 | + <block type="hackathon_honeyspam/honeypot" |
88 | 96 | name="honeyspam.honeypot"
|
89 | 97 | 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> |
91 | 103 | </review_product_list>
|
92 | 104 |
|
| 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 | + |
93 | 121 | <hackathon_honeyspam_error_index>
|
94 | 122 | <reference name="content">
|
95 | 123 | <block type="core/template"
|
96 | 124 | name="honeyspam.error"
|
97 | 125 | template="hackathon/honeyspam/error.phtml"/>
|
98 | 126 | </reference>
|
99 | 127 | </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> |
113 | 128 | </layout>
|
0 commit comments