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