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/wp-conte.../plugins/supreme-.../includes/modules/Shapes
File: Shapes.php
[500] Fix | Delete
ET_Builder_Element::set_style(
[501] Fix | Delete
$render_slug,
[502] Fix | Delete
array(
[503] Fix | Delete
'selector' => $shape_selector,
[504] Fix | Delete
'declaration' => $shapes_square_size_parent_phone_style,
[505] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[506] Fix | Delete
)
[507] Fix | Delete
);
[508] Fix | Delete
} elseif ( $shapes_type === 'parallelogram' ) {
[509] Fix | Delete
$shapes_square_size_style = sprintf( 'height: %2$spx; width: %1$spx;', esc_html( $shapes_square_size ), ( esc_html( $shapes_square_size ) / 2 ) );
[510] Fix | Delete
$shapes_square_size_tablet_style = '' !== $shapes_square_size_tablet ? sprintf( 'height: %2$spx; width: %1$spx;', esc_html( $shapes_square_size_tablet ), ( esc_html( $shapes_square_size_tablet ) / 2 ) ) : '';
[511] Fix | Delete
$shapes_square_size_phone_style = '' !== $shapes_square_size_phone ? sprintf( 'height: %2$spx; width: %1$spx;', esc_html( $shapes_square_size_phone ), ( esc_html( $shapes_square_size_phone ) / 2 ) ) : '';
[512] Fix | Delete
[513] Fix | Delete
ET_Builder_Element::set_style(
[514] Fix | Delete
$render_slug,
[515] Fix | Delete
array(
[516] Fix | Delete
'selector' => $shape_selector,
[517] Fix | Delete
'declaration' => $shapes_square_size_style,
[518] Fix | Delete
)
[519] Fix | Delete
);
[520] Fix | Delete
[521] Fix | Delete
ET_Builder_Element::set_style(
[522] Fix | Delete
$render_slug,
[523] Fix | Delete
array(
[524] Fix | Delete
'selector' => $shape_selector,
[525] Fix | Delete
'declaration' => $shapes_square_size_tablet_style,
[526] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[527] Fix | Delete
)
[528] Fix | Delete
);
[529] Fix | Delete
[530] Fix | Delete
ET_Builder_Element::set_style(
[531] Fix | Delete
$render_slug,
[532] Fix | Delete
array(
[533] Fix | Delete
'selector' => $shape_selector,
[534] Fix | Delete
'declaration' => $shapes_square_size_phone_style,
[535] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[536] Fix | Delete
)
[537] Fix | Delete
);
[538] Fix | Delete
} elseif ( $shapes_type === 'diamond_square' ) {
[539] Fix | Delete
ET_Builder_Element::set_style(
[540] Fix | Delete
$render_slug,
[541] Fix | Delete
array(
[542] Fix | Delete
'selector' => $shape_selector,
[543] Fix | Delete
'declaration' => $shapes_square_size_style,
[544] Fix | Delete
)
[545] Fix | Delete
);
[546] Fix | Delete
[547] Fix | Delete
ET_Builder_Element::set_style(
[548] Fix | Delete
$render_slug,
[549] Fix | Delete
array(
[550] Fix | Delete
'selector' => $shape_selector,
[551] Fix | Delete
'declaration' => $shapes_square_size_tablet_style,
[552] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[553] Fix | Delete
)
[554] Fix | Delete
);
[555] Fix | Delete
[556] Fix | Delete
ET_Builder_Element::set_style(
[557] Fix | Delete
$render_slug,
[558] Fix | Delete
array(
[559] Fix | Delete
'selector' => $shape_selector,
[560] Fix | Delete
'declaration' => $shapes_square_size_phone_style,
[561] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[562] Fix | Delete
)
[563] Fix | Delete
);
[564] Fix | Delete
} elseif ( $shapes_type === 'hexagon' ) {
[565] Fix | Delete
$shapes_square_size_style = sprintf( 'height: %2$spx; width: %1$spx;', esc_html( $shapes_square_size ), ( esc_html( $shapes_square_size ) / 1.77 ) );
[566] Fix | Delete
$shapes_square_size_tablet_style = '' !== $shapes_square_size_tablet ? sprintf( 'height: %2$spx; width: %1$spx;', esc_html( $shapes_square_size_tablet ), ( esc_html( $shapes_square_size_tablet ) / 1.77 ) ) : '';
[567] Fix | Delete
$shapes_square_size_phone_style = '' !== $shapes_square_size_phone ? sprintf( 'height: %2$spx; width: %1$spx;', esc_html( $shapes_square_size_phone ), ( esc_html( $shapes_square_size_phone ) / 1.77 ) ) : '';
[568] Fix | Delete
[569] Fix | Delete
$shapes_square_size_before_style = sprintf( 'border-left: %2$spx solid transparent; border-right: %2$spx solid transparent; border-bottom: %3$spx solid %1$s', esc_attr( $shape_color ), ( esc_html( $shapes_square_size ) / 2 ), ( esc_html( $shapes_square_size ) / 4 ) );
[570] Fix | Delete
$shapes_square_size_before_tablet_style = '' !== $shapes_square_size_tablet ? sprintf( 'border-left: %2$spx solid transparent; border-right: %2$spx solid transparent; border-bottom: %3$spx solid %1$s', esc_attr( $shape_color ), ( esc_html( $shapes_square_size_tablet ) / 2 ), ( esc_html( $shapes_square_size_tablet ) / 4 ) ) : '';
[571] Fix | Delete
$shapes_square_size_before_phone_style = '' !== $shapes_square_size_phone ? sprintf( 'border-left: %2$spx solid transparent; border-right: %2$spx solid transparent; border-bottom: %3$spx solid %1$s', esc_attr( $shape_color ), ( esc_html( $shapes_square_size_phone ) / 2 ), ( esc_html( $shapes_square_size_phone ) / 4 ) ) : '';
[572] Fix | Delete
[573] Fix | Delete
$shapes_square_size_after_style = sprintf( 'border-left: %2$spx solid transparent; border-right: %2$spx solid transparent; border-top: %3$spx solid %1$s', esc_attr( $shape_color ), ( esc_html( $shapes_square_size ) / 2 ), ( esc_html( $shapes_square_size ) / 4 ) );
[574] Fix | Delete
$shapes_square_size_after_tablet_style = '' !== $shapes_square_size_tablet ? sprintf( 'border-left: %2$spx solid transparent; border-right: %2$spx solid transparent; border-top: %3$spx solid %1$s', esc_attr( $shape_color ), ( esc_html( $shapes_square_size_tablet ) / 2 ), ( esc_html( $shapes_square_size_tablet ) / 4 ) ) : '';
[575] Fix | Delete
$shapes_square_size_after_phone_style = '' !== $shapes_square_size_phone ? sprintf( 'border-left: %2$spx solid transparent; border-right: %2$spx solid transparent; border-top: %3$spx solid %1$s', esc_attr( $shape_color ), ( esc_html( $shapes_square_size_phone ) / 2 ), ( esc_html( $shapes_square_size_phone ) / 4 ) ) : '';
[576] Fix | Delete
[577] Fix | Delete
ET_Builder_Element::set_style(
[578] Fix | Delete
$render_slug,
[579] Fix | Delete
array(
[580] Fix | Delete
'selector' => $shape_selector,
[581] Fix | Delete
'declaration' => $shapes_square_size_style,
[582] Fix | Delete
)
[583] Fix | Delete
);
[584] Fix | Delete
[585] Fix | Delete
ET_Builder_Element::set_style(
[586] Fix | Delete
$render_slug,
[587] Fix | Delete
array(
[588] Fix | Delete
'selector' => $shape_selector,
[589] Fix | Delete
'declaration' => $shapes_square_size_tablet_style,
[590] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[591] Fix | Delete
)
[592] Fix | Delete
);
[593] Fix | Delete
[594] Fix | Delete
ET_Builder_Element::set_style(
[595] Fix | Delete
$render_slug,
[596] Fix | Delete
array(
[597] Fix | Delete
'selector' => $shape_selector,
[598] Fix | Delete
'declaration' => $shapes_square_size_phone_style,
[599] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[600] Fix | Delete
)
[601] Fix | Delete
);
[602] Fix | Delete
ET_Builder_Element::set_style(
[603] Fix | Delete
$render_slug,
[604] Fix | Delete
array(
[605] Fix | Delete
'selector' => $shape_selector,
[606] Fix | Delete
'declaration' => sprintf( 'margin: %1$spx 0;', ( esc_html( $shapes_square_size ) / 4 ) ),
[607] Fix | Delete
)
[608] Fix | Delete
);
[609] Fix | Delete
ET_Builder_Element::set_style(
[610] Fix | Delete
$render_slug,
[611] Fix | Delete
array(
[612] Fix | Delete
'selector' => $shape_selector,
[613] Fix | Delete
'declaration' => sprintf( 'margin: %1$spx 0;', ( (int) esc_html( $shapes_square_size_tablet ) / 4 ) ),
[614] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[615] Fix | Delete
)
[616] Fix | Delete
);
[617] Fix | Delete
ET_Builder_Element::set_style(
[618] Fix | Delete
$render_slug,
[619] Fix | Delete
array(
[620] Fix | Delete
'selector' => $shape_selector,
[621] Fix | Delete
'declaration' => sprintf( 'margin: %1$spx 0;', ( (int) esc_html( $shapes_square_size_phone ) / 4 ) ),
[622] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[623] Fix | Delete
)
[624] Fix | Delete
);
[625] Fix | Delete
// before
[626] Fix | Delete
ET_Builder_Element::set_style(
[627] Fix | Delete
$render_slug,
[628] Fix | Delete
array(
[629] Fix | Delete
'selector' => '%%order_class%% .dsm_shapes_wrapper:before',
[630] Fix | Delete
'declaration' => $shapes_square_size_before_style,
[631] Fix | Delete
)
[632] Fix | Delete
);
[633] Fix | Delete
[634] Fix | Delete
ET_Builder_Element::set_style(
[635] Fix | Delete
$render_slug,
[636] Fix | Delete
array(
[637] Fix | Delete
'selector' => '%%order_class%% .dsm_shapes_wrapper:before',
[638] Fix | Delete
'declaration' => $shapes_square_size_before_tablet_style,
[639] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[640] Fix | Delete
)
[641] Fix | Delete
);
[642] Fix | Delete
[643] Fix | Delete
ET_Builder_Element::set_style(
[644] Fix | Delete
$render_slug,
[645] Fix | Delete
array(
[646] Fix | Delete
'selector' => '%%order_class%% .dsm_shapes_wrapper:before',
[647] Fix | Delete
'declaration' => $shapes_square_size_before_phone_style,
[648] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[649] Fix | Delete
)
[650] Fix | Delete
);
[651] Fix | Delete
[652] Fix | Delete
// after
[653] Fix | Delete
ET_Builder_Element::set_style(
[654] Fix | Delete
$render_slug,
[655] Fix | Delete
array(
[656] Fix | Delete
'selector' => '%%order_class%% .dsm_shapes_wrapper:after',
[657] Fix | Delete
'declaration' => $shapes_square_size_after_style,
[658] Fix | Delete
)
[659] Fix | Delete
);
[660] Fix | Delete
ET_Builder_Element::set_style(
[661] Fix | Delete
$render_slug,
[662] Fix | Delete
array(
[663] Fix | Delete
'selector' => '%%order_class%% .dsm_shapes_wrapper:after',
[664] Fix | Delete
'declaration' => $shapes_square_size_after_tablet_style,
[665] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[666] Fix | Delete
)
[667] Fix | Delete
);
[668] Fix | Delete
[669] Fix | Delete
ET_Builder_Element::set_style(
[670] Fix | Delete
$render_slug,
[671] Fix | Delete
array(
[672] Fix | Delete
'selector' => '%%order_class%% .dsm_shapes_wrapper:after',
[673] Fix | Delete
'declaration' => $shapes_square_size_after_phone_style,
[674] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[675] Fix | Delete
)
[676] Fix | Delete
);
[677] Fix | Delete
} else {
[678] Fix | Delete
ET_Builder_Element::set_style(
[679] Fix | Delete
$render_slug,
[680] Fix | Delete
array(
[681] Fix | Delete
'selector' => $shape_selector,
[682] Fix | Delete
'declaration' => $shapes_square_size_style,
[683] Fix | Delete
)
[684] Fix | Delete
);
[685] Fix | Delete
[686] Fix | Delete
ET_Builder_Element::set_style(
[687] Fix | Delete
$render_slug,
[688] Fix | Delete
array(
[689] Fix | Delete
'selector' => $shape_selector,
[690] Fix | Delete
'declaration' => $shapes_square_size_tablet_style,
[691] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[692] Fix | Delete
)
[693] Fix | Delete
);
[694] Fix | Delete
[695] Fix | Delete
ET_Builder_Element::set_style(
[696] Fix | Delete
$render_slug,
[697] Fix | Delete
array(
[698] Fix | Delete
'selector' => $shape_selector,
[699] Fix | Delete
'declaration' => $shapes_square_size_phone_style,
[700] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[701] Fix | Delete
)
[702] Fix | Delete
);
[703] Fix | Delete
}
[704] Fix | Delete
[705] Fix | Delete
// color
[706] Fix | Delete
$shape_color_style = '';
[707] Fix | Delete
$shape_color_tablet_style = '';
[708] Fix | Delete
$shape_color_phone_style = '';
[709] Fix | Delete
[710] Fix | Delete
if ( $shapes_type === 'square' ) {
[711] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[712] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[713] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[714] Fix | Delete
} elseif ( $shapes_type === 'circle' ) {
[715] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[716] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[717] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[718] Fix | Delete
} elseif ( $shapes_type === 'rectangle' ) {
[719] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[720] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[721] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[722] Fix | Delete
} elseif ( $shapes_type === 'triangle' ) {
[723] Fix | Delete
$shape_color_style = sprintf( 'border-bottom-color: %1$s;', esc_attr( $shape_color ) );
[724] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'border-bottom-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[725] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'border-bottom-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[726] Fix | Delete
} elseif ( $shapes_type === 'oval' ) {
[727] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[728] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[729] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[730] Fix | Delete
} elseif ( $shapes_type === 'trapezoid' ) {
[731] Fix | Delete
$shape_color_style = sprintf( 'border-bottom-color: %1$s;', esc_attr( $shape_color ) );
[732] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'border-bottom-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[733] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'border-bottom-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[734] Fix | Delete
} elseif ( $shapes_type === 'parallelogram' ) {
[735] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[736] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[737] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[738] Fix | Delete
} elseif ( $shapes_type === 'diamond_square' ) {
[739] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[740] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[741] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[742] Fix | Delete
} elseif ( $shapes_type === 'hexagon' ) {
[743] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[744] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[745] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[746] Fix | Delete
} else {
[747] Fix | Delete
$shape_color_style = sprintf( 'background-color: %1$s;', esc_attr( $shape_color ) );
[748] Fix | Delete
$shape_color_tablet_style = '' !== $shape_color_tablet ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_tablet ) ) : '';
[749] Fix | Delete
$shape_color_phone_style = '' !== $shape_color_phone ? sprintf( 'background-color: %1$s;', esc_attr( $shape_color_phone ) ) : '';
[750] Fix | Delete
}
[751] Fix | Delete
[752] Fix | Delete
ET_Builder_Element::set_style(
[753] Fix | Delete
$render_slug,
[754] Fix | Delete
array(
[755] Fix | Delete
'selector' => $shape_selector,
[756] Fix | Delete
'declaration' => $shape_color_style,
[757] Fix | Delete
)
[758] Fix | Delete
);
[759] Fix | Delete
[760] Fix | Delete
ET_Builder_Element::set_style(
[761] Fix | Delete
$render_slug,
[762] Fix | Delete
array(
[763] Fix | Delete
'selector' => $shape_selector,
[764] Fix | Delete
'declaration' => $shape_color_tablet_style,
[765] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[766] Fix | Delete
)
[767] Fix | Delete
);
[768] Fix | Delete
[769] Fix | Delete
ET_Builder_Element::set_style(
[770] Fix | Delete
$render_slug,
[771] Fix | Delete
array(
[772] Fix | Delete
'selector' => $shape_selector,
[773] Fix | Delete
'declaration' => $shape_color_phone_style,
[774] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[775] Fix | Delete
)
[776] Fix | Delete
);
[777] Fix | Delete
[778] Fix | Delete
// Remove automatically added classnames
[779] Fix | Delete
$this->remove_classname(
[780] Fix | Delete
array(
[781] Fix | Delete
'et_pb_module',
[782] Fix | Delete
)
[783] Fix | Delete
);
[784] Fix | Delete
[785] Fix | Delete
// Render module content.
[786] Fix | Delete
$output = sprintf(
[787] Fix | Delete
'%1$s
[788] Fix | Delete
%2$s
[789] Fix | Delete
<div class="dsm_shapes_wrapper dsm_shapes_%3$s">
[790] Fix | Delete
</div>',
[791] Fix | Delete
$video_background,
[792] Fix | Delete
$parallax_image_background,
[793] Fix | Delete
esc_attr( $shapes_type )
[794] Fix | Delete
);
[795] Fix | Delete
[796] Fix | Delete
if ( isset( get_option( 'dsm_settings_misc' )['dsm_dynamic_assets'] ) && ! empty( get_option( 'dsm_settings_misc' )['dsm_dynamic_assets'] ) && 'on' === get_option( 'dsm_settings_misc' )['dsm_dynamic_assets'] ) {
[797] Fix | Delete
if ( isset( get_option( 'dsm_settings_misc' )['dsm_dynamic_assets_compatibility'] ) && ! empty( get_option( 'dsm_settings_misc' )['dsm_dynamic_assets'] ) && 'on' === get_option( 'dsm_settings_misc' )['dsm_dynamic_assets_compatibility'] ) {
[798] Fix | Delete
wp_enqueue_style( 'dsm-shapes', plugin_dir_url( __DIR__ ) . 'Shapes/style.css', array(), DSM_VERSION, 'all' );
[799] Fix | Delete
} else {
[800] Fix | Delete
add_filter( 'et_global_assets_list', array( $this, 'dsm_load_required_divi_assets' ), 10, 3 );
[801] Fix | Delete
add_filter( 'et_late_global_assets_list', array( $this, 'dsm_load_required_divi_assets' ), 10, 3 );
[802] Fix | Delete
}
[803] Fix | Delete
}
[804] Fix | Delete
[805] Fix | Delete
return $output;
[806] Fix | Delete
}
[807] Fix | Delete
public function apply_custom_margin_padding( $function_name, $slug, $type, $class, $important = false ) {
[808] Fix | Delete
$slug_value = $this->props[ $slug ];
[809] Fix | Delete
$slug_value_tablet = $this->props[ $slug . '_tablet' ];
[810] Fix | Delete
$slug_value_phone = $this->props[ $slug . '_phone' ];
[811] Fix | Delete
$slug_value_last_edited = $this->props[ $slug . '_last_edited' ];
[812] Fix | Delete
$slug_value_responsive_active = et_pb_get_responsive_status( $slug_value_last_edited );
[813] Fix | Delete
[814] Fix | Delete
if ( isset( $slug_value ) && ! empty( $slug_value ) ) {
[815] Fix | Delete
ET_Builder_Element::set_style(
[816] Fix | Delete
$function_name,
[817] Fix | Delete
array(
[818] Fix | Delete
'selector' => $class,
[819] Fix | Delete
'declaration' => et_builder_get_element_style_css( $slug_value, $type, $important ),
[820] Fix | Delete
)
[821] Fix | Delete
);
[822] Fix | Delete
}
[823] Fix | Delete
[824] Fix | Delete
if ( isset( $slug_value_tablet ) && ! empty( $slug_value_tablet ) && $slug_value_responsive_active ) {
[825] Fix | Delete
ET_Builder_Element::set_style(
[826] Fix | Delete
$function_name,
[827] Fix | Delete
array(
[828] Fix | Delete
'selector' => $class,
[829] Fix | Delete
'declaration' => et_builder_get_element_style_css( $slug_value_tablet, $type, $important ),
[830] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_980' ),
[831] Fix | Delete
)
[832] Fix | Delete
);
[833] Fix | Delete
}
[834] Fix | Delete
[835] Fix | Delete
if ( isset( $slug_value_phone ) && ! empty( $slug_value_phone ) && $slug_value_responsive_active ) {
[836] Fix | Delete
ET_Builder_Element::set_style(
[837] Fix | Delete
$function_name,
[838] Fix | Delete
array(
[839] Fix | Delete
'selector' => $class,
[840] Fix | Delete
'declaration' => et_builder_get_element_style_css( $slug_value_phone, $type, $important ),
[841] Fix | Delete
'media_query' => ET_Builder_Element::get_media_query( 'max_width_767' ),
[842] Fix | Delete
)
[843] Fix | Delete
);
[844] Fix | Delete
}
[845] Fix | Delete
if ( et_builder_is_hover_enabled( $slug, $this->props ) ) {
[846] Fix | Delete
if ( isset( $this->props[ $slug . '__hover' ] ) ) {
[847] Fix | Delete
$hover = $this->props[ $slug . '__hover' ];
[848] Fix | Delete
ET_Builder_Element::set_style(
[849] Fix | Delete
$function_name,
[850] Fix | Delete
array(
[851] Fix | Delete
'selector' => $this->add_hover_to_order_class( $class ),
[852] Fix | Delete
'declaration' => et_builder_get_element_style_css( $hover, $type, $important ),
[853] Fix | Delete
)
[854] Fix | Delete
);
[855] Fix | Delete
}
[856] Fix | Delete
}
[857] Fix | Delete
}
[858] Fix | Delete
[859] Fix | Delete
/**
[860] Fix | Delete
* Force load global styles.
[861] Fix | Delete
*
[862] Fix | Delete
* @param array $assets_list Current global assets on the list.
[863] Fix | Delete
*
[864] Fix | Delete
* @return array
[865] Fix | Delete
*/
[866] Fix | Delete
public function dsm_load_required_divi_assets( $assets_list, $assets_args, $instance ) {
[867] Fix | Delete
$assets_prefix = et_get_dynamic_assets_path();
[868] Fix | Delete
$all_shortcodes = $instance->get_saved_page_shortcodes();
[869] Fix | Delete
$this->_cpt_suffix = et_builder_should_wrap_styles() && ! et_is_builder_plugin_active() ? '_cpt' : '';
[870] Fix | Delete
[871] Fix | Delete
if ( ! isset( $assets_list['et_jquery_magnific_popup'] ) ) {
[872] Fix | Delete
$assets_list['et_jquery_magnific_popup'] = array(
[873] Fix | Delete
'css' => "{$assets_prefix}/css/magnific_popup.css",
[874] Fix | Delete
);
[875] Fix | Delete
}
[876] Fix | Delete
[877] Fix | Delete
if ( ! isset( $assets_list['et_pb_overlay'] ) ) {
[878] Fix | Delete
$assets_list['et_pb_overlay'] = array(
[879] Fix | Delete
'css' => "{$assets_prefix}/css/overlay{$this->_cpt_suffix}.css",
[880] Fix | Delete
);
[881] Fix | Delete
}
[882] Fix | Delete
[883] Fix | Delete
// Shapes.
[884] Fix | Delete
if ( ! isset( $assets_list['dsm_shapes'] ) ) {
[885] Fix | Delete
$assets_list['dsm_shapes'] = array(
[886] Fix | Delete
'css' => plugin_dir_url( __DIR__ ) . 'Shapes/style.css',
[887] Fix | Delete
);
[888] Fix | Delete
}
[889] Fix | Delete
[890] Fix | Delete
return $assets_list;
[891] Fix | Delete
}
[892] Fix | Delete
}
[893] Fix | Delete
[894] Fix | Delete
new DSM_Shapes();
[895] Fix | Delete
[896] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function