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 support for newsletter subscribe in CMS pages (#53)
+1
- Loading branch information
1 parent
3114f85
commit 2cb3b63
Showing
2 changed files
with
62 additions
and
35 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
19 changes: 19 additions & 0 deletions
19
app/code/community/ProxiBlue/ReCaptcha/Block/Subscribe.php
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,19 @@ | ||
<?php | ||
|
||
/** | ||
* The reCaptcha Block Used to embed into CMS pages | ||
* | ||
* @category ProxiBlue | ||
* @package ProxiBlue_reCaptcha | ||
* @author Lucas van Staden ([email protected]) | ||
*/ | ||
class ProxiBlue_ReCaptcha_Block_Subscribe extends Mage_Newsletter_Block_Subscribe | ||
{ | ||
protected function _prepareLayout() | ||
{ | ||
$captchaBlock = $this->getLayout()->createBlock('captcha/captcha', 'recaptcha') | ||
->setFormId('newsletter_subscribe'); | ||
$this->setChild('recaptcha', $captchaBlock); | ||
return $this; | ||
} | ||
} |