Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/module
File: PostSlider.php
),
[500] Fix | Delete
'toggle_slug' => 'featured_image',
[501] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the featured image in the slider.', 'et_builder' ),
[502] Fix | Delete
'mobile_options' => true,
[503] Fix | Delete
'hover' => 'tabs',
[504] Fix | Delete
),
[505] Fix | Delete
'image_placement' => array(
[506] Fix | Delete
'label' => esc_html__( 'Featured Image Placement', 'et_builder' ),
[507] Fix | Delete
'type' => 'select',
[508] Fix | Delete
'option_category' => 'configuration',
[509] Fix | Delete
'options' => array(
[510] Fix | Delete
'background' => et_builder_i18n( 'Background' ),
[511] Fix | Delete
'left' => et_builder_i18n( 'Left' ),
[512] Fix | Delete
'right' => et_builder_i18n( 'Right' ),
[513] Fix | Delete
'top' => et_builder_i18n( 'Top' ),
[514] Fix | Delete
'bottom' => et_builder_i18n( 'Bottom' ),
[515] Fix | Delete
),
[516] Fix | Delete
'default_on_front' => 'background',
[517] Fix | Delete
'depends_show_if' => 'on',
[518] Fix | Delete
'toggle_slug' => 'featured_image',
[519] Fix | Delete
'description' => esc_html__( 'Select how you would like to display the featured image in slides', 'et_builder' ),
[520] Fix | Delete
),
[521] Fix | Delete
'use_bg_overlay' => array(
[522] Fix | Delete
'label' => esc_html__( 'Use Background Overlay', 'et_builder' ),
[523] Fix | Delete
'type' => 'yes_no_button',
[524] Fix | Delete
'option_category' => 'configuration',
[525] Fix | Delete
'options' => array(
[526] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[527] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[528] Fix | Delete
),
[529] Fix | Delete
'default_on_front' => 'on',
[530] Fix | Delete
'affects' => array(
[531] Fix | Delete
'bg_overlay_color',
[532] Fix | Delete
),
[533] Fix | Delete
'tab_slug' => 'advanced',
[534] Fix | Delete
'toggle_slug' => 'overlay',
[535] Fix | Delete
'description' => esc_html__( 'When enabled, a custom overlay color will be added above your background image and behind your slider content.', 'et_builder' ),
[536] Fix | Delete
),
[537] Fix | Delete
'bg_overlay_color' => array(
[538] Fix | Delete
'label' => esc_html__( 'Background Overlay Color', 'et_builder' ),
[539] Fix | Delete
'type' => 'color-alpha',
[540] Fix | Delete
'custom_color' => true,
[541] Fix | Delete
'depends_show_if' => 'on',
[542] Fix | Delete
'tab_slug' => 'advanced',
[543] Fix | Delete
'toggle_slug' => 'overlay',
[544] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the background overlay.', 'et_builder' ),
[545] Fix | Delete
'hover' => 'tabs',
[546] Fix | Delete
'mobile_options' => true,
[547] Fix | Delete
),
[548] Fix | Delete
'use_text_overlay' => array(
[549] Fix | Delete
'label' => esc_html__( 'Use Text Overlay', 'et_builder' ),
[550] Fix | Delete
'type' => 'yes_no_button',
[551] Fix | Delete
'option_category' => 'configuration',
[552] Fix | Delete
'options' => array(
[553] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[554] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[555] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[556] Fix | Delete
),
[557] Fix | Delete
'affects' => array(
[558] Fix | Delete
'text_overlay_color',
[559] Fix | Delete
'text_border_radius',
[560] Fix | Delete
),
[561] Fix | Delete
'tab_slug' => 'advanced',
[562] Fix | Delete
'toggle_slug' => 'overlay',
[563] Fix | Delete
'description' => esc_html__( 'When enabled, a background color is added behind the slider text to make it more readable atop background images.', 'et_builder' ),
[564] Fix | Delete
),
[565] Fix | Delete
'text_overlay_color' => array(
[566] Fix | Delete
'label' => esc_html__( 'Text Overlay Color', 'et_builder' ),
[567] Fix | Delete
'type' => 'color-alpha',
[568] Fix | Delete
'custom_color' => true,
[569] Fix | Delete
'depends_show_if' => 'on',
[570] Fix | Delete
'tab_slug' => 'advanced',
[571] Fix | Delete
'toggle_slug' => 'overlay',
[572] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the text overlay.', 'et_builder' ),
[573] Fix | Delete
'hover' => 'tabs',
[574] Fix | Delete
'mobile_options' => true,
[575] Fix | Delete
),
[576] Fix | Delete
'show_content_on_mobile' => array(
[577] Fix | Delete
'label' => esc_html__( 'Show Content On Mobile', 'et_builder' ),
[578] Fix | Delete
'type' => 'yes_no_button',
[579] Fix | Delete
'option_category' => 'layout',
[580] Fix | Delete
'options' => array(
[581] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[582] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[583] Fix | Delete
),
[584] Fix | Delete
'default_on_front' => 'on',
[585] Fix | Delete
'tab_slug' => 'custom_css',
[586] Fix | Delete
'toggle_slug' => 'visibility',
[587] Fix | Delete
),
[588] Fix | Delete
'show_cta_on_mobile' => array(
[589] Fix | Delete
'label' => esc_html__( 'Show CTA On Mobile', 'et_builder' ),
[590] Fix | Delete
'type' => 'yes_no_button',
[591] Fix | Delete
'option_category' => 'layout',
[592] Fix | Delete
'options' => array(
[593] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[594] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[595] Fix | Delete
),
[596] Fix | Delete
'default_on_front' => 'on',
[597] Fix | Delete
'tab_slug' => 'custom_css',
[598] Fix | Delete
'toggle_slug' => 'visibility',
[599] Fix | Delete
),
[600] Fix | Delete
'show_image_video_mobile' => array(
[601] Fix | Delete
'label' => esc_html__( 'Show Image On Mobile', 'et_builder' ),
[602] Fix | Delete
'type' => 'yes_no_button',
[603] Fix | Delete
'option_category' => 'layout',
[604] Fix | Delete
'options' => array(
[605] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[606] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[607] Fix | Delete
),
[608] Fix | Delete
'default_on_front' => 'off',
[609] Fix | Delete
'tab_slug' => 'custom_css',
[610] Fix | Delete
'toggle_slug' => 'visibility',
[611] Fix | Delete
),
[612] Fix | Delete
'text_border_radius' => array(
[613] Fix | Delete
'label' => esc_html__( 'Text Overlay Border Radius', 'et_builder' ),
[614] Fix | Delete
'description' => esc_html__( 'Increasing the border radius will increase the roundness of the overlay corners. Setting this value to 0 will result in squared corners.', 'et_builder' ),
[615] Fix | Delete
'type' => 'range',
[616] Fix | Delete
'option_category' => 'layout',
[617] Fix | Delete
'default' => '3',
[618] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[619] Fix | Delete
'default_unit' => 'px',
[620] Fix | Delete
'default_on_front' => '',
[621] Fix | Delete
'range_settings' => array(
[622] Fix | Delete
'min' => '0',
[623] Fix | Delete
'max' => '100',
[624] Fix | Delete
'step' => '1',
[625] Fix | Delete
),
[626] Fix | Delete
'depends_show_if' => 'on',
[627] Fix | Delete
'tab_slug' => 'advanced',
[628] Fix | Delete
'toggle_slug' => 'overlay',
[629] Fix | Delete
'mobile_options' => true,
[630] Fix | Delete
),
[631] Fix | Delete
'arrows_custom_color' => array(
[632] Fix | Delete
'label' => esc_html__( 'Arrow Color', 'et_builder' ),
[633] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the slider arrows that are used to navigate through each slide.', 'et_builder' ),
[634] Fix | Delete
'type' => 'color-alpha',
[635] Fix | Delete
'custom_color' => true,
[636] Fix | Delete
'tab_slug' => 'advanced',
[637] Fix | Delete
'toggle_slug' => 'navigation',
[638] Fix | Delete
'mobile_options' => true,
[639] Fix | Delete
'hover' => 'tabs',
[640] Fix | Delete
),
[641] Fix | Delete
'dot_nav_custom_color' => array(
[642] Fix | Delete
'label' => esc_html__( 'Dot Navigation Color', 'et_builder' ),
[643] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the dot navigation that appears at the bottom of the slider to designate which slide is active.', 'et_builder' ),
[644] Fix | Delete
'type' => 'color-alpha',
[645] Fix | Delete
'custom_color' => true,
[646] Fix | Delete
'tab_slug' => 'advanced',
[647] Fix | Delete
'toggle_slug' => 'navigation',
[648] Fix | Delete
'mobile_options' => true,
[649] Fix | Delete
'hover' => 'tabs',
[650] Fix | Delete
),
[651] Fix | Delete
'__posts' => array(
[652] Fix | Delete
'type' => 'computed',
[653] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Post_Slider', 'get_blog_posts' ),
[654] Fix | Delete
'computed_depends_on' => array(
[655] Fix | Delete
'use_current_loop',
[656] Fix | Delete
'posts_number',
[657] Fix | Delete
'include_categories',
[658] Fix | Delete
'orderby',
[659] Fix | Delete
'content_source',
[660] Fix | Delete
'use_manual_excerpt',
[661] Fix | Delete
'excerpt_length',
[662] Fix | Delete
'offset_number',
[663] Fix | Delete
),
[664] Fix | Delete
),
[665] Fix | Delete
'offset_number' => array(
[666] Fix | Delete
'label' => esc_html__( 'Offset Number', 'et_builder' ),
[667] Fix | Delete
'description' => esc_html__( 'Choose how many posts you would like to offset by', 'et_builder' ),
[668] Fix | Delete
'type' => 'text',
[669] Fix | Delete
'option_category' => 'configuration',
[670] Fix | Delete
'toggle_slug' => 'main_content',
[671] Fix | Delete
'computed_affects' => array(
[672] Fix | Delete
'__posts',
[673] Fix | Delete
),
[674] Fix | Delete
'default' => 0,
[675] Fix | Delete
),
[676] Fix | Delete
);
[677] Fix | Delete
[678] Fix | Delete
return $fields;
[679] Fix | Delete
}
[680] Fix | Delete
[681] Fix | Delete
public function get_transition_fields_css_props() {
[682] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[683] Fix | Delete
$fields['background_layout'] = array(
[684] Fix | Delete
'background-color' => '%%order_class%% .et_pb_slide_overlay_container, %%order_class%% .et_pb_text_overlay_wrapper',
[685] Fix | Delete
'color' => self::$_->array_get( $this->advanced_fields, 'text.css.main', '%%order_class%%' ),
[686] Fix | Delete
);
[687] Fix | Delete
[688] Fix | Delete
$fields['bg_overlay_color'] = array(
[689] Fix | Delete
'background-color' => '%%order_class%% .et_pb_slide .et_pb_slide_overlay_container',
[690] Fix | Delete
);
[691] Fix | Delete
[692] Fix | Delete
$fields['text_overlay_color'] = array(
[693] Fix | Delete
'background-color' => '%%order_class%% .et_pb_slide .et_pb_text_overlay_wrapper',
[694] Fix | Delete
);
[695] Fix | Delete
[696] Fix | Delete
$fields['dot_nav_custom_color'] = array( 'background-color' => et_pb_slider_options()->get_dots_selector() );
[697] Fix | Delete
$fields['arrows_custom_color'] = array( 'all' => et_pb_slider_options()->get_arrows_selector() );
[698] Fix | Delete
[699] Fix | Delete
return $fields;
[700] Fix | Delete
}
[701] Fix | Delete
[702] Fix | Delete
static function get_blog_posts( $args = array(), $conditional_tags = array(), $current_page = array(), $is_ajax_request = true ) {
[703] Fix | Delete
global $wp_query, $paged, $post;
[704] Fix | Delete
[705] Fix | Delete
$defaults = array(
[706] Fix | Delete
'use_current_loop' => 'off',
[707] Fix | Delete
'posts_number' => '',
[708] Fix | Delete
'include_categories' => '',
[709] Fix | Delete
'orderby' => '',
[710] Fix | Delete
'content_source' => '',
[711] Fix | Delete
'use_manual_excerpt' => '',
[712] Fix | Delete
'excerpt_length' => '',
[713] Fix | Delete
'offset_number' => '',
[714] Fix | Delete
);
[715] Fix | Delete
[716] Fix | Delete
$args = wp_parse_args( $args, $defaults );
[717] Fix | Delete
[718] Fix | Delete
// Include query args that we don't control.
[719] Fix | Delete
$query_args = array_merge( array_diff_key( $args, $defaults ), array(
[720] Fix | Delete
'posts_per_page' => (int) $args['posts_number'],
[721] Fix | Delete
'post_status' => array( 'publish', 'private' ),
[722] Fix | Delete
'perm' => 'readable',
[723] Fix | Delete
) );
[724] Fix | Delete
[725] Fix | Delete
if ( 'on' === $args['use_current_loop'] ) {
[726] Fix | Delete
// Reset loop-affecting values to their defaults to simulate the current loop.
[727] Fix | Delete
$reset_keys = array( 'include_categories', 'orderby' );
[728] Fix | Delete
[729] Fix | Delete
foreach ( $reset_keys as $key ) {
[730] Fix | Delete
$args[ $key ] = $defaults[ $key ];
[731] Fix | Delete
}
[732] Fix | Delete
}
[733] Fix | Delete
[734] Fix | Delete
if ( '' !== $args['include_categories'] ) {
[735] Fix | Delete
$query_args['cat'] = $args['include_categories'];
[736] Fix | Delete
}
[737] Fix | Delete
[738] Fix | Delete
if ( 'date_desc' !== $args['orderby'] ) {
[739] Fix | Delete
switch ( $args['orderby'] ) {
[740] Fix | Delete
case 'date_asc':
[741] Fix | Delete
$query_args['orderby'] = 'date';
[742] Fix | Delete
$query_args['order'] = 'ASC';
[743] Fix | Delete
break;
[744] Fix | Delete
case 'title_asc':
[745] Fix | Delete
$query_args['orderby'] = 'title';
[746] Fix | Delete
$query_args['order'] = 'ASC';
[747] Fix | Delete
break;
[748] Fix | Delete
case 'title_desc':
[749] Fix | Delete
$query_args['orderby'] = 'title';
[750] Fix | Delete
$query_args['order'] = 'DESC';
[751] Fix | Delete
break;
[752] Fix | Delete
case 'rand':
[753] Fix | Delete
$query_args['orderby'] = 'rand';
[754] Fix | Delete
break;
[755] Fix | Delete
}
[756] Fix | Delete
}
[757] Fix | Delete
[758] Fix | Delete
if ( '' !== $args['offset_number'] && ! empty( $args['offset_number'] ) ) {
[759] Fix | Delete
/**
[760] Fix | Delete
* Offset + pagination don't play well. Manual offset calculation required
[761] Fix | Delete
* @see: https://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination
[762] Fix | Delete
*/
[763] Fix | Delete
if ( $paged > 1 ) {
[764] Fix | Delete
$query_args['offset'] = ( ( $paged - 1 ) * intval( $args['posts_number'] ) ) + intval( $args['offset_number'] );
[765] Fix | Delete
} else {
[766] Fix | Delete
$query_args['offset'] = intval( $args['offset_number'] );
[767] Fix | Delete
}
[768] Fix | Delete
}
[769] Fix | Delete
[770] Fix | Delete
$query = new WP_Query( $query_args );
[771] Fix | Delete
[772] Fix | Delete
// Keep page's $wp_query global
[773] Fix | Delete
$wp_query_page = $wp_query;
[774] Fix | Delete
[775] Fix | Delete
// Turn page's $wp_query into this module's query
[776] Fix | Delete
$wp_query = $query; //phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[777] Fix | Delete
[778] Fix | Delete
if ( $query->have_posts() ) {
[779] Fix | Delete
$post_index = 0;
[780] Fix | Delete
while ( $query->have_posts() ) {
[781] Fix | Delete
$query->the_post();
[782] Fix | Delete
ET_Post_Stack::replace( $post );
[783] Fix | Delete
[784] Fix | Delete
$post_author_id = $query->posts[ $post_index ]->post_author;
[785] Fix | Delete
[786] Fix | Delete
$categories = array();
[787] Fix | Delete
[788] Fix | Delete
$categories_object = get_the_terms( get_the_ID(), 'category' );
[789] Fix | Delete
[790] Fix | Delete
if ( ! empty( $categories_object ) ) {
[791] Fix | Delete
foreach ( $categories_object as $category ) {
[792] Fix | Delete
$categories[] = array(
[793] Fix | Delete
'id' => $category->term_id,
[794] Fix | Delete
'label' => $category->name,
[795] Fix | Delete
'permalink' => get_term_link( $category ),
[796] Fix | Delete
);
[797] Fix | Delete
}
[798] Fix | Delete
}
[799] Fix | Delete
[800] Fix | Delete
$has_post_thumbnail = has_post_thumbnail();
[801] Fix | Delete
[802] Fix | Delete
$query->posts[ $post_index ]->has_post_thumbnail = $has_post_thumbnail;
[803] Fix | Delete
$query->posts[ $post_index ]->post_thumbnail = $has_post_thumbnail ? get_the_post_thumbnail() : '';
[804] Fix | Delete
$query->posts[ $post_index ]->post_featured_image = $has_post_thumbnail ? esc_url( wp_get_attachment_url( get_post_thumbnail_id() ) ) : '';
[805] Fix | Delete
$query->posts[ $post_index ]->post_permalink = get_the_permalink();
[806] Fix | Delete
$query->posts[ $post_index ]->post_author_url = get_author_posts_url( $post_author_id );
[807] Fix | Delete
$query->posts[ $post_index ]->post_author_name = get_the_author_meta( 'display_name', $post_author_id );
[808] Fix | Delete
$query->posts[ $post_index ]->post_date_readable = get_the_date();
[809] Fix | Delete
$query->posts[ $post_index ]->categories = $categories;
[810] Fix | Delete
$query->posts[ $post_index ]->post_comment_popup = et_core_maybe_convert_to_utf_8( sprintf( esc_html( _nx( '%s Comment', '%s Comments', get_comments_number(), 'number of comments', 'et_builder' ) ), number_format_i18n( get_comments_number() ) ) );
[811] Fix | Delete
[812] Fix | Delete
$post_content = et_strip_shortcodes( get_the_content(), true );
[813] Fix | Delete
[814] Fix | Delete
global $et_fb_processing_shortcode_object, $et_pb_rendering_column_content;
[815] Fix | Delete
[816] Fix | Delete
$global_processing_original_value = $et_fb_processing_shortcode_object;
[817] Fix | Delete
[818] Fix | Delete
// reset the fb processing flag
[819] Fix | Delete
$et_fb_processing_shortcode_object = false;
[820] Fix | Delete
// set the flag to indicate that we're processing internal content
[821] Fix | Delete
$et_pb_rendering_column_content = true;
[822] Fix | Delete
[823] Fix | Delete
if ( $is_ajax_request ) {
[824] Fix | Delete
// reset all the attributes required to properly generate the internal styles
[825] Fix | Delete
ET_Builder_Element::clean_internal_modules_styles();
[826] Fix | Delete
}
[827] Fix | Delete
[828] Fix | Delete
if ( 'both' === $args['content_source'] ) {
[829] Fix | Delete
global $more;
[830] Fix | Delete
[831] Fix | Delete
// page builder doesn't support more tag, so display the_content() in case of post made with page builder.
[832] Fix | Delete
if ( et_pb_is_pagebuilder_used( get_the_ID() ) || has_block( 'divi/layout', get_the_ID() ) ) {
[833] Fix | Delete
$more = 1; // phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[834] Fix | Delete
[835] Fix | Delete
// do_shortcode for Divi Plugin instead of applying `the_content` filter to avoid conflicts with 3rd party themes.
[836] Fix | Delete
$builder_post_content = et_is_builder_plugin_active() ? do_shortcode( $post_content ) : apply_filters( 'the_content', $post_content );
[837] Fix | Delete
[838] Fix | Delete
// Overwrite default content, in case the content is protected.
[839] Fix | Delete
$query->posts[ $post_index ]->post_content = $builder_post_content;
[840] Fix | Delete
} else {
[841] Fix | Delete
$more = null; // phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[842] Fix | Delete
[843] Fix | Delete
// Overwrite default content, in case the content is protected.
[844] Fix | Delete
$query->posts[ $post_index ]->post_content = et_is_builder_plugin_active() ? do_shortcode( get_the_content( '' ) ) : apply_filters( 'the_content', get_the_content( '' ) );
[845] Fix | Delete
}
[846] Fix | Delete
[847] Fix | Delete
if ( has_excerpt() && 'off' !== $args['use_manual_excerpt'] ) {
[848] Fix | Delete
$query->posts[ $post_index ]->post_excerpt = et_is_builder_plugin_active() ? do_shortcode( et_strip_shortcodes( get_the_excerpt(), true ) ) : apply_filters( 'the_content', et_strip_shortcodes( get_the_excerpt(), true ) );
[849] Fix | Delete
} else {
[850] Fix | Delete
$query->posts[ $post_index ]->post_excerpt = strip_shortcodes( truncate_post( intval( $args['excerpt_length'] ), false, '', true ) );
[851] Fix | Delete
}
[852] Fix | Delete
} else if ( 'on' === $args['content_source'] ) {
[853] Fix | Delete
global $more;
[854] Fix | Delete
[855] Fix | Delete
if ( et_pb_is_pagebuilder_used( get_the_ID() ) || has_block( 'divi/layout', get_the_ID() ) ) {
[856] Fix | Delete
$more = 1; // phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[857] Fix | Delete
[858] Fix | Delete
// do_shortcode for Divi Plugin instead of applying `the_content` filter to avoid conflicts with 3rd party themes.
[859] Fix | Delete
$builder_post_content = et_is_builder_plugin_active() ? do_shortcode( $post_content ) : apply_filters( 'the_content', $post_content );
[860] Fix | Delete
[861] Fix | Delete
// Overwrite default content, in case the content is protected.
[862] Fix | Delete
$query->posts[ $post_index ]->post_content = $builder_post_content;
[863] Fix | Delete
} else {
[864] Fix | Delete
$more = null; // phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[865] Fix | Delete
[866] Fix | Delete
// Overwrite default content, in case the content is protected.
[867] Fix | Delete
$query->posts[ $post_index ]->post_content = et_is_builder_plugin_active() ? do_shortcode( get_the_content( '' ) ) : apply_filters( 'the_content', get_the_content( '' ) );
[868] Fix | Delete
}
[869] Fix | Delete
} else {
[870] Fix | Delete
if ( has_excerpt() && 'off' !== $args['use_manual_excerpt'] ) {
[871] Fix | Delete
$query->posts[ $post_index ]->post_content = et_is_builder_plugin_active() ? do_shortcode( et_strip_shortcodes( get_the_excerpt(), true ) ) : apply_filters( 'the_content', et_strip_shortcodes( get_the_excerpt(), true ) );
[872] Fix | Delete
} else {
[873] Fix | Delete
$query->posts[ $post_index ]->post_content = strip_shortcodes( truncate_post( intval( $args['excerpt_length'] ), false, '', true ) );
[874] Fix | Delete
}
[875] Fix | Delete
}
[876] Fix | Delete
[877] Fix | Delete
$et_fb_processing_shortcode_object = $global_processing_original_value;
[878] Fix | Delete
[879] Fix | Delete
if ( $is_ajax_request ) {
[880] Fix | Delete
// retrieve the styles for the modules inside Blog content
[881] Fix | Delete
$internal_style = ET_Builder_Element::get_style( true );
[882] Fix | Delete
[883] Fix | Delete
// reset all the attributes after we retrieved styles
[884] Fix | Delete
ET_Builder_Element::clean_internal_modules_styles( false );
[885] Fix | Delete
[886] Fix | Delete
$query->posts[ $post_index ]->internal_styles = $internal_style;
[887] Fix | Delete
}
[888] Fix | Delete
[889] Fix | Delete
$et_pb_rendering_column_content = false;
[890] Fix | Delete
[891] Fix | Delete
$post_index++;
[892] Fix | Delete
ET_Post_Stack::pop();
[893] Fix | Delete
} // end while
[894] Fix | Delete
ET_Post_Stack::reset();
[895] Fix | Delete
} else if ( self::is_processing_computed_prop() ) {
[896] Fix | Delete
// This is for the VB
[897] Fix | Delete
$query = '<div class="et_pb_no_results">';
[898] Fix | Delete
$query .= self::get_no_results_template();
[899] Fix | Delete
$query .= '</div>';
[900] Fix | Delete
[901] Fix | Delete
$query = array( 'posts' => $query );
[902] Fix | Delete
}
[903] Fix | Delete
[904] Fix | Delete
// Reset $wp_query to its origin
[905] Fix | Delete
$wp_query = $wp_query_page; // phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[906] Fix | Delete
[907] Fix | Delete
return $query;
[908] Fix | Delete
}
[909] Fix | Delete
[910] Fix | Delete
function render( $attrs, $content = null, $render_slug ) {
[911] Fix | Delete
global $post;
[912] Fix | Delete
[913] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[914] Fix | Delete
$use_current_loop = isset( $this->props['use_current_loop'] ) ? $this->props['use_current_loop'] : 'off';
[915] Fix | Delete
$show_arrows = $this->props['show_arrows'];
[916] Fix | Delete
$show_pagination = $this->props['show_pagination'];
[917] Fix | Delete
$parallax = $this->props['parallax'];
[918] Fix | Delete
$parallax_method = $this->props['parallax_method'];
[919] Fix | Delete
$auto = $this->props['auto'];
[920] Fix | Delete
$auto_speed = $this->props['auto_speed'];
[921] Fix | Delete
$auto_ignore_hover = $this->props['auto_ignore_hover'];
[922] Fix | Delete
$body_font_size = $this->props['body_font_size'];
[923] Fix | Delete
$show_content_on_mobile = $this->props['show_content_on_mobile'];
[924] Fix | Delete
$show_cta_on_mobile = $this->props['show_cta_on_mobile'];
[925] Fix | Delete
$show_image_video_mobile = $this->props['show_image_video_mobile'];
[926] Fix | Delete
$background_position = $this->props['background_position'];
[927] Fix | Delete
$background_size = $this->props['background_size'];
[928] Fix | Delete
$background_repeat = $this->props['background_repeat'];
[929] Fix | Delete
$background_blend = $this->props['background_blend'];
[930] Fix | Delete
$posts_number = $this->props['posts_number'];
[931] Fix | Delete
$include_categories = $this->props['include_categories'];
[932] Fix | Delete
$show_more_button = $this->props['show_more_button'];
[933] Fix | Delete
$more_text = $this->props['more_text'];
[934] Fix | Delete
$content_source = $this->props['content_source'];
[935] Fix | Delete
$background_color = $this->props['background_color'];
[936] Fix | Delete
$show_image = $this->props['show_image'];
[937] Fix | Delete
$image_placement = $this->props['image_placement'];
[938] Fix | Delete
$background_image = $this->props['background_image'];
[939] Fix | Delete
$use_bg_overlay = $this->props['use_bg_overlay'];
[940] Fix | Delete
$use_text_overlay = $this->props['use_text_overlay'];
[941] Fix | Delete
$orderby = $this->props['orderby'];
[942] Fix | Delete
$show_meta = $this->props['show_meta'];
[943] Fix | Delete
$button_custom = $this->props['custom_button'];
[944] Fix | Delete
$use_manual_excerpt = $this->props['use_manual_excerpt'];
[945] Fix | Delete
$excerpt_length = $this->props['excerpt_length'];
[946] Fix | Delete
$button_rel = $this->props['button_rel'];
[947] Fix | Delete
$header_level = $this->props['header_level'];
[948] Fix | Delete
$offset_number = $this->props['offset_number'];
[949] Fix | Delete
$bg_overlay_color_hover = $this->get_hover_value( 'bg_overlay_color' );
[950] Fix | Delete
$bg_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'bg_overlay_color' );
[951] Fix | Delete
$text_overlay_color_hover = $this->get_hover_value( 'text_overlay_color' );
[952] Fix | Delete
$text_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_overlay_color' );
[953] Fix | Delete
$text_border_radius_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_border_radius' );
[954] Fix | Delete
[955] Fix | Delete
$post_index = 0;
[956] Fix | Delete
$hide_on_mobile_class = self::HIDE_ON_MOBILE;
[957] Fix | Delete
$is_text_overlay_applied = 'on' === $use_text_overlay;
[958] Fix | Delete
[959] Fix | Delete
$custom_icon_values = et_pb_responsive_options()->get_property_values( $this->props, 'button_icon' );
[960] Fix | Delete
$custom_icon = isset( $custom_icon_values['desktop'] ) ? $custom_icon_values['desktop'] : '';
[961] Fix | Delete
$custom_icon_tablet = isset( $custom_icon_values['tablet'] ) ? $custom_icon_values['tablet'] : '';
[962] Fix | Delete
$custom_icon_phone = isset( $custom_icon_values['phone'] ) ? $custom_icon_values['phone'] : '';
[963] Fix | Delete
[964] Fix | Delete
if ( 'on' === $use_bg_overlay ) {
[965] Fix | Delete
// Background Overlay color.
[966] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $bg_overlay_color_values, '%%order_class%% .et_pb_slide .et_pb_slide_overlay_container', 'background-color', $render_slug, '', 'color' );
[967] Fix | Delete
[968] Fix | Delete
if ( '' !== $bg_overlay_color_hover ) {
[969] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[970] Fix | Delete
'selector' => $this->add_hover_to_order_class( '%%order_class%% .et_pb_slide .et_pb_slide_overlay_container' ),
[971] Fix | Delete
'declaration' => sprintf(
[972] Fix | Delete
'background-color: %1$s;',
[973] Fix | Delete
esc_html( $bg_overlay_color_hover )
[974] Fix | Delete
),
[975] Fix | Delete
) );
[976] Fix | Delete
}
[977] Fix | Delete
}
[978] Fix | Delete
[979] Fix | Delete
if ( $is_text_overlay_applied ) {
[980] Fix | Delete
// Text Overlay color.
[981] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $text_overlay_color_values, '%%order_class%% .et_pb_slide .et_pb_text_overlay_wrapper', 'background-color', $render_slug, '', 'color' );
[982] Fix | Delete
[983] Fix | Delete
if ( '' !== $text_overlay_color_hover ) {
[984] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[985] Fix | Delete
'selector' => $this->add_hover_to_order_class( '%%order_class%% .et_pb_slide .et_pb_text_overlay_wrapper' ),
[986] Fix | Delete
'declaration' => sprintf(
[987] Fix | Delete
'background-color: %1$s;',
[988] Fix | Delete
esc_html( $text_overlay_color_hover )
[989] Fix | Delete
),
[990] Fix | Delete
) );
[991] Fix | Delete
}
[992] Fix | Delete
}
[993] Fix | Delete
[994] Fix | Delete
// Text Overlay Border Radius.
[995] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $text_border_radius_values, '%%order_class%%.et_pb_slider_with_text_overlay .et_pb_text_overlay_wrapper', 'border-radius', $render_slug );
[996] Fix | Delete
[997] Fix | Delete
$this->generate_responsive_hover_style( 'arrows_custom_color', et_pb_slider_options()->get_arrows_selector(), 'color' );
[998] Fix | Delete
$this->generate_responsive_hover_style( 'dot_nav_custom_color', et_pb_slider_options()->get_dots_selector(), 'background-color' );
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function