Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.144.15.34
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/DonorDashboards/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/DonorDashboards/Block.php
<?php

namespace Give\DonorDashboards;

use Give\DonorDashboards\App as DonorDashboard;

class Block
{

    protected $donorDashboard;

    public function __construct()
    {
        $this->donorDashboard = give(DonorDashboard::class);
    }

    /**
     * Registers Donor Dashboard block
     *
     * @since 2.10.0
     **/
    public function addBlock()
    {
        register_block_type(
            'give/donor-dashboard',
            [
                'render_callback' => [$this, 'renderCallback'],
                'attributes' => [
                    'align' => [
                        'type' => 'string',
                        'default' => 'wide',
                    ],
                    'accent_color' => [
                        'type' => 'string',
                        'default' => '#68bb6c',
                    ],
                ],
            ]
        );
    }

    /**
     * Returns Donor Profile block markup
     *
     * @since 2.22.1 Add script for iframe onload event to activate gutenberg edit mode.
     *             Gutenberg block edit mode activates when focus set to block container.
     * @since 2.10.0
     **/
    public function renderCallback($attributes)
    {
        $output =  $this->donorDashboard->getOutput($attributes);

        if( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
            $output = str_replace(
                'onload="',
                sprintf(
                    'onload="%s;',
                    'const iframe = this;this.contentWindow.document.addEventListener(\'click\', function(){iframe.closest(\'[data-block]\').focus({preventScroll: true});})'
                ),
                $output
            );
        }

        return $output;
    }

    /**
     * Load Donor Profile frontend assets
     *
     * @since 2.10.0
     **/
    public function loadFrontendAssets()
    {
        if (has_block('give/donor-dashboard')) {
            return $this->donorDashboard->loadAssets();
        }
    }

    /**
     * Load Donor Profile block editor assets
     *
     * @since 2.10.0
     **/
    public function loadEditorAssets()
    {
        wp_enqueue_script(
            'give-donor-dashboards-block',
            GIVE_PLUGIN_URL . 'assets/dist/js/donor-dashboards-block.js',
            [],
            GIVE_VERSION,
            true
        );
        wp_set_script_translations( 'give-donor-dashboards-block', 'give' );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit