Plugin Directory

Changeset 2414070


Ignore:
Timestamp:
11/06/2020 07:55:36 PM (5 years ago)
Author:
wpessential
Message:

07/11/2020 1.0.0.00002

  • Add Contact Form 7 widget.
  • Add MC4WP widget.
  • Add Coldera Form widget.
  • Add WPForms widget.
  • Add Ninja Form widget.
Location:
wpessential
Files:
245 added
10 edited

Legend:

Unmodified
Added
Removed
  • wpessential/trunk/inc/Builders/Elementor/Shortcodes/BlogPost/Post.php

    r2409553 r2414070  
    2626     * Retrieve widget keywords.
    2727     *
    28      * @return array Widget icon.
     28     * @return array Widget keywords.
    2929     * @access public
    3030     * @since 1.0.0
  • wpessential/trunk/inc/Builders/Elementor/Shortcodes/Forms/ContactForm7.php

    r2409384 r2414070  
    99class ContactForm7 extends Base implements Shortcodes
    1010{
     11
    1112    /**
    1213     * Set widget keywords.
     
    2425
    2526    /**
     27     * Whether the reload preview is required or not.
     28     *
     29     * Used to determine whether the reload preview is required.
     30     *
     31     * @return bool Whether the reload preview is required.
     32     * @since 1.0.0
     33     * @access public
     34     *
     35     */
     36    public function is_reload_preview_required ()
     37    {
     38        return true;
     39    }
     40
     41    /**
    2642     * Register widget controls.
    2743     *
     
    3652            'section_1',
    3753            [
    38                 'label' => __( 'Shortcode', 'wpessential-blog-post-pro' )
     54                'label' => __( 'Shortcode', 'wpessential' )
    3955            ]
    4056        );
  • wpessential/trunk/inc/Builders/Elementor/Shortcodes/Forms/FormidableForm.php

    r2409384 r2414070  
    2424
    2525    /**
     26     * Whether the reload preview is required or not.
     27     *
     28     * Used to determine whether the reload preview is required.
     29     *
     30     * @return bool Whether the reload preview is required.
     31     * @since 1.0.0
     32     * @access public
     33     *
     34     */
     35    public function is_reload_preview_required ()
     36    {
     37        return true;
     38    }
     39
     40    /**
    2641     * Register widget controls.
    2742     *
     
    3651            'section_1',
    3752            [
    38                 'label' => __( 'Shortcode', 'wpessential-blog-post-pro' )
     53                'label' => __( 'Shortcode', 'wpessential' )
    3954            ]
    4055        );
  • wpessential/trunk/inc/Builders/Elementor/Utility/Elementor.php

    r2409384 r2414070  
    5454        if ( function_exists( 'load_formidable_forms' ) ) {
    5555            self::$list[ 'FormidableForm' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Forms\FormidableForm';
     56        }
     57        if ( function_exists( 'caldera_forms_load' ) ) {
     58            self::$list[ 'CalderaForm' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Forms\CalderaForm';
     59        }
     60        if ( function_exists( 'ninja_forms_three_table_exists' ) ) {
     61            self::$list[ 'NinjaForm' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Forms\NinjaForm';
     62        }
     63        if ( function_exists( 'wpforms' ) ) {
     64            self::$list[ 'WPForm' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Forms\WPForm';
     65        }
     66        if ( function_exists( '_mc4wp_load_plugin' ) ) {
     67            self::$list[ 'Mc4Wp' ] = 'WPEssential\Plugins\Builders\Elementor\Shortcodes\Forms\Mc4Wp';
    5668        }
    5769    }
  • wpessential/trunk/inc/Helper/SetShortcodeBase.php

    r2409384 r2414070  
    5555    public function set_widget_icon ()
    5656    {
    57         return "";
     57        return "fab fa-wikipedia-w";
    5858    }
    5959
  • wpessential/trunk/inc/Loader.php

    r2409384 r2414070  
    33namespace WPEssential\Plugins;
    44
     5use WPEssential\Plugins\Theme\Setup;
    56use WPEssential\Plugins\Utility\BuildersInit;
    67use WPEssential\Plugins\Utility\Requesting;
     
    5556    public static function autoload ()
    5657    {
    57         $psr = [
    58             'WPEssential\\Plugins\\' => WPE_DIR . 'inc/'
     58        $theme_name = wp_get_theme();
     59        $theme_name = $theme_name->get( 'Name' );
     60        $psr        = [
     61            'WPEssential\\Plugins\\'                        => WPE_DIR . 'inc/',
     62            "WPEssential\\Theme\\{$theme_name}\\" => get_template_directory() . '/inc/',
    5963        ];
    6064
     
    8185        RegisterAssets::constructor();
    8286        Enqueue::constructor();
     87        Setup::constructor();
    8388    }
    8489
     
    8893        BuildersInit::constructor();
    8994        load_plugin_textdomain( 'wpessential', false, WPE_DIR . 'language' );
    90         self::add_image_sizes();
    9195    }
    9296
     
    102106        return $boolean;
    103107    }
    104 
    105     public static function add_image_sizes ()
    106     {
    107         $size = apply_filters( 'wpe/images/sizing', [] );
    108         foreach ( $size as $name => $value ) {
    109             add_image_size( $name, $value[ 0 ], $value[ 1 ], true );
    110         }
    111     }
    112108}
  • wpessential/trunk/inc/Utility/Enqueue.php

    r2409384 r2414070  
    3434
    3535        $list = [
     36            'jquery',
    3637            'wpessential'
    3738        ];
     
    7071        $localization = [
    7172            'ajaxurl'   => admin_url( 'admin-ajax.php' ),
    72             'weburl'    => WPE_URL,
     73            'web_plug'  => WPE_URL,
    7374            'nonce'     => wp_create_nonce( 'wpe_request_nonce' ),
    74             'ajaxshort' => '/wp-admin/admin-ajax.php'
     75            'ajaxshort' => '/wp-admin/admin-ajax.php',
     76            'root'      => home_url( '/' ),
    7577        ];
    76         $localization = apply_filters( 'wpe_loco', $localization );
    77         $localization = json_encode( $localization );
    78         ?>
    79         <script id="wpessential-localization">
    80             var WPEssential = <?php echo $localization; ?>;
    81         </script>
    82         <?php
    83         //wp_localize_script( 'jquery', 'WPEssential', $localization );
     78        $localization = apply_filters( 'wpe/localization', $localization );
     79        wp_localize_script( 'jquery', 'WPEssential', $localization );
    8480    }
    8581
  • wpessential/trunk/inc/query-functions.php

    r2409384 r2414070  
    1919    }
    2020}
     21
     22/**
     23 * Get an array of posts.
     24 *
     25 * @return array
     26 * @since  1.0.0.00002
     27 */
     28if ( ! function_exists( 'wpe_caldera_table_query' ) ) {
     29    function wpe_caldera_table_query ()
     30    {
     31        global $wpdb;
     32        $results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}cf_forms WHERE %d", [ 1 ] ) );
     33        $data    = [];
     34        foreach ( $results as $result ) {
     35            $data[ $result->form_id ] = unserialize( $result->config )[ 'name' ];
     36        }
     37
     38        return apply_filters( 'wpe_caldera_table_query', $data );
     39    }
     40}
     41
     42
     43/**
     44 * Get an array of posts.
     45 *
     46 * @return array
     47 * @since  1.0.0.00002
     48 */
     49if ( ! function_exists( 'wpe_ninja_table_query' ) ) {
     50    function wpe_ninja_table_query ()
     51    {
     52        global $wpdb;
     53        $results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}nf3_forms WHERE %d", [ 1 ] ) );
     54        $data    = [];
     55        foreach ( $results as $result ) {
     56            $data[ $result->id ] = $result->title;
     57        }
     58
     59        return apply_filters( 'wpe_ninja_table_query', $data );
     60    }
     61}
  • wpessential/trunk/readme.txt

    r2409553 r2414070  
    88WC requires at least: 4.0
    99WC tested up to: 4.5
    10 Stable tag: 1.0.0.00001
     10Stable tag: 1.0.0.00002
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2222- [WordPress](https://codex.wordpress.org/Shortcode_API/)
    2323- [Elementor](https://wordpress.org/plugins/elementor/)
     24
     25== Supported Forms ==
     26- [Coldera Form](https://wordpress.org/plugins/caldera-forms/)
     27- [WPForms](https://wordpress.org/plugins/wpforms-lite/)
     28- [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
     29- [Ninja Form](https://wordpress.org/plugins/ninja-forms/)
     30- [MC4WP](https://wordpress.org/plugins/mailchimp-for-wp/)
    2431
    2532
     
    4047== Changelog ==
    4148
     49= 07/11/2020 1.0.0.00002 =
     50- Add Contact Form 7 widget.
     51- Add MC4WP widget.
     52- Add Coldera Form widget.
     53- Add WPForms widget.
     54- Add Ninja Form widget.
     55
    4256= 30/10/2020 1.0.0.00001 =
    4357- Fix Blog post already class exist error
  • wpessential/trunk/wpessential.php

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