Plugin Directory

Changeset 1589517


Ignore:
Timestamp:
02/05/2017 08:21:22 PM (9 years ago)
Author:
inveo
Message:

1.5.00

Location:
wp-integration/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-integration/trunk/WebAppsDetector.php

    r1353365 r1589517  
    1010  * @date: 2015-03-28
    1111  * @compatibility: PHP 5 >= 5.0.0
    12   * @version: 1.1.11
     12  * @version: 1.1.12
    1313  */
    1414class WebAppsDetector
     
    3636                            'name' => 'PrestaShop',
    3737                            'abbr' => 'PS',
    38                             'latest' => '1.4.17',
     38                            'latest' => '1.5.00',
    3939                            'path' => 'modules/psthemeprovider',
    4040                            'files' => array('config/settings.inc.php', 'config/defines.inc.php')
  • wp-integration/trunk/readme.txt

    r1483309 r1589517  
    33Tags: ecommerce, e-commerce, commerce, wordpress ecommerce, prestashop, integration, connector, store, sales, sell, shop, shopping, cart, checkout,
    44Requires at least: 2.7
    5 Tested up to: 4.6
    6 Stable tag: 1.4.17
     5Tested up to: 4.7
     6Stable tag: 1.5.00
    77License: LGPLv2.1
    88License URI: http://www.gnu.org/licenses/lgpl-2.1.html
     
    1010== Description ==
    1111
    12 This plugin will **fully integrate** your WordPress **for free** with no compromises into any web application supported by the Theme Provider module.
     12This plugin will **fully integrate** your WordPress with no compromises into any web application supported by the Theme Provider module.
    1313
    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/
    1517
    1618**Live websites:** http://www.inveostore.com/info/featured-websites-6
    1719
    18 Currently supported web apps: **PrestaShop 1.3/1.4/1.5/1.6** (excellent eCommerce store)
     20Currently supported web apps: **PrestaShop 1.3/1.4/1.5/1.6/1.7** (excellent eCommerce store)
    1921
    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.
     22You 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.
    2123
    2224Features:
    2325
    2426* 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)
    2628* 100% compatibility with other WordPress plugins
    2729* Editing of the WordPress or PrestaShop template files not required
    2830* Produces a valid (X)HTML source code
    2931
    30 Support thread (PrestaShop): https://www.prestashop.com/forums/topic/432988-free-module-wordpress-blog-integration-to-prestashop-13141516/?view=getlastpost
     32Support thread (PrestaShop): https://www.prestashop.com/forums/topic/432988-module-wordpress-blog-integration-to-prestashop-13141516/?view=getlastpost
    3133
    3234You 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.
     
    4244= What do I have to install to the PrestaShop? =
    4345
    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.
     46You 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.
    4547
    4648= Where do I have to install WordPress in order to integrate it into the host app (PrestaShop)? =
     
    5355
    5456== Changelog ==
     57
     58= 1.5.00 =
     59* WebAppsDetector class was updated
     60* Theme Provider module was updated to 1.5.00
    5561
    5662= 1.4.17 =
  • wp-integration/trunk/wp-integration.php

    r1353365 r1589517  
    33 *  @package   Theme_Provider_Connector_for_WP
    44 *  @author    Inveo s.r.o. <inqueries@inveoglobal.com>
    5  *  @copyright 2009-2015 Inveo s.r.o.
     5 *  @copyright 2009-2016 Inveo s.r.o.
    66 *  @license   LGPLv2.1
    77 */
     
    1111 * Plugin URI: http://www.inveostore.com
    1212 * Description: Integrates Wordpress to any application with just one simple click.
    13  * Version: 1.4.17
     13 * Version: 1.5.00
    1414 * Author: Inveo s.r.o.
    1515 * Author URI: http://www.inveostore.com
     
    2828
    2929define('THEMEPROVIDER_CONN_LOADED', true);
    30 define('THEMEPROVIDER_CONN_VERSION', '1.4.17');
     30define('THEMEPROVIDER_CONN_VERSION', '1.5.00');
    3131define('THEMEPROVIDER_CONN_REQVERSION', '1.3.00');
    3232define('THEMEPROVIDER_CONN_APP', 'WordPress');
     
    4444if(defined('THEMEPROVIDER_INIT'))
    4545{
    46     class ThemeProviderConnector
    47         extends ThemeProviderConnectorCore
    48             implements ThemeProviderConnectorInterface
    49             {
    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
    5151                {
    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
    7783                {
    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    }
    81116
    82117    if(isset($_GET[strtolower(THEMEPROVIDER_CONN_APP).'_constyle']) && WebAppsDetector::providerIsAdvance())
     
    93128        add_action('admin_init', array('Wpcon', 'admin'));
    94129       
    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(), '<'))
    96131            add_action('admin_notices', array('Wpcon', 'update_found'));
    97132
Note: See TracChangeset for help on using the changeset viewer.