{% if app.user is not defined or app.user is null %}
<style>
.col-centered {
float: none;
margin: 0 auto;
}
@media (max-width: 991px) {
.login-form-responsive {
max-width: 100% !important;
margin: 0 auto;
}
}
#modal-signup {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
pointer-events: auto;
background-color: #fff;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, .2);
border-radius: .3rem;
outline: 0;
padding: 0;
}
.btn-success .btn-stroke:hover i {
color: #41b3a3 !important;
}
#modal-signup .modal-header {
-webkit-box-shadow: inset 0px -25px 10px -25px rgba(0, 0, 0, 0.5);
-moz-box-shadow: inset 0px -25px 10px -25px rgba(0, 0, 0, 0.5);
box-shadow: inset 0px -25px 10px -25px rgba(0, 0, 0, 0.5);
padding: 0 10px;
line-height: 29px;
border-color: #efefef;
background-color: #f9f9f9;
background-image: -moz-linear-gradient(top, #fdfdfd, #f4f4f4);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdfdfd), to(#f4f4f4));
background-image: -webkit-linear-gradient(top, #fdfdfd, #f4f4f4);
background-image: -o-linear-gradient(top, #fdfdfd, #f4f4f4);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffdfdfd', endColorstr='#fff4f4f4', GradientType=0);
-moz-border-radius: 5px 5px 0 0;
}
#modal-signup .form-horizontal {
box-shadow: none;
}
#modal-signup .modal-body {
border-left: 1px solid #efefef;
border-right: 1px solid #efefef;
margin-top: -1px;
}
#modal-signup .modal-body, .modal-body {
border: 1px solid #efefef;
}
#modal-signup .modal-body .container-fluid {
padding-bottom: 0;
}
#modal-signup .modal-body {
padding: 0 6px 0 6px !important;
}
#modal-signup .mfp-close {
font-size: 20px;
width: 16px;
height: 16px;
line-height: 16px;
color: #ccc;
}
#modal-signup .modal-body .modal-register-form span.start-sign-up {
font-weight: bold;
display: block;
font-size: 30px;
line-height: 1.1;
margin: 0;
}
#modal-signup .c-header h3 {
margin-top: 0;
}
#modal-signup .c-header {
margin-bottom: 20px;
margin-top: 0;
padding-left: 6px;
padding-right: 6px;
text-align: center;
}
#modal-signup .modal-body .modal-register-form span.start-meet {
font-size: 14px;
font-weight: bolder;
}
.white-popup-block {
background: #ccc;
animation: open 1s;
}
.mfp-removing{
animation: close 1s;
}
@keyframes open {
0% {opacity: 0;}
100% {opacity: 1;}
}
@keyframes close {
0% {opacity: 1;}
100% {opacity: 0;}
}
</style>
<script type="text/javascript">
{% if registration_modal_seconds_await is defined and registration_modal_seconds_await in not null %}
const registrationModalAwait = '{{ registration_modal_seconds_await }}';
{% else %}
const registrationModalAwait = 10;
{% endif %}
function openSignUpModal() {
$.magnificPopup.open({
items: {
src: '#modal-signup',
type: 'inline',
preloader: false,
focus: '#registerGender',
}
});
}
$(document).ready(function () {
$('.signup-modal-open').magnificPopup({
type: 'inline',
preloader: false,
focus: '#registerGender',
});
var timeoutSetting = 10 * 1000;
if (typeof registrationModalAwait !== 'undefined' && registrationModalAwait > 0) {
timeoutSetting = registrationModalAwait * 1000;
}
setTimeout(function () {
$.magnificPopup.open({
items: {
src: '#modal-signup',
},
type: 'inline'
});
}, timeoutSetting);
$('#modal-signup button[type="submit"]').on('click tap', function (event) {
event.preventDefault();
event.stopPropagation();
event.stopImmediatePropagation();
var buttonOldContent = $('#modal-signup .btn-needs-loading').html();
$('#modal-signup .alert-panel').hide()
$('#modal-signup .alert-panel .alert-danger').empty()
$('#modal-signup .btn-needs-loading').attr('disabled', true);
$('#modal-signup .btn-needs-loading').html('<i class="fad fa-spinner fa-spin fa-spinner" style="width: 100%; text-align: center; color:#fff !important; display: block !important;"></i>');
$.ajax({
type: 'POST',
url: '{{ url('social_user_homepage') }}',
data: $(this).closest('form').serialize(),
dataType: 'json',
}).success(function (response) {
if (response.error_flag == true) {
$('#modal-signup .btn-needs-loading').attr('disabled', false);
$('#modal-signup .fa-spinner').addClass('hide');
$('#modal-signup .fa-sign-in').removeClass('hide');
for (var topIndex in response.errors) {
var currentObject = response.errors[topIndex]
for (var innerIndex in currentObject) {
$('#modal-signup .alert-panel .alert-danger').append(
'<li>' + currentObject[innerIndex] + '</li>',
)
}
}
$('#modal-signup .alert-panel').show()
$('#modal-signup .btn-needs-loading').html(buttonOldContent);
$('#modal-signup .btn-needs-loading').attr('disabled', false);
return;
}
if (response = 'undefined' || response.redirectUrl == 'undefined') {
location.href = "{{ url('social_frontend_account') }}";
} else {
location.href = response.redirectUrl
}
}).error(function () {
$('#modal-signup .btn-needs-loading .fa-spinner').addClass('hide');
$('#modal-signup .btn-needs-loading .fa-sign-in').removeClass('hide');
$('#modal-signup .btn-needs-loading').attr('disabled', false);
})
})
});
</script>
<div id="modal-signup"
class="white-popup-block mfp-hide col-lg-4 col-md-6 col-sm-10 cols-xs-12 col-centered actual-hidden">
<div class="modal-header">
<h4 class="modal-title">
<div class="logo-details-pack"><h4>{{ 'Yes, registration is free!'|trans }}</h4>
<span>{{ 'Register fast and easy.'|trans }}</span></div>
</h4>
<button title="Close (Esc)" type="button" class="mfp-close">×</button>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 padding-none">
<form class="form-horizontal login-form-responsive modal-register-form" role="form"
id="modal-register"
novalidate="novalidate" action="{{ url('social_user_homepage') }}"
method="POST"
autocomplete="off">
<div class="c-header">
<h3><span class="start-sign-up">{% trans %}Sign up{% endtrans %}</span>
<span class="start-meet">{% trans %}Flirting has never been easier! Create a free account now!{% endtrans %}</span>
</h3>
</div>
<div role="alert" class="alert-panel" style="display: none">
<ul class="alert alert-danger"></ul>
</div>
{% include 'SocialUserBundle:Registration:registration_form.html.twig' with {form: form} %}
</form>
</div>
{#<div class="col-details-registration">
<div class="row">
<div class="col-sm-12">
<div class="row" style="padding: 0 6px">
<div class="col-md-12" style="margin-top: 5px;">
{% render(controller('SocialFrontendBundle:Account:getPopularUsersForModalNonLoggedIn', {request: app.request})) %}
</div>
<div class="col-md-12">
<ul class="list-unstyle details-intro details-intro-section-hidden overflow-hidden hidden">
<li>{% trans %}Meet new people!{% endtrans %}</li>
<li>{% trans %}Start flirting with people you like!{% endtrans %}</li>
<li>{% trans %}Start experiencing new things!{% endtrans %}</li>
<li>{% trans %}Enjoy life!{% endtrans %}</li>
</ul>
</div>
<div class="col-md-12">
<h3 class="headline-text-details-near text-center">
{% trans %}These people from your area are online right now!{% endtrans %}
</h3>
</div>
</div>
</div>
</div>
</div>#}
</div>
</div>
</div>
</div>
{% endif %}