/
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/blogger.php
(34038B)
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('charity_is_hope_sc_blogger_theme_setup')) { add_action( 'charity_is_hope_action_before_init_theme', 'charity_is_hope_sc_blogger_theme_setup' ); function charity_is_hope_sc_blogger_theme_setup() { add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_blogger_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_blogger_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ /* [trx_blogger id="unique_id" ids="comma_separated_list" cat="id|slug" orderby="date|views|comments" order="asc|desc" count="5" descr="0" dir="horizontal|vertical" style="regular|date|image_large|image_medium|image_small|accordion|list" border="0"] */ charity_is_hope_storage_set('sc_blogger_busy', false); if (!function_exists('charity_is_hope_sc_blogger')) { function charity_is_hope_sc_blogger($atts, $content=null){ if (charity_is_hope_in_shortcode_blogger(true)) return ''; extract(charity_is_hope_html_decode(shortcode_atts(array( // Individual params "style" => "accordion", "filters" => "no", "post_type" => "post", "ids" => "", "cat" => "", "count" => "3", "columns" => "", "offset" => "", "orderby" => "date", "order" => "desc", "only" => "no", "descr" => "", "readmore" => "", "loadmore" => "no", "location" => "default", "dir" => "horizontal", "hover" => charity_is_hope_get_theme_option('hover_style'), "hover_dir" => charity_is_hope_get_theme_option('hover_dir'), "scroll" => "no", "controls" => "no", "rating" => "no", "info" => "yes", "links" => "yes", "date_format" => "", "title" => "", "subtitle" => "", "description" => "", "link" => '', "link_caption" => esc_html__('Learn more', 'trx_utils'), // 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); $width = charity_is_hope_prepare_css_value($width); $height = charity_is_hope_prepare_css_value($height); global $post; charity_is_hope_storage_set('sc_blogger_busy', true); charity_is_hope_storage_set('sc_blogger_counter', 0); if (empty($id)) $id = "sc_blogger_".str_replace('.', '', mt_rand()); if ($style=='date' && empty($date_format)) $date_format = 'd.m+Y'; if (!empty($ids)) { $posts = explode(',', str_replace(' ', '', $ids)); $count = count($posts); } if ($descr == '') $descr = charity_is_hope_get_custom_option('post_excerpt_maxlength'.($columns > 1 ? '_masonry' : '')); if (!charity_is_hope_param_is_off($scroll)) { charity_is_hope_enqueue_slider(); if (empty($id)) $id = 'sc_blogger_'.str_replace('.', '', mt_rand()); } $class = apply_filters('charity_is_hope_filter_blog_class', 'sc_blogger' . ' layout_'.esc_attr($style) . ' template_'.esc_attr(charity_is_hope_get_template_name($style)) . (!empty($class) ? ' '.esc_attr($class) : '') . ' ' . esc_attr(charity_is_hope_get_template_property($style, 'container_classes')) . ' sc_blogger_' . ($dir=='vertical' ? 'vertical' : 'horizontal') . (charity_is_hope_param_is_on($scroll) && charity_is_hope_param_is_on($controls) ? ' sc_scroll_controls sc_scroll_controls_type_top sc_scroll_controls_'.esc_attr($dir) : '') . ($descr == 0 ? ' no_description' : ''), array('style'=>$style, 'dir'=>$dir, 'descr'=>$descr) ); $container = apply_filters('charity_is_hope_filter_blog_container', charity_is_hope_get_template_property($style, 'container'), array('style'=>$style, 'dir'=>$dir)); $container_start = $container_end = ''; if (!empty($container)) { $container = explode('%s', $container); $container_start = !empty($container[0]) ? $container[0] : ''; $container_end = !empty($container[1]) ? $container[1] : ''; } $container2 = apply_filters('charity_is_hope_filter_blog_container2', charity_is_hope_get_template_property($style, 'container2'), array('style'=>$style, 'dir'=>$dir)); $container2_start = $container2_end = ''; if (!empty($container2)) { $container2 = explode('%s', $container2); $container2_start = !empty($container2[0]) ? $container2[0] : ''; $container2_end = !empty($container2[1]) ? $container2[1] : ''; } $output = '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="'.($style=='list' ? 'sc_list sc_list_style_iconed ' : '') . 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)).'"' : '') . '>' . ($container_start) . (!empty($subtitle) ? '<h6 class="sc_blogger_subtitle sc_item_subtitle">' . trim(charity_is_hope_strmacros($subtitle)) . '</h6>' : '') . (!empty($title) ? '<h2 class="sc_blogger_title sc_item_title' . (empty($description) ? ' sc_item_title_without_descr' : ' sc_item_title_without_descr') . '">' . trim(charity_is_hope_strmacros($title)) . '</h2>' : '') . (!empty($description) ? '<div class="sc_blogger_descr sc_item_descr">' . trim(charity_is_hope_strmacros($description)) . '</div>' : '') . ($container2_start) . ($style=='list' ? '<ul class="sc_list sc_list_style_iconed">' : '') . ($dir=='horizontal' && $columns > 1 && charity_is_hope_get_template_property($style, 'need_columns') ? '<div class="columns_wrap">' : '') . (charity_is_hope_param_is_on($scroll) ? '<div id="'.esc_attr($id).'_scroll" class="sc_scroll sc_scroll_'.esc_attr($dir).' sc_slider_noresize swiper-slider-container scroll-container"' . ' style="'.($dir=='vertical' ? 'height:'.($height != '' ? $height : "230px").';' : 'width:'.($width != '' ? $width.';' : "100%;")).'"' . '>' . '<div class="sc_scroll_wrapper swiper-wrapper">' . '<div class="sc_scroll_slide swiper-slide">' : '') ; if (charity_is_hope_get_template_property($style, 'need_isotope')) { if (!charity_is_hope_param_is_off($filters)) $output .= '<div class="isotope_filters"></div>'; if ($columns<1) $columns = charity_is_hope_substr($style, -1); $output .= '<div class="isotope_wrap" data-columns="'.max(1, min(12, $columns)).'">'; } $args = array( 'post_status' => current_user_can('read_private_pages') && current_user_can('read_private_posts') ? array('publish', 'private') : 'publish', 'posts_per_page' => $count, 'ignore_sticky_posts' => true, 'order' => $order=='asc' ? 'asc' : 'desc', 'orderby' => 'date', ); if ($offset > 0 && empty($ids)) { $args['offset'] = $offset; } $args = charity_is_hope_query_add_sort_order($args, $orderby, $order); if (!charity_is_hope_param_is_off($only)) $args = charity_is_hope_query_add_filters($args, $only); $args = charity_is_hope_query_add_posts_and_cats($args, $ids, $post_type, $cat); $query = new WP_Query( $args ); $flt_ids = array(); while ( $query->have_posts() ) { $query->the_post(); charity_is_hope_storage_inc('sc_blogger_counter'); $args = array( 'layout' => $style, 'show' => false, 'number' => charity_is_hope_storage_get('sc_blogger_counter'), 'add_view_more' => false, 'posts_on_page' => ($count > 0 ? $count : $query->found_posts), // Additional options to layout generator "location" => $location, "descr" => $descr, "readmore" => $readmore, "loadmore" => $loadmore, "reviews" => charity_is_hope_param_is_on($rating), "dir" => $dir, "scroll" => charity_is_hope_param_is_on($scroll), "info" => charity_is_hope_param_is_on($info), "links" => charity_is_hope_param_is_on($links), "orderby" => $orderby, "columns_count" => $columns, "date_format" => $date_format, // Get post data 'strip_teaser' => false, 'content' => charity_is_hope_get_template_property($style, 'need_content'), 'terms_list' => !charity_is_hope_param_is_off($filters) || charity_is_hope_get_template_property($style, 'need_terms'), 'filters' => charity_is_hope_param_is_off($filters) ? '' : $filters, 'hover' => $hover, 'hover_dir' => $hover_dir ); $post_data = charity_is_hope_get_post_data($args); $output .= charity_is_hope_show_post_layout($args, $post_data); if (!charity_is_hope_param_is_off($filters)) { if ($filters == 'tags') { // Use tags as filter items if (!empty($post_data['post_terms'][$post_data['post_taxonomy_tags']]->terms) && is_array($post_data['post_terms'][$post_data['post_taxonomy_tags']]->terms)) { foreach ($post_data['post_terms'][$post_data['post_taxonomy_tags']]->terms as $tag) { $flt_ids[$tag->term_id] = $tag->name; } } } } } wp_reset_postdata(); // Close isotope wrapper if (charity_is_hope_get_template_property($style, 'need_isotope')) $output .= '</div>'; // Isotope filters list if (!charity_is_hope_param_is_off($filters)) { $filters_list = ''; if ($filters == 'categories') { // Use categories as filter items $taxonomy = charity_is_hope_get_taxonomy_categories_by_post_type($post_type); $portfolio_parent = $cat ? max(0, charity_is_hope_get_parent_taxonomy_by_property($cat, 'show_filters', 'yes', true, $taxonomy)) : 0; $args2 = array( 'type' => $post_type, 'child_of' => $portfolio_parent, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'hierarchical' => 0, 'exclude' => '', 'include' => '', 'number' => '', 'taxonomy' => $taxonomy, 'pad_counts' => false ); $portfolio_list = get_categories($args2); if (is_array($portfolio_list) && count($portfolio_list) > 0) { $filters_list .= '<a href="#" data-filter="*" class="theme_button active">'.esc_html__('All', 'trx_utils').'</a>'; foreach ($portfolio_list as $cat) { $filters_list .= '<a href="#" data-filter=".flt_'.esc_attr($cat->term_id).'" class="theme_button">'.($cat->name).'</a>'; } } } else { // Use tags as filter items if (is_array($flt_ids) && count($flt_ids) > 0) { $filters_list .= '<a href="#" data-filter="*" class="theme_button active">'.esc_html__('All', 'trx_utils').'</a>'; foreach ($flt_ids as $flt_id=>$flt_name) { $filters_list .= '<a href="#" data-filter=".flt_'.esc_attr($flt_id).'" class="theme_button">'.($flt_name).'</a>'; } } } if ($filters_list) { charity_is_hope_storage_concat('js_code', ' jQuery("#'.esc_attr($id).' .isotope_filters").append("'.addslashes($filters_list).'"); '); } } $output .= (charity_is_hope_param_is_on($scroll) ? '</div></div><div id="'.esc_attr($id).'_scroll_bar" class="sc_scroll_bar sc_scroll_bar_'.esc_attr($dir).' '.esc_attr($id).'_scroll_bar"></div></div>' . (!charity_is_hope_param_is_off($controls) ? '<div class="sc_scroll_controls_wrap"><a class="sc_scroll_prev" href="#"></a><a class="sc_scroll_next" href="#"></a></div>' : '') : '') . ($dir=='horizontal' && $columns > 1 && charity_is_hope_get_template_property($style, 'need_columns') ? '</div>' : '') . ($style == 'list' ? '</ul>' : '') . ($container2_end) . (!empty($link) ? '<div class="sc_blogger_button sc_item_button">'.do_shortcode('[trx_button link="'.esc_url($link).'" icon="icon-right"]'.esc_html($link_caption).'[/trx_button]').'</div>' : '') . ($container_end) . '</div>'; // Add template specific scripts and styles do_action('charity_is_hope_action_blog_scripts', $style); charity_is_hope_storage_set('sc_blogger_busy', false); return apply_filters('charity_is_hope_shortcode_output', $output, 'trx_blogger', $atts, $content); } add_shortcode('trx_blogger', 'charity_is_hope_sc_blogger'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'charity_is_hope_sc_blogger_reg_shortcodes' ) ) { //add_action('charity_is_hope_action_shortcodes_list', 'charity_is_hope_sc_blogger_reg_shortcodes'); function charity_is_hope_sc_blogger_reg_shortcodes() { charity_is_hope_sc_map("trx_blogger", array( "title" => esc_html__("Blogger", 'trx_utils'), "desc" => wp_kses_data( __("Insert posts (pages) in many styles from desired categories or directly from ids", 'trx_utils') ), "decorate" => false, "container" => false, "params" => array( "title" => array( "title" => esc_html__("Title", 'trx_utils'), "desc" => wp_kses_data( __("Title for the block", 'trx_utils') ), "value" => "", "type" => "text" ), "subtitle" => array( "title" => esc_html__("Subtitle", 'trx_utils'), "desc" => wp_kses_data( __("Subtitle for the block", 'trx_utils') ), "value" => "", "type" => "text" ), "description" => array( "title" => esc_html__("Description", 'trx_utils'), "desc" => wp_kses_data( __("Short description for the block", 'trx_utils') ), "value" => "", "type" => "textarea" ), "style" => array( "title" => esc_html__("Posts output style", 'trx_utils'), "desc" => wp_kses_data( __("Select desired style for posts output", 'trx_utils') ), "value" => "accordion", "type" => "select", "options" => charity_is_hope_get_sc_param('blogger_styles') ), "filters" => array( "title" => esc_html__("Show filters", 'trx_utils'), "desc" => wp_kses_data( __("Use post's tags or categories as filter buttons", 'trx_utils') ), "value" => "no", "dir" => "horizontal", "type" => "checklist", "options" => charity_is_hope_get_sc_param('filters') ), "hover" => array( "title" => esc_html__("Hover effect", 'trx_utils'), "desc" => wp_kses_data( __("Select hover effect (only if style=Portfolio)", 'trx_utils') ), "dependency" => array( 'style' => array('portfolio','grid','square','short','colored') ), "value" => "", "type" => "select", "options" => charity_is_hope_get_sc_param('hovers') ), "hover_dir" => array( "title" => esc_html__("Hover direction", 'trx_utils'), "desc" => wp_kses_data( __("Select hover direction (only if style=Portfolio and hover=Circle|Square)", 'trx_utils') ), "dependency" => array( 'style' => array('portfolio','grid','square','short','colored'), 'hover' => array('square','circle') ), "value" => "left_to_right", "type" => "select", "options" => charity_is_hope_get_sc_param('hovers_dir') ), "dir" => array( "title" => esc_html__("Posts direction", 'trx_utils'), "desc" => wp_kses_data( __("Display posts in horizontal or vertical direction", 'trx_utils') ), "value" => "horizontal", "type" => "switch", "size" => "big", "options" => charity_is_hope_get_sc_param('dir') ), "post_type" => array( "title" => esc_html__("Post type", 'trx_utils'), "desc" => wp_kses_data( __("Select post type to show", 'trx_utils') ), "value" => "post", "type" => "select", "options" => charity_is_hope_get_sc_param('posts_types') ), "ids" => array( "title" => esc_html__("Post IDs list", 'trx_utils'), "desc" => wp_kses_data( __("Comma separated list of posts ID. If set - parameters above are ignored!", 'trx_utils') ), "value" => "", "type" => "text" ), "cat" => array( "title" => esc_html__("Categories list", 'trx_utils'), "desc" => wp_kses_data( __("Select the desired categories. If not selected - show posts from any category or from IDs list", 'trx_utils') ), "dependency" => array( 'ids' => array('is_empty'), 'post_type' => array('refresh') ), "divider" => true, "value" => "", "type" => "select", "style" => "list", "multiple" => true, "options" => charity_is_hope_array_merge(array(0 => esc_html__('- Select category -', 'trx_utils')), charity_is_hope_get_sc_param('categories')) ), "count" => array( "title" => esc_html__("Total posts to show", 'trx_utils'), "desc" => wp_kses_data( __("How many posts will be displayed? If used IDs - this parameter ignored.", 'trx_utils') ), "dependency" => array( 'ids' => array('is_empty') ), "value" => 3, "min" => 1, "max" => 100, "type" => "spinner" ), "columns" => array( "title" => esc_html__("Columns number", 'trx_utils'), "desc" => wp_kses_data( __("How many columns used to show posts? If empty or 0 - equal to posts number", 'trx_utils') ), "dependency" => array( 'dir' => array('horizontal') ), "value" => 3, "min" => 1, "max" => 100, "type" => "spinner" ), "offset" => array( "title" => esc_html__("Offset before select posts", 'trx_utils'), "desc" => wp_kses_data( __("Skip posts before select next part.", 'trx_utils') ), "dependency" => array( 'ids' => array('is_empty') ), "value" => 0, "min" => 0, "max" => 100, "type" => "spinner" ), "orderby" => array( "title" => esc_html__("Post order by", 'trx_utils'), "desc" => wp_kses_data( __("Select desired posts sorting method", 'trx_utils') ), "value" => "date", "type" => "select", "options" => charity_is_hope_get_sc_param('sorting') ), "order" => array( "title" => esc_html__("Post order", 'trx_utils'), "desc" => wp_kses_data( __("Select desired posts order", 'trx_utils') ), "value" => "desc", "type" => "switch", "size" => "big", "options" => charity_is_hope_get_sc_param('ordering') ), "only" => array( "title" => esc_html__("Select posts only", 'trx_utils'), "desc" => wp_kses_data( __("Select posts only with reviews, videos, audios, thumbs or galleries", 'trx_utils') ), "value" => "no", "type" => "select", "options" => charity_is_hope_get_sc_param('formats') ), "scroll" => array( "title" => esc_html__("Use scroller", 'trx_utils'), "desc" => wp_kses_data( __("Use scroller to show all posts", 'trx_utils') ), "divider" => true, "value" => "no", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "controls" => array( "title" => esc_html__("Show slider controls", 'trx_utils'), "desc" => wp_kses_data( __("Show arrows to control scroll slider", 'trx_utils') ), "dependency" => array( 'scroll' => array('yes') ), "value" => "no", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "location" => array( "title" => esc_html__("Dedicated content location", 'trx_utils'), "desc" => wp_kses_data( __("Select position for dedicated content (only for style=excerpt)", 'trx_utils') ), "divider" => true, "dependency" => array( 'style' => array('excerpt') ), "value" => "default", "type" => "select", "options" => charity_is_hope_get_sc_param('locations') ), "rating" => array( "title" => esc_html__("Show rating stars", 'trx_utils'), "desc" => wp_kses_data( __("Show rating stars under post's header", 'trx_utils') ), "value" => "no", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "info" => array( "title" => esc_html__("Show post info block", 'trx_utils'), "desc" => wp_kses_data( __("Show post info block (author, date, tags, etc.)", 'trx_utils') ), "value" => "no", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "links" => array( "title" => esc_html__("Allow links on the post", 'trx_utils'), "desc" => wp_kses_data( __("Allow links on the post from each blogger item", 'trx_utils') ), "value" => "yes", "type" => "switch", "options" => charity_is_hope_get_sc_param('yes_no') ), "descr" => array( "title" => esc_html__("Description length", 'trx_utils'), "desc" => wp_kses_data( __("How many characters are displayed from post excerpt? If 0 - don't show description", 'trx_utils') ), "value" => 0, "min" => 0, "step" => 10, "type" => "spinner" ), "readmore" => array( "title" => esc_html__("More link text", 'trx_utils'), "desc" => wp_kses_data( __("Read more link text. If empty - show 'More', else - used as link text", 'trx_utils') ), "value" => "", "type" => "text" ), "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') ), "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') ), "value" => "", "type" => "text" ), "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_blogger_reg_shortcodes_vc' ) ) { //add_action('charity_is_hope_action_shortcodes_list_vc', 'charity_is_hope_sc_blogger_reg_shortcodes_vc'); function charity_is_hope_sc_blogger_reg_shortcodes_vc() { vc_map( array( "base" => "trx_blogger", "name" => esc_html__("Blogger", 'trx_utils'), "description" => wp_kses_data( __("Insert posts (pages) in many styles from desired categories or directly from ids", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_blogger', "class" => "trx_sc_single trx_sc_blogger", "content_element" => true, "is_container" => false, "show_settings_on_create" => true, "params" => array( array( "param_name" => "style", "heading" => esc_html__("Output style", 'trx_utils'), "description" => wp_kses_data( __("Select desired style for posts output", 'trx_utils') ), "admin_label" => true, "std" => "accordion", "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('blogger_styles')), "type" => "dropdown" ), array( "param_name" => "filters", "heading" => esc_html__("Show filters", 'trx_utils'), "description" => wp_kses_data( __("Use post's tags or categories as filter buttons", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('filters')), "type" => "dropdown" ), array( "param_name" => "hover", "heading" => esc_html__("Hover effect", 'trx_utils'), "description" => wp_kses_data( __("Select hover effect (only if style=Portfolio)", 'trx_utils') ), "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('hovers')), 'dependency' => array( 'element' => 'style', 'value' => array('portfolio_2','portfolio_3','portfolio_4','grid_2','grid_3','grid_4','square_2','square_3','square_4','short_2','short_3','short_4','colored_2','colored_3','colored_4') ), "type" => "dropdown" ), array( "param_name" => "hover_dir", "heading" => esc_html__("Hover direction", 'trx_utils'), "description" => wp_kses_data( __("Select hover direction (only if style=Portfolio and hover=Circle|Square)", 'trx_utils') ), "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('hovers_dir')), 'dependency' => array( 'element' => 'style', 'value' => array('portfolio_2','portfolio_3','portfolio_4','grid_2','grid_3','grid_4','square_2','square_3','square_4','short_2','short_3','short_4','colored_2','colored_3','colored_4') ), "type" => "dropdown" ), array( "param_name" => "location", "heading" => esc_html__("Dedicated content location", 'trx_utils'), "description" => wp_kses_data( __("Select position for dedicated content (only for style=excerpt)", 'trx_utils') ), "class" => "", 'dependency' => array( 'element' => 'style', 'value' => array('excerpt') ), "value" => array_flip(charity_is_hope_get_sc_param('locations')), "type" => "dropdown" ), array( "param_name" => "dir", "heading" => esc_html__("Posts direction", 'trx_utils'), "description" => wp_kses_data( __("Display posts in horizontal or vertical direction", 'trx_utils') ), "admin_label" => true, "class" => "", "std" => "horizontal", "value" => array_flip(charity_is_hope_get_sc_param('dir')), "type" => "dropdown" ), array( "param_name" => "columns", "heading" => esc_html__("Columns number", 'trx_utils'), "description" => wp_kses_data( __("How many columns used to display posts?", 'trx_utils') ), 'dependency' => array( 'element' => 'dir', 'value' => 'horizontal' ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "rating", "heading" => esc_html__("Show rating stars", 'trx_utils'), "description" => wp_kses_data( __("Show rating stars under post's header", 'trx_utils') ), "group" => esc_html__('Details', 'trx_utils'), "class" => "", "value" => array(esc_html__('Show rating', 'trx_utils') => 'yes'), "type" => "checkbox" ), array( "param_name" => "info", "heading" => esc_html__("Show post info block", 'trx_utils'), "description" => wp_kses_data( __("Show post info block (author, date, tags, etc.)", 'trx_utils') ), "class" => "", "std" => 'yes', "value" => array(esc_html__('Show info', 'trx_utils') => 'yes'), "type" => "checkbox" ), array( "param_name" => "descr", "heading" => esc_html__("Description length", 'trx_utils'), "description" => wp_kses_data( __("How many characters are displayed from post excerpt? If 0 - don't show description", 'trx_utils') ), "group" => esc_html__('Details', 'trx_utils'), "class" => "", "value" => 0, "type" => "textfield" ), array( "param_name" => "links", "heading" => esc_html__("Allow links to the post", 'trx_utils'), "description" => wp_kses_data( __("Allow links to the post from each blogger item", 'trx_utils') ), "group" => esc_html__('Details', 'trx_utils'), "class" => "", "std" => 'yes', "value" => array(esc_html__('Allow links', 'trx_utils') => 'yes'), "type" => "checkbox" ), array( "param_name" => "readmore", "heading" => esc_html__("More link text", 'trx_utils'), "description" => wp_kses_data( __("Read more link text. If empty - show 'More', else - used as link text", 'trx_utils') ), "group" => esc_html__('Details', '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') ), "admin_label" => true, "group" => esc_html__('Captions', 'trx_utils'), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "subtitle", "heading" => esc_html__("Subtitle", 'trx_utils'), "description" => wp_kses_data( __("Subtitle for the block", 'trx_utils') ), "group" => esc_html__('Captions', 'trx_utils'), "class" => "", "value" => "", "type" => "textfield" ), 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'), "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'), "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'), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "post_type", "heading" => esc_html__("Post type", 'trx_utils'), "description" => wp_kses_data( __("Select post type to show", 'trx_utils') ), "group" => esc_html__('Query', 'trx_utils'), "class" => "", "value" => array_flip(charity_is_hope_get_sc_param('posts_types')), "type" => "dropdown" ), array( "param_name" => "ids", "heading" => esc_html__("Post IDs list", 'trx_utils'), "description" => wp_kses_data( __("Comma separated list of posts ID. If set - parameters above are ignored!", 'trx_utils') ), "group" => esc_html__('Query', 'trx_utils'), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "cat", "heading" => esc_html__("Categories list", 'trx_utils'), "description" => wp_kses_data( __("Select category. If empty - show posts from any category or from IDs list", 'trx_utils') ), 'dependency' => array( 'element' => 'ids', 'is_empty' => true ), "group" => esc_html__('Query', 'trx_utils'), "class" => "", "value" => array_flip(charity_is_hope_array_merge(array(0 => esc_html__('- Select category -', 'trx_utils')), charity_is_hope_get_sc_param('categories'))), "type" => "dropdown" ), array( "param_name" => "count", "heading" => esc_html__("Total posts to show", 'trx_utils'), "description" => wp_kses_data( __("How many posts will be displayed? If used IDs - this parameter ignored.", 'trx_utils') ), 'dependency' => array( 'element' => 'ids', 'is_empty' => true ), "admin_label" => true, "group" => esc_html__('Query', 'trx_utils'), "class" => "", "value" => 3, "type" => "textfield" ), array( "param_name" => "offset", "heading" => esc_html__("Offset before select posts", 'trx_utils'), "description" => wp_kses_data( __("Skip posts before select next part.", 'trx_utils') ), 'dependency' => array( 'element' => 'ids', 'is_empty' => true ), "group" => esc_html__('Query', 'trx_utils'), "class" => "", "value" => 0, "type" => "textfield" ), array( "param_name" => "orderby", "heading" => esc_html__("Post order by", 'trx_utils'), "description" => wp_kses_data( __("Select desired posts sorting method", 'trx_utils') ), "class" => "", "group" => esc_html__('Query', 'trx_utils'), "value" => array_flip(charity_is_hope_get_sc_param('sorting')), "type" => "dropdown" ), array( "param_name" => "order", "heading" => esc_html__("Post order", 'trx_utils'), "description" => wp_kses_data( __("Select desired posts order", 'trx_utils') ), "class" => "", "group" => esc_html__('Query', 'trx_utils'), "value" => array_flip(charity_is_hope_get_sc_param('ordering')), "type" => "dropdown" ), array( "param_name" => "only", "heading" => esc_html__("Select posts only", 'trx_utils'), "description" => wp_kses_data( __("Select posts only with reviews, videos, audios, thumbs or galleries", 'trx_utils') ), "class" => "", "group" => esc_html__('Query', 'trx_utils'), "value" => array_flip(charity_is_hope_get_sc_param('formats')), "type" => "dropdown" ), array( "param_name" => "scroll", "heading" => esc_html__("Use scroller", 'trx_utils'), "description" => wp_kses_data( __("Use scroller to show all posts", 'trx_utils') ), "group" => esc_html__('Scroll', 'trx_utils'), "class" => "", "value" => array(esc_html__('Use scroller', 'trx_utils') => 'yes'), "type" => "checkbox" ), array( "param_name" => "controls", "heading" => esc_html__("Show slider controls", 'trx_utils'), "description" => wp_kses_data( __("Show arrows to control scroll slider", 'trx_utils') ), "group" => esc_html__('Scroll', 'trx_utils'), "class" => "", "value" => array(esc_html__('Show controls', '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_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_Blogger extends Charity_Is_Hope_VC_ShortCodeSingle {} } } ?>
Save
cmd:
run