Plugin Directory

Changeset 2415245


Ignore:
Timestamp:
11/09/2020 03:36:01 PM (5 years ago)
Author:
wpessential
Message:

09/11/2020 1.0.0.00003

  • Add Layer Slider widget.
  • Add Master Slider widget.
  • Add Revolution Slider widget.
  • Add Smart Slider widget.
  • Add WooCommerce Cart widget.
  • Add WooCommerce Categories widget.
  • Add WooCommerce My Account widget.
  • Add WooCommerce Order Track widget.
  • Add WooCommerce Products widget.
  • Add WooCommerce Product Single widget.
Location:
wpessential
Files:
234 added
4 edited

Legend:

Unmodified
Added
Removed
  • wpessential/trunk/inc/Builders/Elementor/Utility/Elementor.php

    r2414070 r2415245  
    3535        );
    3636        self::register_form_widget();
     37        self::register_slider_widget();
     38        self::register_woo_widget();
    3739
    3840        if ( ! self::$list ) {
     
    6668        if ( function_exists( '_mc4wp_load_plugin' ) ) {
    6769            self::$list[ 'Mc4Wp' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Forms\Mc4Wp';
     70        }
     71    }
     72
     73    public static function register_slider_widget ()
     74    {
     75        if ( class_exists( 'LS_Shortcode' ) ) {
     76            self::$list[ 'LayerSlider' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Slider\LayerSlider';
     77        }
     78        if ( class_exists( 'Master_Slider' ) ) {
     79            self::$list[ 'MasterSlider' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Slider\MasterSlider';
     80        }
     81        if ( class_exists( 'RevSliderFront' ) ) {
     82            self::$list[ 'RevolutionSlider' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Slider\RevolutionSlider';
     83        }
     84        if ( class_exists( 'Master_Slider' ) ) {
     85            self::$list[ 'SmartSlider' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Slider\SmartSlider';
     86        }
     87    }
     88
     89    public static function register_woo_widget ()
     90    {
     91        if ( function_exists( 'WC' ) ) {
     92            self::$list[ 'Cart' ]          = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\WooCommerce\Cart';
     93            self::$list[ 'Categories' ]    = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\WooCommerce\Categories';
     94            self::$list[ 'MyAccount' ]     = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\WooCommerce\MyAccount';
     95            self::$list[ 'OrderTrack' ]    = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\WooCommerce\OrderTrack';
     96            self::$list[ 'Products' ]      = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\WooCommerce\Products';
     97            self::$list[ 'ProductSingle' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\WooCommerce\ProductSingle';
    6898        }
    6999    }
  • wpessential/trunk/inc/query-functions.php

    r2414070 r2415245  
    4040}
    4141
    42 
    4342/**
    4443 * Get an array of posts.
     
    6059    }
    6160}
     61
     62/**
     63 * Get an array of posts.
     64 *
     65 * @return array
     66 * @since  1.0.0.00003
     67 */
     68if ( ! function_exists( 'wpe_layer_slider_table_query' ) ) {
     69    function wpe_layer_slider_table_query ()
     70    {
     71        global $wpdb;
     72        $results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}layerslider WHERE %d", [ 1 ] ) );
     73        $data    = [];
     74        foreach ( $results as $result ) {
     75            $data[ $result->id ] = $result->name;
     76        }
     77
     78        return apply_filters( 'wpe_layer_slider_table_query', $data );
     79    }
     80}
     81
     82/**
     83 * Get an array of posts.
     84 *
     85 * @return array
     86 * @since  1.0.0.00003
     87 */
     88if ( ! function_exists( 'wpe_layer_slider_table_query' ) ) {
     89    function wpe_layer_slider_table_query ()
     90    {
     91        global $wpdb;
     92        $results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}masterslider_sliders WHERE %d", [ 1 ] ) );
     93        $data    = [];
     94        foreach ( $results as $result ) {
     95            $data[ $result->ID ] = $result->title;
     96        }
     97
     98        return apply_filters( 'wpe_layer_slider_table_query', $data );
     99    }
     100}
     101
     102/**
     103 * Get an array of posts.
     104 *
     105 * @return array
     106 * @since  1.0.0.00003
     107 */
     108if ( ! function_exists( 'wpe_rev_slider_table_query' ) ) {
     109    function wpe_rev_slider_table_query ()
     110    {
     111        global $wpdb;
     112        $results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}revslider_sliders WHERE %d", [ 1 ] ) );
     113        $data    = [];
     114        foreach ( $results as $result ) {
     115            $data[ $result->alias ] = $result->title;
     116        }
     117
     118        return apply_filters( 'wpe_rev_slider_table_query', $data );
     119    }
     120}
     121/**
     122 * Get an array of posts.
     123 *
     124 * @return array
     125 * @since  1.0.0.00003
     126 */
     127if ( ! function_exists( 'wpe_smart_slider_table_query' ) ) {
     128    function wpe_smart_slider_table_query ()
     129    {
     130        global $wpdb;
     131        $results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}nextend2_smartslider3_sliders WHERE %d", [ 1 ] ) );
     132        $data    = [];
     133        foreach ( $results as $result ) {
     134            $data[ $result->id ] = $result->title;
     135        }
     136
     137        return apply_filters( 'wpe_smart_slider_table_query', $data );
     138    }
     139}
  • wpessential/trunk/readme.txt

    r2414070 r2415245  
    88WC requires at least: 4.0
    99WC tested up to: 4.5
    10 Stable tag: 1.0.0.00002
     10Stable tag: 1.0.0.00003
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3030- [MC4WP](https://wordpress.org/plugins/mailchimp-for-wp/)
    3131
     32== Supported Slider ==
     33- [Layer Slider](https://layerslider.kreaturamedia.com/)
     34- [Master Slider](https://wordpress.org/plugins/master-slider/)
     35- [Revolution Slider](https://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380?ref=WPEssential)
     36- [Smart Slider](https://wordpress.org/plugins/smart-slider-3/)
     37
     38== Supported WooCommerce ==
     39- [WooCommerce](https://wordpress.org/plugins/woocommerce/)
     40
    3241
    3342== Installation ==
     
    4655
    4756== Changelog ==
     57
     58= 09/11/2020 1.0.0.00003 =
     59- Add Layer Slider widget.
     60- Add Master Slider widget.
     61- Add Revolution Slider widget.
     62- Add Smart Slider widget.
     63- Add WooCommerce Cart widget.
     64- Add WooCommerce Categories widget.
     65- Add WooCommerce My Account widget.
     66- Add WooCommerce Order Track widget.
     67- Add WooCommerce Products widget.
     68- Add WooCommerce Product Single widget.
    4869
    4970= 07/11/2020 1.0.0.00002 =
  • wpessential/trunk/wpessential.php

    r2414070 r2415245  
    55 * Plugin URI: https://wp.wpessential.org/plugins/wpessential/
    66 * Author: WPEssential
    7  * Version: 1.0.0.00002
     7 * Version: 1.0.0.00003
    88 * Author URI: https://wpessential.org/
    99 * Text Domain: wpessential
Note: See TracChangeset for help on using the changeset viewer.