Answer the question
In order to leave comments, you need to log in
Is the conversion done correctly in twig?
Hello. I have a view file like this
login.phtml
<?php
$socialSignIn = true;
foreach ($this->options->getEnabledProviders() as $provider) {
if ($socialSignIn) {
echo '<h1>Social Sign In</h1>';
$socialSignIn = false;
}
echo '<dd>' . $this->socialSignInButton($provider, $this->redirect) . '</dd>';
}
if ($this->options->getSocialLoginOnly() == false) {
echo $this->zfcUserLogin;
}
{% block forkScnSocialAuthUserLogin %}
{% set socialSignIn = 'true' %}
{% for provider in options.getEnabledProviders() %}
{% if socialSignIn %}
<h1>Social Sign In</h1>
{% set socialSignIn = 'false' %}
{% endif %}
<dd>{{ socialSignInButton( provider|raw, redirect ) }}</dd>
{% endfor %}
{% if options.getSocialLoginOnly() == 'false' %}
{{ zfcUserLogin }}
{% endif %}
{% endblock forkScnSocialAuthUserLogin %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question