uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
.trash
/
charitious
/
inc
/
shortcode
/
.
/
xs-partner.php
/
/
<?PHP namespace Elementor; if ( ! defined( 'ABSPATH' ) ) exit; class Xs_Partner_Widget extends Widget_Base { public function get_name() { return 'xs-partner'; } public function get_title() { return esc_html__( 'Charitious Brand Logo', 'charitious' ); } public function get_icon() { return 'eicon-tabs'; } public function get_categories() { return [ 'charitious-elements' ]; } protected function _register_controls() { $this->start_controls_section( 'section_tab', [ 'label' =>esc_html__('Charitious Brand Logo', 'charitious'), ] ); $this->add_control( 'logo_partner', [ 'type' => Controls_Manager::REPEATER, 'default' => [ 'partner_image' => Utils::get_placeholder_image_src(), 'btn_link' => '#', ], 'fields' => [ [ 'name' => 'partner_image', 'label' => esc_html__( 'Images', 'charitious' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'label_block' => true, ], [ 'name' => 'btn_link', 'label' =>esc_html__( 'Link', 'charitious' ), 'type' => Controls_Manager::URL, 'placeholder' =>esc_html__('http://your-link.com','charitious' ), 'default' => [ 'url' => '#', ], ], ], ] ); $this->end_controls_section(); } protected function render( ) { $settings = $this->get_settings(); $logo_partner = $settings['logo_partner']; ?> <ul class="fundpress-partners"> <?php foreach($logo_partner as $logo_partners): $btn_link = (! empty( $logo_partners['btn_link']['url'])) ? $logo_partners['btn_link']['url'] : ''; $btn_target = ( $logo_partners['btn_link']['is_external']) ? '_blank' : '_self'; $image = $logo_partners['partner_image']; if(isset($image['url']) && !empty($image['url'])){ $image = $image['url']; } ?> <li><a href="<?php echo esc_url( $btn_link ); ?>" target="<?php echo esc_html( $btn_target ); ?>" ><img src="<?php echo esc_url($image); ?>"></a></li> <?php endforeach; ?> </ul> <?php } protected function _content_template() { } }
/home/batcwwjx/./old/.trash/charitious/inc/shortcode/./xs-partner.php