/
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/infobox.php
(8710B)
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_infobox_theme_setup')) { add_action( 'charity_is_hope_action_before_init_theme', 'charity_is_hope_sc_infobox_theme_setup' ); function charity_is_hope_sc_infobox_theme_setup() { add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_infobox_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_infobox_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ /* [trx_infobox id="unique_id" style="regular|info|success|error|result" static="0|1"]Et adipiscing integer, scelerisque pid, augue mus vel tincidunt porta[/trx_infobox] */ if (!function_exists('charity_is_hope_sc_infobox')) { function charity_is_hope_sc_infobox($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "style" => "regular", "closeable" => "no", "icon" => "", "color" => "", "bg_color" => "", // Common params "id" => "", "class" => "", "animation" => "", "css" => "", "top" => "", "bottom" => "", "left" => "", "right" => "" ), $atts))); $class .= ($class ? ' ' : '') . charity_is_hope_get_css_position_as_classes($top, $right, $bottom, $left); $css .= ($color !== '' ? 'color:' . esc_attr($color) .';' : '') . ($bg_color !== '' ? 'background-color:' . esc_attr($bg_color) .';' : ''); if (empty($icon)) { if ($style=='regular') $icon = 'icon-cog'; else if ($style=='success') $icon = 'icon-check'; else if ($style=='error') $icon = 'icon-attention'; else if ($style=='info') $icon = 'icon-info'; } else if ($icon=='none') $icon = ''; $content = do_shortcode($content); $output = '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="sc_infobox sc_infobox_style_' . esc_attr($style) . (charity_is_hope_param_is_on($closeable) ? ' sc_infobox_closeable' : '') . (!empty($class) ? ' '.esc_attr($class) : '') . ($icon!='' && !charity_is_hope_param_is_inherit($icon) ? ' sc_infobox_iconed '. esc_attr($icon) : '') . '"' . (!charity_is_hope_param_is_off($animation) ? ' data-animation="'.esc_attr(charity_is_hope_get_animation_classes($animation)).'"' : '') . ($css!='' ? ' style="'.esc_attr($css).'"' : '') . '>' . trim($content) . '</div>'; return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_infobox', $atts, $content); } add_shortcode('trx_infobox', 'charity_is_hope_sc_infobox'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_infobox_reg_shortcodes' ) ) { //add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_infobox_reg_shortcodes'); function charity_is_hope_sc_infobox_reg_shortcodes() { charity_is_hope_sc_map("trx_infobox", array( "title" => esc_html__("Infobox", 'trx_utils'), "desc" => wp_kses_data( __("Insert infobox into your post (page)", 'trx_utils') ), "decorate" => false, "container" => true, "params" => array( "style" => array( "title" => esc_html__("Style", 'trx_utils'), "desc" => wp_kses_data( __("Infobox style", 'trx_utils') ), "value" => "regular", "type" => "checklist", "dir" => "horizontal", "options" => array( 'regular' => esc_html__('Regular', 'trx_utils'), 'info' => esc_html__('Info', 'trx_utils'), 'success' => esc_html__('Success', 'trx_utils'), 'error' => esc_html__('Error', 'trx_utils') ) ), "closeable" => array( "title" => esc_html__("Closeable box", 'trx_utils'), "desc" => wp_kses_data( __("Create closeable box (with close button)", 'trx_utils') ), "value" => "no", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "icon" => array( "title" => esc_html__("Custom icon", 'trx_utils'), "desc" => wp_kses_data( __('Select icon for the infobox from Fontello icons set. If empty - use default icon', 'trx_utils') ), "value" => "", "type" => "icons", "options" => charity_is_hope_get_sc_param('icons') ), "color" => array( "title" => esc_html__("Text color", 'trx_utils'), "desc" => wp_kses_data( __("Any color for text and headers", 'trx_utils') ), "value" => "", "type" => "color" ), "bg_color" => array( "title" => esc_html__("Background color", 'trx_utils'), "desc" => wp_kses_data( __("Any background color for this infobox", 'trx_utils') ), "value" => "", "type" => "color" ), "_content_" => array( "title" => esc_html__("Infobox content", 'trx_utils'), "desc" => wp_kses_data( __("Content for infobox", 'trx_utils') ), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea" ), "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_infobox_reg_shortcodes_vc' ) ) { //add_action('charity_is_hope_action_shortcodes_list_vc', 'charity_is_hope_sc_infobox_reg_shortcodes_vc'); function charity_is_hope_sc_infobox_reg_shortcodes_vc() { vc_map( array( "base" => "trx_infobox", "name" => esc_html__("Infobox", 'trx_utils'), "description" => wp_kses_data( __("Box with info or error message", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_infobox', "class" => "trx_sc_container trx_sc_infobox", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "params" => array( array( "param_name" => "style", "heading" => esc_html__("Style", 'trx_utils'), "description" => wp_kses_data( __("Infobox style", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => array( esc_html__('Regular', 'trx_utils') => 'regular', esc_html__('Info', 'trx_utils') => 'info', esc_html__('Success', 'trx_utils') => 'success', esc_html__('Error', 'trx_utils') => 'error', esc_html__('Result', 'trx_utils') => 'result' ), "type" => "dropdown" ), array( "param_name" => "closeable", "heading" => esc_html__("Closeable", 'trx_utils'), "description" => wp_kses_data( __("Create closeable box (with close button)", 'trx_utils') ), "class" => "", "value" => array(esc_html__('Close button', 'trx_utils') => 'yes'), "type" => "checkbox" ), array( "param_name" => "icon", "heading" => esc_html__("Custom icon", 'trx_utils'), "description" => wp_kses_data( __("Select icon for the infobox from Fontello icons set. If empty - use default icon", 'trx_utils') ), "class" => "", "value" => charity_is_hope_get_sc_param('icons'), "type" => "dropdown" ), array( "param_name" => "color", "heading" => esc_html__("Text color", 'trx_utils'), "description" => wp_kses_data( __("Any color for the text and headers", 'trx_utils') ), "class" => "", "value" => "", "type" => "colorpicker" ), array( "param_name" => "bg_color", "heading" => esc_html__("Background color", 'trx_utils'), "description" => wp_kses_data( __("Any background color for this infobox", 'trx_utils') ), "class" => "", "value" => "", "type" => "colorpicker" ), 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_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_Infobox extends Charity_Is_Hope_VC_ShortCodeContainer {} } } ?>
Save
cmd:
run