/
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/columns.php
(17172B)
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_columns_theme_setup')) { add_action( 'charity_is_hope_action_before_init_theme', 'charity_is_hope_sc_columns_theme_setup' ); function charity_is_hope_sc_columns_theme_setup() { add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_columns_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_columns_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ /* [trx_columns id="unique_id" count="number"] [trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item] [trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc, in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet. Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas, non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.[/trx_column_item] [trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim. Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse cum magna.[/trx_column_item] [trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec, dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.[/trx_column_item] [/trx_columns] */ if (!function_exists('charity_is_hope_sc_columns')) { function charity_is_hope_sc_columns($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "count" => "2", "fluid" => "no", "margins" => "yes", "equalheight" => "no", // 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); $count = max(1, min(12, (int) $count)); charity_is_hope_storage_set('sc_columns_data', array( 'counter' => 1, 'equal_selector' => '', 'after_span2' => false, 'after_span3' => false, 'after_span4' => false, 'count' => $count ) ); $content = do_shortcode($content); $output = '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="columns_wrap sc_columns' . ' columns_' . (charity_is_hope_param_is_on($fluid) ? 'fluid' : 'nofluid') . (!empty($margins) && charity_is_hope_param_is_off($margins) ? ' no_margins' : '') . ' sc_columns_count_' . esc_attr($count) . (!empty($class) ? ' '.esc_attr($class) : '') . '"' . ($css!='' ? ' style="'.esc_attr($css).'"' : '') . (!charity_is_hope_param_is_off($equalheight) ? ' data-equal-height="'.esc_attr(charity_is_hope_storage_get_array('sc_columns_data', 'equal_selector')).'"' : '') . (!charity_is_hope_param_is_off($animation) ? ' data-animation="'.esc_attr(charity_is_hope_get_animation_classes($animation)).'"' : '') . '>' . trim($content) . '</div>'; return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_columns', $atts, $content); } add_shortcode('trx_columns', 'charity_is_hope_sc_columns'); } if (!function_exists('charity_is_hope_sc_column_item')) { function charity_is_hope_sc_column_item($atts, $content=null) { if (charity_is_hope_in_shortcode_blogger()) return ''; extract(charity_is_hope_html_decode(shortcode_atts( array( // Individual params "span" => "1", "align" => "", "color" => "", "bg_color" => "", "bg_image" => "", "bg_tile" => "no", // Common params "id" => "", "class" => "", "css" => "", "animation" => "" ), $atts))); $css .= ($align !== '' ? 'text-align:' . esc_attr($align) . ';' : '') . ($color !== '' ? 'color:' . esc_attr($color) . ';' : ''); $span = max(1, min(11, (int) $span)); if (!empty($bg_image)) { if ($bg_image > 0) { $attach = wp_get_attachment_image_src( $bg_image, 'full' ); if (isset($attach[0]) && $attach[0]!='') $bg_image = $attach[0]; } } $output = '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="column-'.($span > 1 ? esc_attr($span) : 1).'_'.esc_attr(charity_is_hope_storage_get_array('sc_columns_data', 'count')).' sc_column_item sc_column_item_'.esc_attr(charity_is_hope_storage_get_array('sc_columns_data', 'counter')) . (!empty($class) ? ' '.esc_attr($class) : '') . (charity_is_hope_storage_get_array('sc_columns_data', 'counter') % 2 == 1 ? ' odd' : ' even') . (charity_is_hope_storage_get_array('sc_columns_data', 'counter') == 1 ? ' first' : '') . ($span > 1 ? ' span_'.esc_attr($span) : '') . (charity_is_hope_storage_get_array('sc_columns_data', 'after_span2') ? ' after_span_2' : '') . (charity_is_hope_storage_get_array('sc_columns_data', 'after_span3') ? ' after_span_3' : '') . (charity_is_hope_storage_get_array('sc_columns_data', 'after_span4') ? ' after_span_4' : '') . '"' . ($css!='' ? ' style="'.esc_attr($css).'"' : '') . (!charity_is_hope_param_is_off($animation) ? ' data-animation="'.esc_attr(charity_is_hope_get_animation_classes($animation)).'"' : '') . '>' . ($bg_color!=='' || $bg_image !== '' ? '<div class="sc_column_item_inner" style="' . ($bg_color !== '' ? 'background-color:' . esc_attr($bg_color) . ';' : '') . ($bg_image !== '' ? 'background-image:url(' . esc_url($bg_image) . ');'.(charity_is_hope_param_is_on($bg_tile) ? 'background-repeat:repeat;' : 'background-repeat:no-repeat;background-size:cover;') : '') . '">' : '') . do_shortcode($content) . ($bg_color!=='' || $bg_image !== '' ? '</div>' : '') . '</div>'; charity_is_hope_storage_inc_array('sc_columns_data', 'counter', $span); charity_is_hope_storage_set_array('sc_columns_data', 'after_span2', $span==2); charity_is_hope_storage_set_array('sc_columns_data', 'after_span3', $span==3); charity_is_hope_storage_set_array('sc_columns_data', 'after_span4', $span==4); charity_is_hope_storage_set_array('sc_columns_data', 'equal_selector', $bg_color!=='' || $bg_image !== '' ? '.sc_column_item_inner' : '.sc_column_item'); return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_column_item', $atts, $content); } add_shortcode('trx_column_item', 'charity_is_hope_sc_column_item'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_columns_reg_shortcodes' ) ) { //add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_columns_reg_shortcodes'); function charity_is_hope_sc_columns_reg_shortcodes() { charity_is_hope_sc_map("trx_columns", array( "title" => esc_html__("Columns", 'trx_utils'), "desc" => wp_kses_data( __("Insert up to 5 columns in your page (post)", 'trx_utils') ), "decorate" => true, "container" => false, "params" => array( "fluid" => array( "title" => esc_html__("Fluid columns", 'trx_utils'), "desc" => wp_kses_data( __("To squeeze the columns when reducing the size of the window (fluid=yes) or to rebuild them (fluid=no)", 'trx_utils') ), "value" => "no", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "margins" => array( "title" => esc_html__("Margins between columns", 'trx_utils'), "desc" => wp_kses_data( __("Add margins between columns", 'trx_utils') ), "value" => "yes", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "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') ), "children" => array( "name" => "trx_column_item", "title" => esc_html__("Column", 'trx_utils'), "desc" => wp_kses_data( __("Column item", 'trx_utils') ), "container" => true, "params" => array( "span" => array( "title" => esc_html__("Merge columns", 'trx_utils'), "desc" => wp_kses_data( __("Count merged columns from current", 'trx_utils') ), "value" => "", "type" => "text" ), "align" => array( "title" => esc_html__("Alignment", 'trx_utils'), "desc" => wp_kses_data( __("Alignment text in the column", 'trx_utils') ), "value" => "", "type" => "checklist", "dir" => "horizontal", "options" => charity_is_hope_get_sc_param('align') ), "color" => array( "title" => esc_html__("Fore color", 'trx_utils'), "desc" => wp_kses_data( __("Any color for objects in this column", 'trx_utils') ), "value" => "", "type" => "color" ), "bg_color" => array( "title" => esc_html__("Background color", 'trx_utils'), "desc" => wp_kses_data( __("Any background color for this column", 'trx_utils') ), "value" => "", "type" => "color" ), "bg_image" => array( "title" => esc_html__("URL for background image file", 'trx_utils'), "desc" => wp_kses_data( __("Select or upload image or write URL from other site for the background", 'trx_utils') ), "readonly" => false, "value" => "", "type" => "media" ), "bg_tile" => array( "title" => esc_html__("Tile background image", 'trx_utils'), "desc" => wp_kses_data( __("Do you want tile background image or image cover whole column?", 'trx_utils') ), "value" => "no", "dependency" => array( 'bg_image' => array('not_empty') ), "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "_content_" => array( "title" => esc_html__("Column item content", 'trx_utils'), "desc" => wp_kses_data( __("Current column item content", 'trx_utils') ), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea" ), "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_columns_reg_shortcodes_vc' ) ) { //add_action('charity_is_hope_action_shortcodes_list_vc', 'charity_is_hope_sc_columns_reg_shortcodes_vc'); function charity_is_hope_sc_columns_reg_shortcodes_vc() { vc_map( array( "base" => "trx_columns", "name" => esc_html__("Columns", 'trx_utils'), "description" => wp_kses_data( __("Insert columns with margins", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_columns', "class" => "trx_sc_columns", "content_element" => true, "is_container" => true, "show_settings_on_create" => false, "as_parent" => array('only' => 'trx_column_item'), "params" => array( array( "param_name" => "count", "heading" => esc_html__("Columns count", 'trx_utils'), "description" => wp_kses_data( __("Number of the columns in the container.", 'trx_utils') ), "admin_label" => true, "value" => "2", "type" => "textfield" ), array( "param_name" => "fluid", "heading" => esc_html__("Fluid columns", 'trx_utils'), "description" => wp_kses_data( __("To squeeze the columns when reducing the size of the window (fluid=yes) or to rebuild them (fluid=no)", 'trx_utils') ), "value" => array(esc_html__('Fluid columns', 'trx_utils') => 'yes'), "type" => "checkbox" ), array( "param_name" => "equalheight", "heading" => esc_html__("Equal height", 'trx_utils'), "description" => wp_kses_data( __("Make equal height for all columns in the row", 'trx_utils') ), "value" => array("Equal height" => "yes" ), "type" => "checkbox" ), array( "param_name" => "margins", "heading" => esc_html__("Margins between columns", 'trx_utils'), "description" => wp_kses_data( __("Add margins between columns", 'trx_utils') ), "std" => "yes", "value" => array(esc_html__('Disable margins between columns', 'trx_utils') => 'no'), "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_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') ), 'default_content' => ' [trx_column_item][/trx_column_item] [trx_column_item][/trx_column_item] ', 'js_view' => 'VcTrxColumnsView' ) ); vc_map( array( "base" => "trx_column_item", "name" => esc_html__("Column", 'trx_utils'), "description" => wp_kses_data( __("Column item", 'trx_utils') ), "show_settings_on_create" => true, "class" => "trx_sc_collection trx_sc_column_item", "content_element" => true, "is_container" => true, 'icon' => 'icon_trx_column_item', "as_child" => array('only' => 'trx_columns'), "as_parent" => array('except' => 'trx_columns'), "params" => array( array( "param_name" => "span", "heading" => esc_html__("Merge columns", 'trx_utils'), "description" => wp_kses_data( __("Count merged columns from current", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "align", "heading" => esc_html__("Alignment", 'trx_utils'), "description" => wp_kses_data( __("Alignment text in the column", 'trx_utils') ), "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('align')), "type" => "dropdown" ), array( "param_name" => "color", "heading" => esc_html__("Fore color", 'trx_utils'), "description" => wp_kses_data( __("Any color for objects in this column", '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 column", 'trx_utils') ), "class" => "", "value" => "", "type" => "colorpicker" ), array( "param_name" => "bg_image", "heading" => esc_html__("URL for background image file", 'trx_utils'), "description" => wp_kses_data( __("Select or upload image or write URL from other site for the background", 'trx_utils') ), "class" => "", "value" => "", "type" => "attach_image" ), array( "param_name" => "bg_tile", "heading" => esc_html__("Tile background image", 'trx_utils'), "description" => wp_kses_data( __("Do you want tile background image or image cover whole column?", 'trx_utils') ), "class" => "", 'dependency' => array( 'element' => 'bg_image', 'not_empty' => true ), "std" => "no", "value" => array(esc_html__('Tile background image', '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') ), 'js_view' => 'VcTrxColumnItemView' ) ); class WPBakeryShortCode_Trx_Columns extends Charity_Is_Hope_VC_ShortCodeColumns {} class WPBakeryShortCode_Trx_Column_Item extends Charity_Is_Hope_VC_ShortCodeCollection {} } } ?>
Save
cmd:
run