Version Notes
This extension easily protects the "Send to Friend", "Contact Us", "Product Review" and customer registration forms from unwanted spambots by adding in reCAPTCHA to these forms.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Fontis_Recaptcha |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.1.0
- app/code/community/Fontis/Recaptcha/Block/Review/Form.php +1 -1
- app/code/community/Fontis/Recaptcha/Helper/Data.php +1 -1
- app/code/community/Fontis/Recaptcha/Model/Source/Recaptchalanguage.php +1 -1
- app/code/community/Fontis/Recaptcha/Model/Source/Recaptchatheme.php +1 -1
- app/code/community/Fontis/Recaptcha/controllers/AccountController.php +1 -1
- app/code/community/Fontis/Recaptcha/controllers/ContactsController.php +1 -1
- app/code/community/Fontis/Recaptcha/controllers/ProductController.php +2 -2
- app/code/community/Fontis/Recaptcha/controllers/ReviewController.php +1 -1
- app/code/community/Fontis/Recaptcha/etc/config.xml +2 -2
- app/code/community/Fontis/Recaptcha/etc/system.xml +1 -1
- app/design/frontend/default/default/layout/fontis_recaptcha.xml +12 -14
- app/design/frontend/default/default/template/fontis/recaptcha/contacts.phtml +40 -31
- app/design/frontend/default/default/template/fontis/recaptcha/form.phtml +80 -82
- app/design/frontend/default/default/template/fontis/recaptcha/recaptcha.phtml +2 -2
- app/design/frontend/default/default/template/fontis/recaptcha/register.phtml +155 -122
- app/design/frontend/default/default/template/fontis/recaptcha/send.phtml +79 -74
- app/etc/modules/Fontis_Recaptcha.xml +1 -1
- package.xml +7 -7
app/code/community/Fontis/Recaptcha/Block/Review/Form.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
app/code/community/Fontis/Recaptcha/Helper/Data.php
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
* @package Fontis_Recaptcha
|
23 |
* @author Denis Margetic
|
24 |
* @author Chris Norton
|
25 |
-
* @copyright Copyright (c)
|
26 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
27 |
*/
|
28 |
class Fontis_Recaptcha_Helper_Data extends Mage_Core_Helper_Abstract
|
22 |
* @package Fontis_Recaptcha
|
23 |
* @author Denis Margetic
|
24 |
* @author Chris Norton
|
25 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
26 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
27 |
*/
|
28 |
class Fontis_Recaptcha_Helper_Data extends Mage_Core_Helper_Abstract
|
app/code/community/Fontis/Recaptcha/Model/Source/Recaptchalanguage.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
app/code/community/Fontis/Recaptcha/Model/Source/Recaptchatheme.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
app/code/community/Fontis/Recaptcha/controllers/AccountController.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Customer/controllers/AccountController.php";
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Customer/controllers/AccountController.php";
|
app/code/community/Fontis/Recaptcha/controllers/ContactsController.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Contacts/controllers/IndexController.php";
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Contacts/controllers/IndexController.php";
|
app/code/community/Fontis/Recaptcha/controllers/ProductController.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Sendfriend/controllers/ProductController.php";
|
@@ -44,7 +44,7 @@ class Fontis_Recaptcha_ProductController extends Mage_Sendfriend_ProductControll
|
|
44 |
else
|
45 |
{ // if recaptcha response is incorrect, reload the page
|
46 |
Mage::getSingleton('catalog/session')->addError($this->__('Your reCAPTCHA entry is incorrect. Please try again.'));
|
47 |
-
Mage::getSingleton('catalog/session')->
|
48 |
$this->_redirectReferer();
|
49 |
return;
|
50 |
}
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Sendfriend/controllers/ProductController.php";
|
44 |
else
|
45 |
{ // if recaptcha response is incorrect, reload the page
|
46 |
Mage::getSingleton('catalog/session')->addError($this->__('Your reCAPTCHA entry is incorrect. Please try again.'));
|
47 |
+
Mage::getSingleton('catalog/session')->setSendfriendFormData($data);
|
48 |
$this->_redirectReferer();
|
49 |
return;
|
50 |
}
|
app/code/community/Fontis/Recaptcha/controllers/ReviewController.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Review/controllers/ProductController.php";
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
include_once "Mage/Review/controllers/ProductController.php";
|
app/code/community/Fontis/Recaptcha/etc/config.xml
CHANGED
@@ -17,14 +17,14 @@
|
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Fontis_Recaptcha>
|
27 |
-
<version>2.
|
28 |
</Fontis_Recaptcha>
|
29 |
</modules>
|
30 |
<global>
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Fontis_Recaptcha>
|
27 |
+
<version>2.1.0</version>
|
28 |
</Fontis_Recaptcha>
|
29 |
</modules>
|
30 |
<global>
|
app/code/community/Fontis/Recaptcha/etc/system.xml
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
app/design/frontend/default/default/layout/fontis_recaptcha.xml
CHANGED
@@ -17,26 +17,24 @@
|
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
24 |
<layout version="0.1.0">
|
25 |
<sendfriend_product_send>
|
26 |
-
<
|
27 |
-
|
28 |
-
|
29 |
-
<block type="sendfriend/send" name="recaptcha_sendfriend_send" template="fontis/recaptcha/send.phtml">
|
30 |
-
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml"/>
|
31 |
</block>
|
32 |
</reference>
|
33 |
</sendfriend_product_send>
|
34 |
|
35 |
<fontis_recaptcha_contacts_index>
|
36 |
<reference name="root">
|
37 |
-
|
38 |
<template>page/2columns-right.phtml</template>
|
39 |
-
</action
|
40 |
|
41 |
<action method="setHeaderTitle" translate="title" module="contacts">
|
42 |
<title>Contact Us</title>
|
@@ -45,16 +43,16 @@
|
|
45 |
|
46 |
<reference name="content">
|
47 |
<block type="core/template" name="contactForm" template="fontis/recaptcha/contacts.phtml">
|
48 |
-
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml"/>
|
49 |
</block>
|
50 |
</reference>
|
51 |
</fontis_recaptcha_contacts_index>
|
52 |
|
53 |
<contacts_contacts_index>
|
54 |
<reference name="root">
|
55 |
-
|
56 |
<template>page/2columns-right.phtml</template>
|
57 |
-
</action
|
58 |
|
59 |
<action method="setHeaderTitle" translate="title" module="contacts">
|
60 |
<title>Contact Us</title>
|
@@ -63,7 +61,7 @@
|
|
63 |
|
64 |
<reference name="content">
|
65 |
<block type="core/template" name="contactForm" template="fontis/recaptcha/contacts.phtml">
|
66 |
-
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml"/>
|
67 |
</block>
|
68 |
</reference>
|
69 |
</contacts_contacts_index>
|
@@ -73,14 +71,14 @@
|
|
73 |
|
74 |
<reference name="content">
|
75 |
<block type="customer/form_register" name="recaptcha_form_register" template="fontis/recaptcha/register.phtml">
|
76 |
-
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml"/>
|
77 |
</block>
|
78 |
</reference>
|
79 |
</customer_account_create>
|
80 |
|
81 |
<review_product_list>
|
82 |
<block name="product.review.form" >
|
83 |
-
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml"/>
|
84 |
</block>
|
85 |
</review_product_list>
|
86 |
</layout>
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
24 |
<layout version="0.1.0">
|
25 |
<sendfriend_product_send>
|
26 |
+
<reference name="sendfriend.send">
|
27 |
+
<block type="sendfriend/send" name="sendfriend.send" template="fontis/recaptcha/send.phtml">
|
28 |
+
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml" />
|
|
|
|
|
29 |
</block>
|
30 |
</reference>
|
31 |
</sendfriend_product_send>
|
32 |
|
33 |
<fontis_recaptcha_contacts_index>
|
34 |
<reference name="root">
|
35 |
+
<action method="setTemplate">
|
36 |
<template>page/2columns-right.phtml</template>
|
37 |
+
</action>
|
38 |
|
39 |
<action method="setHeaderTitle" translate="title" module="contacts">
|
40 |
<title>Contact Us</title>
|
43 |
|
44 |
<reference name="content">
|
45 |
<block type="core/template" name="contactForm" template="fontis/recaptcha/contacts.phtml">
|
46 |
+
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml" />
|
47 |
</block>
|
48 |
</reference>
|
49 |
</fontis_recaptcha_contacts_index>
|
50 |
|
51 |
<contacts_contacts_index>
|
52 |
<reference name="root">
|
53 |
+
<action method="setTemplate">
|
54 |
<template>page/2columns-right.phtml</template>
|
55 |
+
</action>
|
56 |
|
57 |
<action method="setHeaderTitle" translate="title" module="contacts">
|
58 |
<title>Contact Us</title>
|
61 |
|
62 |
<reference name="content">
|
63 |
<block type="core/template" name="contactForm" template="fontis/recaptcha/contacts.phtml">
|
64 |
+
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml" />
|
65 |
</block>
|
66 |
</reference>
|
67 |
</contacts_contacts_index>
|
71 |
|
72 |
<reference name="content">
|
73 |
<block type="customer/form_register" name="recaptcha_form_register" template="fontis/recaptcha/register.phtml">
|
74 |
+
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml" />
|
75 |
</block>
|
76 |
</reference>
|
77 |
</customer_account_create>
|
78 |
|
79 |
<review_product_list>
|
80 |
<block name="product.review.form" >
|
81 |
+
<block type="core/template" name="recaptcha.box" as="recaptcha_box" template="fontis/recaptcha/recaptcha.phtml" />
|
82 |
</block>
|
83 |
</review_product_list>
|
84 |
</layout>
|
app/design/frontend/default/default/template/fontis/recaptcha/contacts.phtml
CHANGED
@@ -16,45 +16,51 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
23 |
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
24 |
-
<div class="page-
|
25 |
-
<
|
26 |
</div>
|
27 |
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
|
28 |
-
<
|
29 |
-
<
|
30 |
-
<ul>
|
31 |
-
|
32 |
-
<div class="
|
33 |
-
<label for="name"><?php echo Mage::helper('contacts')->__('Name')
|
34 |
-
<
|
|
|
|
|
35 |
</div>
|
36 |
-
|
37 |
-
|
38 |
-
<
|
39 |
-
<input name="email" id="email" title="<?php echo Mage::helper('contacts')->__('Email') ?>" value="<?php if($this->helper('contacts')->getUserEmail() == "") { if(isset($_SESSION["contact_email"])){ echo ($_SESSION["contact_email"]); unset($_SESSION["contact_email"]);}}else{ echo $this->htmlEscape($this->helper('contacts')->getUserEmail()); } ?>" class="required-entry input-text validate-email" type="text" />
|
|
|
40 |
</div>
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
<div class="input-box">
|
45 |
-
<
|
46 |
-
<input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="<?php if(isset($_SESSION["contact_telephone"])){ echo ($_SESSION["contact_telephone"]); unset($_SESSION["contact_telephone"]);} ?>" class="input-text" type="text" />
|
47 |
</div>
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
<div class="input-box">
|
52 |
-
<
|
53 |
-
|
|
|
|
|
|
|
|
|
54 |
</div>
|
55 |
-
|
56 |
-
|
57 |
-
</
|
58 |
|
59 |
<?php // recaptcha
|
60 |
if( !(Mage::getStoreConfig("fontis_recaptcha/recaptcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
@@ -63,12 +69,15 @@
|
|
63 |
echo $this->getChildHtml('recaptcha_box');
|
64 |
}
|
65 |
?>
|
66 |
-
|
67 |
-
<div class="
|
68 |
<p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
|
69 |
-
<
|
|
|
70 |
</div>
|
71 |
</form>
|
72 |
<script type="text/javascript">
|
|
|
73 |
var contactForm = new VarienForm('contactForm', true);
|
74 |
-
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
23 |
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
24 |
+
<div class="page-title">
|
25 |
+
<h1><?php echo Mage::helper('contacts')->__('Contact Us') ?></h1>
|
26 |
</div>
|
27 |
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
|
28 |
+
<div class="fieldset">
|
29 |
+
<h2 class="legend"><?php echo Mage::helper('contacts')->__('Contact Information') ?></h2>
|
30 |
+
<ul class="form-list">
|
31 |
+
<li class="fields">
|
32 |
+
<div class="field">
|
33 |
+
<label for="name" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Name') ?></label>
|
34 |
+
<div class="input-box">
|
35 |
+
<input name="name" id="name" title="<?php echo Mage::helper('contacts')->__('Name') ?>" value="<?php if($this->helper('contacts')->getUserName() == "") { if(isset($_SESSION["contact_name"])){ echo $this->htmlEscape($_SESSION["contact_name"]); unset($_SESSION["contact_name"]);}}else{ echo $this->htmlEscape($this->helper('contacts')->getUserName()); } ?>" class="required-entry input-text" type="text" />
|
36 |
+
</div>
|
37 |
</div>
|
38 |
+
<div class="field">
|
39 |
+
<label for="email" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Email') ?></label>
|
40 |
+
<div class="input-box">
|
41 |
+
<input name="email" id="email" title="<?php echo Mage::helper('contacts')->__('Email') ?>" value="<?php if($this->helper('contacts')->getUserEmail() == "") { if(isset($_SESSION["contact_email"])){ echo $this->htmlEscape($_SESSION["contact_email"]); unset($_SESSION["contact_email"]);}}else{ echo $this->htmlEscape($this->helper('contacts')->getUserEmail()); } ?>" class="required-entry input-text validate-email" type="text" />
|
42 |
+
</div>
|
43 |
</div>
|
44 |
+
</li>
|
45 |
+
<li>
|
46 |
+
<label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label>
|
47 |
<div class="input-box">
|
48 |
+
<input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="<?php if(isset($_SESSION["contact_telephone"])){ echo $this->htmlEscape($_SESSION["contact_telephone"]); unset($_SESSION["contact_telephone"]);} ?>" class="input-text" type="text" />
|
|
|
49 |
</div>
|
50 |
+
</li>
|
51 |
+
<li class="wide">
|
52 |
+
<label for="comment" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Comment') ?></label>
|
53 |
<div class="input-box">
|
54 |
+
<textarea name="comment" id="comment" title="<?php echo Mage::helper('contacts')->__('Comment') ?>" class="required-entry input-text" style="height:150px;width:auto;" cols="50" rows="5"><?php
|
55 |
+
if(isset($_SESSION["contact_comment"])) {
|
56 |
+
echo $this->htmlEscape($_SESSION["contact_comment"]);
|
57 |
+
unset($_SESSION["contact_comment"]);
|
58 |
+
}
|
59 |
+
?></textarea>
|
60 |
</div>
|
61 |
+
</li>
|
62 |
+
</ul>
|
63 |
+
</div>
|
64 |
|
65 |
<?php // recaptcha
|
66 |
if( !(Mage::getStoreConfig("fontis_recaptcha/recaptcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
69 |
echo $this->getChildHtml('recaptcha_box');
|
70 |
}
|
71 |
?>
|
72 |
+
|
73 |
+
<div class="buttons-set">
|
74 |
<p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
|
75 |
+
<input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
|
76 |
+
<button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>
|
77 |
</div>
|
78 |
</form>
|
79 |
<script type="text/javascript">
|
80 |
+
//<![CDATA[
|
81 |
var contactForm = new VarienForm('contactForm', true);
|
82 |
+
//]]>
|
83 |
+
</script>
|
app/design/frontend/default/default/template/fontis/recaptcha/form.phtml
CHANGED
@@ -1,114 +1,112 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
*
|
15 |
-
*
|
16 |
-
*
|
17 |
-
*
|
18 |
-
*
|
19 |
-
*
|
20 |
-
*
|
21 |
-
* @category design_default
|
22 |
-
* @package Mage
|
23 |
-
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
27 |
-
<div class="page-head">
|
28 |
-
<h3><?php echo $this->__('Write Your Own Review') ?></h3>
|
29 |
-
</div>
|
30 |
-
<h4><?php echo $this->__("You're reviewing: %s", $this->htmlEscape($this->getProductInfo()->getName())) ?></h4>
|
31 |
<form action="<?php echo $this->getAction() ?>" method="post" id="review-form">
|
32 |
-
<
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
<
|
40 |
-
<
|
41 |
-
<
|
42 |
-
<
|
43 |
-
<
|
44 |
-
<
|
45 |
-
<
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
<
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
<
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
</div>
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
</div>
|
83 |
-
|
84 |
-
<?php // recaptcha
|
85 |
-
if( !(Mage::getStoreConfig("fontis_recaptcha/recaptcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
86 |
-
{
|
87 |
-
if (Mage::getStoreConfig("fontis_recaptcha/recaptcha/review"))
|
88 |
-
echo $this->getChildHtml('recaptcha_box');
|
89 |
-
}
|
90 |
-
?>
|
91 |
-
|
92 |
-
<div class="button-set">
|
93 |
-
<button class="form-button right" type="submit"><span><?php echo $this->__('Submit Review') ?></span></button>
|
94 |
-
</div>
|
95 |
-
</fieldset>
|
96 |
</form>
|
97 |
<script type="text/javascript">
|
98 |
//<![CDATA[
|
99 |
var dataForm = new VarienForm('review-form');
|
100 |
-
|
101 |
Validation.addAllThese(
|
102 |
[
|
103 |
['validate-rating', '<?php echo $this->__('Please select one of each of the ratings above') ?>', function(v) {
|
104 |
-
var trs = $('product-review-table').
|
105 |
var inputs;
|
106 |
var error = 1;
|
107 |
|
108 |
for( var j=0; j < trs.length; j++ ) {
|
109 |
var tr = trs[j];
|
110 |
if( j > 0 ) {
|
111 |
-
inputs = tr.
|
112 |
|
113 |
for( i in inputs ) {
|
114 |
if( inputs[i].checked == true ) {
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Fontis Recaptcha Extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_Recaptcha
|
17 |
+
* @author Denis Margetic
|
18 |
+
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
|
|
|
|
|
|
|
|
21 |
*/
|
22 |
?>
|
|
|
|
|
|
|
|
|
23 |
<form action="<?php echo $this->getAction() ?>" method="post" id="review-form">
|
24 |
+
<div class="form-add">
|
25 |
+
<h2><?php echo $this->__('Write Your Own Review') ?></h2>
|
26 |
+
<?php echo $this->getChildHtml('form_fields_before')?>
|
27 |
+
<h3><?php echo $this->__("You're reviewing:"); ?> <span><?php echo $this->htmlEscape($this->getProductInfo()->getName()) ?></span></h3>
|
28 |
+
<?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
|
29 |
+
<h4><?php echo $this->__('How do you rate this product?') ?> <em class="required">*</em></h4>
|
30 |
+
<span id="input-message-box"></span>
|
31 |
+
<table class="data-table" id="product-review-table">
|
32 |
+
<col />
|
33 |
+
<col width="1" />
|
34 |
+
<col width="1" />
|
35 |
+
<col width="1" />
|
36 |
+
<col width="1" />
|
37 |
+
<col width="1" />
|
38 |
+
<thead>
|
39 |
+
<tr>
|
40 |
+
<th> </th>
|
41 |
+
<th><span class="nobr"><?php echo $this->__('1 star') ?></span></th>
|
42 |
+
<th><span class="nobr"><?php echo $this->__('2 stars') ?></span></th>
|
43 |
+
<th><span class="nobr"><?php echo $this->__('3 stars') ?></span></th>
|
44 |
+
<th><span class="nobr"><?php echo $this->__('4 stars') ?></span></th>
|
45 |
+
<th><span class="nobr"><?php echo $this->__('5 stars') ?></span></th>
|
46 |
+
</tr>
|
47 |
+
</thead>
|
48 |
+
<tbody>
|
49 |
+
<?php foreach ($this->getRatings() as $_rating): ?>
|
50 |
+
<tr>
|
51 |
+
<th><?php echo $this->escapeHtml($_rating->getRatingCode()) ?></th>
|
52 |
+
<?php foreach ($_rating->getOptions() as $_option): ?>
|
53 |
+
<td class="value"><input type="radio" name="ratings[<?php echo $_rating->getId() ?>]" id="<?php echo $this->escapeHtml($_rating->getRatingCode()) ?>_<?php echo $_option->getValue() ?>" value="<?php echo $_option->getId() ?>" class="radio" /></td>
|
54 |
+
<?php endforeach; ?>
|
55 |
+
</tr>
|
56 |
+
<?php endforeach; ?>
|
57 |
+
</tbody>
|
58 |
+
</table>
|
59 |
+
<input type="hidden" name="validate_rating" class="validate-rating" value="" />
|
60 |
+
<script type="text/javascript">decorateTable('product-review-table')</script>
|
61 |
+
<?php endif; ?>
|
62 |
+
<ul class="form-list">
|
63 |
+
<li>
|
64 |
+
<label for="nickname_field" class="required"><em>*</em><?php echo $this->__('Nickname') ?></label>
|
65 |
+
<div class="input-box">
|
66 |
+
<input type="text" name="nickname" id="nickname_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getNickname()) ?>" />
|
67 |
+
</div>
|
68 |
+
</li>
|
69 |
+
<li>
|
70 |
+
<label for="summary_field" class="required"><em>*</em><?php echo $this->__('Summary of Your Review') ?></label>
|
71 |
+
<div class="input-box">
|
72 |
+
<input type="text" name="title" id="summary_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getTitle()) ?>" />
|
73 |
+
</div>
|
74 |
+
</li>
|
75 |
+
<li>
|
76 |
+
<label for="review_field" class="required"><em>*</em><?php echo $this->__('Review') ?></label>
|
77 |
+
<div class="input-box">
|
78 |
+
<textarea name="detail" id="review_field" cols="5" rows="3" class="required-entry"><?php echo $this->htmlEscape($data->getDetail()) ?></textarea>
|
79 |
+
</div>
|
80 |
+
</li>
|
81 |
+
</ul>
|
82 |
</div>
|
83 |
|
84 |
+
<?php // recaptcha
|
85 |
+
if( !(Mage::getStoreConfig("fontis_recaptcha/recaptcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
86 |
+
{
|
87 |
+
if (Mage::getStoreConfig("fontis_recaptcha/recaptcha/review"))
|
88 |
+
echo $this->getChildHtml('recaptcha_box');
|
89 |
+
}
|
90 |
+
?>
|
91 |
+
|
92 |
+
<div class="buttons-set">
|
93 |
+
<button type="submit" title="<?php echo $this->__('Submit Review') ?>" class="button"><span><span><?php echo $this->__('Submit Review') ?></span></span></button>
|
94 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
</form>
|
96 |
<script type="text/javascript">
|
97 |
//<![CDATA[
|
98 |
var dataForm = new VarienForm('review-form');
|
|
|
99 |
Validation.addAllThese(
|
100 |
[
|
101 |
['validate-rating', '<?php echo $this->__('Please select one of each of the ratings above') ?>', function(v) {
|
102 |
+
var trs = $('product-review-table').select('tr');
|
103 |
var inputs;
|
104 |
var error = 1;
|
105 |
|
106 |
for( var j=0; j < trs.length; j++ ) {
|
107 |
var tr = trs[j];
|
108 |
if( j > 0 ) {
|
109 |
+
inputs = tr.select('input');
|
110 |
|
111 |
for( i in inputs ) {
|
112 |
if( inputs[i].checked == true ) {
|
app/design/frontend/default/default/template/fontis/recaptcha/recaptcha.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
@@ -31,7 +31,7 @@ $textbox = Mage::getStoreConfig("fontis_recaptcha/setup/textbox");
|
|
31 |
<?php if( $theme == 'magento'): ?>
|
32 |
|
33 |
<?php echo "<script> var RecaptchaOptions = { theme : 'custom', lang : '$language', custom_theme_widget: 'recaptcha_widget' }; </script>"; ?>
|
34 |
-
<div id="recaptcha_widget" class="group-select wide" style="display:none">
|
35 |
<h4 class="legend" style="background-image: none;">Recaptcha</h4>
|
36 |
<div style="margin-bottom: 10px; margin-top: 5px;"><?php echo $textbox; ?></div>
|
37 |
<div class="col2-set">
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
31 |
<?php if( $theme == 'magento'): ?>
|
32 |
|
33 |
<?php echo "<script> var RecaptchaOptions = { theme : 'custom', lang : '$language', custom_theme_widget: 'recaptcha_widget' }; </script>"; ?>
|
34 |
+
<div id="recaptcha_widget" class="group-select wide fieldset" style="display:none">
|
35 |
<h4 class="legend" style="background-image: none;">Recaptcha</h4>
|
36 |
<div style="margin-bottom: 10px; margin-top: 5px;"><?php echo $textbox; ?></div>
|
37 |
<div class="col2-set">
|
app/design/frontend/default/default/template/fontis/recaptcha/register.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
@@ -27,127 +27,160 @@
|
|
27 |
* @see Mage_Customer_Block_Form_Register
|
28 |
*/
|
29 |
?>
|
30 |
-
<div class="
|
31 |
-
<
|
32 |
-
|
33 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
34 |
-
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
|
35 |
-
<fieldset class="group-select wide">
|
36 |
-
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
37 |
-
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
38 |
-
<h4 class="legend"><?php echo $this->__('Personal Information') ?></h4>
|
39 |
-
<ul>
|
40 |
-
<li>
|
41 |
-
<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->toHtml() ?>
|
42 |
-
</li>
|
43 |
-
<li>
|
44 |
-
<div class="input-box">
|
45 |
-
<label for="email_address"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br/>
|
46 |
-
<input type="text" name="email" id="email_address" value="<?php echo $this->htmlEscape($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="validate-email required-entry input-text" />
|
47 |
-
</div>
|
48 |
-
</li>
|
49 |
-
<?php if ($this->isNewsletterEnabled()): ?>
|
50 |
-
<li>
|
51 |
-
<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed" <?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif ?> />
|
52 |
-
<label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
|
53 |
-
</li>
|
54 |
-
<?php endif ?>
|
55 |
-
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
56 |
-
<?php if ($_dob->isEnabled()): ?>
|
57 |
-
<li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
|
58 |
-
<?php endif ?>
|
59 |
-
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
60 |
-
<?php if ($_taxvat->isEnabled()): ?>
|
61 |
-
<li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
|
62 |
-
<?php endif ?>
|
63 |
-
</ul>
|
64 |
-
</fieldset>
|
65 |
-
<?php if($this->getShowAddressFields()): ?>
|
66 |
-
<input type="hidden" name="create_address" value="1" />
|
67 |
-
<fieldset class="group-select wide">
|
68 |
-
<h4 class="legend"><?php echo $this->__('Address Information') ?></h4>
|
69 |
-
<ul>
|
70 |
-
<li>
|
71 |
-
<div class="input-box">
|
72 |
-
<label for="company"><?php echo $this->__('Company') ?></label><br />
|
73 |
-
<input type="text" name="company" id="company" value="<?php echo $this->htmlEscape($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
|
74 |
-
</div>
|
75 |
-
<div class="input-box">
|
76 |
-
<label for="lastname"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
|
77 |
-
<input type="text" name="telephone" id="telephone" value="<?php echo $this->htmlEscape($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" />
|
78 |
-
</div>
|
79 |
-
</li>
|
80 |
-
<li>
|
81 |
-
<label for="street_1"><?php echo $this->__('Street Address') ?> <span class="required">*</span></label><br />
|
82 |
-
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="required-entry input-text" />
|
83 |
-
</li>
|
84 |
-
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
85 |
-
<li>
|
86 |
-
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
|
87 |
-
<?php endfor ?>
|
88 |
-
</li>
|
89 |
-
<li>
|
90 |
-
<div class="input-box">
|
91 |
-
<label for="city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
|
92 |
-
<input type="text" name="city" value="<?php echo $this->htmlEscape($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="required-entry input-text" id="city" />
|
93 |
-
</div>
|
94 |
-
<div class="input-box">
|
95 |
-
<label for="region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
|
96 |
-
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
|
97 |
-
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
98 |
-
</select>
|
99 |
-
<script type="text/javascript">
|
100 |
-
$('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
|
101 |
-
</script>
|
102 |
-
<input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" />
|
103 |
-
</div>
|
104 |
-
</li>
|
105 |
-
<li>
|
106 |
-
<div class="input-box">
|
107 |
-
<label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br/>
|
108 |
-
<input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="validate-zip-international required-entry input-text" />
|
109 |
-
</div>
|
110 |
-
<div class="input-box">
|
111 |
-
<label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br/>
|
112 |
-
<?php echo $this->getCountryHtmlSelect() ?>
|
113 |
-
</div>
|
114 |
-
</li>
|
115 |
-
</ul>
|
116 |
-
</fieldset>
|
117 |
-
<input type="hidden" name="default_billing" value="1" />
|
118 |
-
<input type="hidden" name="default_shipping" value="1" />
|
119 |
-
<?php endif; ?>
|
120 |
-
<fieldset class="group-select wide">
|
121 |
-
<h4 class="legend"><?php echo $this->__('Login Information') ?></h4>
|
122 |
-
<ul>
|
123 |
-
<li>
|
124 |
-
<div class="input-box">
|
125 |
-
<label for="password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br/>
|
126 |
-
<input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="required-entry validate-password input-text" />
|
127 |
-
</div>
|
128 |
-
<div class="input-box">
|
129 |
-
<label for="confirmation"><?php echo $this->__('Confirm Password') ?> <span class="required">*</span></label><br />
|
130 |
-
<input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="required-entry validate-cpassword input-text" />
|
131 |
-
</div>
|
132 |
-
</li>
|
133 |
-
</ul>
|
134 |
-
</fieldset>
|
135 |
-
|
136 |
-
<?php if (Mage::getStoreConfig("fontis_recaptcha/recaptcha/customer")): ?>
|
137 |
-
<?php echo $this->getChildHtml('recaptcha_box') ?>
|
138 |
-
<?php endif; ?>
|
139 |
-
|
140 |
-
<div class="button-set">
|
141 |
-
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
142 |
-
<a href="<?php echo $this->getBackUrl() ?>" class="left">« <?php echo $this->__('Back') ?></a>
|
143 |
-
<button class="form-button" type="submit"><span><?php echo $this->__('Submit') ?></span></button>
|
144 |
</div>
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
<?php if($this->getShowAddressFields()): ?>
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
<?php endif; ?>
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
27 |
* @see Mage_Customer_Block_Form_Register
|
28 |
*/
|
29 |
?>
|
30 |
+
<div class="account-create">
|
31 |
+
<div class="page-title">
|
32 |
+
<h1><?php echo $this->__('Create an Account') ?></h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
</div>
|
34 |
+
<?php echo $this->getChildHtml('form_fields_before')?>
|
35 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
36 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
|
37 |
+
<div class="fieldset">
|
38 |
+
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
39 |
+
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
40 |
+
<h2 class="legend"><?php echo $this->__('Personal Information') ?></h2>
|
41 |
+
<ul class="form-list">
|
42 |
+
<li class="fields">
|
43 |
+
<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->toHtml() ?>
|
44 |
+
</li>
|
45 |
+
<li>
|
46 |
+
<label for="email_address" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
47 |
+
<div class="input-box">
|
48 |
+
<input type="text" name="email" id="email_address" value="<?php echo $this->htmlEscape($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
49 |
+
</div>
|
50 |
+
</li>
|
51 |
+
<?php if ($this->isNewsletterEnabled()): ?>
|
52 |
+
<li class="control">
|
53 |
+
<div class="input-box">
|
54 |
+
<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed"<?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" />
|
55 |
+
</div>
|
56 |
+
<label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
|
57 |
+
</li>
|
58 |
+
<?php endif ?>
|
59 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
60 |
+
<?php if ($_dob->isEnabled()): ?>
|
61 |
+
<li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
|
62 |
+
<?php endif ?>
|
63 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
64 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
65 |
+
<li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
|
66 |
+
<?php endif ?>
|
67 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
68 |
+
<?php if ($_gender->isEnabled()): ?>
|
69 |
+
<li><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
|
70 |
+
<?php endif ?>
|
71 |
+
</ul>
|
72 |
+
</div>
|
73 |
<?php if($this->getShowAddressFields()): ?>
|
74 |
+
<div class="fieldset">
|
75 |
+
<input type="hidden" name="create_address" value="1" />
|
76 |
+
<h2 class="legend"><?php echo $this->__('Address Information') ?></h2>
|
77 |
+
<ul class="form-list">
|
78 |
+
<li class="fields">
|
79 |
+
<div class="field">
|
80 |
+
<label for="company"><?php echo $this->__('Company') ?></label>
|
81 |
+
<div class="input-box">
|
82 |
+
<input type="text" name="company" id="company" value="<?php echo $this->htmlEscape($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
<div class="field">
|
86 |
+
<label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
87 |
+
<div class="input-box">
|
88 |
+
<input type="text" name="telephone" id="telephone" value="<?php echo $this->htmlEscape($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" />
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
</li>
|
92 |
+
<li class="wide">
|
93 |
+
<label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
|
94 |
+
<div class="input-box">
|
95 |
+
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
|
96 |
+
</div>
|
97 |
+
</li>
|
98 |
+
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
99 |
+
<li class="wide">
|
100 |
+
<div class="input-box">
|
101 |
+
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
|
102 |
+
</div>
|
103 |
+
</li>
|
104 |
+
<?php endfor ?>
|
105 |
+
<li class="fields">
|
106 |
+
<div class="field">
|
107 |
+
<label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
108 |
+
<div class="input-box">
|
109 |
+
<input type="text" name="city" value="<?php echo $this->htmlEscape($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text required-entry" id="city" />
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
<div class="field">
|
113 |
+
<label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
114 |
+
<div class="input-box">
|
115 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
116 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
117 |
+
</select>
|
118 |
+
<script type="text/javascript">
|
119 |
+
//<![CDATA[
|
120 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
|
121 |
+
//]]>
|
122 |
+
</script>
|
123 |
+
<input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
</li>
|
127 |
+
<li class="fields">
|
128 |
+
<div class="field">
|
129 |
+
<label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
130 |
+
<div class="input-box">
|
131 |
+
<input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
<div class="field">
|
135 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
136 |
+
<div class="input-box">
|
137 |
+
<?php echo $this->getCountryHtmlSelect() ?>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
</li>
|
141 |
+
</ul>
|
142 |
+
<input type="hidden" name="default_billing" value="1" />
|
143 |
+
<input type="hidden" name="default_shipping" value="1" />
|
144 |
+
</div>
|
145 |
<?php endif; ?>
|
146 |
+
<div class="fieldset">
|
147 |
+
<h2 class="legend"><?php echo $this->__('Login Information') ?></h2>
|
148 |
+
<ul class="form-list">
|
149 |
+
<li class="fields">
|
150 |
+
<div class="field">
|
151 |
+
<label for="password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
152 |
+
<div class="input-box">
|
153 |
+
<input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
<div class="field">
|
157 |
+
<label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
158 |
+
<div class="input-box">
|
159 |
+
<input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="input-text required-entry validate-cpassword" />
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
</li>
|
163 |
+
</ul>
|
164 |
+
</div>
|
165 |
+
|
166 |
+
<!-- Fontis Recaptcha code -->
|
167 |
+
<?php if (Mage::getStoreConfig("fontis_recaptcha/recaptcha/customer")): ?>
|
168 |
+
<?php echo $this->getChildHtml('recaptcha_box') ?>
|
169 |
+
<?php endif; ?>
|
170 |
+
<!-- ********************* -->
|
171 |
+
|
172 |
+
<div class="buttons-set">
|
173 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
174 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>" class="back-link"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
175 |
+
<button type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('Submit') ?></span></span></button>
|
176 |
+
</div>
|
177 |
+
</form>
|
178 |
+
<script type="text/javascript">
|
179 |
+
//<![CDATA[
|
180 |
+
var dataForm = new VarienForm('form-validate', true);
|
181 |
+
<?php if($this->getShowAddressFields()): ?>
|
182 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
|
183 |
+
<?php endif; ?>
|
184 |
+
//]]>
|
185 |
+
</script>
|
186 |
+
</div>
|
app/design/frontend/default/default/template/fontis/recaptcha/send.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
@@ -26,7 +26,6 @@
|
|
26 |
* @see Mage_Sendfriend_Block_Index
|
27 |
*/
|
28 |
?>
|
29 |
-
|
30 |
<script type="text/javascript">
|
31 |
//<![CDATA[
|
32 |
i=0;
|
@@ -45,10 +44,10 @@
|
|
45 |
function add_recipient(){
|
46 |
ul = $('recipients_options');
|
47 |
var li_mail = Element.extend(document.createElement("LI"));
|
48 |
-
li_mail.addClassName('
|
49 |
-
li_mail.innerHTML = '<
|
50 |
-
li_mail.innerHTML += '<div class="
|
51 |
-
li_mail.innerHTML += '<div class="
|
52 |
i++;
|
53 |
recipCount++;
|
54 |
if(recipCount>=maxRecip && maxRecip != 0) {
|
@@ -61,64 +60,58 @@
|
|
61 |
//]]>
|
62 |
</script>
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
<
|
67 |
-
|
68 |
-
|
69 |
-
<
|
70 |
-
|
71 |
-
|
72 |
-
<
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
<div class="right">
|
81 |
-
<label for="sender_email"><?php echo $this->__('Email:') ?> <span class="required">*</span></label><br/>
|
82 |
-
<div style="width:250px"><input name="sender[email]" value="<?php echo $this->htmlEscape($this->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" id="sender_email" type="text" class="input-text required-entry validate-email" style="width:250px;" /></div>
|
83 |
-
</div>
|
84 |
-
</li>
|
85 |
-
<li>
|
86 |
-
<label for="sender_message"><?php echo $this->__('Message:') ?> <span class="required">*</span></label><br/>
|
87 |
-
<textarea name="sender[message]" class="input-text required-entry" id="sender_message" cols="3" rows="3" style="width:100%;height:100px"><?php echo $this->htmlEscape($this->getFormData()->getData('sender/message'))?></textarea>
|
88 |
-
</li>
|
89 |
-
</ul>
|
90 |
-
</div>
|
91 |
-
<div>
|
92 |
-
<div>
|
93 |
-
<br />
|
94 |
-
<h4><?php echo $this->__('Recipient:') ?></h4>
|
95 |
-
<ul class="form-list" id="recipients_options">
|
96 |
-
<li>
|
97 |
-
<div class="left">
|
98 |
-
<label for="recipients_name"><?php echo $this->__('Name:') ?> <span class="required">*</span></label><br/>
|
99 |
-
<div style="width:250px"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name" style="width:250px;" /></div><br /><br />
|
100 |
-
</div>
|
101 |
-
<div class="right">
|
102 |
-
<label for="recipients_email"><?php echo $this->__('Email Address:') ?> <span class="required">*</span></label><br/>
|
103 |
-
<div style="width:250px"><input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email" type="text" class="input-text required-entry validate-email" style="width:250px;" /></div>
|
104 |
-
</div>
|
105 |
-
</li>
|
106 |
-
</ul>
|
107 |
-
<div id="max_recipient_message" style="display:none">
|
108 |
-
<?php if ($this->getMaxRecipients()): ?>
|
109 |
-
<?php echo $this->__('Maximum %d email addresses allowed.', $this->getMaxRecipients()) ?>
|
110 |
-
<?php endif; ?>
|
111 |
</div>
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
</div>
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
120 |
</div>
|
121 |
-
|
122 |
<?php // recaptcha
|
123 |
if( !(Mage::getStoreConfig("fontis_recaptcha/recaptcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
124 |
{
|
@@ -126,18 +119,30 @@
|
|
126 |
echo $this->getChildHtml('recaptcha_box');
|
127 |
}
|
128 |
?>
|
129 |
-
|
130 |
-
<div class="
|
131 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
</div>
|
133 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
</div>
|
135 |
-
</form>
|
136 |
-
<script type="text/javascript">
|
137 |
-
var productSendtofriendForm = new VarienForm('product_sendtofriend_form');
|
138 |
-
productSendtofriendForm.submit = function() {
|
139 |
-
if(this.validator.validate()) {
|
140 |
-
this.form.submit();
|
141 |
-
}
|
142 |
-
}.bind(productSendtofriendForm);
|
143 |
-
</script>
|
16 |
* @package Fontis_Recaptcha
|
17 |
* @author Denis Margetic
|
18 |
* @author Chris Norton
|
19 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
26 |
* @see Mage_Sendfriend_Block_Index
|
27 |
*/
|
28 |
?>
|
|
|
29 |
<script type="text/javascript">
|
30 |
//<![CDATA[
|
31 |
i=0;
|
44 |
function add_recipient(){
|
45 |
ul = $('recipients_options');
|
46 |
var li_mail = Element.extend(document.createElement("LI"));
|
47 |
+
li_mail.addClassName('fields additional-row');
|
48 |
+
li_mail.innerHTML = '<p><a href="delete_email" title="<?php echo $this->__('Remove Email') ?>" onclick="remove_recipient('+i+'); return false" class="btn-remove"><?php echo $this->__('Remove Email') ?>"<\/a><\/p>'
|
49 |
+
li_mail.innerHTML += '<div class="field"><label for="recipients_name'+i+'" class="required"><em>*<\/em><?php echo $this->__('Name:') ?><\/label><div class="input-box"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+i+'" /><\/div>';
|
50 |
+
li_mail.innerHTML += '<div class="field"><label for="recipients_email'+i+'" class="required"><em>*<\/em><?php echo $this->__('Email Address:') ?><\/label><div class="input-box"><input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email'+i+'" type="text" class="input-text required-entry validate-email" /><\/div><\/div>';
|
51 |
i++;
|
52 |
recipCount++;
|
53 |
if(recipCount>=maxRecip && maxRecip != 0) {
|
60 |
//]]>
|
61 |
</script>
|
62 |
|
63 |
+
<div class="send-friend">
|
64 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
65 |
+
<div class="page-title">
|
66 |
+
<h1><?php echo $this->__('Email to a Friend') ?></h1>
|
67 |
+
</div>
|
68 |
+
<form action="<?php echo $this->getSendUrl() ?>" method="post" id="product_sendtofriend_form">
|
69 |
+
<div class="fieldset">
|
70 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
71 |
+
<h2 class="legend"><?php echo $this->__('Sender:') ?></h2>
|
72 |
+
<ul class="form-list" id="sender_options">
|
73 |
+
<li class="fields">
|
74 |
+
<div class="field">
|
75 |
+
<label for="sender_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
|
76 |
+
<div class="input-box">
|
77 |
+
<input name="sender[name]" value="<?php echo $this->htmlEscape($this->getUserName()) ?>" title="<?php echo $this->__('Name') ?>" id="sender_name" type="text" class="input-text required-entry" />
|
78 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
</div>
|
80 |
+
<div class="field">
|
81 |
+
<label for="sender_email" class="required"><em>*</em><?php echo $this->__('Email:') ?></label>
|
82 |
+
<div class="input-box">
|
83 |
+
<input name="sender[email]" value="<?php echo $this->htmlEscape($this->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" id="sender_email" type="text" class="input-text required-entry validate-email" />
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</li>
|
87 |
+
<li class="wide">
|
88 |
+
<label for="sender_message" class="required"><em>*</em><?php echo $this->__('Message:') ?></label>
|
89 |
+
<div class="input-box">
|
90 |
+
<textarea name="sender[message]" class="input-text required-entry" id="sender_message" cols="3" rows="3"><?php echo $this->htmlEscape($this->getMessage())?></textarea>
|
91 |
+
</div>
|
92 |
+
</li>
|
93 |
+
</ul>
|
94 |
+
</div>
|
95 |
+
<div class="fieldset">
|
96 |
+
<h2 class="legend"><?php echo $this->__('Recipient:') ?></h2>
|
97 |
+
<ul class="form-list" id="recipients_options">
|
98 |
+
<li class="fields">
|
99 |
+
<div class="field">
|
100 |
+
<label for="recipients_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
|
101 |
+
<div class="input-box">
|
102 |
+
<input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name" />
|
103 |
</div>
|
104 |
+
</div>
|
105 |
+
<div class="field">
|
106 |
+
<label for="recipients_email" class="required"><em>*</em><?php echo $this->__('Email Address:') ?></label>
|
107 |
+
<div class="input-box">
|
108 |
+
<input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email" type="text" class="input-text required-entry validate-email" />
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</li>
|
112 |
+
</ul>
|
113 |
</div>
|
114 |
+
|
115 |
<?php // recaptcha
|
116 |
if( !(Mage::getStoreConfig("fontis_recaptcha/recaptcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
117 |
{
|
119 |
echo $this->getChildHtml('recaptcha_box');
|
120 |
}
|
121 |
?>
|
122 |
+
|
123 |
+
<div class="buttons-set">
|
124 |
+
<p class="back-link"><a href="#" onclick="history.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
125 |
+
<button type="submit" class="button<?php if (!$this->canSend()):?> disabled<?php endif ?>"<?php if (!$this->canSend()):?> disabled="disabled"<?php endif ?>><span><span><?php echo $this->__('Send email') ?></span></span></button>
|
126 |
+
<div id="max_recipient_message" style="display:none;">
|
127 |
+
<?php if ($this->getMaxRecipients()): ?>
|
128 |
+
<p class="limit"><?php echo $this->__('Maximum %d email addresses allowed.', $this->getMaxRecipients()) ?></p>
|
129 |
+
<?php endif; ?>
|
130 |
+
</div>
|
131 |
+
<?php if (1 < $this->getMaxRecipients()): ?>
|
132 |
+
<p id="add_recipient_button">
|
133 |
+
<button type="button" onclick="add_recipient();" class="button"><span><span><?php echo $this->__('Add Recipient') ?></span></span></button>
|
134 |
+
</p>
|
135 |
+
<?php endif; ?>
|
136 |
</div>
|
137 |
+
</form>
|
138 |
+
<script type="text/javascript">
|
139 |
+
//<![CDATA[
|
140 |
+
var productSendtofriendForm = new VarienForm('product_sendtofriend_form');
|
141 |
+
productSendtofriendForm.submit = function() {
|
142 |
+
if(this.validator.validate()) {
|
143 |
+
this.form.submit();
|
144 |
+
}
|
145 |
+
}.bind(productSendtofriendForm);
|
146 |
+
//]]>
|
147 |
+
</script>
|
148 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Fontis_Recaptcha.xml
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
17 |
* @package Fontis_Recaptcha
|
18 |
* @author Denis Margetic
|
19 |
* @author Chris Norton
|
20 |
+
* @copyright Copyright (c) 2010 Fontis Pty. Ltd. (http://www.fontis.com.au)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fontis_Recaptcha</name>
|
4 |
-
<version>2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Denis Margetic</name><user>auto-converted</user><email>denis@fontis.com.au</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Fontis"><dir name="Recaptcha"><dir name="Block"><dir name="Review"><file name="Form.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fontis_Recaptcha</name>
|
4 |
+
<version>2.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>This extension easily protects the "Send to Friend", "Contact Us", "Product Review" and customer registration forms from unwanted spambots by adding in reCAPTCHA to these forms.</summary>
|
10 |
+
<description>This extension easily protects the "Send to Friend", "Contact Us", "Product Review" and customer registration forms from unwanted spambots by adding in reCAPTCHA to these forms.</description>
|
11 |
+
<notes>This extension easily protects the "Send to Friend", "Contact Us", "Product Review" and customer registration forms from unwanted spambots by adding in reCAPTCHA to these forms.</notes>
|
12 |
<authors><author><name>Denis Margetic</name><user>auto-converted</user><email>denis@fontis.com.au</email></author></authors>
|
13 |
+
<date>2010-04-07</date>
|
14 |
+
<time>13:38:10</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Fontis"><dir name="Recaptcha"><dir name="Block"><dir name="Review"><file name="Form.php" hash="1b0bf45bf60cfb31b0c255ad662e5723"/></dir></dir><dir name="controllers"><file name="AccountController.php" hash="10caadb1ee7c446cfdc2f9ffcf11be45"/><file name="ContactsController.php" hash="f5f8fd7cecde613e372a2c353afa497c"/><file name="ProductController.php" hash="883e166561efbb49df139a36cefbf11d"/><file name="ReviewController.php" hash="fcf97898eb64d2749c7f133d211ec888"/></dir><dir name="etc"><file name="config.xml" hash="328eb29e2edeb0f6e5d66419a3346a1a"/><file name="system.xml" hash="7b05e2ef0734807f74c9899e49630793"/></dir><dir name="Helper"><file name="Data.php" hash="503f82e08ae4b2c45b78039977d23ab8"/></dir><dir name="Model"><dir name="Source"><file name="Recaptchalanguage.php" hash="5e9141ce46105f1a1ddd393569fb009b"/><file name="Recaptchatheme.php" hash="798d6d2e38f54da04cdf9d9e26779f33"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="fontis"><file name="help.png" hash="c3812c74bc524179f4ccf5d2db7b3cbf"/><file name="refresh.png" hash="6b95778460f660aa7c08f47d244780a7"/><file name="sound.png" hash="8158cd1e7493e88be977a0be37d73aaf"/><file name="text.png" hash="dfcf6dcfd81693487e5642fc8e735dd6"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fontis_recaptcha.xml" hash="55774da165fb919d7b9e215d057db887"/></dir><dir name="template"><dir name="fontis"><dir name="recaptcha"><file name="contacts.phtml" hash="c55cc4a5dd84e69b340a31efcfb9ad06"/><file name="form.phtml" hash="c5ba4714526dc2ebfb0177dae81c4d02"/><file name="recaptcha.phtml" hash="55b8da74e86db8928c77ebe0f0b725d4"/><file name="register.phtml" hash="f1d3db5a89602dd77ec3bb090ccdda2f"/><file name="send.phtml" hash="103d50a8122ce247422bd53085f89636"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fontis_Recaptcha.xml" hash="5d85569faf8e3fe65be0b4ed0d9e3bd3"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|