- * @copyright since 2016 SmartSupp.com
- * @version Git: $Id$
- * @link https://github.com/smartsupp/php-partner-client
- */
-class Api
-{
- /** API call base URL */
- const API_BASE_URL = 'https://www.smartsupp.com/';
-
- /** URL paths for all used resources endpoints methods */
- const URL_LOGIN = 'account/login',
- URL_CREATE = 'account/create';
-
- /**
- * @var null|CurlRequest
- */
- private $handle = null;
-
- /**
- * Api constructor.
- *
- * @param null|HttpRequest $handle inject custom request handle to better unit test
- * @throws Exception
- */
- public function __construct(HttpRequest $handle = null)
- {
-// @codeCoverageIgnoreStart
- if (!function_exists('curl_init')) {
- throw new Exception('Smartsupp API client needs the CURL PHP extension.');
- }
- if (!function_exists('json_decode')) {
- throw new Exception('Smartsupp API client needs the JSON PHP extension.');
- }
-// @codeCoverageIgnoreEnd
-
- $this->handle = $handle ?: new CurlRequest();
- }
-
- /**
- * Allows to create user.
- *
- * @param array $data
- * @return array
- */
- public function create($data)
- {
- return $this->post(self::URL_CREATE, $data);
- }
-
- /**
- * Allows to log in account and obtain user key.
- *
- * @param array $data
- * @return array
- */
- public function login($data)
- {
- return $this->post(self::URL_LOGIN, $data);
- }
-
- /**
- * Helper function to execute POST request.
- *
- * @param string $path request path
- * @param array $data optional POST data array
- * @return array|string array data or json encoded string of result
- * @throws Exception
- */
- private function post($path, $data)
- {
- return $this->run($path, 'post', $data);
- }
-
- /**
- * Execute request against URL path with given method, optional data array. Also allows
- * to specify if json data will be decoded before function return.
- *
- * @param $path request path
- * @param $method request method
- * @param null|array $data optional request data
- * @param bool $json_decode specify if returned json data will be decoded
- * @return string|array JSON data or array containing decoded JSON data
- * @throws Exception
- */
- private function run($path, $method, $data = null, $json_decode = true)
- {
- $this->handle->setOption(CURLOPT_URL, self::API_BASE_URL . $path);
- $this->handle->setOption(CURLOPT_RETURNTRANSFER, true);
- $this->handle->setOption(CURLOPT_FAILONERROR, false);
- $this->handle->setOption(CURLOPT_SSL_VERIFYPEER, true);
- $this->handle->setOption(CURLOPT_SSL_VERIFYHOST, 2);
- $this->handle->setOption(CURLOPT_USERAGENT, 'cURL:php-partner-client');
-
- // forward headers from request
- $headers = array(
- 'X-Forwarded-For: ' . $this->getUserIpAddr(),
- 'Accept-Language: ' . $this->getAcceptLanguage(),
- );
- $this->handle->setOption(CURLOPT_HTTPHEADER, $headers);
-
- switch ($method) {
- case 'post':
- $this->handle->setOption(CURLOPT_POST, true);
- $this->handle->setOption(CURLOPT_POSTFIELDS, $data);
- break;
- }
-
- $response = $this->handle->execute();
-
- if ($response === false) {
- throw new Exception($this->handle->getLastErrorMessage());
- }
-
- $this->handle->close();
-
- if ($json_decode) {
- $response = json_decode($response, true);
-
- if (json_last_error() != JSON_ERROR_NONE) {
- throw new Exception('Cannot parse API response JSON. Error: ' . json_last_error_msg());
- }
- }
-
- return $response;
- }
-
- /**
- * Return user IP address.
- *
- * @return string|null
- */
- private function getUserIpAddr()
- {
- if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
- // ip from share internet
- return $_SERVER['HTTP_CLIENT_IP'];
- } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
- // ip pass from proxy
- return $_SERVER['HTTP_X_FORWARDED_FOR'];
- } else {
- // in case is not set - may be in CLI
- return isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : null;
- }
- }
-
- /**
- * Get Accept-Language header.
- *
- * @return string|null
- */
- private function getAcceptLanguage()
- {
- return isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : null;
- }
-}
diff --git a/smartsupp/vendor/smartsupp/php-partner-client/src/Smartsupp/Auth/Request/CurlRequest.php b/smartsupp/vendor/smartsupp/php-partner-client/src/Smartsupp/Auth/Request/CurlRequest.php
deleted file mode 100644
index 6ccfd6a..0000000
--- a/smartsupp/vendor/smartsupp/php-partner-client/src/Smartsupp/Auth/Request/CurlRequest.php
+++ /dev/null
@@ -1,90 +0,0 @@
-init($url);
- }
-
- /**
- * Init cURL connection object.
- *
- * @param string|null $url
- * @throws Exception
- */
- public function init($url = null)
- {
- $this->handle = curl_init($url);
- }
-
- /**
- * Set cURL option with given value.
- *
- * @param string $name option name
- * @param string|array $value option value
- */
- public function setOption($name, $value)
- {
- curl_setopt($this->handle, $name, $value);
- }
-
- /**
- * Execute cURL request.
- *
- * @return boolean
- */
- public function execute()
- {
- return curl_exec($this->handle);
- }
-
- /**
- * Get array of information about last request.
- *
- * @param int $opt options
- * @return array info array
- */
- public function getInfo($opt = 0)
- {
- return curl_getinfo($this->handle, $opt);
- }
-
- /**
- * Close cURL handler connection.
- */
- public function close()
- {
- curl_close($this->handle);
- }
-
- /**
- * Return last error message as string.
- *
- * @return string formatted error message
- */
- public function getLastErrorMessage()
- {
- $message = sprintf("cURL failed with error #%d: %s", curl_errno($this->handle), curl_error($this->handle));
- return $message;
- }
-}
diff --git a/smartsupp/vendor/smartsupp/php-partner-client/src/Smartsupp/Auth/Request/HttpRequest.php b/smartsupp/vendor/smartsupp/php-partner-client/src/Smartsupp/Auth/Request/HttpRequest.php
deleted file mode 100644
index 6132206..0000000
--- a/smartsupp/vendor/smartsupp/php-partner-client/src/Smartsupp/Auth/Request/HttpRequest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-assertNotNull($api);
- }
-
- public function test_login()
- {
- $data = array(
- 'email' => 'test5@kurzor.net',
- 'password' => 'xxx'
- );
-
- $response = array(
- 'account' => array(
- 'key' => 'CHAT_KEY',
- 'lang' => 'en'
- )
- );
-
- $http = $this->getMock('Smartsupp\Auth\Request\HttpRequest');
- $http->expects($this->any())
- ->method('execute')
- ->will($this->returnValue(json_encode($response)));
-
- // create class under test using $http instead of a real CurlRequest
- $api = new Api($http);
- $this->assertEquals($response, $api->login($data));
- }
-
- /**
- * @expectedException Exception
- * @expectedExceptionMessage Foo is at bar!
- */
- public function test_response_error()
- {
- $data = array(
- 'email' => 'test5@kurzor.net',
- 'password' => 'xxx'
- );
-
- $http = $this->getMock('Smartsupp\Auth\Request\HttpRequest');
- $http->expects($this->any())
- ->method('execute')
- ->will($this->returnValue(false));
-
- $http->expects($this->any())
- ->method('getLastErrorMessage')
- ->will($this->returnValue('Foo is at bar!'));
-
- // create class under test using $http instead of a real CurlRequest
- $api = new Api($http);
- $api->login($data);
- }
-
- public function test_create()
- {
- $data = array(
- 'email' => 'LOGIN_EMAIL', // required
- 'password' => 'YOUR_PASSWORD', // optional, min length 6 characters
- 'name' => 'John Doe', // optional
- 'lang' => 'en', // optional, lowercase; 2 characters
- 'partnerKey' => 'PARTNER_API_KEY' // optional
- );
-
- $response = array(
- 'account' => array(
- 'key' => 'CHAT_KEY',
- 'lang' => 'en'
- ),
- 'user' => array(
- 'email' => 'LOGIN_EMAIL',
- 'name' => 'John Doe',
- 'password' => 'YOUR_PASSWORD'
- )
- );
-
- $http = $this->getMock('Smartsupp\Auth\Request\HttpRequest');
- $http->expects($this->any())
- ->method('execute')
- ->will($this->returnValue(json_encode($response)));
-
- // create class under test using $http instead of a real CurlRequest
- $api = new Api($http);
- $this->assertEquals($response, $api->create($data));
- }
-}
diff --git a/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/Request/CurlRequestTest.php b/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/Request/CurlRequestTest.php
deleted file mode 100644
index c119cab..0000000
--- a/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/Request/CurlRequestTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-curl = new CurlRequest('https://www.smartsupp.com/cs/product');
- }
-
- public function test_constructorVoid()
- {
- $this->curl = new CurlRequest();
-
- $this->assertInstanceOf('Smartsupp\Auth\Request\CurlRequest', $this->curl);
- }
-
- public function test_constructorUrl()
- {
- $this->curl = new CurlRequest('https://smartsupp.com');
-
- $this->assertInstanceOf('Smartsupp\Auth\Request\CurlRequest', $this->curl);
- }
-
- public function test_initError()
- {
- $this->curl->init('https://smartsupp.com');
- }
-
- public function test_setOption()
- {
- $this->curl->setOption(CURLOPT_HEADER, 0);
- }
-
- /**
- * @expectedExceptionMessage curl_setopt() expects parameter 1 to be resource, null given
- */
- public function test_setOption_notInitialized()
- {
- $this->curl->setOption(CURLOPT_HEADER, 0);
- }
-
- public function test_close()
- {
- $this->curl->close();
- }
-
- public function test_execute()
- {
- $this->curl->setOption(CURLOPT_RETURNTRANSFER, TRUE);
- $this->assertNotEmpty($this->curl->execute());
- }
-
- public function test_getInfo()
- {
- $this->curl->setOption(CURLOPT_RETURNTRANSFER, TRUE);
- $this->curl->execute();
- $this->assertEquals($this->curl->getInfo(CURLINFO_HTTP_CODE), 200);
- }
-
- public function test_getLastErrorMessage()
- {
- $this->curl->setOption(CURLOPT_URL, 'foo://bar');
- $this->curl->setOption(CURLOPT_RETURNTRANSFER, TRUE);
- $this->curl->execute();
- $this->assertNotEmpty($this->curl->getLastErrorMessage());
- }
-}
diff --git a/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/Request/index.php b/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/Request/index.php
deleted file mode 100644
index e69de29..0000000
diff --git a/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/index.php b/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/index.php
deleted file mode 100644
index e69de29..0000000
diff --git a/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/index.php b/smartsupp/vendor/smartsupp/php-partner-client/tests/Smartsupp/index.php
deleted file mode 100644
index e69de29..0000000
diff --git a/smartsupp/vendor/smartsupp/php-partner-client/tests/bootstrap.php b/smartsupp/vendor/smartsupp/php-partner-client/tests/bootstrap.php
deleted file mode 100755
index f8157c3..0000000
--- a/smartsupp/vendor/smartsupp/php-partner-client/tests/bootstrap.php
+++ /dev/null
@@ -1,6 +0,0 @@
-
- * @link http://www.smartsupp.com
- * @copyright 2016 Smartsupp.com
- * @license GPL-2.0+
- *
- * Plugin Name: Smartsupp Live Chat
- * Plugin URI: http://www.smartsupp.com
- * Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
- * Author: Smartsupp
- * Author URI: http://www.smartsupp.com
- * Text Domain: smartsupp
- * License: GPL-2.0+
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
- */
-
-header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
-header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
-
-header('Cache-Control: no-store, no-cache, must-revalidate');
-header('Cache-Control: post-check=0, pre-check=0', false);
-header('Pragma: no-cache');
-
-header('Location: ../');
-exit;
diff --git a/smartsupp/views/index.php b/smartsupp/views/index.php
deleted file mode 100644
index de4ac88..0000000
--- a/smartsupp/views/index.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
- * @link http://www.smartsupp.com
- * @copyright 2016 Smartsupp.com
- * @license GPL-2.0+
- *
- * Plugin Name: Smartsupp Live Chat
- * Plugin URI: http://www.smartsupp.com
- * Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
- * Author: Smartsupp
- * Author URI: http://www.smartsupp.com
- * Text Domain: smartsupp
- * License: GPL-2.0+
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
- */
-
-header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
-header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
-
-header('Cache-Control: no-store, no-cache, must-revalidate');
-header('Cache-Control: post-check=0, pre-check=0', false);
-header('Pragma: no-cache');
-
-header('Location: ../');
-exit;
diff --git a/smartsupp/views/js/index.php b/smartsupp/views/js/index.php
deleted file mode 100644
index de4ac88..0000000
--- a/smartsupp/views/js/index.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
- * @link http://www.smartsupp.com
- * @copyright 2016 Smartsupp.com
- * @license GPL-2.0+
- *
- * Plugin Name: Smartsupp Live Chat
- * Plugin URI: http://www.smartsupp.com
- * Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
- * Author: Smartsupp
- * Author URI: http://www.smartsupp.com
- * Text Domain: smartsupp
- * License: GPL-2.0+
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
- */
-
-header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
-header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
-
-header('Cache-Control: no-store, no-cache, must-revalidate');
-header('Cache-Control: post-check=0, pre-check=0', false);
-header('Pragma: no-cache');
-
-header('Location: ../');
-exit;
diff --git a/smartsupp/views/templates/admin/includes/index.php b/smartsupp/views/templates/admin/includes/index.php
deleted file mode 100644
index e69de29..0000000
diff --git a/smartsupp/views/templates/admin/index.php b/smartsupp/views/templates/admin/index.php
deleted file mode 100644
index de4ac88..0000000
--- a/smartsupp/views/templates/admin/index.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
- * @link http://www.smartsupp.com
- * @copyright 2016 Smartsupp.com
- * @license GPL-2.0+
- *
- * Plugin Name: Smartsupp Live Chat
- * Plugin URI: http://www.smartsupp.com
- * Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
- * Author: Smartsupp
- * Author URI: http://www.smartsupp.com
- * Text Domain: smartsupp
- * License: GPL-2.0+
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
- */
-
-header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
-header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
-
-header('Cache-Control: no-store, no-cache, must-revalidate');
-header('Cache-Control: post-check=0, pre-check=0', false);
-header('Pragma: no-cache');
-
-header('Location: ../');
-exit;
diff --git a/smartsupp/views/templates/front/index.php b/smartsupp/views/templates/front/index.php
deleted file mode 100644
index e69de29..0000000
diff --git a/smartsupp/views/templates/index.php b/smartsupp/views/templates/index.php
deleted file mode 100644
index de4ac88..0000000
--- a/smartsupp/views/templates/index.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
- * @link http://www.smartsupp.com
- * @copyright 2016 Smartsupp.com
- * @license GPL-2.0+
- *
- * Plugin Name: Smartsupp Live Chat
- * Plugin URI: http://www.smartsupp.com
- * Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
- * Author: Smartsupp
- * Author URI: http://www.smartsupp.com
- * Text Domain: smartsupp
- * License: GPL-2.0+
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
- */
-
-header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
-header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
-
-header('Cache-Control: no-store, no-cache, must-revalidate');
-header('Cache-Control: post-check=0, pre-check=0', false);
-header('Pragma: no-cache');
-
-header('Location: ../');
-exit;
diff --git a/src/Utility/VersionUtility.php b/src/Utility/VersionUtility.php
new file mode 100644
index 0000000..7c49b3d
--- /dev/null
+++ b/src/Utility/VersionUtility.php
@@ -0,0 +1,35 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+namespace Smartsupp\LiveChat\Utility;
+
+class VersionUtility
+{
+ public static function isPsVersionGreaterThan($version)
+ {
+ return version_compare(_PS_VERSION_, $version, '>');
+ }
+
+ public static function isPsVersionGreaterOrEqualTo($version)
+ {
+ return version_compare(_PS_VERSION_, $version, '>=');
+ }
+}
\ No newline at end of file
diff --git a/src/Utility/index.php b/src/Utility/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/src/Utility/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/src/index.php b/src/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/src/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/smartsupp/translations/br.php b/translations/br.php
similarity index 100%
rename from smartsupp/translations/br.php
rename to translations/br.php
diff --git a/smartsupp/translations/cs.php b/translations/cs.php
similarity index 86%
rename from smartsupp/translations/cs.php
rename to translations/cs.php
index 4167783..f22f800 100755
--- a/smartsupp/translations/cs.php
+++ b/translations/cs.php
@@ -2,11 +2,14 @@
global $_MODULE;
$_MODULE = array();
-$_MODULE['<{smartsupp}prestashop>smartsupp_b10e4b6a10e84bd7b5312f076d2f3ea7'] = 'Smartsupp Live Chat';
-$_MODULE['<{smartsupp}prestashop>smartsupp_32c9a2cba97ffc0669ab2c2a139865da'] = 'Smartsupp kombinuje live chat a chatboty, aby vám šetřil čas.';
+$_MODULE['<{smartsupp}prestashop>smartsupp_b82eb30ace208db211486bdb42475ee5'] = 'Smartsupp je váš osobní online nákupní asistent, vytvořený pro zvýšení míry konverze a prodeje prostřednictvím zapojení návštěvníků v reálném čase a ve správný čas.';
+$_MODULE['<{smartsupp}prestashop>smartsupp_b62af1ad4918b402f148fc2e7841677f'] = 'Opravdu chcete odinstalovat Smartsupp Live Chat?';
+$_MODULE['<{smartsupp}prestashop>smartsupp_4f1adf15fc9b2682736ce1c6749c2175'] = 'Ztratíte všechna data související s tímto modulem.';
$_MODULE['<{smartsupp}prestashop>smartsupp_5db4230515f342afbaee33d685410f04'] = 'Chybí Smartsupp klíč.';
$_MODULE['<{smartsupp}prestashop>smartsupp_c9cc8cce247e49bae79f15173ce97354'] = 'Uložit';
$_MODULE['<{smartsupp}prestashop>smartsupp_630f6dc397fe74e52d5189e2c80f282b'] = 'Zpět';
+$_MODULE['<{smartsupp}prestashop>smartsupp_5b4b55bc08ab8887708ec6188b33f238'] = 'Neuvádějte zde kód chatu – toto pole je pro';
+$_MODULE['<{smartsupp}prestashop>smartsupp_aacbc2c9886e5520a4714cec4c72f1d4'] = '(volitelně) pokročilé přizpůsobení prostřednictvím ';
$_MODULE['<{smartsupp}prestashop>smartsupp_f4f70727dc34561dfde1a3c529b6205c'] = 'Pokročilé nastavení';
$_MODULE['<{smartsupp}prestashop>smartsupp_6a9187ca4a2a8b1b97b58c1decd1a494'] = 'API (volitelné)';
$_MODULE['<{smartsupp}prestashop>smartsupp_462390017ab0938911d2d4e964c0cab7'] = 'Nastavení uloženo';
@@ -28,12 +31,6 @@
$_MODULE['<{smartsupp}prestashop>landing_page_6f1bf85c9ebb3c7fa26251e1e335e032'] = 'podmínkami';
$_MODULE['<{smartsupp}prestashop>landing_page_be5d5d37542d75f93a87094459f76678'] = 'a';
$_MODULE['<{smartsupp}prestashop>landing_page_a50a1efe5421320d2dc8ba27e1f7463d'] = 'DPA';
-$_MODULE['<{smartsupp}prestashop>connect_account_3dc3748ee6772a392b583c399cb96fe5'] = 'Nemáte účet?';
-$_MODULE['<{smartsupp}prestashop>connect_account_8ea211024d4a6ad6119a33549dae10d6'] = 'Založit účet zdarma';
-$_MODULE['<{smartsupp}prestashop>connect_account_bffe9a3c9a7e00ba00a11749e022d911'] = 'Přihlásit se';
-$_MODULE['<{smartsupp}prestashop>connect_account_df1555fe48479f594280a2e03f9a8186'] = 'E-mail:';
-$_MODULE['<{smartsupp}prestashop>connect_account_b341a59d5636ed3d6a819137495b08a0'] = 'Heslo:';
-$_MODULE['<{smartsupp}prestashop>connect_account_b05d72142020283dc6812fd3a9bc691c'] = 'Zapomněl/a jsem heslo';
$_MODULE['<{smartsupp}prestashop>configuration_9f0e8ccbad931f6a5970bcf9d80482c3'] = 'Deaktivovat chat';
$_MODULE['<{smartsupp}prestashop>configuration_bfc719af6420fa1d34b6f3cc858d3494'] = 'Všechno je nastavené a funkční';
$_MODULE['<{smartsupp}prestashop>configuration_ca546d2931eac2cb8f292a583aa2e3fa'] = 'Gratulujeme! Smartsupp live chat je teď nasazený na vaší stránce.';
@@ -41,6 +38,12 @@
$_MODULE['<{smartsupp}prestashop>configuration_e81c4e4f2b7b93b481e13a8553c2ae1b'] = 'nebo nejprve';
$_MODULE['<{smartsupp}prestashop>configuration_b191593bc602ff910417b3f85bb496ca'] = 'nastavte';
$_MODULE['<{smartsupp}prestashop>configuration_b0c2b3626fad53c9cdd6cdd9d3251e90'] = 'vzhled chat boxu';
+$_MODULE['<{smartsupp}prestashop>connect_account_3dc3748ee6772a392b583c399cb96fe5'] = 'Nemáte účet?';
+$_MODULE['<{smartsupp}prestashop>connect_account_8ea211024d4a6ad6119a33549dae10d6'] = 'Založit účet zdarma';
+$_MODULE['<{smartsupp}prestashop>connect_account_bffe9a3c9a7e00ba00a11749e022d911'] = 'Přihlásit se';
+$_MODULE['<{smartsupp}prestashop>connect_account_df1555fe48479f594280a2e03f9a8186'] = 'E-mail:';
+$_MODULE['<{smartsupp}prestashop>connect_account_b341a59d5636ed3d6a819137495b08a0'] = 'Heslo:';
+$_MODULE['<{smartsupp}prestashop>connect_account_b05d72142020283dc6812fd3a9bc691c'] = 'Zapomněl/a jsem heslo';
$_MODULE['<{smartsupp}prestashop>clients_9f07b115f358391fc5118f1488f69965'] = 'NEJOBLÍBENĚJŠÍ CHAT ĆESKÝCH WEBŮ A ESHOPŮ';
$_MODULE['<{smartsupp}prestashop>clients_79733ba6c329916522a8369f2b94ac99'] = 'Přidejte se k více než 500 000 společnostem a živnostníkům spoléhajícím na Smartsupp po celém světě';
$_MODULE['<{smartsupp}prestashop>features_9e9a9f11d422e372100a4c07df22f849'] = 'MULTICHANNEL';
diff --git a/smartsupp/translations/de.php b/translations/de.php
similarity index 100%
rename from smartsupp/translations/de.php
rename to translations/de.php
diff --git a/smartsupp/translations/en.php b/translations/en.php
similarity index 77%
rename from smartsupp/translations/en.php
rename to translations/en.php
index e7cee04..b3720ab 100644
--- a/smartsupp/translations/en.php
+++ b/translations/en.php
@@ -2,23 +2,26 @@
global $_MODULE;
$_MODULE = array();
-$_MODULE['<{smartsupp}prestashop>smartsupp_b10e4b6a10e84bd7b5312f076d2f3ea7'] = 'Smartsupp Live Chat';
-$_MODULE['<{smartsupp}prestashop>smartsupp_62c23de32bc191f88f77eaef905ca293'] = 'Smartsupp is your personal shopping assistant. It combines live chat and chatbots to save your time and help you turn visitors into loyal customers. Smartsupp is one of the most popular products in Europe with 50 000 active European webshops and websites.';
-$_MODULE['<{smartsupp}prestashop>smartsupp_a20e991223473d0779ade2d16211bed4'] = 'Opravdu chcete odinstalovat Smartsupp? Ztratíte tak všechna data uložená v modulu.';
-$_MODULE['<{smartsupp}prestashop>smartsupp_5db4230515f342afbaee33d685410f04'] = 'Chybí Smartsupp klíč.';
-$_MODULE['<{smartsupp}prestashop>smartsupp_c9cc8cce247e49bae79f15173ce97354'] = 'Uložit';
-$_MODULE['<{smartsupp}prestashop>smartsupp_630f6dc397fe74e52d5189e2c80f282b'] = 'Zpět k seznamu';
-$_MODULE['<{smartsupp}prestashop>smartsupp_f4f70727dc34561dfde1a3c529b6205c'] = 'Nastavení';
-$_MODULE['<{smartsupp}prestashop>smartsupp_6a9187ca4a2a8b1b97b58c1decd1a494'] = 'API (volitelné)';
-$_MODULE['<{smartsupp}prestashop>smartsupp_78a81f0852c850f502d91479f1465761'] = 'Nevkládejte zde chat kód - toto pole je určeno pro (volitelné) pokročilé úpravy pomocí #.';
-$_MODULE['<{smartsupp}prestashop>smartsupp_462390017ab0938911d2d4e964c0cab7'] = 'Nastavení uloženo';
+$_MODULE['<{smartsupp}prestashop>smartsupp_d3a313dc870b6246b569f4532bd8a778'] = 'Smartsupp Live Chat & AI Chatbots';
+$_MODULE['<{smartsupp}prestashop>smartsupp_b82eb30ace208db211486bdb42475ee5'] = 'Smartsupp is your personal online shopping assistant, built to increase conversion rates and sales via visitor engagement in real-time, at the right time.';
+$_MODULE['<{smartsupp}prestashop>smartsupp_b62af1ad4918b402f148fc2e7841677f'] = 'Are you sure you want to uninstall Smartsupp Live Chat? ';
+$_MODULE['<{smartsupp}prestashop>smartsupp_4f1adf15fc9b2682736ce1c6749c2175'] = 'You will lose all the data related to this module.';
+$_MODULE['<{smartsupp}prestashop>smartsupp_5db4230515f342afbaee33d685410f04'] = 'No Smartsupp key provided.';
+$_MODULE['<{smartsupp}prestashop>smartsupp_c9cc8cce247e49bae79f15173ce97354'] = 'Save';
+$_MODULE['<{smartsupp}prestashop>smartsupp_630f6dc397fe74e52d5189e2c80f282b'] = 'Back to list';
+$_MODULE['<{smartsupp}prestashop>smartsupp_5b4b55bc08ab8887708ec6188b33f238'] = 'Don\'t put the chat code here - this box is for ';
+$_MODULE['<{smartsupp}prestashop>smartsupp_aacbc2c9886e5520a4714cec4c72f1d4'] = '(optional) advanced customizations via ';
+$_MODULE['<{smartsupp}prestashop>smartsupp_f4f70727dc34561dfde1a3c529b6205c'] = 'Settings';
+$_MODULE['<{smartsupp}prestashop>smartsupp_6a9187ca4a2a8b1b97b58c1decd1a494'] = 'API (Optional)';
+$_MODULE['<{smartsupp}prestashop>smartsupp_462390017ab0938911d2d4e964c0cab7'] = 'Settings updated successfully';
$_MODULE['<{smartsupp}prestashop>smartsupp_b718adec73e04ce3ec720dd11a06a308'] = 'ID';
-$_MODULE['<{smartsupp}prestashop>smartsupp_49ee3087348e8d44e1feda1917443987'] = 'Jméno';
+$_MODULE['<{smartsupp}prestashop>smartsupp_49ee3087348e8d44e1feda1917443987'] = 'Name';
$_MODULE['<{smartsupp}prestashop>smartsupp_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'Email';
-$_MODULE['<{smartsupp}prestashop>smartsupp_bcc254b55c4a1babdf1dcb82c207506b'] = 'Telefon';
+$_MODULE['<{smartsupp}prestashop>smartsupp_bcc254b55c4a1babdf1dcb82c207506b'] = 'Phone';
$_MODULE['<{smartsupp}prestashop>smartsupp_bbbabdbe1b262f75d99d62880b953be1'] = 'Role';
-$_MODULE['<{smartsupp}prestashop>smartsupp_d06ce84f89526b7bac0002dbbc1e8297'] = 'Útrata';
-$_MODULE['<{smartsupp}prestashop>smartsupp_7442e29d7d53e549b78d93c46b8cdcfc'] = 'Objednávky';
+$_MODULE['<{smartsupp}prestashop>smartsupp_d06ce84f89526b7bac0002dbbc1e8297'] = 'Spendings';
+$_MODULE['<{smartsupp}prestashop>smartsupp_7442e29d7d53e549b78d93c46b8cdcfc'] = 'Orders';
+$_MODULE['<{smartsupp}prestashop>adminsmartsuppajax_364fca2fd3206702e62d2e1df8ea1176'] = 'Unknown Error Occurred';
$_MODULE['<{smartsupp}prestashop>landing_page_21bdc5689c12595ae14298354d5550d5'] = 'Already have an account?';
$_MODULE['<{smartsupp}prestashop>landing_page_bffe9a3c9a7e00ba00a11749e022d911'] = 'Log in';
$_MODULE['<{smartsupp}prestashop>landing_page_8ea211024d4a6ad6119a33549dae10d6'] = 'Create a free account';
@@ -30,12 +33,6 @@
$_MODULE['<{smartsupp}prestashop>landing_page_6f1bf85c9ebb3c7fa26251e1e335e032'] = 'Terms';
$_MODULE['<{smartsupp}prestashop>landing_page_be5d5d37542d75f93a87094459f76678'] = 'and';
$_MODULE['<{smartsupp}prestashop>landing_page_a50a1efe5421320d2dc8ba27e1f7463d'] = 'DPA';
-$_MODULE['<{smartsupp}prestashop>connect_account_3dc3748ee6772a392b583c399cb96fe5'] = 'Not a Smartsupp user yet?';
-$_MODULE['<{smartsupp}prestashop>connect_account_8ea211024d4a6ad6119a33549dae10d6'] = 'Create a free account';
-$_MODULE['<{smartsupp}prestashop>connect_account_bffe9a3c9a7e00ba00a11749e022d911'] = 'Log in';
-$_MODULE['<{smartsupp}prestashop>connect_account_df1555fe48479f594280a2e03f9a8186'] = 'E-mail:';
-$_MODULE['<{smartsupp}prestashop>connect_account_b341a59d5636ed3d6a819137495b08a0'] = 'Password:';
-$_MODULE['<{smartsupp}prestashop>connect_account_b05d72142020283dc6812fd3a9bc691c'] = 'I forgot my password';
$_MODULE['<{smartsupp}prestashop>configuration_9f0e8ccbad931f6a5970bcf9d80482c3'] = ' Deactivate chat';
$_MODULE['<{smartsupp}prestashop>configuration_bfc719af6420fa1d34b6f3cc858d3494'] = 'All set and running';
$_MODULE['<{smartsupp}prestashop>configuration_ca546d2931eac2cb8f292a583aa2e3fa'] = 'Congratulations! Smartsupp live chat is already visible on your website.';
@@ -43,6 +40,12 @@
$_MODULE['<{smartsupp}prestashop>configuration_e81c4e4f2b7b93b481e13a8553c2ae1b'] = 'or';
$_MODULE['<{smartsupp}prestashop>configuration_b191593bc602ff910417b3f85bb496ca'] = 'Set up';
$_MODULE['<{smartsupp}prestashop>configuration_b0c2b3626fad53c9cdd6cdd9d3251e90'] = 'chat box design first';
+$_MODULE['<{smartsupp}prestashop>connect_account_3dc3748ee6772a392b583c399cb96fe5'] = 'Not a Smartsupp user yet?';
+$_MODULE['<{smartsupp}prestashop>connect_account_8ea211024d4a6ad6119a33549dae10d6'] = 'Create a free account';
+$_MODULE['<{smartsupp}prestashop>connect_account_bffe9a3c9a7e00ba00a11749e022d911'] = 'Log in';
+$_MODULE['<{smartsupp}prestashop>connect_account_df1555fe48479f594280a2e03f9a8186'] = 'E-mail:';
+$_MODULE['<{smartsupp}prestashop>connect_account_b341a59d5636ed3d6a819137495b08a0'] = 'Password:';
+$_MODULE['<{smartsupp}prestashop>connect_account_b05d72142020283dc6812fd3a9bc691c'] = 'I forgot my password';
$_MODULE['<{smartsupp}prestashop>clients_9f07b115f358391fc5118f1488f69965'] = 'POPULAR CHAT SOLUTION OF EUROPEAN WEBSHOPS AND WEBSITES';
$_MODULE['<{smartsupp}prestashop>clients_79733ba6c329916522a8369f2b94ac99'] = 'Join the 469 000 companies and freelancers relying on Smartsupp';
$_MODULE['<{smartsupp}prestashop>features_9e9a9f11d422e372100a4c07df22f849'] = 'MULTICHANNEL';
diff --git a/smartsupp/translations/es.php b/translations/es.php
similarity index 100%
rename from smartsupp/translations/es.php
rename to translations/es.php
diff --git a/smartsupp/translations/fr.php b/translations/fr.php
similarity index 100%
rename from smartsupp/translations/fr.php
rename to translations/fr.php
diff --git a/smartsupp/translations/hu.php b/translations/hu.php
similarity index 100%
rename from smartsupp/translations/hu.php
rename to translations/hu.php
diff --git a/translations/index.php b/translations/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/translations/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/smartsupp/translations/it.php b/translations/it.php
similarity index 100%
rename from smartsupp/translations/it.php
rename to translations/it.php
diff --git a/smartsupp/translations/nl.php b/translations/nl.php
similarity index 100%
rename from smartsupp/translations/nl.php
rename to translations/nl.php
diff --git a/smartsupp/translations/pl.php b/translations/pl.php
similarity index 100%
rename from smartsupp/translations/pl.php
rename to translations/pl.php
diff --git a/smartsupp/translations/pt.php b/translations/pt.php
similarity index 100%
rename from smartsupp/translations/pt.php
rename to translations/pt.php
diff --git a/smartsupp/translations/sk.php b/translations/sk.php
similarity index 100%
rename from smartsupp/translations/sk.php
rename to translations/sk.php
diff --git a/upgrade/index.php b/upgrade/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/upgrade/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/upgrade/upgrade-2.2.0.php b/upgrade/upgrade-2.2.0.php
new file mode 100644
index 0000000..ebdfb59
--- /dev/null
+++ b/upgrade/upgrade-2.2.0.php
@@ -0,0 +1,37 @@
+
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ * @package Smartsupp
+ * @link http://www.smartsupp.com
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Text Domain: smartsupp
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+use Smartsupp\LiveChat\Utility\VersionUtility;
+
+/**
+ * @param Module $module
+ *
+ * @return bool
+ */
+function upgrade_module_2_2_0($module)
+{
+ if (VersionUtility::isPsVersionGreaterThan('1.6')) {
+ $module->registerHook('displayBackOfficeHeader');
+ $module->unregisterHook('backOfficeHeader');
+ }
+
+ return true;
+}
diff --git a/views/css/index.php b/views/css/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/views/css/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/smartsupp/views/css/smartsupp.css b/views/css/smartsupp.css
similarity index 99%
rename from smartsupp/views/css/smartsupp.css
rename to views/css/smartsupp.css
index 885441a..5b4baa8 100755
--- a/smartsupp/views/css/smartsupp.css
+++ b/views/css/smartsupp.css
@@ -10,7 +10,7 @@
* Plugin Name: Smartsupp Live Chat
* Plugin URI: http://www.smartsupp.com
* Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
+ * Version: 2.2.0
* Author: Smartsupp
* Author URI: http://www.smartsupp.com
* Text Domain: smartsupp
diff --git a/smartsupp/views/img/all-changes-saved.png b/views/img/all-changes-saved.png
similarity index 100%
rename from smartsupp/views/img/all-changes-saved.png
rename to views/img/all-changes-saved.png
diff --git a/smartsupp/views/img/all-done.png b/views/img/all-done.png
similarity index 100%
rename from smartsupp/views/img/all-done.png
rename to views/img/all-done.png
diff --git a/smartsupp/views/img/avatar-grey.png b/views/img/avatar-grey.png
similarity index 100%
rename from smartsupp/views/img/avatar-grey.png
rename to views/img/avatar-grey.png
diff --git a/smartsupp/views/img/chatbot asset.png b/views/img/chatbot asset.png
similarity index 100%
rename from smartsupp/views/img/chatbot asset.png
rename to views/img/chatbot asset.png
diff --git a/smartsupp/views/img/chatbot.png b/views/img/chatbot.png
similarity index 100%
rename from smartsupp/views/img/chatbot.png
rename to views/img/chatbot.png
diff --git a/smartsupp/views/img/dashboard.png b/views/img/dashboard.png
similarity index 100%
rename from smartsupp/views/img/dashboard.png
rename to views/img/dashboard.png
diff --git a/smartsupp/views/img/done.png b/views/img/done.png
similarity index 100%
rename from smartsupp/views/img/done.png
rename to views/img/done.png
diff --git a/smartsupp/views/img/icon-20x20.png b/views/img/icon-20x20.png
similarity index 100%
rename from smartsupp/views/img/icon-20x20.png
rename to views/img/icon-20x20.png
diff --git a/smartsupp/views/img/index.php b/views/img/index.php
similarity index 96%
rename from smartsupp/views/img/index.php
rename to views/img/index.php
index f5356c9..9adc013 100755
--- a/smartsupp/views/img/index.php
+++ b/views/img/index.php
@@ -11,7 +11,7 @@
* Plugin Name: Smartsupp Live Chat
* Plugin URI: http://www.smartsupp.com
* Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
+ * Version: 2.2.0
* Author: Smartsupp
* Author URI: http://www.smartsupp.com
* Text Domain: smartsupp
diff --git a/smartsupp/views/img/insportline.png b/views/img/insportline.png
similarity index 100%
rename from smartsupp/views/img/insportline.png
rename to views/img/insportline.png
diff --git a/smartsupp/views/img/logo.png b/views/img/logo.png
similarity index 100%
rename from smartsupp/views/img/logo.png
rename to views/img/logo.png
diff --git a/smartsupp/views/img/mobile.png b/views/img/mobile.png
similarity index 100%
rename from smartsupp/views/img/mobile.png
rename to views/img/mobile.png
diff --git a/smartsupp/views/img/motorgarten.png b/views/img/motorgarten.png
similarity index 100%
rename from smartsupp/views/img/motorgarten.png
rename to views/img/motorgarten.png
diff --git a/smartsupp/views/img/multichannel.png b/views/img/multichannel.png
similarity index 100%
rename from smartsupp/views/img/multichannel.png
rename to views/img/multichannel.png
diff --git a/smartsupp/views/img/redfox.png b/views/img/redfox.png
similarity index 100%
rename from smartsupp/views/img/redfox.png
rename to views/img/redfox.png
diff --git a/smartsupp/views/img/smartsupp_logo.png b/views/img/smartsupp_logo.png
similarity index 100%
rename from smartsupp/views/img/smartsupp_logo.png
rename to views/img/smartsupp_logo.png
diff --git a/smartsupp/views/img/tablet-screen.png b/views/img/tablet-screen.png
similarity index 100%
rename from smartsupp/views/img/tablet-screen.png
rename to views/img/tablet-screen.png
diff --git a/smartsupp/views/img/travelking.png b/views/img/travelking.png
similarity index 100%
rename from smartsupp/views/img/travelking.png
rename to views/img/travelking.png
diff --git a/views/index.php b/views/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/views/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/views/js/index.php b/views/js/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/views/js/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/smartsupp/views/js/smartsupp.js b/views/js/smartsupp.js
similarity index 93%
rename from smartsupp/views/js/smartsupp.js
rename to views/js/smartsupp.js
index b7a0bcf..0fa803e 100755
--- a/smartsupp/views/js/smartsupp.js
+++ b/views/js/smartsupp.js
@@ -10,7 +10,7 @@
* Plugin Name: Smartsupp Live Chat
* Plugin URI: http://www.smartsupp.com
* Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
+ * Version: 2.2.0
* Author: Smartsupp
* Author URI: http://www.smartsupp.com
* Text Domain: smartsupp
@@ -84,8 +84,8 @@ jQuery(document).ready( function($) {
errMsg = false;
}
else {
- $("div.messages").show();
- $("div.messages span").html(data.message);
+ $("#smartsupp-login-alerts").show();
+ $("#smartsupp-login-alert").html(data.message);
errMsg = true;
}
}
@@ -107,7 +107,7 @@ jQuery(document).ready( function($) {
dataType: 'json',
headers: { "cache-control": "no-cache" },
success: function(data) {
- $("input#smartsupp_key").val(data.key);
+ $("input#smartsupp_key").val(data.key);
$("#smartsupp_configuration p.email").html(data.email);
if (data.error === null) {
$("#smartsupp_create_account .alerts").hide();
diff --git a/smartsupp/views/templates/admin/configuration.tpl b/views/templates/admin/configuration.tpl
similarity index 98%
rename from smartsupp/views/templates/admin/configuration.tpl
rename to views/templates/admin/configuration.tpl
index 7d64b80..e2f7ea1 100755
--- a/smartsupp/views/templates/admin/configuration.tpl
+++ b/views/templates/admin/configuration.tpl
@@ -10,7 +10,7 @@
* Plugin Name: Smartsupp Live Chat
* Plugin URI: http://www.smartsupp.com
* Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
+ * Version: 2.2.0
* Author: Smartsupp
* Author URI: http://www.smartsupp.com
* Text Domain: smartsupp
diff --git a/smartsupp/views/templates/admin/connect_account.tpl b/views/templates/admin/connect_account.tpl
similarity index 92%
rename from smartsupp/views/templates/admin/connect_account.tpl
rename to views/templates/admin/connect_account.tpl
index 5679cf0..9d681a0 100755
--- a/smartsupp/views/templates/admin/connect_account.tpl
+++ b/views/templates/admin/connect_account.tpl
@@ -10,7 +10,7 @@
* Plugin Name: Smartsupp Live Chat
* Plugin URI: http://www.smartsupp.com
* Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
+ * Version: 2.2.0
* Author: Smartsupp
* Author URI: http://www.smartsupp.com
* Text Domain: smartsupp
@@ -39,6 +39,9 @@
{l s='Log in' mod='smartsupp'}
+
diff --git a/smartsupp/views/templates/admin/includes/clients.tpl b/views/templates/admin/includes/clients.tpl
similarity index 100%
rename from smartsupp/views/templates/admin/includes/clients.tpl
rename to views/templates/admin/includes/clients.tpl
diff --git a/smartsupp/views/templates/admin/includes/features.tpl b/views/templates/admin/includes/features.tpl
similarity index 100%
rename from smartsupp/views/templates/admin/includes/features.tpl
rename to views/templates/admin/includes/features.tpl
diff --git a/smartsupp/vendor/composer/index.php b/views/templates/admin/includes/index.php
similarity index 100%
rename from smartsupp/vendor/composer/index.php
rename to views/templates/admin/includes/index.php
diff --git a/views/templates/admin/index.php b/views/templates/admin/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/views/templates/admin/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/smartsupp/views/templates/admin/landing_page.tpl b/views/templates/admin/landing_page.tpl
similarity index 99%
rename from smartsupp/views/templates/admin/landing_page.tpl
rename to views/templates/admin/landing_page.tpl
index 19146dc..e491b43 100755
--- a/smartsupp/views/templates/admin/landing_page.tpl
+++ b/views/templates/admin/landing_page.tpl
@@ -10,7 +10,7 @@
* Plugin Name: Smartsupp Live Chat
* Plugin URI: http://www.smartsupp.com
* Description: Adds Smartsupp Live Chat code to PrestaShop.
- * Version: 2.1.9
+ * Version: 2.2.0
* Author: Smartsupp
* Author URI: http://www.smartsupp.com
* Text Domain: smartsupp
diff --git a/smartsupp/views/templates/front/chat_widget.tpl b/views/templates/front/chat_widget.tpl
similarity index 100%
rename from smartsupp/views/templates/front/chat_widget.tpl
rename to views/templates/front/chat_widget.tpl
diff --git a/smartsupp/vendor/index.php b/views/templates/front/index.php
similarity index 100%
rename from smartsupp/vendor/index.php
rename to views/templates/front/index.php
diff --git a/views/templates/index.php b/views/templates/index.php
new file mode 100644
index 0000000..ed66748
--- /dev/null
+++ b/views/templates/index.php
@@ -0,0 +1,30 @@
+
+ * @link http://www.smartsupp.com
+ * @copyright 2016 Smartsupp.com
+ * @license GPL-2.0+
+ *
+ * Plugin Name: Smartsupp Live Chat
+ * Plugin URI: http://www.smartsupp.com
+ * Description: Adds Smartsupp Live Chat code to PrestaShop.
+ * Version: 2.2.0
+ * Author: Smartsupp
+ * Author URI: http://www.smartsupp.com
+ * Text Domain: smartsupp
+ * License: GPL-2.0+
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
+ */
+
+header('Expires: Mon, 26 Jul 1998 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;