/
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/title.php
(16329B)
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_title_theme_setup')) { add_action( 'charity_is_hope_action_before_init_theme', 'charity_is_hope_sc_title_theme_setup' ); function charity_is_hope_sc_title_theme_setup() { add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_title_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_title_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ /* [trx_title id="unique_id" style='regular|iconed' icon='' image='' background="on|off" type="1-6"]Et adipiscing integer, scelerisque pid, augue mus vel tincidunt porta[/trx_title] */ if (!function_exists('charity_is_hope_sc_title')) { function charity_is_hope_sc_title($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "type" => "1", "style" => "regular", "align" => "", "font_weight" => "", "font_size" => "", "color" => "", "icon" => "", "image" => "", "picture" => "", "image_size" => "small", "position" => "left", // Common params "id" => "", "class" => "", "animation" => "", "css" => "", "width" => "", "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) .($align && $align!='none' && !charity_is_hope_param_is_inherit($align) ? 'text-align:' . esc_attr($align) .';' : '') .($color ? 'color:' . esc_attr($color) .';' : '') .($font_weight && !charity_is_hope_param_is_inherit($font_weight) ? 'font-weight:' . esc_attr($font_weight) .';' : '') .($font_size ? 'font-size:' . esc_attr($font_size) .';' : '') ; $type = min(6, max(1, $type)); if ($picture > 0) { $attach = wp_get_attachment_image_src( $picture, 'full' ); if (isset($attach[0]) && $attach[0]!='') $picture = $attach[0]; } $pic = $style!='iconed' ? '' : '<span class="sc_title_icon sc_title_icon_'.esc_attr($position).' sc_title_icon_'.esc_attr($image_size).($icon!='' && $icon!='none' ? ' '.esc_attr($icon) : '').'"'.'>' .($picture ? '<img src="'.esc_url($picture).'" alt="" />' : '') .(empty($picture) && $image && $image!='none' ? '<img src="'.esc_url(charity_is_hope_strpos($image, 'http')===0 ? $image : charity_is_hope_get_file_url('images/icons/'.($image).'.png')).'" alt="" />' : '') .'</span>'; $output = '<h' . esc_attr($type) . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="sc_title sc_title_'.esc_attr($style) .($align && $align!='none' && !charity_is_hope_param_is_inherit($align) ? ' sc_align_' . esc_attr($align) : '') .(!empty($class) ? ' '.esc_attr($class) : '') .'"' . ($css!='' ? ' style="'.esc_attr($css).'"' : '') . (!charity_is_hope_param_is_off($animation) ? ' data-animation="'.esc_attr(charity_is_hope_get_animation_classes($animation)).'"' : '') . '>' . ($pic) . ($style=='divider' ? '<span class="sc_title_divider_before"'.($color ? ' style="background-color: '.esc_attr($color).'"' : '').'></span>' : '') . do_shortcode($content) . ($style=='divider' ? '<span class="sc_title_divider_after"'.($color ? ' style="background-color: '.esc_attr($color).'"' : '').'></span>' : '') . '</h' . esc_attr($type) . '>'; return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_title', $atts, $content); } add_shortcode('trx_title', 'charity_is_hope_sc_title'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_title_reg_shortcodes' ) ) { //add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_title_reg_shortcodes'); function charity_is_hope_sc_title_reg_shortcodes() { charity_is_hope_sc_map("trx_title", array( "title" => esc_html__("Title", 'trx_utils'), "desc" => wp_kses_data( __("Create header tag (1-6 level) with many styles", 'trx_utils') ), "decorate" => false, "container" => true, "params" => array( "_content_" => array( "title" => esc_html__("Title content", 'trx_utils'), "desc" => wp_kses_data( __("Title content", 'trx_utils') ), "rows" => 4, "value" => "", "type" => "textarea" ), "type" => array( "title" => esc_html__("Title type", 'trx_utils'), "desc" => wp_kses_data( __("Title type (header level)", 'trx_utils') ), "divider" => true, "value" => "1", "type" => "select", "options" => array( '1' => esc_html__('Header 1', 'trx_utils'), '2' => esc_html__('Header 2', 'trx_utils'), '3' => esc_html__('Header 3', 'trx_utils'), '4' => esc_html__('Header 4', 'trx_utils'), '5' => esc_html__('Header 5', 'trx_utils'), '6' => esc_html__('Header 6', 'trx_utils'), ) ), "style" => array( "title" => esc_html__("Title style", 'trx_utils'), "desc" => wp_kses_data( __("Title style", 'trx_utils') ), "value" => "regular", "type" => "select", "options" => array( 'regular' => esc_html__('Regular', 'trx_utils'), 'underline' => esc_html__('Underline', 'trx_utils'), 'divider' => esc_html__('Divider', 'trx_utils'), 'iconed' => esc_html__('With icon (image)', 'trx_utils') ) ), "align" => array( "title" => esc_html__("Alignment", 'trx_utils'), "desc" => wp_kses_data( __("Title text alignment", 'trx_utils') ), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => charity_is_hope_get_sc_param('align') ), "font_size" => array( "title" => esc_html__("Font_size", 'trx_utils'), "desc" => wp_kses_data( __("Custom font size. If empty - use theme default", 'trx_utils') ), "value" => "", "type" => "text" ), "font_weight" => array( "title" => esc_html__("Font weight", 'trx_utils'), "desc" => wp_kses_data( __("Custom font weight. If empty or inherit - use theme default", 'trx_utils') ), "value" => "", "type" => "select", "size" => "medium", "options" => array( 'inherit' => esc_html__('Default', 'trx_utils'), '100' => esc_html__('Thin (100)', 'trx_utils'), '300' => esc_html__('Light (300)', 'trx_utils'), '400' => esc_html__('Normal (400)', 'trx_utils'), '600' => esc_html__('Semibold (600)', 'trx_utils'), '700' => esc_html__('Bold (700)', 'trx_utils'), '900' => esc_html__('Black (900)', 'trx_utils') ) ), "color" => array( "title" => esc_html__("Title color", 'trx_utils'), "desc" => wp_kses_data( __("Select color for the title", 'trx_utils') ), "value" => "", "type" => "color" ), "icon" => array( "title" => esc_html__('Title font icon', 'trx_utils'), "desc" => wp_kses_data( __("Select font icon for the title from Fontello icons set (if style=iconed)", 'trx_utils') ), "dependency" => array( 'style' => array('iconed') ), "value" => "", "type" => "icons", "options" => charity_is_hope_get_sc_param('icons') ), "image" => array( "title" => esc_html__('or image icon', 'trx_utils'), "desc" => wp_kses_data( __("Select image icon for the title instead icon above (if style=iconed)", 'trx_utils') ), "dependency" => array( 'style' => array('iconed') ), "value" => "", "type" => "images", "size" => "small", "options" => charity_is_hope_get_sc_param('images') ), "picture" => array( "title" => esc_html__('or URL for image file', 'trx_utils'), "desc" => wp_kses_data( __("Select or upload image or write URL from other site (if style=iconed)", 'trx_utils') ), "dependency" => array( 'style' => array('iconed') ), "readonly" => false, "value" => "", "type" => "media" ), "image_size" => array( "title" => esc_html__('Image (picture) size', 'trx_utils'), "desc" => wp_kses_data( __("Select image (picture) size (if style='iconed')", 'trx_utils') ), "dependency" => array( 'style' => array('iconed') ), "value" => "small", "type" => "checklist", "options" => array( 'small' => esc_html__('Small', 'trx_utils'), 'medium' => esc_html__('Medium', 'trx_utils'), 'large' => esc_html__('Large', 'trx_utils') ) ), "position" => array( "title" => esc_html__('Icon (image) position', 'trx_utils'), "desc" => wp_kses_data( __("Select icon (image) position (if style=iconed)", 'trx_utils') ), "dependency" => array( 'style' => array('iconed') ), "value" => "left", "type" => "checklist", "options" => array( 'top' => esc_html__('Top', 'trx_utils'), 'left' => esc_html__('Left', 'trx_utils') ) ), "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_title_reg_shortcodes_vc' ) ) { //add_action('charity_is_hope_action_shortcodes_list_vc', 'charity_is_hope_sc_title_reg_shortcodes_vc'); function charity_is_hope_sc_title_reg_shortcodes_vc() { vc_map( array( "base" => "trx_title", "name" => esc_html__("Title", 'trx_utils'), "description" => wp_kses_data( __("Create header tag (1-6 level) with many styles", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_title', "class" => "trx_sc_single trx_sc_title", "content_element" => true, "is_container" => false, "show_settings_on_create" => true, "params" => array( array( "param_name" => "content", "heading" => esc_html__("Title content", 'trx_utils'), "description" => wp_kses_data( __("Title content", 'trx_utils') ), "class" => "", "value" => "", "type" => "textarea_html" ), array( "param_name" => "type", "heading" => esc_html__("Title type", 'trx_utils'), "description" => wp_kses_data( __("Title type (header level)", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => array( esc_html__('Header 1', 'trx_utils') => '1', esc_html__('Header 2', 'trx_utils') => '2', esc_html__('Header 3', 'trx_utils') => '3', esc_html__('Header 4', 'trx_utils') => '4', esc_html__('Header 5', 'trx_utils') => '5', esc_html__('Header 6', 'trx_utils') => '6' ), "type" => "dropdown" ), array( "param_name" => "style", "heading" => esc_html__("Title style", 'trx_utils'), "description" => wp_kses_data( __("Title style: only text (regular) or with icon/image (iconed)", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => array( esc_html__('Regular', 'trx_utils') => 'regular', esc_html__('Underline', 'trx_utils') => 'underline', esc_html__('Divider', 'trx_utils') => 'divider', esc_html__('With icon (image)', 'trx_utils') => 'iconed' ), "type" => "dropdown" ), array( "param_name" => "align", "heading" => esc_html__("Alignment", 'trx_utils'), "description" => wp_kses_data( __("Title text alignment", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('align')), "type" => "dropdown" ), array( "param_name" => "font_size", "heading" => esc_html__("Font size", 'trx_utils'), "description" => wp_kses_data( __("Custom font size. If empty - use theme default", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "font_weight", "heading" => esc_html__("Font weight", 'trx_utils'), "description" => wp_kses_data( __("Custom font weight. If empty or inherit - use theme default", 'trx_utils') ), "class" => "", "value" => array( esc_html__('Default', 'trx_utils') => 'inherit', esc_html__('Thin (100)', 'trx_utils') => '100', esc_html__('Light (300)', 'trx_utils') => '300', esc_html__('Normal (400)', 'trx_utils') => '400', esc_html__('Semibold (600)', 'trx_utils') => '600', esc_html__('Bold (700)', 'trx_utils') => '700', esc_html__('Black (900)', 'trx_utils') => '900' ), "type" => "dropdown" ), array( "param_name" => "color", "heading" => esc_html__("Title color", 'trx_utils'), "description" => wp_kses_data( __("Select color for the title", 'trx_utils') ), "class" => "", "value" => "", "type" => "colorpicker" ), array( "param_name" => "icon", "heading" => esc_html__("Title font icon", 'trx_utils'), "description" => wp_kses_data( __("Select font icon for the title from Fontello icons set (if style=iconed)", 'trx_utils') ), "class" => "", "group" => esc_html__('Icon & Image', 'trx_utils'), 'dependency' => array( 'element' => 'style', 'value' => array('iconed') ), "value" => charity_is_hope_get_sc_param('icons'), "type" => "dropdown" ), array( "param_name" => "image", "heading" => esc_html__("or image icon", 'trx_utils'), "description" => wp_kses_data( __("Select image icon for the title instead icon above (if style=iconed)", 'trx_utils') ), "class" => "", "group" => esc_html__('Icon & Image', 'trx_utils'), 'dependency' => array( 'element' => 'style', 'value' => array('iconed') ), "value" => charity_is_hope_get_sc_param('images'), "type" => "dropdown" ), array( "param_name" => "picture", "heading" => esc_html__("or select uploaded image", 'trx_utils'), "description" => wp_kses_data( __("Select or upload image or write URL from other site (if style=iconed)", 'trx_utils') ), "group" => esc_html__('Icon & Image', 'trx_utils'), "class" => "", "value" => "", "type" => "attach_image" ), array( "param_name" => "image_size", "heading" => esc_html__("Image (picture) size", 'trx_utils'), "description" => wp_kses_data( __("Select image (picture) size (if style=iconed)", 'trx_utils') ), "group" => esc_html__('Icon & Image', 'trx_utils'), "class" => "", "value" => array( esc_html__('Small', 'trx_utils') => 'small', esc_html__('Medium', 'trx_utils') => 'medium', esc_html__('Large', 'trx_utils') => 'large' ), "type" => "dropdown" ), array( "param_name" => "position", "heading" => esc_html__("Icon (image) position", 'trx_utils'), "description" => wp_kses_data( __("Select icon (image) position (if style=iconed)", 'trx_utils') ), "group" => esc_html__('Icon & Image', 'trx_utils'), "class" => "", "std" => "left", "value" => array( esc_html__('Top', 'trx_utils') => 'top', esc_html__('Left', 'trx_utils') => 'left' ), "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_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' => 'VcTrxTextView' ) ); class WPBakeryShortCode_Trx_Title extends Charity_Is_Hope_VC_ShortCodeSingle {} } } ?>
Save
cmd:
run