Changeset 1589517
- Timestamp:
- 02/05/2017 08:21:22 PM (9 years ago)
- Location:
- wp-integration/trunk
- Files:
-
- 3 edited
-
WebAppsDetector.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
-
wp-integration.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-integration/trunk/WebAppsDetector.php
r1353365 r1589517 10 10 * @date: 2015-03-28 11 11 * @compatibility: PHP 5 >= 5.0.0 12 * @version: 1.1.1 112 * @version: 1.1.12 13 13 */ 14 14 class WebAppsDetector … … 36 36 'name' => 'PrestaShop', 37 37 'abbr' => 'PS', 38 'latest' => '1. 4.17',38 'latest' => '1.5.00', 39 39 'path' => 'modules/psthemeprovider', 40 40 'files' => array('config/settings.inc.php', 'config/defines.inc.php') -
wp-integration/trunk/readme.txt
r1483309 r1589517 3 3 Tags: ecommerce, e-commerce, commerce, wordpress ecommerce, prestashop, integration, connector, store, sales, sell, shop, shopping, cart, checkout, 4 4 Requires at least: 2.7 5 Tested up to: 4. 66 Stable tag: 1. 4.175 Tested up to: 4.7 6 Stable tag: 1.5.00 7 7 License: LGPLv2.1 8 8 License URI: http://www.gnu.org/licenses/lgpl-2.1.html … … 10 10 == Description == 11 11 12 This plugin will **fully integrate** your WordPress **for free**with no compromises into any web application supported by the Theme Provider module.12 This plugin will **fully integrate** your WordPress with no compromises into any web application supported by the Theme Provider module. 13 13 14 **Demo:** http://demo.inveostore.com/prestashop16/blog/ 14 **Demo (PS 1.7):** http://demo.inveostore.com/prestashop17/blog/ 15 16 **Demo (PS 1.6):** http://demo.inveostore.com/prestashop16/blog/ 15 17 16 18 **Live websites:** http://www.inveostore.com/info/featured-websites-6 17 19 18 Currently supported web apps: **PrestaShop 1.3/1.4/1.5/1.6 ** (excellent eCommerce store)20 Currently supported web apps: **PrestaShop 1.3/1.4/1.5/1.6/1.7** (excellent eCommerce store) 19 21 20 You need to install a free or paid**Theme Provider** [PrestaShop Module](http://www.inveostore.com/wp-theme-providers "PrestaShop Theme Provider module") on your ecommerce website to use this plugin.22 You need to install **Theme Provider** [PrestaShop Module](http://www.inveostore.com/wp-theme-providers "PrestaShop Theme Provider module") on your ecommerce website to use this plugin. 21 23 22 24 Features: 23 25 24 26 * Integrates WordPress to PrestaShop with a simple click 25 * Automatically adjusts WordPress CSS selectors (restricts WordPress styles only to the WordPress )27 * Automatically adjusts WordPress CSS selectors (restricts WordPress styles only to the WordPress elements) 26 28 * 100% compatibility with other WordPress plugins 27 29 * Editing of the WordPress or PrestaShop template files not required 28 30 * Produces a valid (X)HTML source code 29 31 30 Support thread (PrestaShop): https://www.prestashop.com/forums/topic/432988- free-module-wordpress-blog-integration-to-prestashop-13141516/?view=getlastpost32 Support thread (PrestaShop): https://www.prestashop.com/forums/topic/432988-module-wordpress-blog-integration-to-prestashop-13141516/?view=getlastpost 31 33 32 34 You may also like our [WordPress & WooCommerce Accelerator](http://www.wp-accelerator.com/wordpress-woocommerce-accelerator-47?utm_source=webmedia&utm_medium=directory&utm_campaign=Wordpress.org "WordPress & WooCommerce Accelerator") plugin and the [PrestaShop Accelerator](http://www.presta-accelerator.com/prestashop-accelerator-46?utm_source=webmedia&utm_medium=directory&utm_campaign=Wordpress.org "PrestaShop Accelerator") module. … … 42 44 = What do I have to install to the PrestaShop? = 43 45 44 You have to download the [PrestaShop Module](http://www.inveostore.com/wp-theme-providers "PrestaShop Theme Provider module") module created by the same author of this plugin. This module is available in both, free and paid versions.46 You have to download the [PrestaShop Module](http://www.inveostore.com/wp-theme-providers "PrestaShop Theme Provider module") module created by the same author of this plugin. 45 47 46 48 = Where do I have to install WordPress in order to integrate it into the host app (PrestaShop)? = … … 53 55 54 56 == Changelog == 57 58 = 1.5.00 = 59 * WebAppsDetector class was updated 60 * Theme Provider module was updated to 1.5.00 55 61 56 62 = 1.4.17 = -
wp-integration/trunk/wp-integration.php
r1353365 r1589517 3 3 * @package Theme_Provider_Connector_for_WP 4 4 * @author Inveo s.r.o. <inqueries@inveoglobal.com> 5 * @copyright 2009-201 5Inveo s.r.o.5 * @copyright 2009-2016 Inveo s.r.o. 6 6 * @license LGPLv2.1 7 7 */ … … 11 11 * Plugin URI: http://www.inveostore.com 12 12 * Description: Integrates Wordpress to any application with just one simple click. 13 * Version: 1. 4.1713 * Version: 1.5.00 14 14 * Author: Inveo s.r.o. 15 15 * Author URI: http://www.inveostore.com … … 28 28 29 29 define('THEMEPROVIDER_CONN_LOADED', true); 30 define('THEMEPROVIDER_CONN_VERSION', '1. 4.17');30 define('THEMEPROVIDER_CONN_VERSION', '1.5.00'); 31 31 define('THEMEPROVIDER_CONN_REQVERSION', '1.3.00'); 32 32 define('THEMEPROVIDER_CONN_APP', 'WordPress'); … … 44 44 if(defined('THEMEPROVIDER_INIT')) 45 45 { 46 class ThemeProviderConnector47 extends ThemeProviderConnectorCore48 implements ThemeProviderConnectorInterface49 {50 public static function init($parseHtml)46 if(version_compare(THEMEPROVIDER_VERSION, '1.5.00', '>=')) 47 { 48 class ThemeProviderConnector 49 extends ThemeProviderConnectorCore 50 implements ThemeProviderConnectorInterface 51 51 { 52 $options = Wpcon::getOptions(); 53 if(parent::$__revision < 3) 54 return false; 55 56 if(parent::$__revision < 4 && empty($options['apikey'])) 57 return false; 58 59 $path = dirname(dirname($_SERVER['SCRIPT_NAME'])); 60 if(is_admin()) 61 $path = dirname($path); 62 $path = (($path == '/') ? '' : $path).'/'.WebAppsDetector::getPath(); 63 return parent::__core( 64 $path, 65 (string)$options['apikey'], 66 strtolower(THEMEPROVIDER_CONN_APP), 67 (isset($options['internalcss']) ? (bool)$options['internalcss'] : false), 68 (isset($options['externalcss']) ? (bool)$options['externalcss'] : false), 69 $parseHtml, 70 (int)$options['mode'], 71 __CLASS__, 72 (isset($options['experimental']) ? (bool)$options['experimental'] : false) 73 ); 74 } 75 76 public static function attach(&$content) 52 public static function init($parseHtml) 53 { 54 $options = Wpcon::getOptions(); 55 $path = dirname(dirname($_SERVER['SCRIPT_NAME'])); 56 if(is_admin()) 57 $path = dirname($path); 58 $path = (($path == '/') ? '' : $path).'/'.WebAppsDetector::getPath(); 59 return parent::__core( 60 $path, 61 (string)$options['apikey'], 62 strtolower(THEMEPROVIDER_CONN_APP), 63 (isset($options['internalcss']) ? (bool)$options['internalcss'] : false), 64 (isset($options['externalcss']) ? (bool)$options['externalcss'] : false), 65 $parseHtml, 66 (int)$options['mode'], 67 __CLASS__, 68 (isset($options['experimental']) ? (bool)$options['experimental'] : false) 69 ); 70 } 71 72 public static function attach($content) 73 { 74 return parent::__adapt($content); 75 } 76 } 77 } 78 else 79 { 80 class ThemeProviderConnector 81 extends ThemeProviderConnectorCore 82 implements ThemeProviderConnectorInterface 77 83 { 78 return parent::__adapt($content); 79 } 80 } 84 public static function init($parseHtml) 85 { 86 $options = Wpcon::getOptions(); 87 if(parent::$__revision < 3) 88 return false; 89 90 if(parent::$__revision < 4 && empty($options['apikey'])) 91 return false; 92 93 $path = dirname(dirname($_SERVER['SCRIPT_NAME'])); 94 if(is_admin()) 95 $path = dirname($path); 96 $path = (($path == '/') ? '' : $path).'/'.WebAppsDetector::getPath(); 97 return parent::__core( 98 $path, 99 (string)$options['apikey'], 100 strtolower(THEMEPROVIDER_CONN_APP), 101 (isset($options['internalcss']) ? (bool)$options['internalcss'] : false), 102 (isset($options['externalcss']) ? (bool)$options['externalcss'] : false), 103 $parseHtml, 104 (int)$options['mode'], 105 __CLASS__, 106 (isset($options['experimental']) ? (bool)$options['experimental'] : false) 107 ); 108 } 109 110 public static function attach(&$content) 111 { 112 return parent::__adapt($content); 113 } 114 } 115 } 81 116 82 117 if(isset($_GET[strtolower(THEMEPROVIDER_CONN_APP).'_constyle']) && WebAppsDetector::providerIsAdvance()) … … 93 128 add_action('admin_init', array('Wpcon', 'admin')); 94 129 95 if(WebAppsDetector::appFound() && WebAppsDetector::providerFound() && (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' || (isset($_GET['page']) && $_GET['page'] == 'wpcon_plugin'))&& defined('THEMEPROVIDER_VERSION') && version_compare(THEMEPROVIDER_VERSION, WebAppsDetector::getLatest(), '<'))130 if(WebAppsDetector::appFound() && WebAppsDetector::providerFound() && basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && defined('THEMEPROVIDER_VERSION') && version_compare(THEMEPROVIDER_VERSION, WebAppsDetector::getLatest(), '<')) 96 131 add_action('admin_notices', array('Wpcon', 'update_found')); 97 132
Note: See TracChangeset
for help on using the changeset viewer.