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: Blog.php
'option_category' => 'configuration',
[500] Fix | Delete
'options' => array(
[501] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[502] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[503] Fix | Delete
),
[504] Fix | Delete
'description' => esc_html__( 'Turn the category links on or off.', 'et_builder' ),
[505] Fix | Delete
'computed_affects' => array(
[506] Fix | Delete
'__posts',
[507] Fix | Delete
),
[508] Fix | Delete
'toggle_slug' => 'elements',
[509] Fix | Delete
'default_on_front' => 'on',
[510] Fix | Delete
'mobile_options' => true,
[511] Fix | Delete
'hover' => 'tabs',
[512] Fix | Delete
),
[513] Fix | Delete
'show_comments' => array(
[514] Fix | Delete
'label' => esc_html__( 'Show Comment Count', 'et_builder' ),
[515] Fix | Delete
'type' => 'yes_no_button',
[516] Fix | Delete
'option_category' => 'configuration',
[517] Fix | Delete
'options' => array(
[518] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[519] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[520] Fix | Delete
),
[521] Fix | Delete
'description' => esc_html__( 'Turn comment count on and off.', 'et_builder' ),
[522] Fix | Delete
'computed_affects' => array(
[523] Fix | Delete
'__posts',
[524] Fix | Delete
),
[525] Fix | Delete
'toggle_slug' => 'elements',
[526] Fix | Delete
'default_on_front' => 'off',
[527] Fix | Delete
'mobile_options' => true,
[528] Fix | Delete
'hover' => 'tabs',
[529] Fix | Delete
),
[530] Fix | Delete
'show_excerpt' => array(
[531] Fix | Delete
'label' => esc_html__( 'Show Excerpt', 'et_builder' ),
[532] Fix | Delete
'description' => esc_html__( 'Turn excerpt on and off.', 'et_builder' ),
[533] Fix | Delete
'type' => 'yes_no_button',
[534] Fix | Delete
'options' => array(
[535] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[536] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[537] Fix | Delete
),
[538] Fix | Delete
'default_on_front' => 'on',
[539] Fix | Delete
'computed_affects' => array(
[540] Fix | Delete
'__posts',
[541] Fix | Delete
),
[542] Fix | Delete
'depends_show_if' => 'off',
[543] Fix | Delete
'toggle_slug' => 'elements',
[544] Fix | Delete
'option_category' => 'configuration',
[545] Fix | Delete
'mobile_options' => true,
[546] Fix | Delete
'hover' => 'tabs',
[547] Fix | Delete
),
[548] Fix | Delete
'show_pagination' => array(
[549] Fix | Delete
'label' => esc_html__( 'Show Pagination', 'et_builder' ),
[550] Fix | Delete
'type' => 'yes_no_button',
[551] Fix | Delete
'option_category' => 'configuration',
[552] Fix | Delete
'options' => array(
[553] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[554] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[555] Fix | Delete
),
[556] Fix | Delete
'description' => esc_html__( 'Turn pagination on and off.', 'et_builder' ),
[557] Fix | Delete
'computed_affects' => array(
[558] Fix | Delete
'__posts',
[559] Fix | Delete
),
[560] Fix | Delete
'toggle_slug' => 'elements',
[561] Fix | Delete
'default_on_front' => 'on',
[562] Fix | Delete
'mobile_options' => true,
[563] Fix | Delete
'hover' => 'tabs',
[564] Fix | Delete
),
[565] Fix | Delete
'offset_number' => array(
[566] Fix | Delete
'label' => esc_html__( 'Post Offset Number', 'et_builder' ),
[567] Fix | Delete
'type' => 'text',
[568] Fix | Delete
'option_category' => 'configuration',
[569] Fix | Delete
'description' => esc_html__( 'Choose how many posts you would like to skip. These posts will not be shown in the feed.', 'et_builder' ),
[570] Fix | Delete
'toggle_slug' => 'main_content',
[571] Fix | Delete
'computed_affects' => array(
[572] Fix | Delete
'__posts',
[573] Fix | Delete
),
[574] Fix | Delete
'default' => 0,
[575] Fix | Delete
),
[576] Fix | Delete
'use_overlay' => array(
[577] Fix | Delete
'label' => esc_html__( 'Featured Image Overlay', 'et_builder' ),
[578] Fix | Delete
'type' => 'yes_no_button',
[579] Fix | Delete
'option_category' => 'layout',
[580] Fix | Delete
'options' => array(
[581] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[582] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[583] Fix | Delete
),
[584] Fix | Delete
'affects' => array(
[585] Fix | Delete
'overlay_icon_color',
[586] Fix | Delete
'hover_overlay_color',
[587] Fix | Delete
'hover_icon',
[588] Fix | Delete
),
[589] Fix | Delete
'description' => esc_html__( 'If enabled, an overlay color and icon will be displayed when a visitors hovers over the featured image of a post.', 'et_builder' ),
[590] Fix | Delete
'computed_affects' => array(
[591] Fix | Delete
'__posts',
[592] Fix | Delete
),
[593] Fix | Delete
'tab_slug' => 'advanced',
[594] Fix | Delete
'toggle_slug' => 'overlay',
[595] Fix | Delete
'default_on_front' => 'off',
[596] Fix | Delete
),
[597] Fix | Delete
'overlay_icon_color' => array(
[598] Fix | Delete
'label' => esc_html__( 'Overlay Icon Color', 'et_builder' ),
[599] Fix | Delete
'type' => 'color-alpha',
[600] Fix | Delete
'custom_color' => true,
[601] Fix | Delete
'depends_show_if' => 'on',
[602] Fix | Delete
'tab_slug' => 'advanced',
[603] Fix | Delete
'toggle_slug' => 'overlay',
[604] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the overlay icon', 'et_builder' ),
[605] Fix | Delete
'mobile_options' => true,
[606] Fix | Delete
),
[607] Fix | Delete
'hover_overlay_color' => array(
[608] Fix | Delete
'label' => esc_html__( 'Overlay Background Color', 'et_builder' ),
[609] Fix | Delete
'type' => 'color-alpha',
[610] Fix | Delete
'custom_color' => true,
[611] Fix | Delete
'depends_show_if' => 'on',
[612] Fix | Delete
'tab_slug' => 'advanced',
[613] Fix | Delete
'toggle_slug' => 'overlay',
[614] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the overlay', 'et_builder' ),
[615] Fix | Delete
'mobile_options' => true,
[616] Fix | Delete
),
[617] Fix | Delete
'hover_icon' => array(
[618] Fix | Delete
'label' => esc_html__( 'Overlay Icon', 'et_builder' ),
[619] Fix | Delete
'type' => 'select_icon',
[620] Fix | Delete
'option_category' => 'configuration',
[621] Fix | Delete
'class' => array( 'et-pb-font-icon' ),
[622] Fix | Delete
'depends_show_if' => 'on',
[623] Fix | Delete
'description' => esc_html__( 'Here you can define a custom icon for the overlay', 'et_builder' ),
[624] Fix | Delete
'tab_slug' => 'advanced',
[625] Fix | Delete
'toggle_slug' => 'overlay',
[626] Fix | Delete
'computed_affects' => array(
[627] Fix | Delete
'__posts',
[628] Fix | Delete
),
[629] Fix | Delete
'mobile_options' => true,
[630] Fix | Delete
),
[631] Fix | Delete
'masonry_tile_background_color' => array(
[632] Fix | Delete
'label' => esc_html__( 'Grid Tile Background Color', 'et_builder' ),
[633] Fix | Delete
'type' => 'color-alpha',
[634] Fix | Delete
'custom_color' => true,
[635] Fix | Delete
'toggle_slug' => 'background',
[636] Fix | Delete
'depends_show_if' => 'off',
[637] Fix | Delete
'depends_on' => array(
[638] Fix | Delete
'fullwidth',
[639] Fix | Delete
),
[640] Fix | Delete
'hover' => 'tabs',
[641] Fix | Delete
'mobile_options' => true,
[642] Fix | Delete
),
[643] Fix | Delete
'__posts' => array(
[644] Fix | Delete
'type' => 'computed',
[645] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Blog', 'get_blog_posts' ),
[646] Fix | Delete
'computed_depends_on' => array(
[647] Fix | Delete
'use_current_loop',
[648] Fix | Delete
'post_type',
[649] Fix | Delete
'fullwidth',
[650] Fix | Delete
'posts_number',
[651] Fix | Delete
'include_categories',
[652] Fix | Delete
'meta_date',
[653] Fix | Delete
'show_thumbnail',
[654] Fix | Delete
'show_content',
[655] Fix | Delete
'show_more',
[656] Fix | Delete
'show_author',
[657] Fix | Delete
'show_date',
[658] Fix | Delete
'show_categories',
[659] Fix | Delete
'show_comments',
[660] Fix | Delete
'show_excerpt',
[661] Fix | Delete
'use_manual_excerpt',
[662] Fix | Delete
'excerpt_length',
[663] Fix | Delete
'show_pagination',
[664] Fix | Delete
'offset_number',
[665] Fix | Delete
'use_overlay',
[666] Fix | Delete
'hover_icon',
[667] Fix | Delete
'hover_icon_tablet',
[668] Fix | Delete
'hover_icon_phone',
[669] Fix | Delete
'header_level',
[670] Fix | Delete
'__page',
[671] Fix | Delete
),
[672] Fix | Delete
),
[673] Fix | Delete
'__page' => array(
[674] Fix | Delete
'type' => 'computed',
[675] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Blog', 'get_blog_posts' ),
[676] Fix | Delete
'computed_affects' => array(
[677] Fix | Delete
'__posts',
[678] Fix | Delete
),
[679] Fix | Delete
),
[680] Fix | Delete
);
[681] Fix | Delete
return $fields;
[682] Fix | Delete
}
[683] Fix | Delete
[684] Fix | Delete
public function get_transition_fields_css_props() {
[685] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[686] Fix | Delete
[687] Fix | Delete
$fields['background_layout'] = array(
[688] Fix | Delete
'color' => implode( ', ',
[689] Fix | Delete
array(
[690] Fix | Delete
'%%order_class%% .entry-title',
[691] Fix | Delete
'%%order_class%% .post-meta',
[692] Fix | Delete
'%%order_class%% .post-content'
[693] Fix | Delete
)
[694] Fix | Delete
)
[695] Fix | Delete
);
[696] Fix | Delete
$fields['border_radii'] = array( 'border-radius' => self::$_->array_get( $this->advanced_fields, 'borders.default.css.main.border_radii' ) );
[697] Fix | Delete
$fields['border_styles'] = array( 'border' => self::$_->array_get( $this->advanced_fields, 'borders.default.css.main.border_styles' ) );
[698] Fix | Delete
$fields['border_radii_fullwidth'] = array( 'border-radius' => self::$_->array_get( $this->advanced_fields, 'borders.fullwidth.css.main.border_radii' ) );
[699] Fix | Delete
$fields['border_styles_fullwidth'] = array( 'border' => self::$_->array_get( $this->advanced_fields, 'borders.fullwidth.css.main.border_styles' ) );
[700] Fix | Delete
$fields['max_width'] = array( 'max-width' => '%%order_class%%' );
[701] Fix | Delete
$fields['width'] = array( 'width' => '%%order_class%%' );
[702] Fix | Delete
[703] Fix | Delete
return $fields;
[704] Fix | Delete
}
[705] Fix | Delete
[706] Fix | Delete
/**
[707] Fix | Delete
* Get blog posts for blog module
[708] Fix | Delete
*
[709] Fix | Delete
* @param array arguments that is being used by et_pb_blog
[710] Fix | Delete
* @return string blog post markup
[711] Fix | Delete
*/
[712] Fix | Delete
static function get_blog_posts( $args = array(), $conditional_tags = array(), $current_page = array() ) {
[713] Fix | Delete
global $paged, $post, $wp_query, $et_fb_processing_shortcode_object, $et_pb_rendering_column_content;
[714] Fix | Delete
[715] Fix | Delete
if ( self::$rendering ) {
[716] Fix | Delete
// We are trying to render a Blog module while a Blog module is already being rendered
[717] Fix | Delete
// which means we have most probably hit an infinite recursion. While not necessarily
[718] Fix | Delete
// the case, rendering a post which renders a Blog module which renders a post
[719] Fix | Delete
// which renders a Blog module is not a sensible use-case.
[720] Fix | Delete
return '';
[721] Fix | Delete
}
[722] Fix | Delete
[723] Fix | Delete
$global_processing_original_value = $et_fb_processing_shortcode_object;
[724] Fix | Delete
[725] Fix | Delete
// Default params are combination of attributes that is used by et_pb_blog and
[726] Fix | Delete
// conditional tags that need to be simulated (due to AJAX nature) by passing args
[727] Fix | Delete
$defaults = array(
[728] Fix | Delete
'use_current_loop' => 'off',
[729] Fix | Delete
'post_type' => '',
[730] Fix | Delete
'fullwidth' => '',
[731] Fix | Delete
'posts_number' => '',
[732] Fix | Delete
'include_categories' => '',
[733] Fix | Delete
'meta_date' => '',
[734] Fix | Delete
'show_thumbnail' => '',
[735] Fix | Delete
'show_content' => '',
[736] Fix | Delete
'show_author' => '',
[737] Fix | Delete
'show_date' => '',
[738] Fix | Delete
'show_categories' => '',
[739] Fix | Delete
'show_comments' => '',
[740] Fix | Delete
'show_excerpt' => '',
[741] Fix | Delete
'use_manual_excerpt' => '',
[742] Fix | Delete
'excerpt_length' => '',
[743] Fix | Delete
'show_pagination' => '',
[744] Fix | Delete
'background_layout' => '',
[745] Fix | Delete
'show_more' => '',
[746] Fix | Delete
'offset_number' => '',
[747] Fix | Delete
'masonry_tile_background_color' => '',
[748] Fix | Delete
'overlay_icon_color' => '',
[749] Fix | Delete
'hover_overlay_color' => '',
[750] Fix | Delete
'hover_icon' => '',
[751] Fix | Delete
'hover_icon_tablet' => '',
[752] Fix | Delete
'hover_icon_phone' => '',
[753] Fix | Delete
'use_overlay' => '',
[754] Fix | Delete
'header_level' => 'h2',
[755] Fix | Delete
);
[756] Fix | Delete
[757] Fix | Delete
// WordPress' native conditional tag is only available during page load. It'll fail during component update because
[758] Fix | Delete
// et_pb_process_computed_property() is loaded in admin-ajax.php. Thus, use WordPress' conditional tags on page load and
[759] Fix | Delete
// rely to passed $conditional_tags for AJAX call
[760] Fix | Delete
$is_front_page = et_fb_conditional_tag( 'is_front_page', $conditional_tags );
[761] Fix | Delete
$is_single = et_fb_conditional_tag( 'is_single', $conditional_tags );
[762] Fix | Delete
$et_is_builder_plugin_active = et_fb_conditional_tag( 'et_is_builder_plugin_active', $conditional_tags );
[763] Fix | Delete
$post_id = isset( $current_page['id'] ) ? (int) $current_page['id'] : 0;
[764] Fix | Delete
[765] Fix | Delete
$container_is_closed = false;
[766] Fix | Delete
[767] Fix | Delete
// remove all filters from WP audio shortcode to make sure current theme doesn't add any elements into audio module
[768] Fix | Delete
remove_all_filters( 'wp_audio_shortcode_library' );
[769] Fix | Delete
remove_all_filters( 'wp_audio_shortcode' );
[770] Fix | Delete
remove_all_filters( 'wp_audio_shortcode_class' );
[771] Fix | Delete
[772] Fix | Delete
$args = wp_parse_args( $args, $defaults );
[773] Fix | Delete
[774] Fix | Delete
if ( 'on' === $args['use_current_loop'] ) {
[775] Fix | Delete
// Reset loop-affecting values to their defaults to simulate the current loop.
[776] Fix | Delete
$reset_keys = array( 'post_type', 'include_categories' );
[777] Fix | Delete
[778] Fix | Delete
foreach ( $reset_keys as $key ) {
[779] Fix | Delete
$args[ $key ] = $defaults[ $key ];
[780] Fix | Delete
}
[781] Fix | Delete
}
[782] Fix | Delete
[783] Fix | Delete
$processed_header_level = et_pb_process_header_level( $args['header_level'], 'h2' );
[784] Fix | Delete
$processed_header_level = esc_html( $processed_header_level );
[785] Fix | Delete
[786] Fix | Delete
$overlay_output = '';
[787] Fix | Delete
[788] Fix | Delete
if ( 'on' === $args['use_overlay'] ) {
[789] Fix | Delete
$overlay_output = ET_Builder_Module_Helper_Overlay::render( array(
[790] Fix | Delete
'icon' => $args['hover_icon'],
[791] Fix | Delete
'icon_tablet' => $args['hover_icon_tablet'],
[792] Fix | Delete
'icon_phone' => $args['hover_icon_phone'],
[793] Fix | Delete
) );
[794] Fix | Delete
}
[795] Fix | Delete
[796] Fix | Delete
$overlay_class = 'on' === $args['use_overlay'] ? ' et_pb_has_overlay' : '';
[797] Fix | Delete
[798] Fix | Delete
$query_args = array(
[799] Fix | Delete
'posts_per_page' => intval( $args['posts_number'] ),
[800] Fix | Delete
'post_status' => array( 'publish', 'private' ),
[801] Fix | Delete
'perm' => 'readable',
[802] Fix | Delete
'post_type' => $args['post_type'],
[803] Fix | Delete
);
[804] Fix | Delete
[805] Fix | Delete
if ( defined( 'DOING_AJAX' ) && isset( $current_page['paged'] ) ) {
[806] Fix | Delete
$paged = intval( $current_page['paged'] ); //phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[807] Fix | Delete
} else {
[808] Fix | Delete
$paged = $is_front_page ? get_query_var( 'page' ) : get_query_var( 'paged' ); //phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[809] Fix | Delete
}
[810] Fix | Delete
[811] Fix | Delete
// support pagination in VB
[812] Fix | Delete
if ( isset( $args['__page'] ) ) {
[813] Fix | Delete
$paged = $args['__page']; //phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[814] Fix | Delete
}
[815] Fix | Delete
[816] Fix | Delete
$query_args['cat'] = implode( ',', self::filter_include_categories( $args['include_categories'], $post_id ) );
[817] Fix | Delete
[818] Fix | Delete
$query_args['paged'] = $paged;
[819] Fix | Delete
[820] Fix | Delete
if ( '' !== $args['offset_number'] && ! empty( $args['offset_number'] ) ) {
[821] Fix | Delete
/**
[822] Fix | Delete
* Offset + pagination don't play well. Manual offset calculation required
[823] Fix | Delete
* @see: https://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination
[824] Fix | Delete
*/
[825] Fix | Delete
if ( $paged > 1 ) {
[826] Fix | Delete
$query_args['offset'] = ( ( $paged - 1 ) * intval( $args['posts_number'] ) ) + intval( $args['offset_number'] );
[827] Fix | Delete
} else {
[828] Fix | Delete
$query_args['offset'] = intval( $args['offset_number'] );
[829] Fix | Delete
}
[830] Fix | Delete
}
[831] Fix | Delete
[832] Fix | Delete
if ( $is_single ) {
[833] Fix | Delete
$main_query_post = ET_Post_Stack::get_main_post();
[834] Fix | Delete
[835] Fix | Delete
if ( null !== $main_query_post ) {
[836] Fix | Delete
$query_args['post__not_in'][] = $main_query_post->ID;
[837] Fix | Delete
}
[838] Fix | Delete
}
[839] Fix | Delete
[840] Fix | Delete
// Get query
[841] Fix | Delete
$query = new WP_Query( $query_args );
[842] Fix | Delete
[843] Fix | Delete
// Keep page's $wp_query global
[844] Fix | Delete
$wp_query_page = $wp_query;
[845] Fix | Delete
[846] Fix | Delete
// Turn page's $wp_query into this module's query
[847] Fix | Delete
$wp_query = $query; //phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[848] Fix | Delete
[849] Fix | Delete
$wp_query->et_pb_blog_query = true;
[850] Fix | Delete
[851] Fix | Delete
self::$rendering = true;
[852] Fix | Delete
[853] Fix | Delete
// Manually set the max_num_pages to make the `next_posts_link` work
[854] Fix | Delete
if ( '' !== $args['offset_number'] && ! empty( $args['offset_number'] ) ) {
[855] Fix | Delete
$wp_query->found_posts = max( 0, $wp_query->found_posts - intval( $args['offset_number'] ) );
[856] Fix | Delete
$wp_query->max_num_pages = ceil( $wp_query->found_posts / intval( $args['posts_number'] ) );
[857] Fix | Delete
}
[858] Fix | Delete
[859] Fix | Delete
ob_start();
[860] Fix | Delete
[861] Fix | Delete
if ( $query->have_posts() ) {
[862] Fix | Delete
if ( 'on' !== $args['fullwidth'] ) {
[863] Fix | Delete
echo '<div class="et_pb_salvattore_content" data-columns>';
[864] Fix | Delete
}
[865] Fix | Delete
[866] Fix | Delete
while( $query->have_posts() ) {
[867] Fix | Delete
$query->the_post();
[868] Fix | Delete
ET_Post_Stack::replace( $post );
[869] Fix | Delete
global $et_fb_processing_shortcode_object;
[870] Fix | Delete
[871] Fix | Delete
$global_processing_original_value = $et_fb_processing_shortcode_object;
[872] Fix | Delete
[873] Fix | Delete
// reset the fb processing flag
[874] Fix | Delete
$et_fb_processing_shortcode_object = false;
[875] Fix | Delete
[876] Fix | Delete
$thumb = '';
[877] Fix | Delete
$width = 'on' === $args['fullwidth'] ? 1080 : 400;
[878] Fix | Delete
$width = (int) apply_filters( 'et_pb_blog_image_width', $width );
[879] Fix | Delete
$height = 'on' === $args['fullwidth'] ? 675 : 250;
[880] Fix | Delete
$height = (int) apply_filters( 'et_pb_blog_image_height', $height );
[881] Fix | Delete
$classtext = 'on' === $args['fullwidth'] ? 'et_pb_post_main_image' : '';
[882] Fix | Delete
$titletext = get_the_title();
[883] Fix | Delete
$alttext = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
[884] Fix | Delete
$thumbnail = get_thumbnail( $width, $height, $classtext, $alttext, $titletext, false, 'Blogimage' );
[885] Fix | Delete
$thumb = $thumbnail["thumb"];
[886] Fix | Delete
$no_thumb_class = '' === $thumb || 'off' === $args['show_thumbnail'] ? ' et_pb_no_thumb' : '';
[887] Fix | Delete
$excerpt_length = '' !== $args['excerpt_length'] ? intval( $args['excerpt_length'] ) : 270;
[888] Fix | Delete
[889] Fix | Delete
$post_format = et_pb_post_format();
[890] Fix | Delete
if ( in_array( $post_format, array( 'video', 'gallery' ) ) ) {
[891] Fix | Delete
$no_thumb_class = '';
[892] Fix | Delete
}
[893] Fix | Delete
[894] Fix | Delete
// Print output
[895] Fix | Delete
?>
[896] Fix | Delete
<article id="" <?php post_class( 'et_pb_post clearfix' . $no_thumb_class . $overlay_class ) ?>>
[897] Fix | Delete
<?php
[898] Fix | Delete
et_divi_post_format_content();
[899] Fix | Delete
[900] Fix | Delete
if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) {
[901] Fix | Delete
if ( 'video' === $post_format && false !== ( $first_video = et_get_first_video() ) ) :
[902] Fix | Delete
$video_overlay = has_post_thumbnail() ? sprintf(
[903] Fix | Delete
'<div class="et_pb_video_overlay" style="background-image: url(%1$s); background-size: cover;">
[904] Fix | Delete
<div class="et_pb_video_overlay_hover">
[905] Fix | Delete
<a href="#" class="et_pb_video_play"></a>
[906] Fix | Delete
</div>
[907] Fix | Delete
</div>',
[908] Fix | Delete
et_core_esc_previously( $thumb )
[909] Fix | Delete
) : '';
[910] Fix | Delete
[911] Fix | Delete
printf(
[912] Fix | Delete
'<div class="et_main_video_container">
[913] Fix | Delete
%1$s
[914] Fix | Delete
%2$s
[915] Fix | Delete
</div>',
[916] Fix | Delete
et_core_esc_previously( $video_overlay ),
[917] Fix | Delete
et_core_esc_previously( $first_video )
[918] Fix | Delete
);
[919] Fix | Delete
elseif ( 'gallery' === $post_format ) :
[920] Fix | Delete
et_pb_gallery_images( 'slider' );
[921] Fix | Delete
elseif ( '' !== $thumb && 'on' === $args['show_thumbnail'] ) :
[922] Fix | Delete
if ( 'on' !== $args['fullwidth'] ) echo '<div class="et_pb_image_container">'; ?>
[923] Fix | Delete
<a href="<?php esc_url( the_permalink() ); ?>" class="entry-featured-image-url">
[924] Fix | Delete
<?php print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height ); ?>
[925] Fix | Delete
<?php if ( 'on' === $args['use_overlay'] ) {
[926] Fix | Delete
echo et_core_esc_previously( $overlay_output );
[927] Fix | Delete
} ?>
[928] Fix | Delete
</a>
[929] Fix | Delete
<?php
[930] Fix | Delete
if ( 'on' !== $args['fullwidth'] ) echo '</div> <!-- .et_pb_image_container -->';
[931] Fix | Delete
endif;
[932] Fix | Delete
}
[933] Fix | Delete
?>
[934] Fix | Delete
[935] Fix | Delete
<?php if ( 'off' === $args['fullwidth'] || ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) { ?>
[936] Fix | Delete
<?php if ( ! in_array( $post_format, array( 'link', 'audio' ) ) ) { ?>
[937] Fix | Delete
<<?php echo et_core_esc_previously( $processed_header_level ); ?> class="entry-title"><a href="<?php esc_url( the_permalink() ); ?>"><?php the_title(); ?></a></<?php echo et_core_esc_previously( $processed_header_level ); ?>>
[938] Fix | Delete
<?php } ?>
[939] Fix | Delete
[940] Fix | Delete
<?php
[941] Fix | Delete
if ( 'on' === $args['show_author'] || 'on' === $args['show_date'] || 'on' === $args['show_categories'] || 'on' === $args['show_comments'] ) {
[942] Fix | Delete
$author = 'on' === $args['show_author']
[943] Fix | Delete
? et_get_safe_localization( sprintf( __( 'by %s', 'et_builder' ), '<span class="author vcard">' . et_pb_get_the_author_posts_link() . '</span>' ) )
[944] Fix | Delete
: '';
[945] Fix | Delete
[946] Fix | Delete
$author_separator = 'on' === $args['show_author'] && 'on' === $args['show_date']
[947] Fix | Delete
? ' | '
[948] Fix | Delete
: '';
[949] Fix | Delete
[950] Fix | Delete
$date = 'on' === $args['show_date']
[951] Fix | Delete
? et_get_safe_localization( sprintf( __( '%s', 'et_builder' ), '<span class="published">' . esc_html( get_the_date( $args['meta_date'] ) ) . '</span>' ) )
[952] Fix | Delete
: '';
[953] Fix | Delete
[954] Fix | Delete
$date_separator = (( 'on' === $args['show_author'] || 'on' === $args['show_date'] ) && 'on' === $args['show_categories'] )
[955] Fix | Delete
? ' | '
[956] Fix | Delete
: '';
[957] Fix | Delete
[958] Fix | Delete
$categories = 'on' === $args['show_categories']
[959] Fix | Delete
? et_builder_get_the_term_list(', ')
[960] Fix | Delete
: '';
[961] Fix | Delete
[962] Fix | Delete
$categories_separator = (( 'on' === $args['show_author'] || 'on' === $args['show_date'] || 'on' === $args['show_categories'] ) && 'on' === $args['show_comments'])
[963] Fix | Delete
? ' | '
[964] Fix | Delete
: '';
[965] Fix | Delete
[966] Fix | Delete
$comments = 'on' === $args['show_comments']
[967] Fix | Delete
? 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() ) ) )
[968] Fix | Delete
: '';
[969] Fix | Delete
[970] Fix | Delete
printf( '<p class="post-meta">%1$s %2$s %3$s %4$s %5$s %6$s %7$s</p>',
[971] Fix | Delete
et_core_esc_previously( $author ),
[972] Fix | Delete
et_core_intentionally_unescaped( $author_separator, 'fixed_string' ),
[973] Fix | Delete
et_core_esc_previously( $date ),
[974] Fix | Delete
et_core_intentionally_unescaped( $date_separator, 'fixed_string' ),
[975] Fix | Delete
et_core_esc_wp( $categories ),
[976] Fix | Delete
et_core_intentionally_unescaped( $categories_separator, 'fixed_string' ),
[977] Fix | Delete
et_core_esc_previously( $comments )
[978] Fix | Delete
);
[979] Fix | Delete
}
[980] Fix | Delete
[981] Fix | Delete
$post_content = et_strip_shortcodes( et_delete_post_first_video( get_the_content() ), true );
[982] Fix | Delete
[983] Fix | Delete
// reset the fb processing flag
[984] Fix | Delete
$et_fb_processing_shortcode_object = false;
[985] Fix | Delete
// set the flag to indicate that we're processing internal content
[986] Fix | Delete
$et_pb_rendering_column_content = true;
[987] Fix | Delete
// reset all the attributes required to properly generate the internal styles
[988] Fix | Delete
ET_Builder_Element::clean_internal_modules_styles();
[989] Fix | Delete
[990] Fix | Delete
echo '<div class="post-content">';
[991] Fix | Delete
[992] Fix | Delete
if ( 'on' === $args['show_content'] ) {
[993] Fix | Delete
global $more;
[994] Fix | Delete
[995] Fix | Delete
// page builder doesn't support more tag, so display the_content() in case of post made with page builder
[996] Fix | Delete
if ( et_pb_is_pagebuilder_used( get_the_ID() ) ) {
[997] Fix | Delete
$more = 1; // phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[998] Fix | Delete
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function