Skip to content

Commit

Permalink
Merge pull request #74 from magento-hackathon/Schrank-patch-4
Browse files Browse the repository at this point in the history
Update honeyspam.xml
  • Loading branch information
sprankhub authored Mar 16, 2021
2 parents 9e8889f + cc15913 commit 88f1ff9
Showing 1 changed file with 63 additions and 48 deletions.
111 changes: 63 additions & 48 deletions app/design/frontend/base/default/layout/honeyspam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,87 +27,102 @@
<layout>
<default>
<reference name="head">
<action method="addJs">
<action method="addJs" ifconfig="hackathon/honeyspam/enableHoneypotName">
<script>hackathon/HoneySpam/honeyspam.js</script>
</action>
</reference>
<!-- base/default theme -->
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
<reference name="left.newsletter">
<block type="core/text_list"
name="newsletter.form.fields.before"
as="form_fields_before"
translate="label">
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
</block>
<block type="core/text_list"
name="newsletter.form.fields.before"
as="form_fields_before"
translate="label">
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
<block>honeyspam.honeypot</block>
</action>
</block>
</reference>
<!-- rwd/default theme -->
<reference name="footer.newsletter">
<block type="core/text_list"
name="newsletter.form.fields.before"
as="form_fields_before"
translate="label">
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
</block>
<block type="core/text_list"
name="newsletter.form.fields.before"
as="form_fields_before"
translate="label">
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
<block>honeyspam.honeypot</block>
</action>
</block>
</reference>
<!-- default/modern theme -->
<reference name="newsletter">
<block type="core/text_list"
name="newsletter.form.fields.before"
as="form_fields_before"
translate="label">
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
</block>
</reference>
<block type="core/text_list"
name="newsletter.form.fields.before"
as="form_fields_before"
translate="label">
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
<block>honeyspam.honeypot</block>
</action>
</block>
</reference>
</default>

<customer_account_create>
<reference name="form.additional.info">
<block type="hackathon_honeyspam/honeypot"
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
</reference>
<reference name="form.additional.info">
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
<block>honeyspam.honeypot</block>
</action>
</reference>
</customer_account_create>

<customer_account_forgotpassword>
<reference name="form.additional.info">
<block type="hackathon_honeyspam/honeypot"
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
</reference>
<reference name="form.additional.info">
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
<block>honeyspam.honeypot</block>
</action>
</reference>
</customer_account_forgotpassword>

<review_product_list>
<reference name="product.review.form.fields.before">
<block type="hackathon_honeyspam/honeypot"
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
</reference>
<reference name="product.review.form.fields.before">
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
<block>honeyspam.honeypot</block>
</action>
</reference>
</review_product_list>

<contacts_index_index>
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
<reference name="contactForm">
<block type="core/text_list"
name="contacts.form.fields.before"
as="form_fields_before"
translate="label">
<action method="append" ifconfig="hackathon/honeyspam/enableHoneypotName">
<block>honeyspam.honeypot</block>
</action>
</block>
</reference>
</contacts_index_index>

<hackathon_honeyspam_error_index>
<reference name="content">
<block type="core/template"
name="honeyspam.error"
template="hackathon/honeyspam/error.phtml"/>
</reference>
</hackathon_honeyspam_error_index>

<contacts_index_index>
<reference name="contactForm">
<block type="core/text_list"
name="contacts.form.fields.before"
as="form_fields_before"
translate="label">
<block type="hackathon_honeyspam/honeypot"
name="honeyspam.honeypot"
template="hackathon/honeyspam/honeypot.phtml"/>
</block>
</reference>
</contacts_index_index>
</layout>

0 comments on commit 88f1ff9

Please sign in to comment.