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">Resources</h3>
  71.                     <ul>
  72.                         <li><a href="{{ url('honeybee_tool', {'slug': 'rooftop-estimate'}) }}">Instant Rooftop Estimate</a></li>
  73.                         <li><a href="{{ url('honeybee_investor') }}">Investor Snapshot</a></li>
  74.                         <li><a href="{{ url('honeybee_compare', {'slug': 'odoo'}) }}">Compare HoneyBee</a></li>
  75.                         <li><a href="{{ url('honeybee_tool', {'slug': 'cost-leakage-calculator'}) }}">Cost Leakage Calculator</a></li>
  76.                         <li><a href="{{ url('honeybee_tool', {'slug': 'roi-calculator'}) }}">ERP ROI Calculator</a></li>
  77.                         <li><a href="{{ url('honeybee_tool', {'slug': 'site-assessment-estimator'}) }}">Site Assessment Estimator</a></li>
  78.                         <li><a href="{{ url('honeybee_solution', {'slug': 'erp-for-solar-epc'}) }}">ERP for Solar EPC</a></li>
  79.                     </ul>
  80.                 </div>
  81.                     <div class="links">
  82.                         <h3 class="highlightertext trn" data-trn-key="_CONTACT_US_">Contact Us</h3>
  83.                         <div class="mail">
  84.                             <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/envelope.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  85.                                  alt="">
  86.                             <span id="unique-email-id" style="color: rgba(255,255,255,.55) !important;">info@ourhoneybee.eu</span>
  87.                             <!-- Custom alert box -->
  88.                             <div id="copy-alert" class="copy-alert">Email copied to clipboard!</div>
  89.                         </div>
  90.                         <div class="icon-list">
  91.                             <a href="#"><img
  92.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/Facebook.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/instagram.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  96.                                         alt=""></a>
  97.                             <a href="#"><img
  98.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/linkedin.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  99.                                         alt=""></a>
  100.                             <a href="#"><img
  101.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/twitter.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  102.                                         alt=""></a>
  103.                             <a href="#"><img
  104.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/Frame (1).svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  105.                                         alt=""></a>
  106.                             <a href="#"><img
  107.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/youtube.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  108.                                         alt=""></a>
  109.                         </div>
  110.                         <div class="head-office">
  111.                             <h3 class='highlightertext'>Head Office</h3>
  112.                             <div class="map">
  113.                                 <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/map-pin.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  114.                                      alt=""> <span>2 Venture Drive, #19-21 <br>Vision Exchange, Singapore 608526</span>
  115.                             </div>
  116.                         </div>
  117.                         <div class="regional-office">
  118.                             <h3 class='highlightertext'>Europe Office</h3>
  119.                             <div class="map">
  120.                                 <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/map-pin.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  121.                                      alt=""> <span>Brühlweg 1, 88451 Dettingen<br>an der Iller, Germany</span>
  122.                             </div>
  123.                             <div class="phone"><img
  124.                                         src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/footer/phone.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"
  125.                                         alt=""> <span>+49 176 34616155</span></div>
  126.                         </div>
  127.                     </div>
  128.                     <div class="certification-content" style="margin-top:40px;clear:both;">
  129.                         <div class="certification">
  130.                             <h3 class="highlightertext" style="margin-top:0;">Security &amp; Compliance</h3>
  131.                             <p style="color:rgba(255,255,255,.5);font-size:13px;line-height:1.7;margin-bottom:16px">EU data residency · GDPR-aligned data handling · Article 28 DPA available where applicable · DATEV-ready export where implemented · GoBD-aligned audit trail where implemented · SOC 2 roadmap</p>
  132.                             <div style="display:flex;flex-direction:column;gap:8px">
  133.                                 <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>
  134.                                 <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>
  135.                                 <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>
  136.                                 <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>
  137.                             </div>
  138.                         </div>
  139.                         <hr style="border: 0.8px solid rgba(255,255,255,.08); margin: 20px 0">
  140.                         <div style="font-size:11px;color:rgba(255,255,255,.3);line-height:1.6">
  141.                             HoneyBee is operated by <strong style="color:rgba(255,255,255,.45)">HoneyBee IoT (Pte.) Ltd.</strong> (Singapore, UEN 202507612D) for international SaaS and commercial operations, with engineering, development, implementation, and regional support through <strong style="color:rgba(255,255,255,.45)">HoneyBee IoT Ltd.</strong> (Bangladesh), and European coordination and partner support from Germany.<br>
  142.                             HoneyBee is not an EPC contractor or project developer. HoneyBee provides software, AI, HoneyCore Edge EMS, HoneyCore Edge+ IoT design workflow, quotation tools, and digital infrastructure tools used by customers and partners.<br>
  143.                             Privacy enquiries: <a href="mailto:privacy@ourhoneybee.eu" style="color:rgba(255,255,255,.4);text-decoration:none">privacy@ourhoneybee.eu</a>
  144.                         </div>
  145.                     </div>
  146.                 </div>
  147.             </div>
  148.             <div class="footer-bottom">
  149.                 <span>Copyright ©{{ ''|date('Y')}} HoneyBee</span>
  150.                 <hr>
  151.                 <span>Powered by ©{{ ''|date('Y')}} HoneyBee</span>
  152.             </div>
  153.         </div>
  154.     </div>
  155. </footer>
  156. <script type="text/javascript"
  157.         src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js"></script>
  158. <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
  159. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/bootstrap.bundle.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  160. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/parallax.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  161. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/pb.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  162. <script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/moment.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  163. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/script.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  164. <script src="{{ absolute_url(path('dashboard')) }}jqueryui/jquery.form.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  165. <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>
  166. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/honeybee_erp_generic.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  167. {% include '@Application/footer/activity_tracker_script.html.twig' %}
  168. <script src="{{ absolute_url(path('dashboard')) }}js/jquery.translate.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  169. <script src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/js/central_language_pack.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>
  170. <script type="text/javascript"
  171.         src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js"></script>
  172. <style>
  173.     .btn {
  174.         border-radius: 15rem;
  175.     }
  176.     .stepIndicator {
  177.         cursor: pointer;
  178.     }
  179.     .stepIndicator:not(.active) {
  180.         /*display: none;*/
  181.     }
  182.     .creating-company-page .honeycomb-cell.stepIndicator.active .honeycomb-cell_img {
  183.         filter: grayscale(0%) !important;
  184.     }
  185.     .creating-company-page .honeycomb-cell.stepIndicator:not(.active) .tooltip .msg-content {
  186.         color: rgba(175, 175, 175, 1);
  187.     }
  188.     .step:not(.active) {
  189.         display: none;
  190.     }
  191.     .step .invalid {
  192.         color: darkred;
  193.     }
  194.     .withdraw p,
  195.     .sweet-alert button,
  196.     .paymentMethodSelectorBtn p {
  197.         border-radius: 42px;
  198.     }
  199. </style>
  200. </body>
  201. {#{% if constant('ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}#}
  202. {#    #}{#now check softone#}
  203. {#    #}{#{% if notification_enabled==1 %}#}
  204. {#    {% if session[UserConstants.USER_ID] is defined %}#}
  205. {#        {% set buddybee_socket_server=constant('ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_SERVER') %}#}
  206. {#        {% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}#}
  207. {#        {% if 'localhost:' in buddybee_socket_server %}#}
  208. {#            {% set buddybee_socket_server_full = url_wo_port ~':'~ buddybee_socket_server|split('localhost:')[1] %}#}
  209. {#        {% else %}#}
  210. {#            {% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}#}
  211. {#        {% endif %}#}
  212. {#        #}{#<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>#}
  213. {#        #}{#<script type="text/javascript" src="{{ buddybee_socket_server_full }}/socket.io/socket.io.js"></script>#}
  214. {#        <script type="text/javascript">#}
  215. {#            var buddybeeKeepAliveCall = {};#}
  216. {#            var lastActivityTs = 0;#}
  217. {#            function refreshKeepAliveCall() {#}
  218. {#                buddybeeKeepAliveCall = setInterval(function () {#}
  219. {#                    var nowTs = moment().unix(),#}
  220. {#                            differenceFromStartTime = meetingStartTime.diff(now), // 86400000;#}
  221. {#                            differenceFromEndTime = meetingEndTime.diff(now); // 86400000;#}
  222. {#                    if (nowTs - lastActivityTs > 60) {#}
  223. {#                        clearInterval(buddybeeKeepAliveCall);#}
  224. {#                    }#}
  225. {#                    else {#}
  226. {#                        buddybee_socket.emit('update_my_socket', {#}
  227. {#                            userId: buddybee_socket_user_id,#}
  228. {#                            token: buddybee_socket_user_session_token,#}
  229. {#                        });#}
  230. {#                    }#}
  231. {#                    //seconds#}
  232. {#                }, 30000)#}
  233. {#            }#}
  234. {#            // //    console.log(io)#}
  235. {#            function initiateBuddybeeSocket() {#}
  236. {#                lastActivityTs = moment().unix();#}
  237. {#                $.getScript('{{ buddybee_socket_server_full }}/socket.io/socket.io.js', function () {#}
  238. {#                    #}{#$.getScript('{{ absolute_url(path('dashboard')) }}buddybee_assets/js/socket-io.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}', function () #}{#}#}
  239. {#                    if (io) {#}
  240. {#                        #}{#socket=io.connect( '{{ constant('ApplicationBundle\\Constants\\GeneralConstant::NOTIFICATION_SERVER') }}' );#}
  241. {#                        buddybee_socket = io.connect('{{ buddybee_socket_server_full }}');#}
  242. {#                        buddybee_socket.emit('update_my_socket', {#}
  243. {#                            userId: buddybee_socket_user_id,#}
  244. {#                            token: buddybee_socket_user_session_token,#}
  245. {#                            user_status: '_ON_',#}
  246. {#                            force_broadcast: 1,#}
  247. {#                        });#}
  248. {#//                        buddybee_socket.on('_SEND_TEXT_TO_MOBILE_', function (dataObj) {#}
  249. {#//                            //    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_')#}
  250. {#//                            //    console.log(dataObj)#}
  251. {#//#}
  252. {#//#}
  253. {#//                        });#}
  254. {#                        addScript("{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic_buddybee_sockets.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}")#}
  255. {#                        {% set curr_route=app.request.attributes.get('_route') %}#}
  256. {#                        {% if curr_route =='consultancy_session' or  curr_route =='_nothing_new_'  %}#}
  257. {#                        {% else %}#}
  258. {#                        ifvisible.setIdleDuration(60);#}
  259. {#                        ifvisible.onEvery(30, function () {#}
  260. {#//                            //    console.log('not idle')#}
  261. {#                            buddybee_socket.emit('update_my_socket', {#}
  262. {#                                userId: buddybee_socket_user_id,#}
  263. {#                                token: buddybee_socket_user_session_token,#}
  264. {#                            });#}
  265. {#                        });#}
  266. {#                        ifvisible.idle(function () {#}
  267. {#                            document.body.style.opacity = 0.5;#}
  268. {#                            buddybee_socket.emit('update_my_socket', {#}
  269. {#                                userId: buddybee_socket_user_id,#}
  270. {#                                token: buddybee_socket_user_session_token,#}
  271. {#                                user_status: '_AWAY_',#}
  272. {#                                force_broadcast: 1,#}
  273. {#                            });#}
  274. {#                        });#}
  275. {#                        ifvisible.wakeup(function () {#}
  276. {#                            document.body.style.opacity = 1;#}
  277. {#                            buddybee_socket.emit('update_my_socket', {#}
  278. {#                                userId: buddybee_socket_user_id,#}
  279. {#                                token: buddybee_socket_user_session_token,#}
  280. {#                                user_status: '_ON_',#}
  281. {#                                force_broadcast: 1,#}
  282. {#                            });#}
  283. {#                        });#}
  284. {#                        {% endif %}#}
  285. {#                        // buddybee_socket.emit('update_my_socket', {#}
  286. {#                        //     userId: buddybee_socket_user_id,#}
  287. {#                        //     token: buddybee_socket_user_session_token,#}
  288. {#                        // });#}
  289. {#                        if (typeof pageSocketInit !== 'undefined')#}
  290. {#                            pageSocketInit();#}
  291. {#                        buddybee_socket.on('user_status_update', function (dataObj) {#}
  292. {#                            //    console.log(dataObj)#}
  293. {#                        });#}
  294. {#                        //    console.log(buddybee_socket);#}
  295. {#                    }#}
  296. {#                });#}
  297. {#            }#}
  298. {#        </script>#}
  299. {#        #}{#<script src="{{ absolute_url(path('dashboard')) }}js/inno_notify.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>#}
  300. {#    {% endif %}#}
  301. {#    #}{#{% endif %}#}
  302. {#{% endif %}#}
  303. {# light mode dark mode controlling function #}
  304. <script>
  305.     changeTheme((localStorage.getItem("theme") || 'light') == 'dark');
  306.     var honeybeeLocale = 'en';
  307.     jQuery.browser = {};
  308.     (function () {
  309.         jQuery.browser.msie = false;
  310.         jQuery.browser.version = 0;
  311.         if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
  312.             jQuery.browser.msie = true;
  313.             jQuery.browser.version = RegExp.$1;
  314.         }
  315.     })();
  316.     var userAgent = navigator.userAgent || navigator.vendor || window.opera;
  317.     var logger = function () {
  318.         var oldConsoleLog = null;
  319.         var pub = {};
  320.         pub.enableLogger = function enableLogger() {
  321.             if (oldConsoleLog == null)
  322.                 return;
  323.             window['console']['log'] = oldConsoleLog;
  324.         };
  325.         pub.disableLogger = function disableLogger() {
  326.             oldConsoleLog = console.log;
  327.             window['console']['log'] = function () {
  328.             };
  329.         };
  330.         return pub;
  331.     }();
  332.     {% if app.session.get('devAdminMode') ==1 %}
  333.     {% else %}
  334.     logger.disableLogger();
  335.     {% endif %}
  336.     var _t={};
  337.     $(document).ready(function () {
  338.         _t = $('body').translate({
  339.             lang: "en",
  340.             t: central_lang_pack
  341.         });
  342.         if (typeof (window.localStorage) !== "undefined")
  343.             honeybeeLocale = window.localStorage.getItem('honeybeeLocale');
  344.         //    alert(honeybeeLocale)
  345.         if (honeybeeLocale !== "undefined" && honeybeeLocale != 'null' && honeybeeLocale != null) {
  346.             _t.lang(honeybeeLocale);
  347.         }
  348.         else {
  349.             honeybeeLocale = 'en'
  350.         }
  351.         var initialLangText = $('.locale_changer.' + honeybeeLocale).first().text().trim();
  352.         if (initialLangText) {
  353.             $(".curr_locale_text").text(initialLangText);
  354.         }
  355.         $(".locale_changer").click(function (ev) {
  356.             ev.preventDefault();
  357.             // alert("hello")
  358.             var lang = $(this).attr("data-locale");
  359.             var langText = $(this).text().trim();
  360.             _t.lang(lang);
  361.             honeybeeLocale = lang;
  362.             $(".locale_changer").removeClass('activeLocale')
  363.             $(this).addClass('activeLocale');
  364.             $(".curr_locale_text").text(langText);
  365.             if (typeof (window.localStorage) !== "undefined") {
  366.                 window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
  367.             }
  368.             //if (typeof (window.localStorage) !== "undefined")
  369.             //honeybeeLocale = window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
  370. //            //    console.log(lang);
  371.             // ev.preventDefault();
  372.         });
  373.     })
  374.     if ($('#viewAsId').length) {
  375.         $('#viewAsId').selectize({
  376.             placeholder: 'Choose User',
  377.             multiple: false,
  378. //            options: APTL.productListArray,
  379.             options: [],
  380.             valueField: 'value',
  381.             labelField: 'text',
  382.             preload: 'focus',
  383.             render: {
  384.                 option: function (item, escape) {
  385.                     return (
  386.                             '<div style="padding: 2px;">' +
  387.                             '<span class="title" style="    min-width: 2rem;display: inline-block;">' +
  388.                             ((item.image != null && item.image != '') ? '<img style="border-radius: 50%;height: 2rem;width: 2rem;" src="' + item.image + '" alt="" class="img-fluid" >' :
  389.                                     '<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" >') +
  390.                             "</span>" +
  391.                             '<span class="name" style="padding-left:0.5rem;font-size: 14px;">' +
  392.                                 //                        '<i class="icon ' +
  393.                                 //                        (item.type == 1 ? "fa fa-list" : "fa fa-clock") +
  394.                                 //                        '"></i>' +
  395.                                 //                        "<div class='form-control mainDiv'>" +
  396.                                 //                        '<span class="name">' +
  397.                             escape(item.firstname) + ' ' + escape(item.lastname) +
  398.                             "</span>" +
  399.                                 '<span class="description">' +
  400.                                 escape(item.email) +
  401.                                                    "</span>" +
  402.                             "</div>"
  403.                     );
  404.                     // return (
  405.                     //     "<div>" +
  406.                     //     '<span class="title">' +
  407.                     //     '<span class="name"><i class="icon ' +
  408.                     //     (item.type == 1 ? "fa fa-list" : "fa fa-clock") +
  409.                     //     '"></i>' +
  410.                     //     escape(item.name) +
  411.                     //     "</span>" +
  412.                     //
  413.                     //     "</span>" +
  414.                     //     '<span class="description">' +
  415.                     //     escape(item.description) +
  416.                     //     "</span>" +
  417.                     //
  418.                     //     "</div>"
  419.                     // );
  420.                 },
  421.             },
  422.             onChange: function (value) {
  423.                 if (!value.length) return;
  424.                 window.location.href = '{{ absolute_url(path('view_as_user_central')) }}/' + value;
  425.                 //addProductToListById(value);
  426.                 // alert(value)
  427.                 // small_search_box.clear()
  428.                 // small_search_box.focus()
  429.             },
  430.             searchField: ['text', 'value'],
  431.             load: function (query, callback) {
  432. //                        if (!query.length) return // callback();
  433.                 if (!query.length) query = '_EMPTY_';
  434.                 var pika_ind_id = $($(this)[0].$input["0"]).attr('data-id')
  435.                 $.ajax({
  436.                     url: BaseURL + "select_data_ajax_public",
  437.                     type: 'POST',
  438.                     dataType: 'json',
  439.                     data: {
  440.                         //returnJson: 1,
  441.                         //sessionData: sessionData
  442.                         query: query,
  443.                         tableName: "entity_applicant_details",
  444.                         valueField: "applicant_id",
  445. //                        textField: "topic_name",
  446.                         entity_group: 1,
  447.                         selectorId: $($(this)[0].$input["0"]).attr('id'),
  448.                         isMultiple: 0,
  449.                         dataId: pika_ind_id,
  450. //                        isMultiple: 0,
  451.                         textField: "rendered_text",
  452. //
  453.                         renderTextFormat: " __firstname__  __lastname__",
  454.                         andOrConditions: [
  455.                             {type: "like", field: "firstname", value: query},
  456.                             {type: "like", field: "lastname", value: query},
  457.                             {type: "like", field: "email", value: query},
  458.                             {type: "like", field: "o_auth_email", value: query},
  459.                         ],
  460.                         mustConditions: [
  461.                             // {type: "=", field: "is_consultant", value: 1},
  462.                             {#{% if not curr_data is empty %}#}
  463. //                            {type: "!=", field: "applicant_id", value: $('#rescheduledStudentId').val()}
  464.                             {#{% endif %}#}
  465.                         ],
  466.                         convertToObject: [
  467. //                            'accessories', 'issues'
  468.                         ],
  469.                         skipDefaultCompanyId: 1
  470.                         // setDataForSingle: 1,
  471.                     },
  472.                     error: function () {
  473.                         // callback();
  474.                     },
  475.                     success: function (res) {
  476. //                        preliminary_reg_data_by_id = res.dataById
  477.                         callback(res.data);
  478.                         if (res.setValueArray.length != 0 && res.selectorId != '') {
  479.                             if (res.isMultiple == 1)
  480.                                 $('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  481.                             else
  482.                                 $('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  483.                         }
  484. //                        alert('pika master')
  485.                     }
  486.                 });
  487.             },
  488.         });
  489.     }
  490.     //        alert('.locale_changer.'+honeybeeLocale)
  491.     //        alert($('.locale_changer.'+honeybeeLocale).text())
  492.     {# $(".curr_locale_text").text($('.locale_changer.' + honeybeeLocale).text()); #}
  493.     $('.schedule_date_picker').not('.datepicker').bootstrapMaterialDatePicker({
  494.         format: 'MMMM DD, YYYY',
  495.         clearButton: true,
  496.         weekStart: 6,
  497.         time: false,
  498.         switchOnClick: true,
  499.         monthPicker: true
  500.     });
  501.     $('.schedule_date_time_picker').not('.datepicker').bootstrapMaterialDatePicker({
  502.         format: 'HH:mm',
  503.         clearButton: true,
  504.         date: false,
  505.         switchOnClick: true
  506.     });
  507.     $('#theme-toggle-checkbox').change(function () {
  508.         changeTheme($(this).prop('checked'));
  509.     })
  510. </script>
  511. </html>