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