diff --git a/lib/widget/sfWidgetFormReCaptcha.class.php b/lib/widget/sfWidgetFormReCaptcha.class.php
index c57bbc7..b336aea 100644
--- a/lib/widget/sfWidgetFormReCaptcha.class.php
+++ b/lib/widget/sfWidgetFormReCaptcha.class.php
@@ -44,6 +44,8 @@ class sfWidgetFormReCaptcha extends sfWidgetForm
* * use_ssl: Whether to use SSL or not (false by default)
* * server_url: The URL for the HTTP API
* * server_url_ssl: The URL for the HTTPS API (when use_ssl is true)
+ * * theme: The ReCaptcha theme
+ * * culture: The ReCaptcha language
*
* @see sfWidgetForm
*/
@@ -52,8 +54,10 @@ public function configure($options = array(), $messages = array())
$this->addRequiredOption('public_key');
$this->addOption('use_ssl', false);
- $this->addOption('server_url', 'http://api.recaptcha.net');
- $this->addOption('server_url_ssl', 'https://api-secure.recaptcha.net');
+ $this->addOption('server_url', 'http://www.google.com/recaptcha/api');
+ $this->addOption('server_url_ssl', 'https://www.google.com/recaptcha/api');
+ $this->addOption('theme', 'clean');
+ $this->addOption('culture', 'en');
}
/**
@@ -63,15 +67,23 @@ public function render($name, $value = null, $attributes = array(), $errors = ar
{
$server = $this->getServerUrl();
$key = $this->getOption('public_key');
+ $theme = $this->getOption('theme');
+ $culture = $this->getOption('culture');
return sprintf('
+
- ', $server, $key, $server, $key);
+ ', $theme, $culture, $server, $key, $server, $key);
}
protected function getServerUrl()
@@ -79,3 +91,4 @@ protected function getServerUrl()
return $this->getOption('use_ssl') ? $this->getOption('server_url_ssl') : $this->getOption('server_url');
}
}
+