<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="ie lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="ie lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="ie lt-ie9"> <![endif]-->
<!--[if gt IE 8]>
<html class="ie"> <![endif]-->
<!--[if !IE]><!-->
<html>
<!-- <![endif]-->
<head>
<title>{{ project_name }}
- {% include 'SocialFrontendBundle:title:' ~ theme_manager.getActiveTheme()['name'] ~ '.html.twig' %}</title>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<meta name="robots" content="noarchive">
<meta name="googlebot" content="noarchive">
<meta name="googlebot" content="nosnippet">
<meta name="googlebot" content="noodp">
<meta name="slurp" content="noarchive">
<meta name="slurp" content="noodp">
<meta name="slurp" content="noydir">
<meta name="msnbot" content="noindex, nofollow">
<meta name="msnbot" content="noarchive">
<meta name="msnbot" content="noodp">
<link rel="icon" type="image/x-icon" href="{{ asset(theme_manager.getActiveFavicon()) }}"/>
<link rel="apple-touch-icon" href="{{ asset('/bundles/socialfrontend/images/touch-icon-iphone.png') }}">
<link rel="apple-touch-icon" sizes="76x76" href="{{ asset('/bundles/socialfrontend/images/touch-icon-ipad.png') }}">
<link rel="apple-touch-icon" sizes="120x120"
href="{{ asset('/bundles/socialfrontend/images/touch-icon-iphone-retina.png') }}">
<link rel="apple-touch-icon" sizes="152x152"
href="{{ asset('/bundles/socialfrontend/images/touch-icon-ipad-retina.png') }}">
<link rel="apple-touch-icon" sizes="152x152"
href="{{ asset('/bundles/socialfrontend/images/touch-icon-ipad-retina.png') }}">
<link rel="apple-touch-icon-precomposed"
href="{{ asset('/bundles/socialfrontend/images/apple-touch-icon-precomposed.png') }}">
{% block stylesheets %}
{% stylesheets filter="?yui_css, cssrewrite"
"bundles/socialfrontend/css/theme/vendor/bootstrap.css"
"bundles/socialfrontend/css/theme/vendor/font-awesome-5/css/all.css"
"bundles/socialfrontend/css/theme/vendor/jquery-ui.css"
"bundles/socialfrontend/css/theme/vendor/fancy-select.css"
"bundles/socialfrontend/css/theme/vendor/bootstrap-slider.css"
"bundles/socialfrontend/js/vendor/PhotoSwipe/photoswipe.css"
"bundles/socialfrontend/js/vendor/PhotoSwipe/default-skin/default-skin.css" %}
<link href="{{ asset_url }}" rel="stylesheet" media="screen"/>
{% endstylesheets %}
{% endblock %}
{% for file in theme_manager.getActiveThemeCssFiles %}
<link href="{{ asset(file) }}" rel="stylesheet" media="screen"/>
{% endfor %}
{% block early_javascripts %}
{% include 'SocialFrontendBundle:Translation:index.html.twig' %}
<script type="text/javascript">
var chanelAuthenticateUrl = '{{ path("social_channel_authentication") }}';
var siteName = '{{ project_name }}';
var projectName = '{{ project_name }}';
var userLanguage = null;
var browserLanguage = null;
{% if app.user is null %}
let browserLang = navigator.language || navigator.userLanguage;
userLanguage = '{{ app.request.locale }}';
browserLanguage = browserLang.split('-').shift();
var availableLanguages = JSON.parse('{{ getLocales() | json_encode |raw }}');
var changeLanguageUrl = "{{ path('social_frontend_change_locale', {'locale': ':locale' }) }}";
{% endif %}
</script>
{% javascripts filter="?yui_js"
"bundles/socialfrontend/js/theme/vendor/jquery.js" %}
<script type="text/javascript" src="{{ asset_url }}"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
{% endjavascripts %}
{% endblock %}
<script type="text/javascript">
{% if app.user and (not app.user.isFake) %}
{% set smartLookKey = app.request.server.get('SMARTLOOK_KEY') %}
{% set clarityCode = app.request.server.get('CLARITY_CODE') %}
{% if smartLookKey and smartLookKey != "" %}
window.smartlook||(function(d) {
var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];
var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
c.charset='utf-8';c.src='https://web-sdk.smartlook.com/recorder.js';h.appendChild(c);
})(document);
$(document).ready(function () {
smartlook('init', '{{ smartLookKey }}', { region: 'eu' });
smartlook(
'record', { forms: true, numbers: true, emails: true, ips: true },
'identify', '{{ app.user.id }}', {
"name": '{{ app.user.username }}',
"email": '{{ app.user.email }}',
})
});
{% endif %}
{% if clarityCode and clarityCode != "" %}
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", '{{ clarityCode }}');
{% endif %}
{% endif %}
{% if theme_manager.getActiveThemeBackgroundImages()|length > 0 %}
var backgroundImages = JSON.parse('{{ theme_manager.getActiveThemeBackgroundImages()|json_encode|raw }}');
{% endif %}
</script>
{% if theme_manager.getActiveThemeBackgroundImage() %}
<style>
#banner-date {
background-image: url('{{ asset(theme_manager.getActiveThemeBackgroundImage()) }}') !important;
}
</style>
{% endif %}
</head>
{% block body %}{% endblock %}
{% include 'SocialFrontendBundle::image_gallery_utils.html.twig' %}
{% include 'SocialFrontendBundle::ga_code.html.twig' %}
{% include 'SocialFrontendBundle::hotjar_code.html.twig' %}
{% block javascripts %}
{% javascripts filter="?yui_js"
"bundles/socialfrontend/js/vendor/PhotoSwipe/photoswipe.min.js"
"bundles/socialfrontend/js/vendor/PhotoSwipe/photoswipe-ui-default.min.js" %}
<script src="//d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment-with-locales.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.43/moment-timezone-with-data.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@rapideditor/country-coder/dist/country-coder.iife.min.js"></script>
<script type="text/javascript">
{% set chatAudioActionCredit = constant('Social\\CreditsBundle\\Entity\\CreditActionsEntity::CREDIT_ACTION_CHAT_AUDIO_SEND') %}
{% set chatVideoActionCredit = constant('Social\\CreditsBundle\\Entity\\CreditActionsEntity::CREDIT_ACTION_CHAT_VIDEO_SEND') %}
var creditActionChatAudio = '{{ chatAudioActionCredit }}';
var creditActionChatVideo = '{{ chatVideoActionCredit }}';
var isCreditMode = {{ creditsPackagesActivated }};
var friendSuggestionsAndBoostedUserUrl = "{{ path('social_frontend_friendSuggestionsAndBoostedProfiles') }}"
var triggerBubbleNotificationUrl = "{{ path('social_bubble_notification_trigger') }}"
var onClickBubbleNotificationUrl = "{{ path('social_bubble_notification_click') }}"
var onCloseBubbleNotificationUrl = "{{ path('social_bubble_notification_close') }}"
var removeBubbleNotificationUrl = "{{ path('social_bubble_notification_remove_on_chat') }}"
var bootLiveActionUrl = "{{ path('social_admin_boot_live_action') }}"
var swipeProfileLikeUrl = "{{ path('social_frontend_like_dislike_swipe_profile') }}"
var checkUserPermissionForSendChatMediaUrl = "{{ path('social_frontend_check_permission_for_send_chat_media') }}"
var messageMarkAsRealReadUrl = "{{ path('social_frontend_message_mark_as_real_read') }}"
var allMessagesMarkAsRealReadUrl = "{{ path('social_frontend_all_messages_mark_as_real_read') }}"
var pauseMessageAudioAction = "{{ path('social_frontend_pause_message_audio') }}"
var allowedAudioRecordTime = "{{ getMediaUploadFileInChatSetting(chatAudioActionCredit)['allowedRecordTime'] }}"
var allowedVideoRecordTime = "{{ getMediaUploadFileInChatSetting(chatVideoActionCredit)['allowedRecordTime'] }}"
var notDisplayAudioButtonPackages = "{{ getPackagesForNotSendMediaButton(chatAudioActionCredit)|join(", ") }}"
var notDisplayVideoButtonPackages = "{{ getPackagesForNotSendMediaButton(chatVideoActionCredit)|join(", ") }}"
var playAudioMessageUrl = "{{ path('social_frontend_get_audio_message_url') }}"
var playVideoMessageUrl = "{{ path('social_frontend_get_video_message_url') }}"
var deleteMessageUrl = "{{ path('social_frontend_delete_message') }}"
var checkMessageUrl = "{{ path('social_frontend_check_message') }}"
var recordedAudioUrl = "";
var recordedVideoUrl = "";
var currentUser = {};
{% if app.user %}
Bugsnag.start({
apiKey: '{{ bugsnagApiKey }}',
appVersion: '{{ appVersion }}',
appType: 'fjs-{{ project_name }}',
user: currentUser,
onError: function (event) {
event.setUser('{{ app.user.id }}', '{{ app.user.email }}', '{{ app.user.username }}')
}
});
{% else %}
Bugsnag.start({
apiKey: '{{ bugsnagApiKey }}',
appVersion: '{{ appVersion }}',
appType: 'fjs-{{ project_name }}',
});
{% endif %}
</script>
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
{% endblock %}
</html>