Skip to content

Commit

Permalink
Merge pull request #185 from justimmo/master
Browse files Browse the repository at this point in the history
Add option badge to change the badge-position
  • Loading branch information
excelwebzone committed Nov 9, 2017
2 parents 69b24b3 + d7fd64c commit 5987296
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Form/Type/EWZRecaptchaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function configureOptions(OptionsResolver $resolver)
'bind' => null,
'defer' => false,
'async' => false,
'badge' => null,
),
),
));
Expand Down
1 change: 1 addition & 0 deletions src/Resources/views/Form/ewz_recaptcha_widget.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<?php if (isset($attr['options']['callback'])): ?>data-callback="<?php echo $attr['options']['callback'] ?>"<?php endif ?>
<?php if (isset($attr['options']['expiredCallback'])): ?>data-expired-callback="<?php echo $attr['options']['expiredCallback'] ?>"<?php endif ?>
<?php if (isset($attr['options']['bind'])): ?>data-bind="<?php echo $attr['options']['bind'] ?>"<?php endif ?>
<?php if (isset($attr['options']['badge'])): ?>data-badge="<?php echo $attr['options']['badge'] ?>"<?php endif ?>
></div>
<noscript>
<div style="width: 302px; height: 352px;">
Expand Down
1 change: 1 addition & 0 deletions src/Resources/views/Form/ewz_recaptcha_widget.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
{%- if attr.options.callback is defined %} data-callback="{{ attr.options.callback }}"{% endif -%}
{%- if attr.options.expiredCallback is defined %} data-expired-callback="{{ attr.options.expiredCallback }}"{% endif -%}
{%- if attr.options.bind is defined %} data-bind="{{ attr.options.bind }}"{% endif -%}
{%- if attr.options.badge is defined %} data-badge="{{ attr.options.badge }}"{% endif -%}
></div>
<noscript>
<div style="width: 302px; height: 352px;">
Expand Down
1 change: 1 addition & 0 deletions tests/Form/Type/EWZRecaptchaTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function configureOptions()
'bind' => null,
'defer' => false,
'async' => false,
'badge' => null,
),
),
);
Expand Down

0 comments on commit 5987296

Please sign in to comment.