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: FullwidthPostTitle.php
$render_slug,
[500] Fix | Delete
'',
[501] Fix | Delete
'align'
[502] Fix | Delete
);
[503] Fix | Delete
[504] Fix | Delete
$image_alignments = array(
[505] Fix | Delete
'left' => 'auto auto auto 0',
[506] Fix | Delete
'center' => 'auto',
[507] Fix | Delete
'right' => 'auto 0 auto auto',
[508] Fix | Delete
);
[509] Fix | Delete
[510] Fix | Delete
foreach ( $image_alignment_values as $breakpoint => $alignment ) {
[511] Fix | Delete
$image_alignment_values[ $breakpoint ] = et_()->array_get(
[512] Fix | Delete
$image_alignments,
[513] Fix | Delete
$alignment,
[514] Fix | Delete
''
[515] Fix | Delete
);
[516] Fix | Delete
}
[517] Fix | Delete
[518] Fix | Delete
et_pb_responsive_options()->generate_responsive_css(
[519] Fix | Delete
$image_alignment_values,
[520] Fix | Delete
'%%order_class%% .et_pb_title_featured_image',
[521] Fix | Delete
'margin',
[522] Fix | Delete
$render_slug,
[523] Fix | Delete
'',
[524] Fix | Delete
'align'
[525] Fix | Delete
);
[526] Fix | Delete
[527] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[528] Fix | Delete
'selector' => '%%order_class%% .et_pb_image_wrap',
[529] Fix | Delete
'declaration' => 'width: auto;',
[530] Fix | Delete
) );
[531] Fix | Delete
}
[532] Fix | Delete
}
[533] Fix | Delete
[534] Fix | Delete
if ( $multi_view->has_value( 'title', 'on' ) ) {
[535] Fix | Delete
if ( is_et_pb_preview() && isset( $_POST['post_title'] ) && wp_verify_nonce( $_POST['et_pb_preview_nonce'], 'et_pb_preview_nonce' ) ) {
[536] Fix | Delete
$post_title = esc_html( sanitize_text_field( wp_unslash( $_POST['post_title'] ) ) );
[537] Fix | Delete
} else {
[538] Fix | Delete
// Unescaped for backwards compat reasons.
[539] Fix | Delete
$post_title = et_core_intentionally_unescaped( et_builder_get_current_title(), 'html' );
[540] Fix | Delete
}
[541] Fix | Delete
[542] Fix | Delete
$output .= $multi_view->render_element( array(
[543] Fix | Delete
'tag' => et_pb_process_header_level( $header_level, 'h1' ),
[544] Fix | Delete
'content' => $post_title,
[545] Fix | Delete
'attrs' => array(
[546] Fix | Delete
'class' => 'entry-title',
[547] Fix | Delete
),
[548] Fix | Delete
'visibility' => array(
[549] Fix | Delete
'title' => 'on',
[550] Fix | Delete
)
[551] Fix | Delete
) );
[552] Fix | Delete
}
[553] Fix | Delete
[554] Fix | Delete
if ( $post_id && $multi_view->has_value( 'meta', 'on' ) ) {
[555] Fix | Delete
$meta_array = array();
[556] Fix | Delete
[557] Fix | Delete
foreach( array( 'author', 'date', 'categories', 'comments' ) as $single_meta ) {
[558] Fix | Delete
if ( 'categories' === $single_meta && ! is_singular( 'post' ) ) {
[559] Fix | Delete
continue;
[560] Fix | Delete
}
[561] Fix | Delete
[562] Fix | Delete
$meta_array[] = $multi_view->render_element( array(
[563] Fix | Delete
'content' => et_pb_postinfo_meta( array( $single_meta ), $date_format, esc_html__( '0 comments', 'et_builder' ), esc_html__( '1 comment', 'et_builder' ), '% ' . esc_html__( 'comments', 'et_builder' ) ),
[564] Fix | Delete
'classes' => array(
[565] Fix | Delete
'et_pb_title_meta_item--visible' => array(
[566] Fix | Delete
$single_meta => 'on',
[567] Fix | Delete
'meta' => 'on',
[568] Fix | Delete
),
[569] Fix | Delete
),
[570] Fix | Delete
'visibility' => array(
[571] Fix | Delete
$single_meta => 'on',
[572] Fix | Delete
'meta' => 'on',
[573] Fix | Delete
),
[574] Fix | Delete
'required' => array(
[575] Fix | Delete
$single_meta => 'on',
[576] Fix | Delete
'meta' => 'on',
[577] Fix | Delete
),
[578] Fix | Delete
) );
[579] Fix | Delete
}
[580] Fix | Delete
[581] Fix | Delete
$output .= $multi_view->render_element( array(
[582] Fix | Delete
'tag' => 'p',
[583] Fix | Delete
'content' => implode( '', $meta_array ),
[584] Fix | Delete
'attrs' => array(
[585] Fix | Delete
'class' => 'et_pb_title_meta_container',
[586] Fix | Delete
),
[587] Fix | Delete
'visibility' => array(
[588] Fix | Delete
'meta' => 'on',
[589] Fix | Delete
),
[590] Fix | Delete
) );
[591] Fix | Delete
}
[592] Fix | Delete
[593] Fix | Delete
if ( 'on' === $text_background ) {
[594] Fix | Delete
// Text Background Color.
[595] Fix | Delete
et_pb_responsive_options()->generate_responsive_css( $text_bg_colors, '%%order_class%% .et_pb_title_container', 'background-color', $render_slug, '; padding: 1em 1.5em;', 'color' );
[596] Fix | Delete
[597] Fix | Delete
if ( et_pb_hover_options()->is_enabled( 'text_bg_color', $this->props ) ) {
[598] Fix | Delete
ET_Builder_Element::set_style( $render_slug, array(
[599] Fix | Delete
'selector' => '%%order_class%%:hover .et_pb_title_container',
[600] Fix | Delete
'declaration' => sprintf(
[601] Fix | Delete
'background-color: %1$s; padding: 1em 1.5em;',
[602] Fix | Delete
esc_html( et_pb_hover_options()->get_value( 'text_bg_color', $this->props ) )
[603] Fix | Delete
),
[604] Fix | Delete
) );
[605] Fix | Delete
}
[606] Fix | Delete
}
[607] Fix | Delete
[608] Fix | Delete
$video_background = $this->video_background();
[609] Fix | Delete
$background_layout = 'dark' === $text_color ? 'light' : 'dark';
[610] Fix | Delete
$data_background_layout = '';
[611] Fix | Delete
$data_background_layout_hover = '';
[612] Fix | Delete
[613] Fix | Delete
if ( et_pb_hover_options()->is_enabled( 'text_color', $this->props ) && !empty( $text_color_hover ) && $text_color !== $text_color_hover ) {
[614] Fix | Delete
$data_background_layout = sprintf( ' data-background-layout="%1$s"', esc_attr( $text_color_hover ) );
[615] Fix | Delete
$data_background_layout_hover = sprintf( ' data-background-layout-hover="%1$s"', esc_attr( $text_color ) );
[616] Fix | Delete
}
[617] Fix | Delete
[618] Fix | Delete
// Module classnames
[619] Fix | Delete
$this->add_classname( array(
[620] Fix | Delete
'et_pb_post_title',
[621] Fix | Delete
$this->get_text_orientation_classname(),
[622] Fix | Delete
"et_pb_bg_layout_{$background_layout}",
[623] Fix | Delete
) );
[624] Fix | Delete
[625] Fix | Delete
if ( 'on' === $multi_view->get_value( 'featured_image' ) && 'background' === $featured_placement ) {
[626] Fix | Delete
$this->add_classname( 'et_pb_featured_bg' );
[627] Fix | Delete
}
[628] Fix | Delete
[629] Fix | Delete
if ( 'above' === $featured_placement ) {
[630] Fix | Delete
$this->add_classname( 'et_pb_image_above' );
[631] Fix | Delete
}
[632] Fix | Delete
[633] Fix | Delete
if ( 'below' === $featured_placement ) {
[634] Fix | Delete
$this->add_classname( 'et_pb_image_below' );
[635] Fix | Delete
}
[636] Fix | Delete
[637] Fix | Delete
// Remove automatically added classnames
[638] Fix | Delete
$this->remove_classname( array(
[639] Fix | Delete
'et_pb_fullwidth_post_title',
[640] Fix | Delete
) );
[641] Fix | Delete
[642] Fix | Delete
$muti_view_data_attr = $multi_view->render_attrs( array(
[643] Fix | Delete
'classes' => array(
[644] Fix | Delete
'et_pb_featured_bg' => array(
[645] Fix | Delete
'featured_image' => 'on',
[646] Fix | Delete
'featured_placement' => 'background',
[647] Fix | Delete
),
[648] Fix | Delete
),
[649] Fix | Delete
) );
[650] Fix | Delete
[651] Fix | Delete
$output = sprintf(
[652] Fix | Delete
'<div%3$s class="%2$s" %8$s %9$s %10$s>
[653] Fix | Delete
%4$s
[654] Fix | Delete
%7$s
[655] Fix | Delete
%5$s
[656] Fix | Delete
<div class="et_pb_title_container">
[657] Fix | Delete
%1$s
[658] Fix | Delete
</div>
[659] Fix | Delete
%6$s
[660] Fix | Delete
</div>',
[661] Fix | Delete
$output,
[662] Fix | Delete
$this->module_classname( $render_slug ),
[663] Fix | Delete
$this->module_id(),
[664] Fix | Delete
$parallax_image_background,
[665] Fix | Delete
'on' === $featured_image && 'above' === $featured_placement ? $featured_image_output : '', // #5
[666] Fix | Delete
'on' === $featured_image && 'below' === $featured_placement ? $featured_image_output : '',
[667] Fix | Delete
$video_background,
[668] Fix | Delete
$data_background_layout,
[669] Fix | Delete
$data_background_layout_hover,
[670] Fix | Delete
et_core_esc_previously( $muti_view_data_attr ) // #10
[671] Fix | Delete
);
[672] Fix | Delete
[673] Fix | Delete
return $output;
[674] Fix | Delete
}
[675] Fix | Delete
}
[676] Fix | Delete
[677] Fix | Delete
new ET_Builder_Module_Fullwidth_Post_Title;
[678] Fix | Delete
[679] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function