/
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/intro.php
(18718B)
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_intro_theme_setup')) { add_action( 'charity_is_hope_action_before_init_theme', 'charity_is_hope_sc_intro_theme_setup' ); function charity_is_hope_sc_intro_theme_setup() { add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_intro_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_intro_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_intro')) { function charity_is_hope_sc_intro($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "style" => 1, "align" => "none", "image" => "", "bg_color" => "", "icon" => "", "scheme" => "", "title" => "", "subtitle" => "", "description" => "", "link" => '', "link_caption" => esc_html__('Read more', 'trx_utils'), "link2" => '', "link2_caption" => '', "url" => "", "content_position" => "", "content_width" => "", // Common params "id" => "", "class" => "", "animation" => "", "css" => "", "width" => "", "height" => "", "top" => "", "bottom" => "", "left" => "", "right" => "" ), $atts))); if ($image > 0) { $attach = wp_get_attachment_image_src($image, 'full'); if (isset($attach[0]) && $attach[0]!='') $image = $attach[0]; } $width = charity_is_hope_prepare_css_value($width); $height = charity_is_hope_prepare_css_value($height); $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); $css .= ($image ? 'background: url('.$image.');' : ''); $css .= ($bg_color ? 'background-color: '.$bg_color.';' : ''); $buttons = (!empty($link) || !empty($link2) ? '<div class="sc_intro_buttons sc_item_buttons">' . (!empty($link) ? '<div class="sc_intro_button sc_item_button">'.do_shortcode('[trx_button link="'.esc_url($link).'" size="medium"]'.esc_html($link_caption).'[/trx_button]').'</div>' : '') . (!empty($link2) && $style==2 ? '<div class="sc_intro_button sc_item_button">'.do_shortcode('[trx_button link="'.esc_url($link2).'" size="medium"]'.esc_html($link2_caption).'[/trx_button]').'</div>' : '') . '</div>' : ''); $output = '<div '.(!empty($url) ? 'data-href="'.esc_url($url).'"' : '') . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="sc_intro' . ($class ? ' ' . esc_attr($class) : '') . ($content_position && $style==1 ? ' sc_intro_position_' . esc_attr($content_position) : '') . ($style==5 ? ' small_padding' : '') . ($scheme && !charity_is_hope_param_is_off($scheme) && !charity_is_hope_param_is_inherit($scheme) ? ' scheme_'.esc_attr($scheme) : '') . ($align && $align!='none' ? ' align'.esc_attr($align) : '') . '"' . (!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_intro_inner '.($style ? ' sc_intro_style_' . esc_attr($style) : '').'"'.(!empty($content_width) ? ' style="width:'.esc_attr($content_width).';"' : '').'>' . (!empty($icon) && $style==5 ? '<div class="sc_intro_icon '.esc_attr($icon).'"></div>' : '') . '<div class="sc_intro_content">' . (!empty($subtitle) && $style!=4 && $style!=5 ? '<h6 class="sc_intro_subtitle">' . trim(charity_is_hope_strmacros($subtitle)) . '</h6>' : '') . (!empty($title) ? '<h2 class="sc_intro_title">' . trim(charity_is_hope_strmacros($title)) . '</h2>' : '') . (!empty($description) && $style!=1 ? '<div class="sc_intro_descr">' . trim(charity_is_hope_strmacros($description)) . '</div>' : '') . ($style==2 || $style==3 ? $buttons : '') . '</div>' . '</div>' .'</div>'; return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_intro', $atts, $content); } add_shortcode('trx_intro', 'charity_is_hope_sc_intro'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_intro_reg_shortcodes' ) ) { //add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_intro_reg_shortcodes'); function charity_is_hope_sc_intro_reg_shortcodes() { charity_is_hope_sc_map("trx_intro", array( "title" => esc_html__("Intro", 'trx_utils'), "desc" => wp_kses_data( __("Insert Intro block in your page (post)", 'trx_utils') ), "decorate" => true, "container" => false, "params" => array( "style" => array( "title" => esc_html__("Style", 'trx_utils'), "desc" => wp_kses_data( __("Select style to display block", 'trx_utils') ), "value" => "1", "type" => "checklist", "options" => charity_is_hope_get_list_styles(1, 5) ), "align" => array( "title" => esc_html__("Alignment of the intro block", 'trx_utils'), "desc" => wp_kses_data( __("Align whole intro block to left or right side of the page or parent container", 'trx_utils') ), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => charity_is_hope_get_sc_param('float') ), "image" => array( "title" => esc_html__("Image URL", 'trx_utils'), "desc" => wp_kses_data( __("Select the intro image from the library for this section", 'trx_utils') ), "readonly" => false, "value" => "", "type" => "media" ), "bg_color" => array( "title" => esc_html__("Background color", 'trx_utils'), "desc" => wp_kses_data( __("Select background color for the intro", 'trx_utils') ), "value" => "", "type" => "color" ), "icon" => array( "title" => esc_html__('Icon', 'trx_utils'), "desc" => wp_kses_data( __("Select icon from Fontello icons set", 'trx_utils') ), "dependency" => array( 'style' => array(5) ), "value" => "", "type" => "icons", "options" => charity_is_hope_get_sc_param('icons') ), "content_position" => array( "title" => esc_html__('Content position', 'trx_utils'), "desc" => wp_kses_data( __("Select content position", 'trx_utils') ), "dependency" => array( 'style' => array(1) ), "value" => "top_left", "type" => "checklist", "options" => array( 'top_left' => esc_html__('Top Left', 'trx_utils'), 'top_right' => esc_html__('Top Right', 'trx_utils'), 'bottom_right' => esc_html__('Bottom Right', 'trx_utils'), 'bottom_left' => esc_html__('Bottom Left', 'trx_utils') ) ), "content_width" => array( "title" => esc_html__('Content width', 'trx_utils'), "desc" => wp_kses_data( __("Select content width", 'trx_utils') ), "dependency" => array( 'style' => array(1) ), "value" => "100%", "type" => "checklist", "options" => array( '100%' => esc_html__('100%', 'trx_utils'), '90%' => esc_html__('90%', 'trx_utils'), '80%' => esc_html__('80%', 'trx_utils'), '70%' => esc_html__('70%', 'trx_utils'), '60%' => esc_html__('60%', 'trx_utils'), '50%' => esc_html__('50%', 'trx_utils'), '40%' => esc_html__('40%', 'trx_utils'), '30%' => esc_html__('30%', 'trx_utils') ) ), "subtitle" => array( "title" => esc_html__("Subtitle", 'trx_utils'), "desc" => wp_kses_data( __("Subtitle for the block", 'trx_utils') ), "divider" => true, "dependency" => array( 'style' => array(1,2,3) ), "value" => "", "type" => "text" ), "title" => array( "title" => esc_html__("Title", 'trx_utils'), "desc" => wp_kses_data( __("Title for the block", 'trx_utils') ), "value" => "", "type" => "textarea" ), "description" => array( "title" => esc_html__("Description", 'trx_utils'), "desc" => wp_kses_data( __("Short description for the block", 'trx_utils') ), "dependency" => array( 'style' => array(2,3,4,5), ), "value" => "", "type" => "textarea" ), "link" => array( "title" => esc_html__("Button URL", 'trx_utils'), "desc" => wp_kses_data( __("Link URL for the button at the bottom of the block", 'trx_utils') ), "dependency" => array( 'style' => array(2,3), ), "divider" => true, "value" => "", "type" => "text" ), "link_caption" => array( "title" => esc_html__("Button caption", 'trx_utils'), "desc" => wp_kses_data( __("Caption for the button at the bottom of the block", 'trx_utils') ), "dependency" => array( 'style' => array(2,3), ), "value" => "", "type" => "text" ), "link2" => array( "title" => esc_html__("Button 2 URL", 'trx_utils'), "desc" => wp_kses_data( __("Link URL for the second button at the bottom of the block", 'trx_utils') ), "dependency" => array( 'style' => array(2) ), "divider" => true, "value" => "", "type" => "text" ), "link2_caption" => array( "title" => esc_html__("Button 2 caption", 'trx_utils'), "desc" => wp_kses_data( __("Caption for the second button at the bottom of the block", 'trx_utils') ), "dependency" => array( 'style' => array(2) ), "value" => "", "type" => "text" ), "url" => array( "title" => esc_html__("Link", 'trx_utils'), "desc" => wp_kses_data( __("Link of the intro block", 'trx_utils') ), "value" => "", "type" => "text" ), "scheme" => array( "title" => esc_html__("Color scheme", 'trx_utils'), "desc" => wp_kses_data( __("Select color scheme for the section with text", 'trx_utils') ), "value" => "", "type" => "checklist", "options" => charity_is_hope_get_sc_param('schemes') ), "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_intro_reg_shortcodes_vc' ) ) { //add_action('charity_is_hope_action_shortcodes_list_vc', 'charity_is_hope_sc_intro_reg_shortcodes_vc'); function charity_is_hope_sc_intro_reg_shortcodes_vc() { vc_map( array( "base" => "trx_intro", "name" => esc_html__("Intro", 'trx_utils'), "description" => wp_kses_data( __("Insert Intro block", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_intro', "class" => "trx_sc_single trx_sc_intro", "content_element" => true, "is_container" => false, "show_settings_on_create" => true, "params" => array( array( "param_name" => "style", "heading" => esc_html__("Style of the block", 'trx_utils'), "description" => wp_kses_data( __("Select style to display this block", 'trx_utils') ), "class" => "", "admin_label" => true, "value" => array_flip(charity_is_hope_get_list_styles(1, 5)), "type" => "dropdown" ), array( "param_name" => "align", "heading" => esc_html__("Alignment of the block", 'trx_utils'), "description" => wp_kses_data( __("Align whole intro block to left or right side of the page or parent container", 'trx_utils') ), "class" => "", "std" => 'none', "value" => array_flip(charity_is_hope_get_sc_param('float')), "type" => "dropdown" ), array( "param_name" => "image", "heading" => esc_html__("Image URL", 'trx_utils'), "description" => wp_kses_data( __("Select the intro image from the library for this section", 'trx_utils') ), "class" => "", "value" => "", "type" => "attach_image" ), array( "param_name" => "bg_color", "heading" => esc_html__("Background color", 'trx_utils'), "description" => wp_kses_data( __("Select background color for the intro", 'trx_utils') ), "class" => "", "value" => "", "type" => "colorpicker" ), array( "param_name" => "icon", "heading" => esc_html__("Icon", 'trx_utils'), "description" => wp_kses_data( __("Select icon from Fontello icons set", 'trx_utils') ), "class" => "", 'dependency' => array( 'element' => 'style', 'value' => array('5') ), "value" => charity_is_hope_get_sc_param('icons'), "type" => "dropdown" ), array( "param_name" => "content_position", "heading" => esc_html__("Content position", 'trx_utils'), "description" => wp_kses_data( __("Select content position", 'trx_utils') ), "class" => "", "admin_label" => true, "value" => array( esc_html__('Top Left', 'trx_utils') => 'top_left', esc_html__('Top Right', 'trx_utils') => 'top_right', esc_html__('Bottom Right', 'trx_utils') => 'bottom_right', esc_html__('Bottom Left', 'trx_utils') => 'bottom_left' ), 'dependency' => array( 'element' => 'style', 'value' => array('1') ), "type" => "dropdown" ), array( "param_name" => "content_width", "heading" => esc_html__("Content width", 'trx_utils'), "description" => wp_kses_data( __("Select content width", 'trx_utils') ), "class" => "", "admin_label" => true, "value" => array( esc_html__('100%', 'trx_utils') => '100%', esc_html__('90%', 'trx_utils') => '90%', esc_html__('80%', 'trx_utils') => '80%', esc_html__('70%', 'trx_utils') => '70%', esc_html__('60%', 'trx_utils') => '60%', esc_html__('50%', 'trx_utils') => '50%', esc_html__('40%', 'trx_utils') => '40%', esc_html__('30%', 'trx_utils') => '30%' ), 'dependency' => array( 'element' => 'style', 'value' => array('1') ), "type" => "dropdown" ), array( "param_name" => "subtitle", "heading" => esc_html__("Subtitle", 'trx_utils'), "description" => wp_kses_data( __("Subtitle for the block", 'trx_utils') ), 'dependency' => array( 'element' => 'style', 'value' => array('1','2','3') ), "group" => esc_html__('Captions', 'trx_utils'), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "title", "heading" => esc_html__("Title", 'trx_utils'), "description" => wp_kses_data( __("Title for the block", 'trx_utils') ), "group" => esc_html__('Captions', 'trx_utils'), "admin_label" => true, "class" => "", "value" => "", "type" => "textarea" ), array( "param_name" => "description", "heading" => esc_html__("Description", 'trx_utils'), "description" => wp_kses_data( __("Description for the block", 'trx_utils') ), "group" => esc_html__('Captions', 'trx_utils'), 'dependency' => array( 'element' => 'style', 'value' => array('2','3','4','5') ), "class" => "", "value" => "", "type" => "textarea" ), array( "param_name" => "link", "heading" => esc_html__("Button URL", 'trx_utils'), "description" => wp_kses_data( __("Link URL for the button at the bottom of the block", 'trx_utils') ), "group" => esc_html__('Captions', 'trx_utils'), 'dependency' => array( 'element' => 'style', 'value' => array('2','3') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "link_caption", "heading" => esc_html__("Button caption", 'trx_utils'), "description" => wp_kses_data( __("Caption for the button at the bottom of the block", 'trx_utils') ), "group" => esc_html__('Captions', 'trx_utils'), 'dependency' => array( 'element' => 'style', 'value' => array('2','3') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "link2", "heading" => esc_html__("Button 2 URL", 'trx_utils'), "description" => wp_kses_data( __("Link URL for the second button at the bottom of the block", 'trx_utils') ), "group" => esc_html__('Captions', 'trx_utils'), 'dependency' => array( 'element' => 'style', 'value' => array('2') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "link2_caption", "heading" => esc_html__("Button 2 caption", 'trx_utils'), "description" => wp_kses_data( __("Caption for the second button at the bottom of the block", 'trx_utils') ), "group" => esc_html__('Captions', 'trx_utils'), 'dependency' => array( 'element' => 'style', 'value' => array('2') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "url", "heading" => esc_html__("Link", 'trx_utils'), "description" => wp_kses_data( __("Link of the intro block", 'trx_utils') ), "value" => '', "type" => "textfield" ), array( "param_name" => "scheme", "heading" => esc_html__("Color scheme", 'trx_utils'), "description" => wp_kses_data( __("Select color scheme for the section with text", 'trx_utils') ), "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('schemes')), "type" => "dropdown" ), 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') ) ) ); class WPBakeryShortCode_Trx_Intro extends Charity_Is_Hope_VC_ShortCodeSingle {} } } ?>
Save
cmd:
run