src/ApplicationBundle/Modules/HoneybeeWeb/Resources/views/footer/central_footer.html.twig line 1

Open in your IDE?
  1. <style>
  2. /* ── Footer Nordic Theme ──────────────────────────────────────────────────── */
  3. :root {
  4.     --n-dark:  #1A1D2E;
  5.     --n-amber: #C07D2A;
  6. }
  7. footer .footer-container    { background: var(--n-dark) !important; }
  8. footer .footer-mask         { background-image: none !important; }
  9. footer .footer-content      { padding: 64px 40px; gap: 48px; }
  10. footer .footer-content .logo-content p,
  11. footer .footer-content .links ul li a,
  12. footer .footer-content .links .head-office span,
  13. footer .footer-content .links .regional-office span,
  14. footer .footer-content .links .phone span { color: rgba(255,255,255,.55) !important; }
  15. footer .footer-content .links h3,
  16. footer .footer-content .certification-content h3,
  17. footer .footer-content .links .head-office h3,
  18. footer .footer-content .links .regional-office h3 { color: rgba(255,255,255,.85) !important; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
  19. footer .footer-content .links ul li a:hover { color: var(--n-amber) !important; }
  20. footer .footer-content .links ul li a::after  { background: var(--n-amber) !important; }
  21. footer .footer-content .certification-content h5,
  22. footer .footer-content .certification-content .reviews h3 { color: rgba(255,255,255,.9) !important; }
  23. footer .footer-bottom { background: rgba(0,0,0,.3); border-top: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.35); font-size: 12px; padding: 16px 40px; }
  24. footer .footer-bottom span { color: rgba(255,255,255,.4) !important; }
  25. footer .footer-bottom hr   { border-color: rgba(255,255,255,.08) !important; }
  26. footer .footer-content .icon-list a img { filter: brightness(0) invert(.6); transition: filter .15s; }
  27. footer .footer-content .icon-list a:hover img { filter: brightness(0) invert(1); }
  28. footer .footer-content .mail img,
  29. footer .footer-content .map img,
  30. footer .footer-content .phone img { filter: brightness(0) invert(.55); }
  31. footer .logo-content .theme-img { filter: brightness(0) invert(.9); }
  32. footer hr[style] { border-color: rgba(255,255,255,.08) !important; }
  33. </style>
  34. <footer>
  35.     <div class="footer-container">
  36.         <div class=" footer-mask">
  37.             <div class="footer-wrapper">
  38.                 <div class="footer-content">
  39.                     {#                    <script language="JavaScript" src=https://dunsregistered.dnb.com type="text/javascript"></script>#}
  40.                     <div class="logo-content">
  41.                         {# <img class="logo" src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/honeybee.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt=""> #}
  42.                         <img class="theme-img" src="{{ absolute_url(asset('honeybee_web_assets/icons/honeybee.svg')) }}"
  43.                              alt="">
  44.                        <p class="trn" data-trn-key="_HONEYBEE_INTRO_DESC_">
  45.     HoneyBee connects project execution, site data, finance, billing, O&amp;M, and operational workflows for EPC, energy, and multi-site industrial companies.
  46. </p>
  47.                     </div>
  48.            <div class="links">
  49.     <h3 class="highlightertext trn" data-trn-key="_QUICK_LINK_">Quick Link</h3>
  50.     <ul>
  51.         <li><a href="{{ url('honeybee_product') }}" class="trn" data-trn-key="_PRODUCTS_">Product</a></li>
  52.         <li><a href="{{ url('honeybee_solutions') }}">Solutions</a></li>
  53.         <li><a href="{{ url('honeybee_pricing') }}" class="trn" data-trn-key="_PRICING_">Pricing</a></li>
  54.         <li><a href="{{ url('honeybee_partners') }}">Partners</a></li>
  55.         <li><a href="{{ url('honeybee_about_us') }}" class="trn" data-trn-key="_ABOUT_US_">About Us</a></li>
  56.     </ul>
  57. </div>
  58.                 <div class="links">
  59.                     <h3 class="highlightertext trn" data-trn-key="_EXPLORE_">Explore</h3>
  60.                     <ul>
  61.                         <li><a href="{{ url('honeybee_terms_and_conditions') }}" class="trn" data-trn-key="_TERM_OF_SERVICE_">Terms of Service</a></li>
  62.                         <li><a href="{{ url('privacy_policy') }}" class="trn" data-trn-key="_PRIVACY_POLICY_">Privacy Policy</a></li>
  63.                         <li><a href="{{ url('honeybee_dpa') }}">Data Processing Addendum</a></li>
  64.                         <li><a href="#">Subprocessors</a></li>
  65.                         <li><a href="#">Cookie Policy</a></li>
  66.                         <li><a href="#">Security</a></li>
  67.                     </ul>
  68.                 </div>
  69.                     <div class="links">
  70.                         <h3 class="highlightertext trn" data-trn-key="_CONTACT_US_">Contact Us</h3>
  71.                         <div class="mail">
  72.                             <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/envelope.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  73.                                  alt="">
  74.                             <span id="unique-email-id" style="color: rgba(255,255,255,.55) !important;">info@ourhoneybee.eu</span>
  75.                             <!-- Custom alert box -->
  76.                             <div id="copy-alert" class="copy-alert">Email copied to clipboard!</div>
  77.                         </div>
  78.                         <div class="icon-list">
  79.                             <a href="#"><img
  80.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/Facebook.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  81.                                         alt=""></a>
  82.                             <a href="#"><img
  83.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/instagram.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  84.                                         alt=""></a>
  85.                             <a href="#"><img
  86.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/linkedin.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  87.                                         alt=""></a>
  88.                             <a href="#"><img
  89.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/twitter.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  90.                                         alt=""></a>
  91.                             <a href="#"><img
  92.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/Frame (1).svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  93.                                         alt=""></a>
  94.                             <a href="#"><img
  95.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/youtube.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  96.                                         alt=""></a>
  97.                         </div>
  98.                         <div class="head-office">
  99.                             <h3 class='highlightertext'>Head Office</h3>
  100.                             <div class="map">
  101.                                 <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/map-pin.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  102.                                      alt=""> <span>2 Venture Drive, #19-21 <br>Vision Exchange, Singapore 608526</span>
  103.                             </div>
  104.                         </div>
  105.                         <div class="regional-office">
  106.                             <h3 class='highlightertext'>Europe Office</h3>
  107.                             <div class="map">
  108.                                 <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/map-pin.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  109.                                      alt=""> <span>Brühlweg 1, 88451 Dettingen<br>an der Iller, Germany</span>
  110.                             </div>
  111.                             <div class="phone"><img
  112.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/phone.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  113.                                         alt=""> <span>+49 176 34616155</span></div>
  114.                         </div>
  115.                     </div>
  116.                     <div class="certification-content">
  117.                         <div class="certification">
  118.                             <h3 class="highlightertext">Security &amp; Compliance</h3>
  119.                             <p style="color:rgba(255,255,255,.5);font-size:13px;line-height:1.7;margin-bottom:16px">EU data residency · GDPR-ready with Article 28 DPA available · DATEV-ready export · SOC 2 in progress</p>
  120.                             <div style="display:flex;flex-direction:column;gap:8px">
  121.                                 <div style="font-size:12px;color:rgba(255,255,255,.4);display:flex;align-items:center;gap:8px"><span style="color:#C07D2A">✓</span> EU cloud data residency</div>
  122.                                 <div style="font-size:12px;color:rgba(255,255,255,.4);display:flex;align-items:center;gap:8px"><span style="color:#C07D2A">✓</span> GDPR Article 28 DPA available</div>
  123.                                 <div style="font-size:12px;color:rgba(255,255,255,.4);display:flex;align-items:center;gap:8px"><span style="color:#C07D2A">✓</span> DATEV dual-perspective connector for tax consultants and client-side A&amp;F workflows</div>
  124.                                 <div style="font-size:12px;color:rgba(255,255,255,.4);display:flex;align-items:center;gap:8px"><span style="color:#C07D2A">✓</span> On-premise &amp; private cloud available</div>
  125.                             </div>
  126.                         </div>
  127.                         <hr style="border: 0.8px solid rgba(255,255,255,.08); margin: 20px 0">
  128.                         <div style="font-size:11px;color:rgba(255,255,255,.3);line-height:1.6">
  129.                             HoneyBee IoT (Pte.) Ltd. is registered in Singapore under UEN 202507612D.<br>
  130.                             European coordination and partner support from Germany.<br>
  131.                             Jointly developed through German–Bangladeshi engineering collaboration, with early field rollout in Bangladesh.<br>
  132.                             HoneyBee is not an EPC contractor or project developer.<br>
  133.                             Privacy enquiries: <a href="mailto:privacy@ourhoneybee.eu" style="color:rgba(255,255,255,.4);text-decoration:none">privacy@ourhoneybee.eu</a>
  134.                         </div>
  135.                     </div>
  136.                 </div>
  137.             </div>
  138.             <div class="footer-bottom">
  139.                 <span>Copyright ©{{ ''|date('Y')}} HoneyBee</span>
  140.                 <hr>
  141.                 <span>Powered by ©{{ ''|date('Y')}} HoneyBee</span>
  142.             </div>
  143.         </div>
  144.     </div>
  145. </footer>
  146. <script type="text/javascript"
  147.         src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js"></script>
  148. <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
  149. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/bootstrap.bundle.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  150. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/parallax.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  151. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/pb.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  152. <script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/moment.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  153. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/script.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  154. <script src="{{ absolute_url(path('dashboard')) }}jqueryui/jquery.form.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  155. <script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  156. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/honeybee_erp_generic.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  157. {% include '@Application/footer/activity_tracker_script.html.twig' %}
  158. <script src="{{ absolute_url(path('dashboard')) }}js/jquery.translate.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  159. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/central_language_pack.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  160. <script type="text/javascript"
  161.         src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js"></script>
  162. <style>
  163.     .btn {
  164.         border-radius: 15rem;
  165.     }
  166.     .stepIndicator {
  167.         cursor: pointer;
  168.     }
  169.     .stepIndicator:not(.active) {
  170.         /*display: none;*/
  171.     }
  172.     .creating-company-page .honeycomb-cell.stepIndicator.active .honeycomb-cell_img {
  173.         filter: grayscale(0%) !important;
  174.     }
  175.     .creating-company-page .honeycomb-cell.stepIndicator:not(.active) .tooltip .msg-content {
  176.         color: rgba(175, 175, 175, 1);
  177.     }
  178.     .step:not(.active) {
  179.         display: none;
  180.     }
  181.     .step .invalid {
  182.         color: darkred;
  183.     }
  184.     .withdraw p,
  185.     .sweet-alert button,
  186.     .paymentMethodSelectorBtn p {
  187.         border-radius: 42px;
  188.     }
  189. </style>
  190. </body>
  191. {#{% if constant('ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}#}
  192. {#    #}{#now check softone#}
  193. {#    #}{#{% if notification_enabled==1 %}#}
  194. {#    {% if session[UserConstants.USER_ID] is defined %}#}
  195. {#        {% set buddybee_socket_server=constant('ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_SERVER') %}#}
  196. {#        {% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}#}
  197. {#        {% if 'localhost:' in buddybee_socket_server %}#}
  198. {#            {% set buddybee_socket_server_full = url_wo_port ~':'~ buddybee_socket_server|split('localhost:')[1] %}#}
  199. {#        {% else %}#}
  200. {#            {% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}#}
  201. {#        {% endif %}#}
  202. {#        #}{#<script type="text/javascript" src="{{ constant('ApplicationBundle\\Constants\\GeneralConstant::NOTIFICATION_SERVER')=='localhost:5000'?url_wo_port~':5000':constant('ApplicationBundle\\Constants\\GeneralConstant::NOTIFICATION_SERVER') }}/socket.io/socket.io.js"></script>#}
  203. {#        #}{#<script type="text/javascript" src="{{ buddybee_socket_server_full }}/socket.io/socket.io.js"></script>#}
  204. {#        <script type="text/javascript">#}
  205. {#            var buddybeeKeepAliveCall = {};#}
  206. {#            var lastActivityTs = 0;#}
  207. {#            function refreshKeepAliveCall() {#}
  208. {#                buddybeeKeepAliveCall = setInterval(function () {#}
  209. {#                    var nowTs = moment().unix(),#}
  210. {#                            differenceFromStartTime = meetingStartTime.diff(now), // 86400000;#}
  211. {#                            differenceFromEndTime = meetingEndTime.diff(now); // 86400000;#}
  212. {#                    if (nowTs - lastActivityTs > 60) {#}
  213. {#                        clearInterval(buddybeeKeepAliveCall);#}
  214. {#                    }#}
  215. {#                    else {#}
  216. {#                        buddybee_socket.emit('update_my_socket', {#}
  217. {#                            userId: buddybee_socket_user_id,#}
  218. {#                            token: buddybee_socket_user_session_token,#}
  219. {#                        });#}
  220. {#                    }#}
  221. {#                    //seconds#}
  222. {#                }, 30000)#}
  223. {#            }#}
  224. {#            // //    console.log(io)#}
  225. {#            function initiateBuddybeeSocket() {#}
  226. {#                lastActivityTs = moment().unix();#}
  227. {#                $.getScript('{{ buddybee_socket_server_full }}/socket.io/socket.io.js', function () {#}
  228. {#                    #}{#$.getScript('{{ absolute_url(path('dashboard')) }}buddybee_assets/js/socket-io.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}', function () #}{#}#}
  229. {#                    if (io) {#}
  230. {#                        #}{#socket=io.connect( '{{ constant('ApplicationBundle\\Constants\\GeneralConstant::NOTIFICATION_SERVER') }}' );#}
  231. {#                        buddybee_socket = io.connect('{{ buddybee_socket_server_full }}');#}
  232. {#                        buddybee_socket.emit('update_my_socket', {#}
  233. {#                            userId: buddybee_socket_user_id,#}
  234. {#                            token: buddybee_socket_user_session_token,#}
  235. {#                            user_status: '_ON_',#}
  236. {#                            force_broadcast: 1,#}
  237. {#                        });#}
  238. {#//                        buddybee_socket.on('_SEND_TEXT_TO_MOBILE_', function (dataObj) {#}
  239. {#//                            //    console.log('_SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE_')#}
  240. {#//                            //    console.log(dataObj)#}
  241. {#//#}
  242. {#//#}
  243. {#//                        });#}
  244. {#                        addScript("{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic_buddybee_sockets.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}")#}
  245. {#                        {% set curr_route=app.request.attributes.get('_route') %}#}
  246. {#                        {% if curr_route =='consultancy_session' or  curr_route =='_nothing_new_'  %}#}
  247. {#                        {% else %}#}
  248. {#                        ifvisible.setIdleDuration(60);#}
  249. {#                        ifvisible.onEvery(30, function () {#}
  250. {#//                            //    console.log('not idle')#}
  251. {#                            buddybee_socket.emit('update_my_socket', {#}
  252. {#                                userId: buddybee_socket_user_id,#}
  253. {#                                token: buddybee_socket_user_session_token,#}
  254. {#                            });#}
  255. {#                        });#}
  256. {#                        ifvisible.idle(function () {#}
  257. {#                            document.body.style.opacity = 0.5;#}
  258. {#                            buddybee_socket.emit('update_my_socket', {#}
  259. {#                                userId: buddybee_socket_user_id,#}
  260. {#                                token: buddybee_socket_user_session_token,#}
  261. {#                                user_status: '_AWAY_',#}
  262. {#                                force_broadcast: 1,#}
  263. {#                            });#}
  264. {#                        });#}
  265. {#                        ifvisible.wakeup(function () {#}
  266. {#                            document.body.style.opacity = 1;#}
  267. {#                            buddybee_socket.emit('update_my_socket', {#}
  268. {#                                userId: buddybee_socket_user_id,#}
  269. {#                                token: buddybee_socket_user_session_token,#}
  270. {#                                user_status: '_ON_',#}
  271. {#                                force_broadcast: 1,#}
  272. {#                            });#}
  273. {#                        });#}
  274. {#                        {% endif %}#}
  275. {#                        // buddybee_socket.emit('update_my_socket', {#}
  276. {#                        //     userId: buddybee_socket_user_id,#}
  277. {#                        //     token: buddybee_socket_user_session_token,#}
  278. {#                        // });#}
  279. {#                        if (typeof pageSocketInit !== 'undefined')#}
  280. {#                            pageSocketInit();#}
  281. {#                        buddybee_socket.on('user_status_update', function (dataObj) {#}
  282. {#                            //    console.log(dataObj)#}
  283. {#                        });#}
  284. {#                        //    console.log(buddybee_socket);#}
  285. {#                    }#}
  286. {#                });#}
  287. {#            }#}
  288. {#        </script>#}
  289. {#        #}{#<script src="{{ absolute_url(path('dashboard')) }}js/inno_notify.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>#}
  290. {#    {% endif %}#}
  291. {#    #}{#{% endif %}#}
  292. {#{% endif %}#}
  293. {# light mode dark mode controlling function #}
  294. <script>
  295.     changeTheme((localStorage.getItem("theme") || 'light') == 'dark');
  296.     var honeybeeLocale = 'en';
  297.     jQuery.browser = {};
  298.     (function () {
  299.         jQuery.browser.msie = false;
  300.         jQuery.browser.version = 0;
  301.         if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
  302.             jQuery.browser.msie = true;
  303.             jQuery.browser.version = RegExp.$1;
  304.         }
  305.     })();
  306.     var userAgent = navigator.userAgent || navigator.vendor || window.opera;
  307.     var logger = function () {
  308.         var oldConsoleLog = null;
  309.         var pub = {};
  310.         pub.enableLogger = function enableLogger() {
  311.             if (oldConsoleLog == null)
  312.                 return;
  313.             window['console']['log'] = oldConsoleLog;
  314.         };
  315.         pub.disableLogger = function disableLogger() {
  316.             oldConsoleLog = console.log;
  317.             window['console']['log'] = function () {
  318.             };
  319.         };
  320.         return pub;
  321.     }();
  322.     {% if app.session.get('devAdminMode') ==1 %}
  323.     {% else %}
  324.     logger.disableLogger();
  325.     {% endif %}
  326.     var _t={};
  327.     $(document).ready(function () {
  328.         _t = $('body').translate({
  329.             lang: "en",
  330.             t: central_lang_pack
  331.         });
  332.         if (typeof (window.localStorage) !== "undefined")
  333.             honeybeeLocale = window.localStorage.getItem('honeybeeLocale');
  334.         //    alert(honeybeeLocale)
  335.         if (honeybeeLocale !== "undefined" && honeybeeLocale != 'null' && honeybeeLocale != null) {
  336.             _t.lang(honeybeeLocale);
  337.         }
  338.         else {
  339.             honeybeeLocale = 'en'
  340.         }
  341.         var initialLangText = $('.locale_changer.' + honeybeeLocale).first().text().trim();
  342.         if (initialLangText) {
  343.             $(".curr_locale_text").text(initialLangText);
  344.         }
  345.         $(".locale_changer").click(function (ev) {
  346.             ev.preventDefault();
  347.             // alert("hello")
  348.             var lang = $(this).attr("data-locale");
  349.             var langText = $(this).text().trim();
  350.             _t.lang(lang);
  351.             honeybeeLocale = lang;
  352.             $(".locale_changer").removeClass('activeLocale')
  353.             $(this).addClass('activeLocale');
  354.             $(".curr_locale_text").text(langText);
  355.             if (typeof (window.localStorage) !== "undefined") {
  356.                 window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
  357.             }
  358.             //if (typeof (window.localStorage) !== "undefined")
  359.             //honeybeeLocale = window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
  360. //            //    console.log(lang);
  361.             // ev.preventDefault();
  362.         });
  363.     })
  364.     if ($('#viewAsId').length) {
  365.         $('#viewAsId').selectize({
  366.             placeholder: 'Choose User',
  367.             multiple: false,
  368. //            options: APTL.productListArray,
  369.             options: [],
  370.             valueField: 'value',
  371.             labelField: 'text',
  372.             preload: 'focus',
  373.             render: {
  374.                 option: function (item, escape) {
  375.                     return (
  376.                             '<div style="padding: 2px;">' +
  377.                             '<span class="title" style="    min-width: 2rem;display: inline-block;">' +
  378.                             ((item.image != null && item.image != '') ? '<img style="border-radius: 50%;height: 2rem;width: 2rem;" src="' + item.image + '" alt="" class="img-fluid" >' :
  379.                                     '<img style="border-radius: 50%;height: 2rem;width: 2rem;" src="{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant_image_ph_male.png" alt="" class="img-fluid" >') +
  380.                             "</span>" +
  381.                             '<span class="name" style="padding-left:0.5rem;font-size: 14px;">' +
  382.                                 //                        '<i class="icon ' +
  383.                                 //                        (item.type == 1 ? "fa fa-list" : "fa fa-clock") +
  384.                                 //                        '"></i>' +
  385.                                 //                        "<div class='form-control mainDiv'>" +
  386.                                 //                        '<span class="name">' +
  387.                             escape(item.firstname) + ' ' + escape(item.lastname) +
  388.                             "</span>" +
  389.                                 '<span class="description">' +
  390.                                 escape(item.email) +
  391.                                                    "</span>" +
  392.                             "</div>"
  393.                     );
  394.                     // return (
  395.                     //     "<div>" +
  396.                     //     '<span class="title">' +
  397.                     //     '<span class="name"><i class="icon ' +
  398.                     //     (item.type == 1 ? "fa fa-list" : "fa fa-clock") +
  399.                     //     '"></i>' +
  400.                     //     escape(item.name) +
  401.                     //     "</span>" +
  402.                     //
  403.                     //     "</span>" +
  404.                     //     '<span class="description">' +
  405.                     //     escape(item.description) +
  406.                     //     "</span>" +
  407.                     //
  408.                     //     "</div>"
  409.                     // );
  410.                 },
  411.             },
  412.             onChange: function (value) {
  413.                 if (!value.length) return;
  414.                 window.location.href = '{{ absolute_url(path('view_as_user_central')) }}/' + value;
  415.                 //addProductToListById(value);
  416.                 // alert(value)
  417.                 // small_search_box.clear()
  418.                 // small_search_box.focus()
  419.             },
  420.             searchField: ['text', 'value'],
  421.             load: function (query, callback) {
  422. //                        if (!query.length) return // callback();
  423.                 if (!query.length) query = '_EMPTY_';
  424.                 var pika_ind_id = $($(this)[0].$input["0"]).attr('data-id')
  425.                 $.ajax({
  426.                     url: BaseURL + "select_data_ajax_public",
  427.                     type: 'POST',
  428.                     dataType: 'json',
  429.                     data: {
  430.                         //returnJson: 1,
  431.                         //sessionData: sessionData
  432.                         query: query,
  433.                         tableName: "entity_applicant_details",
  434.                         valueField: "applicant_id",
  435. //                        textField: "topic_name",
  436.                         entity_group: 1,
  437.                         selectorId: $($(this)[0].$input["0"]).attr('id'),
  438.                         isMultiple: 0,
  439.                         dataId: pika_ind_id,
  440. //                        isMultiple: 0,
  441.                         textField: "rendered_text",
  442. //
  443.                         renderTextFormat: " __firstname__  __lastname__",
  444.                         andOrConditions: [
  445.                             {type: "like", field: "firstname", value: query},
  446.                             {type: "like", field: "lastname", value: query},
  447.                             {type: "like", field: "email", value: query},
  448.                             {type: "like", field: "o_auth_email", value: query},
  449.                         ],
  450.                         mustConditions: [
  451.                             // {type: "=", field: "is_consultant", value: 1},
  452.                             {#{% if not curr_data is empty %}#}
  453. //                            {type: "!=", field: "applicant_id", value: $('#rescheduledStudentId').val()}
  454.                             {#{% endif %}#}
  455.                         ],
  456.                         convertToObject: [
  457. //                            'accessories', 'issues'
  458.                         ],
  459.                         skipDefaultCompanyId: 1
  460.                         // setDataForSingle: 1,
  461.                     },
  462.                     error: function () {
  463.                         // callback();
  464.                     },
  465.                     success: function (res) {
  466. //                        preliminary_reg_data_by_id = res.dataById
  467.                         callback(res.data);
  468.                         if (res.setValueArray.length != 0 && res.selectorId != '') {
  469.                             if (res.isMultiple == 1)
  470.                                 $('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  471.                             else
  472.                                 $('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  473.                         }
  474. //                        alert('pika master')
  475.                     }
  476.                 });
  477.             },
  478.         });
  479.     }
  480.     //        alert('.locale_changer.'+honeybeeLocale)
  481.     //        alert($('.locale_changer.'+honeybeeLocale).text())
  482.     {# $(".curr_locale_text").text($('.locale_changer.' + honeybeeLocale).text()); #}
  483.     $('.schedule_date_picker').not('.datepicker').bootstrapMaterialDatePicker({
  484.         format: 'MMMM DD, YYYY',
  485.         clearButton: true,
  486.         weekStart: 6,
  487.         time: false,
  488.         switchOnClick: true,
  489.         monthPicker: true
  490.     });
  491.     $('.schedule_date_time_picker').not('.datepicker').bootstrapMaterialDatePicker({
  492.         format: 'HH:mm',
  493.         clearButton: true,
  494.         date: false,
  495.         switchOnClick: true
  496.     });
  497.     $('#theme-toggle-checkbox').change(function () {
  498.         changeTheme($(this).prop('checked'));
  499.     })
  500. </script>
  501. </html>