/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_utils/widgets
NameSizeModeActions
qrcode/-0755rm
banner.php94920644editdlrm
calendar.php72850644editdlrm
categories.php118820644editdlrm
flickr.php85560644editdlrm
give.php70330644editdlrm
popular_posts.php218730644editdlrm
recent_posts.php176580644editdlrm
recent_reviews.php183700644editdlrm
socials.php135440644editdlrm
top10.php209310644editdlrm
twitter.php133970644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_utils/widgets/banner.php (9492B)
'widget_banner', 'description' => esc_html__('Banner', 'trx_utils') ); parent::__construct( 'charity_is_hope_widget_banner', esc_html__('Charity Is Hope - Banner', 'trx_utils'), $widget_ops ); } // Show widget function widget( $args, $instance ) { extract( $args ); $title = apply_filters('widget_title', isset($instance['title']) ? $instance['title'] : '' ); $banner_image = isset($instance['banner_image']) ? $instance['banner_image'] : ''; $banner_link = isset($instance['banner_link']) ? $instance['banner_link'] : ''; $banner_code = isset($instance['banner_code']) ? $instance['banner_code'] : ''; // Before widget (defined by themes) charity_is_hope_show_layout($before_widget); // Display the widget title if one was input (before and after defined by themes) if ($title) charity_is_hope_show_layout($title, $before_title, $after_title); ?>
0) { $attach = wp_get_attachment_image_src( $banner_image, 'full' ); if (isset($attach[0]) && $attach[0]!='') $banner_image = $attach[0]; } $attr = charity_is_hope_getimagesize($banner_image); echo (!empty($banner_link) ? '' . esc_attr($title) . '' . (!empty($banner_link) ? '': ''); } if ($banner_code!='') { echo force_balance_tags(charity_is_hope_substitute_all($banner_code)); } ?>
'', 'banner_image' => '', 'banner_link' => '', 'banner_code' => '' ) ); $title = $instance['title']; $banner_image = $instance['banner_image']; $banner_link = $instance['banner_link']; $banner_code = $instance['banner_code']; ?>

get_field_id( 'banner_media' ), array('type'=>'mediamanager', 'media_field_id'=>$this->get_field_id( 'banner_image' )), null)); if ($banner_image) { ?>

"", "image" => "", "link" => "", "code" => "", // Common params "id" => "", "class" => "", "css" => "" ), $atts)); extract($atts); $type = 'charity_is_hope_widget_banner'; $output = ''; global $wp_widget_factory; if ( is_object( $wp_widget_factory ) && isset( $wp_widget_factory->widgets, $wp_widget_factory->widgets[ $type ] ) ) { $atts['banner_image'] = $image; $atts['banner_link'] = $link; $atts['banner_code'] = $code; $output = ''; ob_start(); the_widget( $type, $atts, charity_is_hope_prepare_widgets_args(charity_is_hope_storage_get('widgets_args'), $id ? $id.'_widget' : 'widget_banner', 'widget_banner') ); $output .= ob_get_contents(); ob_end_clean(); $output .= '
'; } return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_widget_banner', $atts, $content); } add_shortcode("trx_widget_banner", "charity_is_hope_sc_widget_banner"); } // Add [trx_widget_banner] in the VC shortcodes list if (!function_exists('charity_is_hope_widget_banner_reg_shortcodes_vc')) { //add_action('charity_is_hope_action_shortcodes_list_vc','charity_is_hope_widget_banner_reg_shortcodes_vc'); function charity_is_hope_widget_banner_reg_shortcodes_vc() { vc_map( array( "base" => "trx_widget_banner", "name" => esc_html__("Widget Banner", 'trx_utils'), "description" => wp_kses_data( __("Insert widget with banner or any HTML and/or Javascript code", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), "icon" => 'icon_trx_widget_banner', "class" => "trx_widget_banner", "content_element" => true, "is_container" => false, "show_settings_on_create" => true, "params" => array( array( "param_name" => "title", "heading" => esc_html__("Widget title", 'trx_utils'), "description" => wp_kses_data( __("Title of the widget", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "image", "heading" => esc_html__("Image", 'trx_utils'), "description" => wp_kses_data( __("Select or upload image or write URL from other site for the banner (leave empty if you paste banner code)", 'trx_utils') ), "class" => "", "value" => "", "type" => "attach_image" ), array( "param_name" => "link", "heading" => esc_html__("Banner's link", 'trx_utils'), "description" => wp_kses_data( __("Link URL for the banner (leave empty if you paste banner code)", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "code", "heading" => esc_html__("or paste Banner Widget HTML Code", 'trx_utils'), "description" => wp_kses_data( __("Widget's HTML and/or JS code", 'trx_utils') ), "class" => "", "value" => "", "type" => "textarea" ), charity_is_hope_get_vc_param('id'), charity_is_hope_get_vc_param('class'), charity_is_hope_get_vc_param('css') ) ) ); class WPBakeryShortCode_Trx_Widget_Banner extends WPBakeryShortCode {} } } ?>