Make WordPress Themes

Changeset 276166


Ignore:
Timestamp:
06/17/2025 08:45:07 AM (7 months ago)
Author:
themedropbox
Message:

New version of Hello Biz - 1.1.1

Location:
hello-biz/1.1.1
Files:
77 added
7 deleted
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hello-biz/1.1.1/functions.php

    r269320 r276166  
    1212}
    1313
    14 define( 'HELLO_BIZ_ELEMENTOR_VERSION', '1.1.0' );
     14define( 'HELLO_BIZ_ELEMENTOR_VERSION', '1.1.1' );
    1515define( 'EHP_THEME_SLUG', 'hello-biz' );
    1616
    1717define( 'HELLO_BIZ_PATH', get_template_directory() );
    1818define( 'HELLO_BIZ_URL', get_template_directory_uri() );
    19 define( 'HELLO_BIZ_ASSETS_PATH', HELLO_BIZ_PATH . '/build/' );
    20 define( 'HELLO_BIZ_ASSETS_URL', HELLO_BIZ_URL . '/build/' );
     19define( 'HELLO_BIZ_ASSETS_PATH', HELLO_BIZ_PATH . '/assets/' );
     20define( 'HELLO_BIZ_ASSETS_URL', HELLO_BIZ_URL . '/assets/' );
    2121define( 'HELLO_BIZ_SCRIPTS_PATH', HELLO_BIZ_ASSETS_PATH . 'js/' );
    2222define( 'HELLO_BIZ_SCRIPTS_URL', HELLO_BIZ_ASSETS_URL . 'js/' );
  • hello-biz/1.1.1/includes/module-base.php

    r248985 r276166  
    197197     * @return void
    198198     */
    199     protected function register_components( array $components_ids = null ): void {
     199    protected function register_components( ?array $components_ids = null ): void {
    200200        if ( empty( $components_ids ) ) {
    201201            $components_ids = $this->get_component_ids();
  • hello-biz/1.1.1/includes/utils.php

    r251149 r276166  
    22
    33namespace HelloBiz\Includes;
     4
     5use Elementor\App\App;
    46
    57if ( ! defined( 'ABSPATH' ) ) {
     
    1820    public static function elementor(): \Elementor\Plugin {
    1921        return \Elementor\Plugin::$instance;
     22    }
     23
     24    public static function has_pro(): bool {
     25        return defined( 'ELEMENTOR_PRO_VERSION' );
    2026    }
    2127
     
    7480        return add_query_arg( '_wpnonce', wp_create_nonce( $action . '_' . $plugin_slug ), $url );
    7581    }
     82
     83    public static function get_theme_builder_options(): array {
     84        $url = 'https://go.elementor.com/hello-biz-builder';
     85        $target = '_blank';
     86
     87        if ( ! class_exists( 'Elementor\App\App' ) ) {
     88            return [
     89                'link' => $url,
     90                'target' => $target,
     91            ];
     92        }
     93
     94        if ( self::has_pro() ) {
     95            $url = admin_url( 'admin.php?page=' . App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION ) . '#site-editor';
     96            $target = '_self';
     97        }
     98
     99        if ( self::is_elementor_active() ) {
     100            $url = admin_url( 'admin.php?page=' . App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION ) . '#site-editor/promotion';
     101            $target = '_self';
     102        }
     103
     104        return [
     105            'link' => $url,
     106            'target' => $target,
     107        ];
     108    }
    76109}
  • hello-biz/1.1.1/modules/admin-home/rest/admin-config.php

    r251149 r276166  
    3030        $config = $this->get_site_parts( $config );
    3131
     32        $config = $this->get_resources( $config );
     33
    3234        $config = apply_filters( 'hello-plus-theme/rest/admin-config', $config );
    3335
     
    3840
    3941        return rest_ensure_response( [ 'config' => $config ] );
     42    }
     43
     44    public function get_resources( array $config ) {
     45        $config['resourcesData'] = [
     46            'community' => [
     47                [
     48                    'title'  => __( 'Facebook', 'hello-biz' ),
     49                    'link'   => 'https://www.facebook.com/groups/Elementors/',
     50                    'icon'   => 'BrandFacebookIcon',
     51                    'target' => '_blank',
     52                ],
     53                [
     54                    'title'  => __( 'YouTube', 'hello-biz' ),
     55                    'link'   => 'https://www.youtube.com/@Elementor',
     56                    'icon'   => 'BrandYoutubeIcon',
     57                    'target' => '_blank',
     58                ],
     59                [
     60                    'title'  => __( 'Discord', 'hello-biz' ),
     61                    'link'   => 'https://discord.com/servers/elementor-official-community-1164474724626206720',
     62                    'target' => '_blank',
     63                ],
     64                [
     65                    'title'  => __( 'Rate Us', 'hello-biz' ),
     66                    'link'   => 'https://wordpress.org/support/theme/hello-biz/reviews/#new-post',
     67                    'icon'   => 'StarIcon',
     68                    'target' => '_blank',
     69                ],
     70            ],
     71            'resources' => [
     72                [
     73                    'title'  => __( 'Help Center', 'hello-biz' ),
     74                    'link'   => 'https://go.elementor.com/hello-biz-help/',
     75                    'icon'   => 'HelpIcon',
     76                    'target' => '_blank',
     77                ],
     78                [
     79                    'title'  => __( 'Blog', 'hello-biz' ),
     80                    'link'   => 'https://go.elementor.com/hello-biz-blog/',
     81                    'icon'   => 'SpeakerphoneIcon',
     82                    'target' => '_blank',
     83                ],
     84                [
     85                    'title'  => __( 'Platinum Support', 'hello-biz' ),
     86                    'link'   => 'https://go.elementor.com/hello-biz-platinumcare',
     87                    'icon'   => 'BrandElementorIcon',
     88                    'target' => '_blank',
     89                ],
     90            ],
     91        ];
     92
     93        return $config;
    4094    }
    4195
     
    65119                    'title' => get_the_title(),
    66120                    'link'  => get_edit_post_link( get_the_ID(), 'admin' ) . $edit_with_elementor,
     121                    'icon'  => 'PagesIcon',
    67122                ];
    68123            }
     
    73128                'title' => __( 'Add New Page', 'hello-biz' ),
    74129                'link'  => self_admin_url( 'post-new.php?post_type=page' ),
     130                'icon'  => 'PageTypeIcon',
    75131            ],
    76132            [
     
    80136        ];
    81137
    82         $config['siteParts'] = [
    83             'siteParts' => [
    84                 [
    85                     'title' => __( 'Header', 'hello-biz' ),
    86                     'link' => self_admin_url( 'customize.php?autofocus[section]=hello-biz-options' ),
    87                 ],
    88                 [
    89                     'title' => __( 'Footer', 'hello-biz' ),
    90                     'link' => self_admin_url( 'customize.php?autofocus[section]=hello-biz-options' ),
    91                 ],
    92             ],
     138        $common_parts = [
     139            array_merge(
     140                [
     141                    'id' => 'theme-builder',
     142                    'title' => __( 'Theme Builder', 'hello-biz' ),
     143                    'icon' => 'ThemeBuilderIcon',
     144                ],
     145                Utils::get_theme_builder_options()
     146            ),
     147        ];
     148
     149        $customizer_header_footer_url = self_admin_url( 'customize.php?autofocus[section]=hello-biz-options' );
     150
     151        $header_part = [
     152            'id'           => 'header',
     153            'title'        => __( 'Header', 'hello-biz' ),
     154            'link'         => $customizer_header_footer_url,
     155            'icon'         => 'HeaderTemplateIcon',
     156            'showSublinks' => true,
     157            'sublinks'     => [],
     158        ];
     159        $footer_part = [
     160            'id'           => 'footer',
     161            'title'        => __( 'Footer', 'hello-biz' ),
     162            'link'         => $customizer_header_footer_url,
     163            'icon'         => 'FooterTemplateIcon',
     164            'showSublinks' => true,
     165            'sublinks'     => [],
     166        ];
     167
     168        if ( Utils::is_elementor_active() ) {
     169            if ( Utils::has_pro() ) {
     170                $header_part = $this->update_pro_part( $header_part, 'header' );
     171                $footer_part = $this->update_pro_part( $footer_part, 'footer' );
     172            }
     173        }
     174
     175        $site_parts = [
     176            'siteParts' => array_merge(
     177                [
     178                    $header_part,
     179                    $footer_part,
     180                ],
     181                $common_parts
     182            ),
    93183            'sitePages' => $site_pages,
    94184            'general'   => $general,
    95185        ];
    96186
     187        $config['siteParts'] = apply_filters( 'hello-plus-theme/template-parts', $site_parts );
     188
    97189        return $this->get_quicklinks( $config );
    98190    }
    99191
     192    private function update_pro_part( array $part, string $location ): array {
     193        $theme_builder_module = \ElementorPro\Modules\ThemeBuilder\Module::instance();
     194        $conditions_manager   = $theme_builder_module->get_conditions_manager();
     195
     196        $documents    = $conditions_manager->get_documents_for_location( $location );
     197        $add_new_link = \Elementor\Plugin::instance()->app->get_base_url() . '#/site-editor/templates/' . $location;
     198        if ( ! empty( $documents ) ) {
     199            $first_document_id    = array_key_first( $documents );
     200            $part['showSublinks'] = true;
     201            $part['sublinks']     = [
     202                [
     203                    'title' => __( 'Edit', 'hello-biz' ),
     204                    'link'  => get_edit_post_link( $first_document_id, 'admin' ) . '&action=elementor',
     205                ],
     206                [
     207                    'title' => __( 'Add New', 'hello-biz' ),
     208                    'link'  => $add_new_link,
     209                ],
     210            ];
     211        } else {
     212            $part['link']         = $add_new_link;
     213            $part['showSublinks'] = false;
     214        }
     215
     216        return $part;
     217    }
     218
    100219    public function get_open_homepage_with_tab( $action, $customizer_fallback_args = [] ): string {
    101         if ( Utils::is_elementor_active() ) {
     220        if ( Utils::is_elementor_active() && method_exists( Page::class, 'get_site_settings_url_config' ) ) {
    102221            return Page::get_site_settings_url_config( $action )['url'];
    103222        }
     
    109228        $config['quickLinks'] = [
    110229            'site_name' => [
    111                 'title' => __( 'Site name', 'hello-biz' ),
     230                'title' => __( 'Site Name', 'hello-biz' ),
    112231                'link'  => $this->get_open_homepage_with_tab( 'settings-site-identity', [ 'autofocus[section]' => 'title_tagline' ] ),
     232                'icon'  => 'TextIcon',
    113233            ],
    114234            'site_logo' => [
    115235                'title' => __( 'Site Logo', 'hello-biz' ),
    116236                'link'  => $this->get_open_homepage_with_tab( 'settings-site-identity', [ 'autofocus[section]' => 'title_tagline' ] ),
     237                'icon'  => 'PhotoIcon',
     238            ],
     239            'site_favicon' => [
     240                'title' => __( 'Site Favicon', 'hello-biz' ),
     241                'link'  => $this->get_open_homepage_with_tab( 'settings-site-identity', [ 'autofocus[section]' => 'title_tagline' ] ),
     242                'icon'  => 'AppsIcon',
    117243            ],
    118244        ];
     
    122248                'title' => __( 'Site Colors', 'hello-biz' ),
    123249                'link'  => $this->get_open_homepage_with_tab( 'global-colors' ),
     250                'icon'  => 'BrushIcon',
    124251            ];
    125252
     
    127254                'title' => __( 'Site Fonts', 'hello-biz' ),
    128255                'link'  => $this->get_open_homepage_with_tab( 'global-typography' ),
     256                'icon'  => 'UnderlineIcon',
    129257            ];
    130258        }
     
    136264        $is_elementor_active  = Utils::is_elementor_active();
    137265        $is_hello_plus_active = Utils::is_hello_plus_active();
     266        $cta_text             = __( 'Begin Setup', 'hello-biz' );
    138267
    139268        if ( ! $is_hello_plus_active ) {
    140269            $link = Utils::is_hello_plus_installed() ? Utils::get_hello_plus_activation_link() : 'install';
    141 
    142270            $config['welcome'] = [
    143271                'text'    => __( 'To get access to the full suite of features, including theme kits, header and footer templates, and more widgets, click “Begin setup” and start your web creator journey.', 'hello-biz' ),
     272                'image'   => [
     273                    'src' => HELLO_BIZ_IMAGES_URL . 'banner-image.png',
     274                    'alt' => $cta_text,
     275                ],
    144276                'buttons' => [
    145277                    [
    146                         'title'   => __( 'Begin Setup', 'hello-biz' ),
     278                        'title'   => $cta_text,
    147279                        'variant' => 'contained',
    148280                        'link'    => $link,
     
    158290            $config['welcome'] = [
    159291                'text'    => __( 'To get access to the full suite of features, including theme kits, header and footer templates, and more widgets, click “Begin setup” and start your web creator journey.', 'hello-biz' ),
     292                'image'   => HELLO_BIZ_IMAGES_URL . 'banner-image.png',
    160293                'buttons' => [
    161294                    [
    162                         'title'   => __( 'Begin Setup', 'hello-biz' ),
     295                        'title'   => $cta_text,
    163296                        'variant' => 'contained',
    164297                        'link'    => self_admin_url( 'admin.php?page=hello-plus-setup-wizard' ),
     
    172305
    173306        $config['welcome'] = [
    174             'text'    => __( 'Here you’ll find quick access to key site settings. Customizing and managing your site is a breeze with Hello Biz.', 'hello-biz' ),
     307            'text'    => __( 'Here you\'ll find links to some site settings that will help you set up and get running as soon as possible. With Hello Biz you\'ll find creating your website is a breeze.', 'hello-biz' ),
     308            'image'   => HELLO_BIZ_IMAGES_URL . 'banner-image.png',
    175309            'buttons' => [
    176310                [
  • hello-biz/1.1.1/modules/admin-home/rest/promotions.php

    r261641 r276166  
    3838        }
    3939
    40         if (
     40        if ( ! defined( 'SEND_VERSION' ) ) {
     41            $action_links_data[] = [
     42                'type' => 'go-send',
     43                'image' => HELLO_BIZ_IMAGES_URL . 'send-logo.gif',
     44                'backgroundColor' => '#EFEFFF',
     45                'url' => 'https://go.elementor.com/Hello_Biz_send',
     46                'alt' => __( 'Send', 'hello-biz' ),
     47                'title' => '',
     48                'messages' => [
     49                    __( 'Connect any website to automated Email & SMS workflows in a click with Send.', 'hello-biz' ),
     50                ],
     51                'button' => __( 'Install', 'hello-biz' ),
     52                'buttonBgColor' => '#524CFF',
     53                'width' => 72,
     54                'height' => 'auto',
     55            ];
     56        } elseif (
    4157            ! defined( 'ELEMENTOR_AI_VERSION' ) &&
    4258            Utils::is_elementor_installed()
  • hello-biz/1.1.1/modules/theme/components/notificator.php

    r263197 r276166  
    66}
    77
    8 use Elementor\WPNotificationsPackage\V110\Notifications as Notifications_SDK;
     8use Elementor\WPNotificationsPackage\V120\Notifications as Notifications_SDK;
    99
    1010class Notificator {
     
    1616
    1717    public function __construct() {
    18         if ( ! class_exists( 'Elementor\WPNotificationsPackage\V110\Notifications' ) ) {
     18        if ( ! class_exists( 'Elementor\WPNotificationsPackage\V120\Notifications' ) ) {
    1919            require_once HELLO_BIZ_PATH . '/vendor/autoload.php';
    2020        }
    2121
    22         $this->notificator = new Notifications_SDK(
    23             'hello-biz',
    24             HELLO_BIZ_ELEMENTOR_VERSION,
    25             'ehbiz'
    26         );
     22        $this->notificator = new Notifications_SDK( [
     23            'app_name' => 'hello-biz',
     24            'app_version' => HELLO_BIZ_ELEMENTOR_VERSION,
     25            'short_app_name' => 'ehbiz',
     26            'app_data' => [
     27                'theme_name' => EHP_THEME_SLUG,
     28            ],
     29        ] );
    2730    }
    2831}
  • hello-biz/1.1.1/modules/theme/components/theme-support.php

    r253562 r276166  
    4141                    'script',
    4242                    'style',
     43                    'navigation-widgets',
    4344                ]
    4445            );
  • hello-biz/1.1.1/readme.txt

    r269320 r276166  
    33Contributors: elementor, KingYes, ariel.k
    44Requires at least: 6.0
    5 Tested up to: 6.5
    6 Stable tag: 1.1.0
    7 Version: 1.1.0
     5Tested up to: 6.8
     6Stable tag: 1.1.1
     7Version: 1.1.1
    88Requires PHP: 7.4
    99License: GNU General Public License v3 or later
     
    9090== Changelog ==
    9191
     92= 1.1.1 - 2025-06-15 =
     93* Fix: Empty Setting page when admin language is not English
     94* Tweak: Home page links and styling
     95
    9296= 1.1.0 - 2025-04-27 =
    9397* New: 404 page styling
  • hello-biz/1.1.1/style.css

    r269320 r276166  
    55    Author: Elementor Team
    66    Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    7     Version: 1.1.0
    8     Stable tag: 1.1.0
     7    Version: 1.1.1
     8    Stable tag: 1.1.1
    99    Requires at least: 6.0
    10     Tested up to: 6.5
     10    Tested up to: 6.8
    1111    Requires PHP: 7.4
    1212    License: GNU General Public License v3 or later.
  • hello-biz/1.1.1/vendor/autoload.php

    r261641 r276166  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInitbae087f1a843aa6f61839ff2a901e4ce::getLoader();
     22return ComposerAutoloaderInitf0b3737c694e09e2aa07d91baf4da2d1::getLoader();
  • hello-biz/1.1.1/vendor/composer/InstalledVersions.php

    r261641 r276166  
    2727class InstalledVersions
    2828{
     29    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
    2935    /**
    3036     * @var mixed[]|null
     
    324330
    325331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
     341    }
     342
     343    /**
    326344     * @return array[]
    327345     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
     
    337355
    338356        if (self::$canGetVendors) {
    339             $selfDir = strtr(__DIR__, '\\', '/');
     357            $selfDir = self::getSelfDir();
    340358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    341359                $vendorDir = strtr($vendorDir, '\\', '/');
  • hello-biz/1.1.1/vendor/composer/autoload_real.php

    r261641 r276166  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitbae087f1a843aa6f61839ff2a901e4ce
     5class ComposerAutoloaderInitf0b3737c694e09e2aa07d91baf4da2d1
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitbae087f1a843aa6f61839ff2a901e4ce', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitf0b3737c694e09e2aa07d91baf4da2d1', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInitbae087f1a843aa6f61839ff2a901e4ce', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitf0b3737c694e09e2aa07d91baf4da2d1', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInitbae087f1a843aa6f61839ff2a901e4ce::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInitf0b3737c694e09e2aa07d91baf4da2d1::getInitializer($loader));
    3131
    3232        $loader->register(true);
  • hello-biz/1.1.1/vendor/composer/autoload_static.php

    r261641 r276166  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitbae087f1a843aa6f61839ff2a901e4ce
     7class ComposerStaticInitf0b3737c694e09e2aa07d91baf4da2d1
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2828    {
    2929        return \Closure::bind(function () use ($loader) {
    30             $loader->prefixLengthsPsr4 = ComposerStaticInitbae087f1a843aa6f61839ff2a901e4ce::$prefixLengthsPsr4;
    31             $loader->prefixDirsPsr4 = ComposerStaticInitbae087f1a843aa6f61839ff2a901e4ce::$prefixDirsPsr4;
    32             $loader->classMap = ComposerStaticInitbae087f1a843aa6f61839ff2a901e4ce::$classMap;
     30            $loader->prefixLengthsPsr4 = ComposerStaticInitf0b3737c694e09e2aa07d91baf4da2d1::$prefixLengthsPsr4;
     31            $loader->prefixDirsPsr4 = ComposerStaticInitf0b3737c694e09e2aa07d91baf4da2d1::$prefixDirsPsr4;
     32            $loader->classMap = ComposerStaticInitf0b3737c694e09e2aa07d91baf4da2d1::$classMap;
    3333
    3434        }, null, ClassLoader::class);
  • hello-biz/1.1.1/vendor/composer/installed.json

    r261641 r276166  
    33        {
    44            "name": "elementor/wp-notifications-package",
    5             "version": "1.1.0",
    6             "version_normalized": "1.1.0.0",
     5            "version": "1.2.0",
     6            "version_normalized": "1.2.0.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/elementor/wp-notifications-package.git",
    10                 "reference": "cd8093bad42df73c738aa530b5be98ab16621822"
     10                "reference": "dd25ca9dd79402c3bb51fab112aa079702eb165e"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/elementor/wp-notifications-package/zipball/cd8093bad42df73c738aa530b5be98ab16621822",
    15                 "reference": "cd8093bad42df73c738aa530b5be98ab16621822",
     14                "url": "https://api.github.com/repos/elementor/wp-notifications-package/zipball/dd25ca9dd79402c3bb51fab112aa079702eb165e",
     15                "reference": "dd25ca9dd79402c3bb51fab112aa079702eb165e",
    1616                "shasum": ""
    1717            },
     
    2121                "wp-coding-standards/wpcs": "^3.1.0"
    2222            },
    23             "time": "2025-01-21T13:50:20+00:00",
     23            "time": "2025-04-28T12:27:21+00:00",
    2424            "type": "library",
    2525            "installation-source": "dist",
     
    3131            "notification-url": "https://packagist.org/downloads/",
    3232            "support": {
    33                 "source": "https://github.com/elementor/wp-notifications-package/tree/1.1.0"
     33                "source": "https://github.com/elementor/wp-notifications-package/tree/1.2.0"
    3434            },
    3535            "install-path": "../elementor/wp-notifications-package"
  • hello-biz/1.1.1/vendor/composer/installed.php

    r269320 r276166  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '85625754a7f3f47fc4ee2029feb0109f2a5738f2',
     6        'reference' => 'dcda7cbdcc8fd3d7fbc43ca254c422a0e09b054a',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => '85625754a7f3f47fc4ee2029feb0109f2a5738f2',
     16            'reference' => 'dcda7cbdcc8fd3d7fbc43ca254c422a0e09b054a',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'elementor/wp-notifications-package' => array(
    23             'pretty_version' => '1.1.0',
    24             'version' => '1.1.0.0',
    25             'reference' => 'cd8093bad42df73c738aa530b5be98ab16621822',
     23            'pretty_version' => '1.2.0',
     24            'version' => '1.2.0.0',
     25            'reference' => 'dd25ca9dd79402c3bb51fab112aa079702eb165e',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../elementor/wp-notifications-package',
  • hello-biz/1.1.1/vendor/elementor/wp-notifications-package/plugin-example.php

    r261641 r276166  
    1212 */
    1313
    14 use Elementor\WPNotificationsPackage\V100\Notifications;
     14use Elementor\WPNotificationsPackage\V120\Notifications;
    1515
    1616if ( ! defined( 'ABSPATH' ) ) {
     
    2929        require __DIR__ . '/vendor/autoload.php';
    3030
    31         $this->notifications = new Notifications(
    32             'wp-notifications-package',
    33             '1.0.0',
    34             'wppe'
    35         );
     31        $this->notifications = new Notifications( [
     32            'app_name' => 'wp-notifications-package',
     33            'app_version' => '1.2.0',
     34            'short_app_name' => 'wppe',
     35            'app_data' => [
     36                'plugin_basename' => plugin_basename( __FILE__ ),
     37            ],
     38        ] );
    3639
    3740        add_action( 'admin_notices', [ $this, 'display_notifications' ] );
     
    4043
    4144    public function display_notifications() {
    42         $notifications = $this->notifications->get_notifications_by_conditions( true );
     45        $notifications = $this->notifications->get_notifications_by_conditions();
    4346
    4447        if ( empty( $notifications ) ) {
     
    6669
    6770    public function display_dialog() {
    68         $notifications = $this->notifications->get_notifications_by_conditions( true );
     71        $notifications = $this->notifications->get_notifications_by_conditions();
    6972
    7073        if ( empty( $notifications ) ) {
Note: See TracChangeset for help on using the changeset viewer.