Plugin Directory

Changeset 2437931


Ignore:
Timestamp:
12/12/2020 01:31:40 PM (5 years ago)
Author:
metricthemes
Message:

Changelog

1.0.6

  • Addded elementor template kit option
Location:
munk-sites
Files:
50 added
3 edited

Legend:

Unmodified
Added
Removed
  • munk-sites/trunk/classess/class-ajax.php

    r2182489 r2437931  
    564564                $this->_import_widgets( $customize_data['widgets'] );
    565565            }
     566           
     567            $this->_import_elementor_template_kit(); // update elementor_active_kit
    566568        }
    567569
     
    675677
    676678    }
     679   
     680    /**
     681     * Import widgets
     682     */
     683    function _import_elementor_template_kit() {
     684       
     685        // bail if elementor is not installed
     686        if ( ! did_action( 'elementor/loaded' ) ) {         
     687            return false;
     688        }                   
     689       
     690        // find imported template kit and update elementor_active_kit option               
     691        $args = array(           
     692            'fields'      => 'ids', // Only get post IDs
     693            'post_type'   => 'elementor_library',
     694            'post_status' => 'publish',
     695            'numberposts' => 1,
     696            'meta_query'  => array(
     697                array(
     698                    'key'   => '_munk_sites_imported_post',
     699                    'value' => '1',
     700                ),
     701                array(
     702                    'key'   => '_elementor_template_type',
     703                    'value' => 'kit',
     704                ),
     705            ),           
     706        );
     707        $query = get_posts( $args );                       
     708
     709        if ( ! empty( $query ) && isset( $query[0] ) ) {                       
     710            update_option( 'elementor_active_kit', $query[0] );     
     711        }           
     712       
     713    }
    677714
    678715
  • munk-sites/trunk/munk-sites.php

    r2401611 r2437931  
    2424 * Plugin URI:        https://wpmunk.com/instant-sites/
    2525 * Description:       Ready to use instant sites built for Elementor Page Builder,the WordPress Gutenberg Editor and Beaver Builder. Import free designs with one click and get started with amazing website.
    26  * Version:           1.0.5
     26 * Version:           1.0.6
    2727 * Author:            MetricThemes
    2828 * Author URI:        https://wpmunk.com
     
    3434
    3535
    36 define( 'MUNK_SITES_VERSION', '1.0.5' );
     36define( 'MUNK_SITES_VERSION', '1.0.6' );
    3737define( 'MUNK_SITES_URL', untrailingslashit( plugins_url(  '', __FILE__ ) ) );
    3838define( 'MUNK_SITES_PATH',dirname( __FILE__ ) );
  • munk-sites/trunk/readme.txt

    r2401611 r2437931  
    77Tested up to: 5.5
    88Requires PHP: 5.6
    9 Stable tag: 1.0.5
     9Stable tag: 1.0.6
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    154154
    155155== Changelog ==
     156= 1.0.6 =
     157* Addded elementor template kit option
     158
    156159= 1.0.5 =
    157160* Fixed license check for pro version
Note: See TracChangeset for help on using the changeset viewer.