Server IP : 127.0.0.2 / Your IP : 18.116.36.23 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/odoo/addons/im_livechat/views/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <!-- Integrate Livechat Conversation in the Mail Chat Client Action --> <template id="assets_backend" name="im_livechat assets backend" inherit_id="web.assets_backend"> <xpath expr="." position="inside"> <script type="text/javascript" src="/im_livechat/static/src/js/im_livechat_backend.js"></script> </xpath> </template> <!-- Template rendering the external HTML support page --> <template id="support_page" name="Livechat : Support Page"> <!DOCTYPE html> <html style="height: 100%"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><t t-esc="channel_name"/> Livechat Support Page</title> <!-- Call the external Bundle to render the css, js, and js loader tags --> <t t-raw="channel.script_external"/> <style type="text/css"> body { height: 100%; font-size: 16px; font-weight: 400; font-family: "Lato", "Lucida Grande", "Helvetica neue", "Helvetica", "Verdana", "Arial", sans-serif; overflow: hidden; overflow-y: auto; display: block; margin: 0; padding: 0; border: none; width: 100%; height: 100%; background: #C9C8E0; background-image: -webkit-linear-gradient(top, #7c7bad, #ddddee); background-image: -moz-linear-gradient(top, #7c7bad, #ddddee); background-image: -ms-linear-gradient(top, #7c7bad, #ddddee); background-image: -o-linear-gradient(top, #7c7bad, #ddddee); background-image: linear-gradient(to bottom, #7c7bad, #ddddee); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7c7bad', endColorstr='#ddddee',GradientType=0 ); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; } .main { position: absolute; opacity: 0; top: 50%; width: 100%; margin-top: -150px; color: white; text-shadow: 0 1px 0 rgba(34, 52, 72, 0.2); text-align: center; } .main h1 { font-size: 54px; } .main div { font-style: italic; } </style> </head> <body> <div class="main" style="opacity: 1;"> <h1 class="channel_name"><t t-esc="channel.name"/></h1> <div>Website Live Chat Powered by <strong>Odoo</strong>.</div> </div> </body> </html> </template> <!-- Template rendering all the scripts required to execute the Livechat from an external page (which not contain Odoo) --> <template id="external_loader" name="Livechat : external_script field of livechat channel"> <!-- css style --> <link t-att-href="'%s/im_livechat/external_lib.css' % (url)" rel="stylesheet"/> <!-- js of all the required lib (internal and external) --> <script t-att-src="'%s/im_livechat/external_lib.js' % (url)" type="text/javascript" /> <!-- the loader --> <script t-att-src="'%s/im_livechat/loader/%i' % (url, channel_id)" type="text/javascript"/> </template> <!-- Bundle of External Librairies of the Livechat (Odoo + required modules) --> <template id="external_lib" name="Livechat : External Librairies of the Livechat, required to make it work"> <!-- Momentjs --> <script type="text/javascript" src="/web/static/lib/moment/moment.js"></script> <!-- OpenERP minimal lib --> <script type="text/javascript" src="/web/static/lib/underscore/underscore.js"></script> <script type="text/javascript" src="/web/static/lib/underscore.string/lib/underscore.string.js"></script> <!-- jQuery --> <script type="text/javascript" src="/web/static/lib/jquery/jquery.js"></script> <script type="text/javascript" src="/web/static/lib/jquery/jquery.browser.js"></script> <script type="text/javascript" src="/web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js"></script> <!-- Qweb2 lib --> <script type="text/javascript" src="/web/static/lib/qweb/qweb2.js"></script> <!-- Odoo JS Framework --> <script type="text/javascript" src="/web/static/src/js/boot.js"></script> <script type="text/javascript" src="/web/static/src/js/config.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/class.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/translation.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/ajax.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/time.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/mixins.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/widget.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/registry.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/session.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/utils.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/bus.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/local_storage.js"></script> <script type="text/javascript" src="/web/static/src/js/framework/qweb.js"></script> <script type="text/javascript" src="/web/static/src/js/services/core.js"></script> <!-- Bus, Mail, Livechat --> <script type="text/javascript" src="/bus/static/src/js/bus.js"></script> <script type="text/javascript" src="/mail/static/src/js/chat_window.js"></script> <script type="text/javascript" src="/mail/static/src/js/thread.js"></script> <script type="text/javascript" src="/im_livechat/static/src/js/im_livechat.js"></script> <t t-call="web.less_helpers"/> <link rel="stylesheet" href="/im_livechat/static/src/less/im_livechat_bootstrap.less"/> <link rel="stylesheet" href="/mail/static/src/less/chat_window.less"></link> <link rel="stylesheet" href="/mail/static/src/less/thread.less"></link> <link rel="stylesheet" href="/im_livechat/static/src/less/im_livechat.less"/> </template> <!-- the js code to initialize the LiveSupport object --> <template id="loader" name="Livechat : Javascript appending the livechat button"> <t t-translation="off"> <t t-if="not info"> <t t-set="info" t-value="request.env['im_livechat.channel'].get_livechat_info(channel)"/> </t> document.addEventListener("DOMContentLoaded", function(event) { <t t-if="web_session_required"> odoo.define('web.session', function (require) { var Session = require('web.Session'); var modules = odoo._modules; return new Session(undefined, "<t t-esc="info['server_url']"/>", {modules:modules, use_cors: false}); }); </t> odoo.define('im_livechat.livesupport', function (require) { <t t-if="info['available']" t-translation="off"> var im_livechat = require('im_livechat.im_livechat'); var button = new im_livechat.LivechatButton( $('body'), "<t t-esc="info['server_url']"/>", <t t-raw="json.dumps(info.get('options', {}))"/> ); button.appendTo($('body')); window.livechat_button = button; </t> }); }); </t> </template> </data> </odoo>