This repository has been archived by the owner on Jun 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add in ability to embed with CMS Page Contacts us block
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/** | ||
* The reCaptcha Block Used to embed into CMS pages | ||
* | ||
* @category ProxiBlue | ||
* @package ProxiBlue_reCaptcha | ||
* @author Lucas van Staden (sales@proxiblue.com.au) | ||
*/ | ||
class ProxiBlue_ReCaptcha_Block_Contact extends Mage_Core_Block_Template { | ||
|
||
protected $_template = 'contacts/form.phtml'; | ||
|
||
protected function _prepareLayout() | ||
{ | ||
$captchaBlock = $this->getLayout() | ||
->createBlock('captcha/captcha','recaptcha')->setFormId('user_contact'); | ||
$this->setChild('recaptcha',$captchaBlock); | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters