Skip to content

Commit

Permalink
Fixed - show widget correctly in 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Dainis Tillers committed Jan 22, 2015
1 parent 30f399c commit eeaaa87
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 7 deletions.
22 changes: 15 additions & 7 deletions Tawkto.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<_>
<form_key>i5EhQVYD5TTaU6m4</form_key>
<form_key>6tE5GGLJqnCwUULG</form_key>
<name>TawkTo</name>
<channel>community</channel>
<version_ids>
Expand All @@ -11,11 +11,9 @@ Tawk.to launched a beta version in Q4 2013 and mobile apps for Android and iOS a
This agent-centric live chat software has been developed to meet the technical, functional, analytical, and UI requirements of the actual end user.</description>
<license>OSL v3.0</license>
<license_uri/>
<version>1.0.0</version>
<version>1.0.1</version>
<stability>alpha</stability>
<notes>Initial relase

*Allows to choose which widget you want to use</notes>
<notes>Fix array issue with php &lt;= 5.3</notes>
<authors>
<name>
<name>tawk</name>
Expand Down Expand Up @@ -44,7 +42,7 @@ This agent-centric live chat software has been developed to meet the technical,
<max/>
</max>
<files>
<files> </files>
<files> </files>
</files>
</package>
<extension>
Expand All @@ -67,21 +65,27 @@ This agent-centric live chat software has been developed to meet the technical,
<target>magedesign</target>
<target>mageetc</target>
<target>magedesign</target>
<target>magedesign</target>
<target>magedesign</target>
</target>
<path>
<path/>
<path>Tawk</path>
<path>adminhtml/default/default/template/tawk/customization.phtml</path>
<path>frontend/default/default/layout/tawkwidget.xml</path>
<path>modules/Tawk_Widget.xml</path>
<path>frontend/default/default/template/tawk/embed.phtml</path>
<path>frontend/default/default/template/tawk/</path>
<path>frontend/base/default/template/tawk/</path>
<path>frontend/base/default/layout/tawkwidget.xml</path>
</path>
<type>
<type>file</type>
<type>dir</type>
<type>file</type>
<type>file</type>
<type>file</type>
<type>dir</type>
<type>dir</type>
<type>file</type>
</type>
<include>
Expand All @@ -91,6 +95,8 @@ This agent-centric live chat software has been developed to meet the technical,
<include/>
<include/>
<include/>
<include/>
<include/>
</include>
<ignore>
<ignore/>
Expand All @@ -99,6 +105,8 @@ This agent-centric live chat software has been developed to meet the technical,
<ignore/>
<ignore/>
<ignore/>
<ignore/>
<ignore/>
</ignore>
</contents>
</_>
30 changes: 30 additions & 0 deletions app/design/frontend/base/default/layout/tawkwidget.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
/**
* Tawk.to
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to support@tawk.to so we can send you a copy immediately.
*
* @copyright Copyright (c) 2014 Tawk.to
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<layout version="0.1.0">

<default>
<reference name="before_body_end">
<block type="tawkwidget/embed"></block>
</reference>
</default>

</layout>
30 changes: 30 additions & 0 deletions app/design/frontend/base/default/template/tawk/embed.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* Tawk.to
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to support@tawk.to so we can send you a copy immediately.
*
* @copyright Copyright (c) 2014 Tawk.to
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
<!--Start of Tawk.to Script-->
<script type="text/javascript"> var $_Tawk_API={},$_Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='<?php echo $this->getEmbedUrl() ?>';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->

0 comments on commit eeaaa87

Please sign in to comment.