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/woocomme...
File: AddToCart.php
$processed_values,
[500] Fix | Delete
'%%order_class%% form.cart .variations td.value span:after',
[501] Fix | Delete
$render_slug
[502] Fix | Delete
);
[503] Fix | Delete
}
[504] Fix | Delete
[505] Fix | Delete
/**
[506] Fix | Delete
* Calculates Dropdown's arrow margin values.
[507] Fix | Delete
*
[508] Fix | Delete
* The Dropdown's arrow margin values depend on the actual
[509] Fix | Delete
* Dropdown margin values.
[510] Fix | Delete
*
[511] Fix | Delete
* @since 4.3.4
[512] Fix | Delete
*
[513] Fix | Delete
* @param $value
[514] Fix | Delete
*
[515] Fix | Delete
* @return string
[516] Fix | Delete
*/
[517] Fix | Delete
public function calculate_dropdown_arrow_margin( $value ) {
[518] Fix | Delete
$dropdown_margin = explode( '|', $value );
[519] Fix | Delete
$dropdown_bottom_margin = empty( $dropdown_margin[2] ) ? '0px' : $dropdown_margin[2];
[520] Fix | Delete
$dropdown_left_margin = empty( $dropdown_margin[3] ) ? '0px' : $dropdown_margin[3];
[521] Fix | Delete
[522] Fix | Delete
$declarations = array(
[523] Fix | Delete
sprintf( 'margin-top: calc( 3px - %s )', $dropdown_bottom_margin ),
[524] Fix | Delete
sprintf( 'right: calc( 10px - %s )', $dropdown_left_margin ),
[525] Fix | Delete
);
[526] Fix | Delete
[527] Fix | Delete
// The last declaration wouldn't have the `;`. So appending manually.
[528] Fix | Delete
return implode( ';', $declarations ) . ';';
[529] Fix | Delete
}
[530] Fix | Delete
[531] Fix | Delete
/**
[532] Fix | Delete
* Renders the module output.
[533] Fix | Delete
*
[534] Fix | Delete
* @param array $attrs List of attributes.
[535] Fix | Delete
* @param string $content Content being processed.
[536] Fix | Delete
* @param string $render_slug Slug of module that is used for rendering output.
[537] Fix | Delete
*
[538] Fix | Delete
* @return string
[539] Fix | Delete
*/
[540] Fix | Delete
public function render( $attrs, $content = null, $render_slug ) {
[541] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[542] Fix | Delete
$use_focus_border_color = $this->props['use_focus_border_color'];
[543] Fix | Delete
[544] Fix | Delete
// Module classnames.
[545] Fix | Delete
if ( 'on' !== $multi_view->get_value( 'show_quantity' ) ) {
[546] Fix | Delete
$this->add_classname( 'et_pb_hide_input_quantity' );
[547] Fix | Delete
}
[548] Fix | Delete
[549] Fix | Delete
if ( 'on' !== $multi_view->get_value( 'show_stock' ) ) {
[550] Fix | Delete
$this->add_classname( 'et_pb_hide_stock' );
[551] Fix | Delete
}
[552] Fix | Delete
[553] Fix | Delete
if ( 'on' === $use_focus_border_color ) {
[554] Fix | Delete
$this->add_classname( 'et_pb_with_focus_border' );
[555] Fix | Delete
}
[556] Fix | Delete
[557] Fix | Delete
ET_Builder_Module_Helper_Woocommerce_Modules::process_background_layout_data( $render_slug, $this );
[558] Fix | Delete
ET_Builder_Module_Helper_Woocommerce_Modules::process_custom_button_icons( $render_slug, $this );
[559] Fix | Delete
[560] Fix | Delete
$this->add_classname( $this->get_text_orientation_classname() );
[561] Fix | Delete
[562] Fix | Delete
$this->add_additional_css( $this->props, $render_slug );
[563] Fix | Delete
[564] Fix | Delete
add_filter( "et_builder_module_{$render_slug}_outer_wrapper_attrs", array(
[565] Fix | Delete
$this,
[566] Fix | Delete
'add_multi_view_attrs',
[567] Fix | Delete
) );
[568] Fix | Delete
[569] Fix | Delete
$output = self::get_add_to_cart( $this->props );
[570] Fix | Delete
[571] Fix | Delete
// Render empty string if no output is generated to avoid unwanted vertical space.
[572] Fix | Delete
if ( '' === $output ) {
[573] Fix | Delete
return '';
[574] Fix | Delete
}
[575] Fix | Delete
[576] Fix | Delete
return $this->_render_module_wrapper( $output, $render_slug );
[577] Fix | Delete
}
[578] Fix | Delete
}
[579] Fix | Delete
[580] Fix | Delete
new ET_Builder_Module_Woocommerce_Add_To_Cart();
[581] Fix | Delete
[582] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function