Plugin Directory

Changeset 3184380


Ignore:
Timestamp:
11/08/2024 11:53:42 AM (17 months ago)
Author:
futuriowp
Message:

v2.0.14

Location:
futurio-extra/tags/2.0.14
Files:
1 edited
34 copied

Legend:

Unmodified
Added
Removed
  • futurio-extra/tags/2.0.14/futurio-extra.php

    r3160266 r3184380  
    44 * Plugin URI: https://futuriowp.com/
    55 * Description: Extra addon for Futurio Theme
    6  * Version: 2.0.13
     6 * Version: 2.0.14
    77 * Author: FuturioWP
    88 * Author URI: https://futuriowp.com/
     
    1010 * WC requires at least: 3.3.0
    1111 * WC tested up to: 9.4
    12  * Elementor tested up to: 3.24.0
     12 * Elementor tested up to: 3.25.0
    1313 */
    1414// Exit if accessed directly.
  • futurio-extra/tags/2.0.14/inc/demo/demos.php

    r3069523 r3184380  
    17841784       
    17851785        public function ajax_activate_theme() {
    1786             if (!current_user_can('manage_options') || !wp_verify_nonce(sanitize_text_field( wp_unslash( $_POST['futurio_import_demo_data_nonce'])), 'futurio_import_demo_data_nonce')) {
    1787                 die('This action was stopped for security purposes.');
    1788             }
    1789             $this->tbfe_plugin_fire();
     1786            if ( !current_user_can( 'manage_options' ) || !wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST[ 'futurio_import_demo_data_nonce' ] ) ), 'futurio_import_demo_data_nonce' ) ) {
     1787                    die( 'This action was stopped for security purposes.' );
     1788                }
     1789                $result = '';
     1790               
     1791                // Get the selected demo
     1792                if ( isset( $_POST[ 'futurio_import_demo' ] ) ) {
     1793                    $demo_type = sanitize_text_field( wp_unslash( $_POST[ 'futurio_import_demo' ] ) );
     1794                }
     1795
     1796                // Get demos data
     1797                $demo = FuturioWP_Demos::get_demos_data()[ $demo_type ];
     1798
     1799                // Settings file
     1800                $theme_settings = isset( $demo[ 'theme_settings' ] ) ? $demo[ 'theme_settings' ] : '';
     1801                $required_theme  = isset( $demo[ 'required_theme' ] ) ? $demo[ 'required_theme' ] : '';
     1802                $required_theme = str_replace(' ', '-', strtolower($required_theme));
     1803
     1804                require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     1805                include_once ABSPATH . 'wp-admin/includes/theme.php';
     1806
     1807                $api = themes_api(
     1808                    'theme_information', array(
     1809                        'slug'   => $required_theme,
     1810                        'fields' => array( 'sections' => false ),
     1811                    )
     1812                );
     1813
     1814                if ( is_wp_error( $api ) ) {
     1815                    $status[ 'errorMessage' ] = $api->get_error_message();
     1816                    wp_send_json_error( $status );
     1817                }
     1818
     1819                $skin        = new WP_Ajax_Upgrader_Skin();
     1820                $upgrader    = new Theme_Upgrader( $skin );
     1821                $result      = $upgrader->install( $api->download_link );
     1822
     1823
     1824                // Include settings importer
     1825                include FE_PATH . 'classes/importers/class-settings-importer.php';
     1826
     1827                switch_theme( $required_theme );
     1828
     1829                // Import settings.
     1830                $settings_importer   = new FWP_Settings_Importer();
     1831                $result              = $settings_importer->process_import_file( $theme_settings );
     1832
     1833                if ( is_wp_error( $result ) ) {
     1834                    echo json_encode( $result->errors );
     1835                } else {
     1836                    echo 'successful import';
     1837                }
     1838                die();
    17901839        }
    17911840       
  • futurio-extra/tags/2.0.14/inc/elementor/shortcode.php

    r2976979 r3184380  
    4242        }
    4343        if (empty($attributes['id'])) {
     44            return '';
     45        }
     46        if (get_post_status ($attributes['id']) != 'publish') {
    4447            return '';
    4548        }
  • futurio-extra/tags/2.0.14/readme.txt

    r3160266 r3184380  
    44Plugin URL: https://futuriowp.com/
    55Requires at Least: 4.4
    6 Tested Up To: 6.6
    7 Stable tag: 2.0.13
     6Tested Up To: 6.7
     7Stable tag: 2.0.14
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414== Description ==
    1515
    16 Futurio Extra add extra features and options to [Futurio](https://futuriowp.com/) theme.
    17 This plugin require the free WP theme - [Futurio](https://wordpress.org/themes/futurio/) - to be installed.
     16Futurio Extra add extra features and options to [Futurio](https://futuriowp.com/) and [Futurio Storefront](https://wordpress.org/themes/futurio-storefront/) theme.
     17This plugin require the free WP theme - [Futurio](https://wordpress.org/themes/futurio/) or [Futurio Storefront](https://wordpress.org/themes/futurio-storefront/) - to be installed.
    1818
    1919Futurio Extra brings new widgets to be used in Elementor and allows you to import beautiful page templates for Elementor page builder. It also comes with 100% WooCommerce support and custom options. With the one click demo import feature you can import all our 10+ demo sites.
     
    5656= I installed the plugin but it does not work =
    5757
    58 This plugin will only work with the [Futurio](https://futuriowp.com/) theme.
     58This plugin will only work with the [Futurio](https://futuriowp.com/) or [Futurio Storefront](https://wordpress.org/themes/futurio-storefront/) theme.
    5959
    6060== Changelog ==
     61
     62= 2.0.14 =
     63* Tested with Elementor 3.25
     64* Tested with WP 6.7
     65* Tested with WooCommerce 9.4
     66* Security update
     67* Updated demo importer
    6168
    6269= 2.0.13 =
Note: See TracChangeset for help on using the changeset viewer.