Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option badge to change the badge-position #185

Merged
merged 1 commit into from
Nov 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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