Skip to content

Commit

Permalink
fix openmage compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony authored and Aleksey Ermoshin committed May 27, 2024
1 parent e53bc64 commit f58dec4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/code/community/ProxiBlue/ReCaptcha/Model/Config/Type.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

/**
* Captcha image type models
*
* @category ProxiBlue
* @package ProxiBlue_reCaptcha
* @author Lucas van Staden (sales@proxiblue.com.au)
*/
class ProxiBlue_ReCaptcha_Model_Config_Type
{

private $type = array(
array('value' => 'zend', 'label' => 'Zend Default'),
array('value' => 'recaptcha', 'label' => 'Google ReCaptcha')
);


public function toOptionArray()
{
return $this->type;
}
}
21 changes: 21 additions & 0 deletions app/code/community/ProxiBlue/ReCaptcha/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</enable>
<type translate="label">
<label>Type</label>
<frontend_type>select</frontend_type>
<source_model>proxiblue_recaptcha/config_type</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends><enable>1</enable></depends>
</type>
<theme translate="label">
<label>Recaptcha Theme</label>
<frontend_type>select</frontend_type>
Expand Down Expand Up @@ -118,6 +128,16 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</enable>
<type translate="label">
<label>Type</label>
<frontend_type>select</frontend_type>
<source_model>proxiblue_recaptcha/config_type</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends><enable>1</enable></depends>
</type>
<theme translate="label">
<label>Recaptcha Theme</label>
<frontend_type>select</frontend_type>
Expand Down Expand Up @@ -201,6 +221,7 @@
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends><enable>1</enable><type>recaptcha</type></depends>
</debug>
<adapter translate="label">
<label>Adapter</label>
Expand Down

0 comments on commit f58dec4

Please sign in to comment.