Plugin Directory

Changeset 3270815


Ignore:
Timestamp:
04/11/2025 06:17:50 AM (12 months ago)
Author:
themebeez
Message:

Update to version 1.3.3 from GitHub

Location:
themebeez-toolkit
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • themebeez-toolkit/tags/1.3.3/includes/class-themebeez-toolkit.php

    r3212913 r3270815  
    170170        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
    171171        $this->loader->add_action( 'wp_dashboard_setup', $plugin_admin, 'register_dashboard_widget' );
     172
     173        $current_active_theme = wp_get_theme();
     174
     175        if (
     176            'orchid-store' === $current_active_theme->get( 'TextDomain' ) ||
     177            'orchid-store' === $current_active_theme->get( 'Template' )
     178        ) {
     179
     180            require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-walker-filter.php';
     181
     182            require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-nav-walker.php';
     183
     184            add_filter(
     185                'wp_nav_menu_args',
     186                function ( $args ) {
     187
     188                    return array_merge(
     189                        $args,
     190                        array(
     191                            'walker' => new Simple_Mega_Menu_Nav_Walker(),
     192                        )
     193                    );
     194                }
     195            );
     196        }
    172197    }
    173198
  • themebeez-toolkit/tags/1.3.3/includes/functions.php

    r3212913 r3270815  
    9494
    9595        require_once plugin_dir_path( __FILE__ ) . 'theme-info/configs/' . $theme_text_domain . '-config.php';
    96 
    97         if (
    98             'orchid-store' === $theme_text_domain ||
    99             themebeez_toolkit_template_name() === 'orchid-store'
    100         ) {
    101 
    102             require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-walker-filter.php';
    103 
    104             require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-nav-walker.php';
    105 
    106             add_filter(
    107                 'wp_nav_menu_args',
    108                 function ( $args ) {
    109 
    110                     return array_merge(
    111                         $args,
    112                         array(
    113                             'walker' => new Simple_Mega_Menu_Nav_Walker(),
    114                         )
    115                     );
    116                 }
    117             );
    118         }
    11996    }
    12097}
  • themebeez-toolkit/tags/1.3.3/readme.txt

    r3214797 r3270815  
    55Requires at least: 5.6
    66Requires PHP: 7.4
    7 Tested up to: 6.7.1
    8 Stable tag: 1.3.2
     7Tested up to: 6.7.2
     8Stable tag: 1.3.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8686
    8787== Changelog ==
     88
     89= 1.3.3 - 11 April, 2025 =
     90- Updated: Simple mega menu support for child theme for Orchid Store.
    8891
    8992= 1.3.2 - 30 December, 2024 =
  • themebeez-toolkit/tags/1.3.3/themebeez-toolkit.php

    r3214797 r3270815  
    44 * Plugin URI:        https://wordpress.org/plugins/themebeez-toolkit/
    55 * Description:       A essential toolkit for themes made by www.themebeez.com. This plugin extends themes made by themebeez & adds functionality to import demo data in just a click.
    6  * Version:           1.3.2
     6 * Version:           1.3.3
    77 * Requires at least: 5.6
    88 * Requires PHP:      7.4
    9  * Tested up to:      6.7.1
     9 * Tested up to:      6.7.2
    1010 * Author:            themebeez
    1111 * Author URI:        https://themebeez.com
     
    2828 * Rename this for your plugin and update it as you release new versions.
    2929 */
    30 define( 'THEMEBEEZTOOLKIT_VERSION', '1.3.2' );
     30define( 'THEMEBEEZTOOLKIT_VERSION', '1.3.3' );
    3131
    3232// Define THEMEBEEZTOOLKIT_PLUGIN_FILE.
     
    106106$themes = themebeez_toolkit_theme_array();
    107107
    108 if ( $theme->get( 'Author' ) === 'themebeez' && in_array( $theme->get( 'TextDomain' ), $themes, true ) ) {
     108
     109if (
     110    $theme->get( 'Author' ) === 'themebeez' &&
     111    ( in_array( $theme->get( 'TextDomain' ), $themes, true ) || in_array( themebeez_toolkit_template_name(), $themes, true ) )
     112) {
    109113
    110114    // Global for backwards compatibility.
  • themebeez-toolkit/trunk/includes/class-themebeez-toolkit.php

    r3212913 r3270815  
    170170        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
    171171        $this->loader->add_action( 'wp_dashboard_setup', $plugin_admin, 'register_dashboard_widget' );
     172
     173        $current_active_theme = wp_get_theme();
     174
     175        if (
     176            'orchid-store' === $current_active_theme->get( 'TextDomain' ) ||
     177            'orchid-store' === $current_active_theme->get( 'Template' )
     178        ) {
     179
     180            require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-walker-filter.php';
     181
     182            require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-nav-walker.php';
     183
     184            add_filter(
     185                'wp_nav_menu_args',
     186                function ( $args ) {
     187
     188                    return array_merge(
     189                        $args,
     190                        array(
     191                            'walker' => new Simple_Mega_Menu_Nav_Walker(),
     192                        )
     193                    );
     194                }
     195            );
     196        }
    172197    }
    173198
  • themebeez-toolkit/trunk/includes/functions.php

    r3212913 r3270815  
    9494
    9595        require_once plugin_dir_path( __FILE__ ) . 'theme-info/configs/' . $theme_text_domain . '-config.php';
    96 
    97         if (
    98             'orchid-store' === $theme_text_domain ||
    99             themebeez_toolkit_template_name() === 'orchid-store'
    100         ) {
    101 
    102             require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-walker-filter.php';
    103 
    104             require_once plugin_dir_path( __FILE__ ) . 'simple-mega-menu/class-simple-mega-menu-nav-walker.php';
    105 
    106             add_filter(
    107                 'wp_nav_menu_args',
    108                 function ( $args ) {
    109 
    110                     return array_merge(
    111                         $args,
    112                         array(
    113                             'walker' => new Simple_Mega_Menu_Nav_Walker(),
    114                         )
    115                     );
    116                 }
    117             );
    118         }
    11996    }
    12097}
  • themebeez-toolkit/trunk/readme.txt

    r3214797 r3270815  
    55Requires at least: 5.6
    66Requires PHP: 7.4
    7 Tested up to: 6.7.1
    8 Stable tag: 1.3.2
     7Tested up to: 6.7.2
     8Stable tag: 1.3.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8686
    8787== Changelog ==
     88
     89= 1.3.3 - 11 April, 2025 =
     90- Updated: Simple mega menu support for child theme for Orchid Store.
    8891
    8992= 1.3.2 - 30 December, 2024 =
  • themebeez-toolkit/trunk/themebeez-toolkit.php

    r3214797 r3270815  
    44 * Plugin URI:        https://wordpress.org/plugins/themebeez-toolkit/
    55 * Description:       A essential toolkit for themes made by www.themebeez.com. This plugin extends themes made by themebeez & adds functionality to import demo data in just a click.
    6  * Version:           1.3.2
     6 * Version:           1.3.3
    77 * Requires at least: 5.6
    88 * Requires PHP:      7.4
    9  * Tested up to:      6.7.1
     9 * Tested up to:      6.7.2
    1010 * Author:            themebeez
    1111 * Author URI:        https://themebeez.com
     
    2828 * Rename this for your plugin and update it as you release new versions.
    2929 */
    30 define( 'THEMEBEEZTOOLKIT_VERSION', '1.3.2' );
     30define( 'THEMEBEEZTOOLKIT_VERSION', '1.3.3' );
    3131
    3232// Define THEMEBEEZTOOLKIT_PLUGIN_FILE.
     
    106106$themes = themebeez_toolkit_theme_array();
    107107
    108 if ( $theme->get( 'Author' ) === 'themebeez' && in_array( $theme->get( 'TextDomain' ), $themes, true ) ) {
     108
     109if (
     110    $theme->get( 'Author' ) === 'themebeez' &&
     111    ( in_array( $theme->get( 'TextDomain' ), $themes, true ) || in_array( themebeez_toolkit_template_name(), $themes, true ) )
     112) {
    109113
    110114    // Global for backwards compatibility.
Note: See TracChangeset for help on using the changeset viewer.