Plugin Directory

Changeset 2045406


Ignore:
Timestamp:
03/06/2019 05:04:53 PM (7 years ago)
Author:
zebrasoft
Message:

Update for 1.2.9

Location:
immotoolbox-connect/trunk
Files:
1072 added
5 edited

Legend:

Unmodified
Added
Removed
  • immotoolbox-connect/trunk/admin/ITBConnectAdmin.php

    r2028439 r2045406  
    1313    public function gutenberg_boilerplate_block ()
    1414    {
    15         if (version_compare('7.0', phpversion()) > 0) return null;
     15        if (version_compare('5.6', phpversion()) > 0) return null;
    1616
    1717        wp_register_script(
     
    2323            plugins_url( 'css/editor.css', __FILE__ ),
    2424            array( 'wp-edit-blocks' ),
    25             filemtime( plugins_url( 'css/editor.css', __FILE__ ) )
     25            filemtime( __DIR__.'/css/editor.css')
    2626        );
    2727
     
    4444        );
    4545
    46         if (version_compare('7.0', phpversion()) < 0) {
     46        if (version_compare('5.6', phpversion()) < 0) {
    4747            add_submenu_page('itbconnect',
    4848                __('Clear cache', 'itbconnect'),
     
    6161    public function adminLayout()
    6262    {
    63 
    64         if (version_compare('7.0', phpversion()) > 0) {
    65             echo '<p>'.sprintf(__( 'This plugin requires a version of PHP greater than 7.0 (you have PHP %s version)', 'itbconnect' ), phpversion()).'</p>';
     63        if (version_compare('5.6', phpversion()) > 0) {
     64            echo '<p>'.sprintf(__( 'This plugin requires a version of PHP greater than 5.6 (you have PHP %s version)', 'itbconnect' ), phpversion()).'</p>';
    6665            return;
    6766        }
  • immotoolbox-connect/trunk/immotoolbox-connect.php

    r2039066 r2045406  
    44Plugin URI: https://www.immotoolbox.com/
    55Description: Displays ImmoToolBox real estate listings in your website
    6 Version: 1.2.8
     6Version: 1.2.9
    77Author: ZebraSoft Monaco
    88Author URI: https://www.zebrasoft.mc
     
    4040 */
    4141define('ITBCONNECT_OPTION_NAME', 'itbconnect_data');
    42 
    43 require_once __DIR__.'/includes/vendor/autoload.php';
     42if (version_compare('7.0', phpversion()) > 0) {
     43    require_once __DIR__.'/includeslegacy/vendor/autoload.php';
     44}
     45else {
     46    require_once __DIR__.'/includes/vendor/autoload.php';
     47}
    4448require_once __DIR__.'/includes/ITBConnect.php';
    4549
  • immotoolbox-connect/trunk/public/ITBConnectPublic.php

    r2028672 r2045406  
    186186            'debug'=>true
    187187        ]);
    188         $filter_trans = new Twig_Filter('trans', function ($string, $params=[], $domain='default') {
     188        $filter_trans = new Twig_SimpleFilter('trans', function ($string, $params=[], $domain='default') {
    189189            if ($params) {
    190190                return vsprintf(__($string, $domain), $params);
     
    193193        });
    194194        $twig->addFilter($filter_trans);
    195         $twig->addFunction(new Twig_Function('__', function ($string, $domain='default', $params=[]) {
     195        $twig->addFunction(new Twig_SimpleFunction('__', function ($string, $domain='default', $params=[]) {
    196196            if ($params) {
    197197                return vsprintf(__($string, $domain), $params);
     
    227227    public function listing($atts = [])
    228228    {
    229         if (version_compare('7.0', phpversion()) > 0) return '';
     229        if (version_compare('5.6', phpversion()) > 0) return '';
    230230
    231231        $option = get_option(ITBCONNECT_OPTION_NAME, array());
     
    250250    public function selection($atts = [])
    251251    {
    252         if (version_compare('7.0', phpversion()) > 0) return '';
     252        if (version_compare('5.6', phpversion()) > 0) return '';
    253253
    254254        $option = get_option(ITBCONNECT_OPTION_NAME, array());
     
    282282    public function carousel($atts = [], $content = null, $tag = '')
    283283    {
    284         if (version_compare('7.0', phpversion()) > 0) return '';
     284        if (version_compare('5.6', phpversion()) > 0) return '';
    285285
    286286        $option = get_option(ITBCONNECT_OPTION_NAME, array());
     
    369369    public function property($atts = [], $content = null, $tag = '')
    370370    {
    371         if (version_compare('7.0', phpversion()) > 0) return '';
     371        if (version_compare('5.6', phpversion()) > 0) return '';
    372372
    373373        $option = get_option(ITBCONNECT_OPTION_NAME, array());
     
    411411    public function agencies($atts = [], $content = null, $tag = '')
    412412    {
    413         if (version_compare('7.0', phpversion()) > 0) return '';
     413        if (version_compare('5.6', phpversion()) > 0) return '';
    414414
    415415        if (!is_array($atts)) $atts = [];
     
    446446    public function contact($atts = [], $content = null, $tag = '')
    447447    {
    448         if (version_compare('7.0', phpversion()) > 0) return '';
     448        if (version_compare('5.6', phpversion()) > 0) return '';
    449449
    450450        if (!is_array($atts)) $atts = [];
     
    492492    public function search($atts = [], $content =null, $tag = '')
    493493    {
    494         if (version_compare('7.0', phpversion()) > 0) return '';
     494        if (version_compare('5.6', phpversion()) > 0) return '';
    495495
    496496        if (!is_array($atts)) $atts = [];
     
    563563    public function searchresults($atts = [], $content =null, $tag = '')
    564564    {
    565         if (version_compare('7.0', phpversion()) > 0) return '';
     565        if (version_compare('5.6', phpversion()) > 0) return '';
    566566
    567567        if (!$atts) $atts = [];
     
    584584    public function value($atts = [], $content = null)
    585585    {
    586         if (version_compare('7.0', phpversion()) > 0) return '';
     586        if (version_compare('5.6', phpversion()) > 0) return '';
    587587
    588588        if (!is_array($atts)) $atts = [];
  • immotoolbox-connect/trunk/readme.md

    r2040705 r2045406  
    55Requires at least: 4.9
    66Tested up to: 5.1
    7 Requires PHP: 7.0
    8 Stable tag: 1.2.8
     7Requires PHP: 5.6
     8Stable tag: 1.2.9
    99License: GPL3
    1010License URI: https://www.gnu.org/licenses/gpl.html
     
    3838* Image for french DPE information
    3939* Update french translations
    40 * PHP version check
     40* PHP version check (+5.6 version min. required)
    4141* PDF Link in property details
    4242
  • immotoolbox-connect/trunk/readme.txt

    r2040705 r2045406  
    55Requires at least: 4.9
    66Tested up to: 5.1
    7 Requires PHP: 7.0
    8 Stable tag: 1.2.8
     7Requires PHP: 5.9
     8Stable tag: 1.2.9
    99License: GPL3
    1010License URI: https://www.gnu.org/licenses/gpl.html
     
    3838* Image for french DPE information
    3939* Update french translations
    40 * PHP version check
     40* PHP version check (+5.6 version min. required)
    4141* PDF Link in property details
    4242
Note: See TracChangeset for help on using the changeset viewer.