/
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/socials.php
(13118B)
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_socials_theme_setup')) { add_action( 'charity_is_hope_action_before_init_theme', 'charity_is_hope_sc_socials_theme_setup' ); function charity_is_hope_sc_socials_theme_setup() { add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_socials_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_socials_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ /* [trx_socials id="unique_id" size="small"] [trx_social_item name="facebook" url="profile url" icon="path for the icon"] [trx_social_item name="twitter" url="profile url"] [/trx_socials] */ if (!function_exists('charity_is_hope_sc_socials')) { function charity_is_hope_sc_socials($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "size" => "small", // tiny | small | medium | large "shape" => "square", // round | square "type" => charity_is_hope_get_theme_setting('socials_type'), // icons | images "socials" => "", "custom" => "no", // 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); charity_is_hope_storage_set('sc_social_data', array( 'icons' => false, 'type' => $type ) ); if (!empty($socials)) { $allowed = explode('|', $socials); $list = array(); for ($i=0; $i<count($allowed); $i++) { $s = explode('=', $allowed[$i]); if (!empty($s[1])) { $list[] = array( 'icon' => $type=='images' ? charity_is_hope_get_socials_url($s[0]) : 'icon-'.trim($s[0]), 'url' => $s[1] ); } } if (count($list) > 0) charity_is_hope_storage_set_array('sc_social_data', 'icons', $list); } else if (charity_is_hope_param_is_on($custom)) $content = do_shortcode($content); if (charity_is_hope_storage_get_array('sc_social_data', 'icons')===false) charity_is_hope_storage_set_array('sc_social_data', 'icons', charity_is_hope_get_custom_option('social_icons')); $output = charity_is_hope_prepare_socials(charity_is_hope_storage_get_array('sc_social_data', 'icons')); $output = $output ? '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="sc_socials sc_socials_type_' . esc_attr($type) . ' sc_socials_shape_' . esc_attr($shape) . ' sc_socials_size_' . esc_attr($size) . (!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)).'"' : '') . '>' . ($output) . '</div>' : ''; return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_socials', $atts, $content); } add_shortcode('trx_socials', 'charity_is_hope_sc_socials'); } if (!function_exists('charity_is_hope_sc_social_item')) { function charity_is_hope_sc_social_item($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "name" => "", "url" => "", "icon" => "" ), $atts))); if (empty($icon)) { if (!empty($name)) { $type = charity_is_hope_storage_get_array('sc_social_data', 'type'); if ($type=='images') { if (file_exists(charity_is_hope_get_socials_dir($name.'.png'))) $icon = charity_is_hope_get_socials_url($name.'.png'); } else $icon = 'icon-'.esc_attr($name); } } else if ((int) $icon > 0) { $attach = wp_get_attachment_image_src( $icon, 'full' ); if (isset($attach[0]) && $attach[0]!='') $icon = $attach[0]; } if (!empty($icon) && !empty($url)) { if (charity_is_hope_storage_get_array('sc_social_data', 'icons')===false) charity_is_hope_storage_set_array('sc_social_data', 'icons', array()); charity_is_hope_storage_set_array2('sc_social_data', 'icons', '', array( 'icon' => $icon, 'url' => $url ) ); } return ''; } add_shortcode('trx_social_item', 'charity_is_hope_sc_social_item'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_socials_reg_shortcodes' ) ) { //add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_socials_reg_shortcodes'); function charity_is_hope_sc_socials_reg_shortcodes() { charity_is_hope_sc_map("trx_socials", array( "title" => esc_html__("Social icons", 'trx_utils'), "desc" => wp_kses_data( __("List of social icons (with hovers)", 'trx_utils') ), "decorate" => true, "container" => false, "params" => array( "type" => array( "title" => esc_html__("Icon's type", 'trx_utils'), "desc" => wp_kses_data( __("Type of the icons - images or font icons", 'trx_utils') ), "value" => charity_is_hope_get_theme_setting('socials_type'), "options" => array( 'icons' => esc_html__('Icons', 'trx_utils'), 'images' => esc_html__('Images', 'trx_utils') ), "type" => "checklist" ), "size" => array( "title" => esc_html__("Icon's size", 'trx_utils'), "desc" => wp_kses_data( __("Size of the icons", 'trx_utils') ), "value" => "small", "options" => charity_is_hope_get_sc_param('sizes'), "type" => "checklist" ), "shape" => array( "title" => esc_html__("Icon's shape", 'trx_utils'), "desc" => wp_kses_data( __("Shape of the icons", 'trx_utils') ), "value" => "square", "options" => charity_is_hope_get_sc_param('shapes'), "type" => "checklist" ), "socials" => array( "title" => esc_html__("Manual socials list", 'trx_utils'), "desc" => wp_kses_data( __("Custom list of social networks. For example: twitter=http://twitter.com/my_profile|facebook=http://facebook.com/my_profile. If empty - use socials from Theme options.", 'trx_utils') ), "divider" => true, "value" => "", "type" => "text" ), "custom" => array( "title" => esc_html__("Custom socials", 'trx_utils'), "desc" => wp_kses_data( __("Make custom icons from inner shortcodes (prepare it on tabs)", 'trx_utils') ), "divider" => true, "value" => "no", "options" => charity_is_hope_get_sc_param('yes_no'), "type" => "switch" ), "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') ), "children" => array( "name" => "trx_social_item", "title" => esc_html__("Custom social item", 'trx_utils'), "desc" => wp_kses_data( __("Custom social item: name, profile url and icon url", 'trx_utils') ), "decorate" => false, "container" => false, "params" => array( "name" => array( "title" => esc_html__("Social name", 'trx_utils'), "desc" => wp_kses_data( __("Name (slug) of the social network (twitter, facebook, linkedin, etc.)", 'trx_utils') ), "value" => "", "type" => "text" ), "url" => array( "title" => esc_html__("Your profile URL", 'trx_utils'), "desc" => wp_kses_data( __("URL of your profile in specified social network", 'trx_utils') ), "value" => "", "type" => "text" ), "icon" => array( "title" => esc_html__("URL (source) for icon file", 'trx_utils'), "desc" => wp_kses_data( __("Select or upload image or write URL from other site for the current social icon", 'trx_utils') ), "readonly" => false, "value" => "", "type" => "media" ) ) ) )); } } /* Register shortcode in the VC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_socials_reg_shortcodes_vc' ) ) { //add_action('charity_is_hope_action_shortcodes_list_vc', 'charity_is_hope_sc_socials_reg_shortcodes_vc'); function charity_is_hope_sc_socials_reg_shortcodes_vc() { vc_map( array( "base" => "trx_socials", "name" => esc_html__("Social icons", 'trx_utils'), "description" => wp_kses_data( __("Custom social icons", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_socials', "class" => "trx_sc_collection trx_sc_socials", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "as_parent" => array('only' => 'trx_social_item'), "params" => array_merge(array( array( "param_name" => "type", "heading" => esc_html__("Icon's type", 'trx_utils'), "description" => wp_kses_data( __("Type of the icons - images or font icons", 'trx_utils') ), "class" => "", "std" => charity_is_hope_get_theme_setting('socials_type'), "value" => array( esc_html__('Icons', 'trx_utils') => 'icons', esc_html__('Images', 'trx_utils') => 'images' ), "type" => "dropdown" ), array( "param_name" => "size", "heading" => esc_html__("Icon's size", 'trx_utils'), "description" => wp_kses_data( __("Size of the icons", 'trx_utils') ), "class" => "", "std" => "small", "value" => array_flip(charity_is_hope_get_sc_param('sizes')), "type" => "dropdown" ), array( "param_name" => "shape", "heading" => esc_html__("Icon's shape", 'trx_utils'), "description" => wp_kses_data( __("Shape of the icons", 'trx_utils') ), "class" => "", "std" => "square", "value" => array_flip(charity_is_hope_get_sc_param('shapes')), "type" => "dropdown" ), array( "param_name" => "socials", "heading" => esc_html__("Manual socials list", 'trx_utils'), "description" => wp_kses_data( __("Custom list of social networks. For example: twitter=http://twitter.com/my_profile|facebook=http://facebook.com/my_profile. If empty - use socials from Theme options.", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "custom", "heading" => esc_html__("Custom socials", 'trx_utils'), "description" => wp_kses_data( __("Make custom icons from inner shortcodes (prepare it on tabs)", 'trx_utils') ), "class" => "", "value" => array(esc_html__('Custom socials', 'trx_utils') => 'yes'), "type" => "checkbox" ), 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') )) ) ); vc_map( array( "base" => "trx_social_item", "name" => esc_html__("Custom social item", 'trx_utils'), "description" => wp_kses_data( __("Custom social item: name, profile url and icon url", 'trx_utils') ), "show_settings_on_create" => true, "content_element" => true, "is_container" => false, 'icon' => 'icon_trx_social_item', "class" => "trx_sc_single trx_sc_social_item", "as_child" => array('only' => 'trx_socials'), "as_parent" => array('except' => 'trx_socials'), "params" => array( array( "param_name" => "name", "heading" => esc_html__("Social name", 'trx_utils'), "description" => wp_kses_data( __("Name (slug) of the social network (twitter, facebook, linkedin, etc.)", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "url", "heading" => esc_html__("Your profile URL", 'trx_utils'), "description" => wp_kses_data( __("URL of your profile in specified social network", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "icon", "heading" => esc_html__("URL (source) for icon file", 'trx_utils'), "description" => wp_kses_data( __("Select or upload image or write URL from other site for the current social icon", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => "", "type" => "attach_image" ) ) ) ); class WPBakeryShortCode_Trx_Socials extends Charity_Is_Hope_VC_ShortCodeCollection {} class WPBakeryShortCode_Trx_Social_Item extends Charity_Is_Hope_VC_ShortCodeSingle {} } } ?>
Save
cmd:
run