/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
trx_utils
/
shortcodes
/
trx_basic
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_utils/shortcodes/trx_basic
mkdir
upload
Name
Size
Mode
Actions
anchor.php
6505
0644
edit
dl
rm
audio.php
10401
0644
edit
dl
rm
blogger.php
34038
0644
edit
dl
rm
br.php
2192
0644
edit
dl
rm
call_to_action.php
17687
0644
edit
dl
rm
chat.php
7204
0644
edit
dl
rm
columns.php
17172
0644
edit
dl
rm
content.php
5246
0644
edit
dl
rm
events.php
32946
0644
edit
dl
rm
form.php
25504
0644
edit
dl
rm
give.php
25787
0644
edit
dl
rm
googlemap.php
14010
0644
edit
dl
rm
hide.php
2488
0644
edit
dl
rm
image.php
9470
0644
edit
dl
rm
infobox.php
8710
0644
edit
dl
rm
intro.php
18718
0644
edit
dl
rm
line.php
10195
0644
edit
dl
rm
list.php
14609
0644
edit
dl
rm
price_block.php
12241
0644
edit
dl
rm
promo.php
15176
0644
edit
dl
rm
quote.php
6266
0644
edit
dl
rm
reviews.php
5079
0644
edit
dl
rm
search.php
8518
0644
edit
dl
rm
section.php
27083
0644
edit
dl
rm
skills.php
34872
0644
edit
dl
rm
slider.php
38659
0644
edit
dl
rm
socials.php
13118
0644
edit
dl
rm
support.clients.php
42769
0644
edit
dl
rm
support.services.php
46778
0644
edit
dl
rm
support.team.php
53876
0644
edit
dl
rm
support.testimonials.php
41669
0644
edit
dl
rm
table.php
6415
0644
edit
dl
rm
title.php
16329
0644
edit
dl
rm
twitter.php
19109
0644
edit
dl
rm
video.php
15728
0644
edit
dl
rm
woocommerce.php
73656
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_utils/shortcodes/trx_basic/chat.php
(7204B)
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_chat_theme_setup')) { add_action( 'charity_is_hope_action_before_init_theme', 'charity_is_hope_sc_chat_theme_setup' ); function charity_is_hope_sc_chat_theme_setup() { add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_chat_reg_shortcodes'); if (function_exists('charity_is_hope_exists_visual_composer') && charity_is_hope_exists_visual_composer()) add_action('charity_is_hope_action_shortcodes_list_vc','charity_is_hope_sc_chat_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ /* [trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque pid, augue mus vel tincidunt porta[/trx_chat] [trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque pid, augue mus vel tincidunt porta[/trx_chat] ... */ if (!function_exists('charity_is_hope_sc_chat')) { function charity_is_hope_sc_chat($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "photo" => "", "title" => "", "link" => "", // Common params "id" => "", "class" => "", "css" => "", "animation" => "", "width" => "", "height" => "", "top" => "", "bottom" => "", "left" => "", "right" => "" ), $atts))); $class .= ($class ? ' ' : '') . charity_is_hope_get_css_position_as_classes($top, $right, $bottom, $left); $css .= charity_is_hope_get_css_dimensions_from_values($width, $height); $title = $title=='' ? $link : $title; if (!empty($photo)) { if ($photo > 0) { $attach = wp_get_attachment_image_src( $photo, 'full' ); if (isset($attach[0]) && $attach[0]!='') $photo = $attach[0]; } $photo = charity_is_hope_get_resized_image_tag($photo, 75, 75); } $content = do_shortcode($content); if (charity_is_hope_substr($content, 0, 2)!='<p') $content = '<p>' . ($content) . '</p>'; $output = '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="sc_chat' . (!empty($class) ? ' '.esc_attr($class) : '') . '"' . (!charity_is_hope_param_is_off($animation) ? ' data-animation="'.esc_attr(charity_is_hope_get_animation_classes($animation)).'"' : '') . ($css ? ' style="'.esc_attr($css).'"' : '') . '>' . '<div class="sc_chat_inner">' . ($photo ? '<div class="sc_chat_avatar">'.($photo).'</div>' : '') . ($title == '' ? '' : ('<div class="sc_chat_title">' . ($link!='' ? '<a href="'.esc_url($link).'">' : '') . ($title) . ($link!='' ? '</a>' : '') . '</div>')) . '<div class="sc_chat_content">'.($content).'</div>' . '</div>' . '</div>'; return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_chat', $atts, $content); } add_shortcode('trx_chat', 'charity_is_hope_sc_chat'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_chat_reg_shortcodes' ) ) { //add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_chat_reg_shortcodes'); function charity_is_hope_sc_chat_reg_shortcodes() { charity_is_hope_sc_map("trx_chat", array( "title" => esc_html__("Chat", 'trx_utils'), "desc" => wp_kses_data( __("Chat message", 'trx_utils') ), "decorate" => true, "container" => true, "params" => array( "title" => array( "title" => esc_html__("Item title", 'trx_utils'), "desc" => wp_kses_data( __("Chat item title", 'trx_utils') ), "value" => "", "type" => "text" ), "photo" => array( "title" => esc_html__("Item photo", 'trx_utils'), "desc" => wp_kses_data( __("Select or upload image or write URL from other site for the item photo (avatar)", 'trx_utils') ), "readonly" => false, "value" => "", "type" => "media" ), "link" => array( "title" => esc_html__("Item link", 'trx_utils'), "desc" => wp_kses_data( __("Chat item link", 'trx_utils') ), "value" => "", "type" => "text" ), "_content_" => array( "title" => esc_html__("Chat item content", 'trx_utils'), "desc" => wp_kses_data( __("Current chat item content", 'trx_utils') ), "rows" => 4, "value" => "", "type" => "textarea" ), "width" => charity_is_hope_shortcodes_width(), "height" => charity_is_hope_shortcodes_height(), "top" => charity_is_hope_get_sc_param('top'), "bottom" => charity_is_hope_get_sc_param('bottom'), "left" => charity_is_hope_get_sc_param('left'), "right" => charity_is_hope_get_sc_param('right'), "id" => charity_is_hope_get_sc_param('id'), "class" => charity_is_hope_get_sc_param('class'), "animation" => charity_is_hope_get_sc_param('animation'), "css" => charity_is_hope_get_sc_param('css') ) )); } } /* Register shortcode in the VC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_chat_reg_shortcodes_vc' ) ) { //add_action('charity_is_hope_action_shortcodes_list_vc', 'charity_is_hope_sc_chat_reg_shortcodes_vc'); function charity_is_hope_sc_chat_reg_shortcodes_vc() { vc_map( array( "base" => "trx_chat", "name" => esc_html__("Chat", 'trx_utils'), "description" => wp_kses_data( __("Chat message", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_chat', "class" => "trx_sc_container trx_sc_chat", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "params" => array( array( "param_name" => "title", "heading" => esc_html__("Item title", 'trx_utils'), "description" => wp_kses_data( __("Title for current chat item", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "photo", "heading" => esc_html__("Item photo", 'trx_utils'), "description" => wp_kses_data( __("Select or upload image or write URL from other site for the item photo (avatar)", 'trx_utils') ), "class" => "", "value" => "", "type" => "attach_image" ), array( "param_name" => "link", "heading" => esc_html__("Link URL", 'trx_utils'), "description" => wp_kses_data( __("URL for the link on chat title click", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), charity_is_hope_get_vc_param('id'), charity_is_hope_get_vc_param('class'), charity_is_hope_get_vc_param('animation'), charity_is_hope_get_vc_param('css'), charity_is_hope_vc_width(), charity_is_hope_vc_height(), charity_is_hope_get_vc_param('margin_top'), charity_is_hope_get_vc_param('margin_bottom'), charity_is_hope_get_vc_param('margin_left'), charity_is_hope_get_vc_param('margin_right') ), 'js_view' => 'VcTrxTextContainerView' ) ); class WPBakeryShortCode_Trx_Chat extends Charity_Is_Hope_VC_ShortCodeContainer {} } } ?>
Save
cmd:
run