????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.16.1  /  Your IP : 216.73.216.243
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/pontiacques.org/wp-content/plugins/give/src/Campaigns/Blocks/DonateButton/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/pontiacques.org/wp-content/plugins/give/src/Campaigns/Blocks/DonateButton/render.php
<?php

use Give\Campaigns\Actions\RenderDonateButton;
use Give\Campaigns\Models\Campaign;
use Give\Campaigns\Repositories\CampaignRepository;

/**
 * @var array    $attributes
 * @var Campaign $campaign
 */

if (
    ! isset($attributes['campaignId']) ||
    ! ($campaign = give(CampaignRepository::class)->getById($attributes['campaignId']))
) {
    return;
}

$blockInlineStyles = sprintf(
    '--givewp-primary-color: %s;',
    esc_attr($campaign->primaryColor ?? '#0b72d9')
);
?>

<div
    <?php
    echo wp_kses_data(get_block_wrapper_attributes(['class' => 'givewp-campaign-donate-button-block'])); ?>
    style="<?php
    echo esc_attr($blockInlineStyles); ?>">
    <?php
    echo give(RenderDonateButton::class)(
        ($attributes['useDefaultForm'] || ! isset($attributes['selectedForm']))
            ? $campaign->defaultFormId
            : $attributes['selectedForm'],
        $attributes['buttonText'] ?? __('Donate', 'give'),
    );
    ?>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit