Plugin Directory

Changeset 3440952


Ignore:
Timestamp:
01/16/2026 12:03:42 PM (2 months ago)
Author:
themefic
Message:

2.20.2

Location:
tourfic/trunk
Files:
30 added
2 edited

Legend:

Unmodified
Added
Removed
  • tourfic/trunk/readme.txt

    r3440918 r3440952  
    44Requires at least: 5.4
    55Tested up to: 6.9
    6 Stable tag: 2.20.1
     6Stable tag: 2.20.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    413413== Changelog ==
    414414
     415= 2.20.2 – January 16, 2026 =
     416
     417- Added: Enhanced security feature.
     418
    415419= 2.20.1 – January 16, 2026 =
    416420
    417 - readme.txt Updated
     421- Updated: readme.txt updated
    418422
    419423= 2.20.0 – January 16, 2026 =
     
    430434- Tweak: Improved apartment search functionality.
    431435- Tweak: Booking email sending functionality.
    432 - Fixed: Migrator fatal error.
     436- Fixed: Migrator fatal error. 
    433437- Fixed: Tour price calculation issue.
    434438- Fixed: Offline payment tour voucher issue.
  • tourfic/trunk/tourfic.php

    r3440918 r3440952  
    88 * Text Domain:     tourfic
    99 * Domain Path:     /lang/
    10  * Version:         2.20.1
     10 * Version:         2.20.2
    1111 * Tested up to:    6.9
    1212 * WC tested up to: 10.4
    13  * Requires PHP:    7.4
     13 * Requires PHP:    7.4 
    1414 * Elementor tested up to: 3.33
    1515 * License: GPLv2 or later
     
    2828     */
    2929
    30     const VERSION = '2.20.1';
     30    const VERSION = '2.20.2';
    3131
    3232    /**
     
    5353
    5454    /**
    55      * Main Tourfic Instance.
     55     * Main Tourfic Instance. 
    5656     *
    5757     * Ensures only one instance of Tourfic is loaded or can be loaded.
     
    6868        return self::$_instance;
    6969    }
    70 
     70   
    7171    /**
    7272     * Tourfic Constructor.
     
    7575        include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    7676        $this->define_constants();
     77
     78        require __DIR__ . '/vendor/autoload.php';
    7779
    7880        //Check if WooCommerce is active, and if it isn't, disable the plugin.
     
    130132        require_once TF_PATH . 'autoloader.php';
    131133
     134        // Initialize the appsero
     135        $this->appsero_init_tracker_tourfic();
     136
    132137        if ( class_exists( "\Tourfic\Classes\Base" ) ) {
    133138            \Tourfic\Classes\Base::instance();
     
    148153     * Include required core files used in admin and on the frontend.
    149154     */
    150     public function includes() {
    151         // Classes
    152 //       if ( file_exists( TF_INC_PATH . 'classes.php' ) ) {
    153 //          require_once TF_INC_PATH . 'classes.php';
    154 //       } else {
    155 //          tf_file_missing( TF_INC_PATH . 'classes.php' );
    156 //       }
    157     }
     155    public function includes() {}
    158156
    159157    function tf_load_textdomain() {
     
    176174                <div id="message" class="error">
    177175                    <p>
    178                         <?php
     176                        <?php 
    179177                        /* translators: %1$s is return strong tag %2$s is return closeing of strong tag */
    180178                        printf(esc_html__( 'Tourfic requires %1$s WooCommerce %2$s to be activated.', 'tourfic' ),
     
    250248        }
    251249    }
     250
     251    /**
     252     * Initialize the plugin tracker
     253     *
     254     * @return void
     255     */
     256    public function appsero_init_tracker_tourfic() {
     257
     258        $client = new Appsero\Client( '19134f1b-2838-4a45-ac05-772b7dfc9850', 'Travel and Hotel Booking Solution for WooCommerce - Tourfic', __FILE__ );
     259
     260        // Change Admin notice text
     261        $notice = sprintf( $client->__trans( 'Want to help make <strong>%1$s</strong> even more awesome? Allow %1$s to collect non-sensitive diagnostic data and usage information. I agree to get Important Product Updates & Discount related information on my email from  %1$s (I can unsubscribe anytime).' ), $client->name );
     262        $client->insights()->notice( $notice );
     263
     264        // Active insights
     265        $client->insights()->init();
     266
     267    }
    252268}
    253269
     
    258274    update_option( 'tourfic_template_installed', true );
    259275}
    260 
     276 
    261277//Register activation hook
    262278register_activation_hook( __FILE__, 'tf_active_template_settings_callback' );
Note: See TracChangeset for help on using the changeset viewer.