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: FullwidthPostSlider.php
}
[500] Fix | Delete
[501] Fix | Delete
// Reset $wp_query to its origin
[502] Fix | Delete
$wp_query = $wp_query_page; // phpcs:ignore WordPress.Variables.GlobalVariables.OverrideProhibited
[503] Fix | Delete
[504] Fix | Delete
return $query;
[505] Fix | Delete
}
[506] Fix | Delete
[507] Fix | Delete
function get_fields() {
[508] Fix | Delete
$fields = array(
[509] Fix | Delete
'use_current_loop' => array(
[510] Fix | Delete
'label' => esc_html__( 'Posts For Current Page', 'et_builder' ),
[511] Fix | Delete
'type' => 'yes_no_button',
[512] Fix | Delete
'option_category' => 'configuration',
[513] Fix | Delete
'options' => array(
[514] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[515] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[516] Fix | Delete
),
[517] Fix | Delete
'description' => esc_html__( 'Display posts for the current page. Useful on archive and index pages.', 'et_builder' ),
[518] Fix | Delete
'computed_affects' => array(
[519] Fix | Delete
'__posts',
[520] Fix | Delete
),
[521] Fix | Delete
'toggle_slug' => 'main_content',
[522] Fix | Delete
'default' => 'off',
[523] Fix | Delete
'show_if' => array(
[524] Fix | Delete
'function.isTBLayout' => 'on',
[525] Fix | Delete
),
[526] Fix | Delete
),
[527] Fix | Delete
'posts_number' => array(
[528] Fix | Delete
'label' => esc_html__( 'Post Count', 'et_builder' ),
[529] Fix | Delete
'type' => 'text',
[530] Fix | Delete
'option_category' => 'configuration',
[531] Fix | Delete
'description' => esc_html__( 'Choose how many posts you would like to display in the slider.', 'et_builder' ),
[532] Fix | Delete
'computed_affects' => array(
[533] Fix | Delete
'__posts',
[534] Fix | Delete
),
[535] Fix | Delete
'toggle_slug' => 'main_content',
[536] Fix | Delete
),
[537] Fix | Delete
'include_categories' => array(
[538] Fix | Delete
'label' => esc_html__( 'Included Categories', 'et_builder' ),
[539] Fix | Delete
'type' => 'categories',
[540] Fix | Delete
'meta_categories' => array(
[541] Fix | Delete
'all' => esc_html__( 'All Categories', 'et_builder' ),
[542] Fix | Delete
'current' => esc_html__( 'Current Category', 'et_builder' ),
[543] Fix | Delete
),
[544] Fix | Delete
'option_category' => 'basic_option',
[545] Fix | Delete
'renderer_options' => array(
[546] Fix | Delete
'use_terms' => false,
[547] Fix | Delete
),
[548] Fix | Delete
'description' => esc_html__( 'Choose which categories you would like to include in the slider.', 'et_builder' ),
[549] Fix | Delete
'toggle_slug' => 'main_content',
[550] Fix | Delete
'computed_affects' => array(
[551] Fix | Delete
'__posts',
[552] Fix | Delete
),
[553] Fix | Delete
'show_if' => array(
[554] Fix | Delete
'use_current_loop' => 'off',
[555] Fix | Delete
),
[556] Fix | Delete
),
[557] Fix | Delete
'orderby' => array(
[558] Fix | Delete
'label' => esc_html__( 'Order', 'et_builder' ),
[559] Fix | Delete
'type' => 'select',
[560] Fix | Delete
'option_category' => 'configuration',
[561] Fix | Delete
'options' => array(
[562] Fix | Delete
'date_desc' => esc_html__( 'Date: new to old', 'et_builder' ),
[563] Fix | Delete
'date_asc' => esc_html__( 'Date: old to new', 'et_builder' ),
[564] Fix | Delete
'title_asc' => esc_html__( 'Title: a-z', 'et_builder' ),
[565] Fix | Delete
'title_desc' => esc_html__( 'Title: z-a', 'et_builder' ),
[566] Fix | Delete
'rand' => esc_html__( 'Random', 'et_builder' ),
[567] Fix | Delete
),
[568] Fix | Delete
'default' => 'date_desc',
[569] Fix | Delete
'description' => esc_html__( 'Here you can adjust the order in which posts are displayed.', 'et_builder' ),
[570] Fix | Delete
'computed_affects' => array(
[571] Fix | Delete
'__posts',
[572] Fix | Delete
),
[573] Fix | Delete
'show_if' => array(
[574] Fix | Delete
'use_current_loop' => 'off',
[575] Fix | Delete
),
[576] Fix | Delete
'toggle_slug' => 'main_content',
[577] Fix | Delete
),
[578] Fix | Delete
'show_arrows' => array(
[579] Fix | Delete
'label' => esc_html__( 'Show Arrows', 'et_builder' ),
[580] Fix | Delete
'type' => 'yes_no_button',
[581] Fix | Delete
'option_category' => 'configuration',
[582] Fix | Delete
'options' => array(
[583] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[584] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[585] Fix | Delete
),
[586] Fix | Delete
'default_on_front' => 'on',
[587] Fix | Delete
'toggle_slug' => 'elements',
[588] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the navigation arrows.', 'et_builder' ),
[589] Fix | Delete
'mobile_options' => true,
[590] Fix | Delete
'hover' => 'tabs',
[591] Fix | Delete
),
[592] Fix | Delete
'show_pagination' => array(
[593] Fix | Delete
'label' => esc_html__( 'Show Controls', 'et_builder' ),
[594] Fix | Delete
'type' => 'yes_no_button',
[595] Fix | Delete
'option_category' => 'configuration',
[596] Fix | Delete
'options' => array(
[597] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[598] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[599] Fix | Delete
),
[600] Fix | Delete
'default_on_front' => 'on',
[601] Fix | Delete
'toggle_slug' => 'elements',
[602] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the circle buttons at the bottom of the slider.', 'et_builder' ),
[603] Fix | Delete
'mobile_options' => true,
[604] Fix | Delete
'hover' => 'tabs',
[605] Fix | Delete
),
[606] Fix | Delete
'show_more_button' => array(
[607] Fix | Delete
'label' => esc_html__( 'Show Read More Button', 'et_builder' ),
[608] Fix | Delete
'type' => 'yes_no_button',
[609] Fix | Delete
'option_category' => 'configuration',
[610] Fix | Delete
'options' => array(
[611] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[612] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[613] Fix | Delete
),
[614] Fix | Delete
'default_on_front' => 'on',
[615] Fix | Delete
'affects' => array(
[616] Fix | Delete
'more_text',
[617] Fix | Delete
),
[618] Fix | Delete
'toggle_slug' => 'elements',
[619] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the read more button.', 'et_builder' ),
[620] Fix | Delete
'mobile_options' => true,
[621] Fix | Delete
'hover' => 'tabs',
[622] Fix | Delete
),
[623] Fix | Delete
'more_text' => array(
[624] Fix | Delete
'label' => et_builder_i18n( 'Button' ),
[625] Fix | Delete
'type' => 'text',
[626] Fix | Delete
'option_category' => 'configuration',
[627] Fix | Delete
'default_on_front' => esc_html__( 'Read More', 'et_builder' ),
[628] Fix | Delete
'depends_show_if' => 'on',
[629] Fix | Delete
'toggle_slug' => 'main_content',
[630] Fix | Delete
'dynamic_content' => 'text',
[631] Fix | Delete
'description' => esc_html__( 'Define the text which will be displayed on "Read More" button. Leave blank for default ( Read More )', 'et_builder' ),
[632] Fix | Delete
'mobile_options' => true,
[633] Fix | Delete
'hover' => 'tabs',
[634] Fix | Delete
),
[635] Fix | Delete
'content_source' => array(
[636] Fix | Delete
'label' => esc_html__( 'Content Display', 'et_builder' ),
[637] Fix | Delete
'type' => 'select',
[638] Fix | Delete
'option_category' => 'configuration',
[639] Fix | Delete
'options' => array(
[640] Fix | Delete
'off' => esc_html__( 'Show Excerpt', 'et_builder' ),
[641] Fix | Delete
'on' => esc_html__( 'Show Content', 'et_builder' ),
[642] Fix | Delete
),
[643] Fix | Delete
'default' => 'off',
[644] Fix | Delete
'affects' => array(
[645] Fix | Delete
'use_manual_excerpt',
[646] Fix | Delete
'excerpt_length',
[647] Fix | Delete
),
[648] Fix | Delete
'description' => esc_html__( 'Showing the full content will not truncate your posts in the slider. Showing the excerpt will only display excerpt text.', 'et_builder' ),
[649] Fix | Delete
'toggle_slug' => 'main_content',
[650] Fix | Delete
'computed_affects' => array(
[651] Fix | Delete
'__posts',
[652] Fix | Delete
),
[653] Fix | Delete
'mobile_options' => true,
[654] Fix | Delete
'hover' => 'tabs',
[655] Fix | Delete
),
[656] Fix | Delete
'use_manual_excerpt' => array(
[657] Fix | Delete
'label' => esc_html__( 'Use Post Excerpts', 'et_builder' ),
[658] Fix | Delete
'type' => 'yes_no_button',
[659] Fix | Delete
'option_category' => 'configuration',
[660] Fix | Delete
'options' => array(
[661] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[662] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[663] Fix | Delete
),
[664] Fix | Delete
'default' => 'on',
[665] Fix | Delete
'depends_show_if' => 'off',
[666] Fix | Delete
'description' => esc_html__( 'Disable this option if you want to ignore manually defined excerpts and always generate it automatically.', 'et_builder' ),
[667] Fix | Delete
'toggle_slug' => 'main_content',
[668] Fix | Delete
'computed_affects' => array(
[669] Fix | Delete
'__posts',
[670] Fix | Delete
),
[671] Fix | Delete
),
[672] Fix | Delete
'excerpt_length' => array(
[673] Fix | Delete
'label' => esc_html__( 'Excerpt Length', 'et_builder' ),
[674] Fix | Delete
'type' => 'text',
[675] Fix | Delete
'option_category' => 'configuration',
[676] Fix | Delete
'default_on_front' => '270',
[677] Fix | Delete
'depends_show_if' => 'off',
[678] Fix | Delete
'description' => esc_html__( 'Define the length of automatically generated excerpts. Leave blank for default ( 270 ) ', 'et_builder' ),
[679] Fix | Delete
'toggle_slug' => 'main_content',
[680] Fix | Delete
'computed_affects' => array(
[681] Fix | Delete
'__posts',
[682] Fix | Delete
),
[683] Fix | Delete
),
[684] Fix | Delete
'show_meta' => array(
[685] Fix | Delete
'label' => esc_html__( 'Show Post Meta', 'et_builder' ),
[686] Fix | Delete
'type' => 'yes_no_button',
[687] Fix | Delete
'option_category' => 'configuration',
[688] Fix | Delete
'options' => array(
[689] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[690] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[691] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[692] Fix | Delete
),
[693] Fix | Delete
'default_on_fron' => 'on',
[694] Fix | Delete
'toggle_slug' => 'elements',
[695] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the meta section.', 'et_builder' ),
[696] Fix | Delete
'default_on_front'=> 'on',
[697] Fix | Delete
'mobile_options' => true,
[698] Fix | Delete
'hover' => 'tabs',
[699] Fix | Delete
),
[700] Fix | Delete
'show_image' => array(
[701] Fix | Delete
'label' => esc_html__( 'Show Featured Image', 'et_builder' ),
[702] Fix | Delete
'type' => 'yes_no_button',
[703] Fix | Delete
'option_category' => 'configuration',
[704] Fix | Delete
'options' => array(
[705] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[706] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[707] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[708] Fix | Delete
),
[709] Fix | Delete
'default_on_front' => 'on',
[710] Fix | Delete
'affects' => array(
[711] Fix | Delete
'image_placement',
[712] Fix | Delete
),
[713] Fix | Delete
'toggle_slug' => 'featured_image',
[714] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the featured image in the slider.', 'et_builder' ),
[715] Fix | Delete
[716] Fix | Delete
'mobile_options' => true,
[717] Fix | Delete
'hover' => 'tabs',
[718] Fix | Delete
),
[719] Fix | Delete
'image_placement' => array(
[720] Fix | Delete
'label' => esc_html__( 'Featured Image Placement', 'et_builder' ),
[721] Fix | Delete
'type' => 'select',
[722] Fix | Delete
'option_category' => 'configuration',
[723] Fix | Delete
'options' => array(
[724] Fix | Delete
'background' => et_builder_i18n( 'Background' ),
[725] Fix | Delete
'left' => et_builder_i18n( 'Left' ),
[726] Fix | Delete
'right' => et_builder_i18n( 'Right' ),
[727] Fix | Delete
'top' => et_builder_i18n( 'Top' ),
[728] Fix | Delete
'bottom' => et_builder_i18n( 'Bottom' ),
[729] Fix | Delete
),
[730] Fix | Delete
'default_on_front' => 'background',
[731] Fix | Delete
'depends_show_if' => 'on',
[732] Fix | Delete
'toggle_slug' => 'featured_image',
[733] Fix | Delete
'description' => esc_html__( 'Select how you would like to display the featured image in slides', 'et_builder' ),
[734] Fix | Delete
),
[735] Fix | Delete
'use_bg_overlay' => array(
[736] Fix | Delete
'label' => esc_html__( 'Use Background Overlay', 'et_builder' ),
[737] Fix | Delete
'type' => 'yes_no_button',
[738] Fix | Delete
'option_category' => 'configuration',
[739] Fix | Delete
'options' => array(
[740] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[741] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[742] Fix | Delete
),
[743] Fix | Delete
'default_on_front' => 'on',
[744] Fix | Delete
'affects' => array(
[745] Fix | Delete
'bg_overlay_color',
[746] Fix | Delete
),
[747] Fix | Delete
'tab_slug' => 'advanced',
[748] Fix | Delete
'toggle_slug' => 'overlay',
[749] 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' ),
[750] Fix | Delete
),
[751] Fix | Delete
'bg_overlay_color' => array(
[752] Fix | Delete
'label' => esc_html__( 'Background Overlay Color', 'et_builder' ),
[753] Fix | Delete
'type' => 'color-alpha',
[754] Fix | Delete
'custom_color' => true,
[755] Fix | Delete
'depends_show_if' => 'on',
[756] Fix | Delete
'tab_slug' => 'advanced',
[757] Fix | Delete
'toggle_slug' => 'overlay',
[758] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the background overlay.', 'et_builder' ),
[759] Fix | Delete
'mobile_options' => true,
[760] Fix | Delete
),
[761] Fix | Delete
'use_text_overlay' => array(
[762] Fix | Delete
'label' => esc_html__( 'Use Text Overlay', 'et_builder' ),
[763] Fix | Delete
'type' => 'yes_no_button',
[764] Fix | Delete
'option_category' => 'configuration',
[765] Fix | Delete
'options' => array(
[766] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[767] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[768] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[769] Fix | Delete
),
[770] Fix | Delete
'affects' => array(
[771] Fix | Delete
'text_overlay_color',
[772] Fix | Delete
'text_border_radius',
[773] Fix | Delete
),
[774] Fix | Delete
'tab_slug' => 'advanced',
[775] Fix | Delete
'toggle_slug' => 'overlay',
[776] 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' ),
[777] Fix | Delete
),
[778] Fix | Delete
'text_overlay_color' => array(
[779] Fix | Delete
'label' => esc_html__( 'Text Overlay Color', 'et_builder' ),
[780] Fix | Delete
'type' => 'color-alpha',
[781] Fix | Delete
'custom_color' => true,
[782] Fix | Delete
'depends_show_if' => 'on',
[783] Fix | Delete
'tab_slug' => 'advanced',
[784] Fix | Delete
'toggle_slug' => 'overlay',
[785] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the text overlay.', 'et_builder' ),
[786] Fix | Delete
'mobile_options' => true,
[787] Fix | Delete
),
[788] Fix | Delete
'show_content_on_mobile' => array(
[789] Fix | Delete
'label' => esc_html__( 'Show Content On Mobile', 'et_builder' ),
[790] Fix | Delete
'type' => 'yes_no_button',
[791] Fix | Delete
'option_category' => 'layout',
[792] Fix | Delete
'options' => array(
[793] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[794] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[795] Fix | Delete
),
[796] Fix | Delete
'default_on_front' => 'on',
[797] Fix | Delete
'tab_slug' => 'custom_css',
[798] Fix | Delete
'toggle_slug' => 'visibility',
[799] Fix | Delete
),
[800] Fix | Delete
'show_cta_on_mobile' => array(
[801] Fix | Delete
'label' => esc_html__( 'Show CTA On Mobile', 'et_builder' ),
[802] Fix | Delete
'type' => 'yes_no_button',
[803] Fix | Delete
'option_category' => 'layout',
[804] Fix | Delete
'options' => array(
[805] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[806] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[807] Fix | Delete
),
[808] Fix | Delete
'default_on_front' => 'on',
[809] Fix | Delete
'tab_slug' => 'custom_css',
[810] Fix | Delete
'toggle_slug' => 'visibility',
[811] Fix | Delete
),
[812] Fix | Delete
'show_image_video_mobile' => array(
[813] Fix | Delete
'label' => esc_html__( 'Show Image On Mobile', 'et_builder' ),
[814] Fix | Delete
'type' => 'yes_no_button',
[815] Fix | Delete
'option_category' => 'layout',
[816] Fix | Delete
'options' => array(
[817] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[818] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[819] Fix | Delete
),
[820] Fix | Delete
'default_on_front' => 'off',
[821] Fix | Delete
'tab_slug' => 'custom_css',
[822] Fix | Delete
'toggle_slug' => 'visibility',
[823] Fix | Delete
),
[824] Fix | Delete
'text_border_radius' => array(
[825] Fix | Delete
'label' => esc_html__( 'Text Overlay Border Radius', 'et_builder' ),
[826] 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' ),
[827] Fix | Delete
'type' => 'range',
[828] Fix | Delete
'option_category' => 'layout',
[829] Fix | Delete
'default' => '3',
[830] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[831] Fix | Delete
'default_unit' => 'px',
[832] Fix | Delete
'default_on_front' => '',
[833] Fix | Delete
'range_settings' => array(
[834] Fix | Delete
'min' => '0',
[835] Fix | Delete
'max' => '100',
[836] Fix | Delete
'step' => '1',
[837] Fix | Delete
),
[838] Fix | Delete
'depends_show_if' => 'on',
[839] Fix | Delete
'tab_slug' => 'advanced',
[840] Fix | Delete
'toggle_slug' => 'overlay',
[841] Fix | Delete
'mobile_options' => true,
[842] Fix | Delete
),
[843] Fix | Delete
'arrows_custom_color' => array(
[844] Fix | Delete
'label' => esc_html__( 'Arrow Color', 'et_builder' ),
[845] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the slider arrows that are used to navigate through each slide.', 'et_builder' ),
[846] Fix | Delete
'type' => 'color-alpha',
[847] Fix | Delete
'custom_color' => true,
[848] Fix | Delete
'tab_slug' => 'advanced',
[849] Fix | Delete
'toggle_slug' => 'navigation',
[850] Fix | Delete
'mobile_options' => true,
[851] Fix | Delete
'hover' => 'tabs',
[852] Fix | Delete
),
[853] Fix | Delete
'dot_nav_custom_color' => array(
[854] Fix | Delete
'label' => esc_html__( 'Dot Navigation Color', 'et_builder' ),
[855] 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' ),
[856] Fix | Delete
'type' => 'color-alpha',
[857] Fix | Delete
'custom_color' => true,
[858] Fix | Delete
'tab_slug' => 'advanced',
[859] Fix | Delete
'toggle_slug' => 'navigation',
[860] Fix | Delete
'mobile_options' => true,
[861] Fix | Delete
'hover' => 'tabs',
[862] Fix | Delete
),
[863] Fix | Delete
'__posts' => array(
[864] Fix | Delete
'type' => 'computed',
[865] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Fullwidth_Post_Slider', 'get_blog_posts' ),
[866] Fix | Delete
'computed_depends_on' => array(
[867] Fix | Delete
'use_current_loop',
[868] Fix | Delete
'posts_number',
[869] Fix | Delete
'include_categories',
[870] Fix | Delete
'orderby',
[871] Fix | Delete
'content_source',
[872] Fix | Delete
'use_manual_excerpt',
[873] Fix | Delete
'excerpt_length',
[874] Fix | Delete
'offset_number',
[875] Fix | Delete
),
[876] Fix | Delete
),
[877] Fix | Delete
'offset_number' => array(
[878] Fix | Delete
'label' => esc_html__( 'Post Offset Number', 'et_builder' ),
[879] Fix | Delete
'description' => esc_html__( 'Choose how many posts you would like to offset by', 'et_builder' ),
[880] Fix | Delete
'type' => 'text',
[881] Fix | Delete
'option_category' => 'configuration',
[882] Fix | Delete
'toggle_slug' => 'main_content',
[883] Fix | Delete
'computed_affects' => array(
[884] Fix | Delete
'__posts',
[885] Fix | Delete
),
[886] Fix | Delete
'default' => 0,
[887] Fix | Delete
),
[888] Fix | Delete
);
[889] Fix | Delete
[890] Fix | Delete
return $fields;
[891] Fix | Delete
}
[892] Fix | Delete
[893] Fix | Delete
public function get_transition_fields_css_props() {
[894] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[895] Fix | Delete
$fields['background_layout'] = array(
[896] Fix | Delete
'background-color' => '%%order_class%% .et_pb_slide_overlay_container, %%order_class%% .et_pb_text_overlay_wrapper',
[897] Fix | Delete
'color' => self::$_->array_get( $this->advanced_fields, 'text.css.main', '%%order_class%%' ),
[898] Fix | Delete
);
[899] Fix | Delete
[900] Fix | Delete
$fields['dot_nav_custom_color'] = array( 'background-color' => et_pb_slider_options()->get_dots_selector() );
[901] Fix | Delete
$fields['arrows_custom_color'] = array( 'all' => et_pb_slider_options()->get_arrows_selector() );
[902] Fix | Delete
[903] Fix | Delete
return $fields;
[904] Fix | Delete
}
[905] Fix | Delete
[906] Fix | Delete
function render( $attrs, $content = null, $render_slug ) {
[907] Fix | Delete
global $post;
[908] Fix | Delete
[909] Fix | Delete
/**
[910] Fix | Delete
* Cached $wp_filter so it can be restored at the end of the callback.
[911] Fix | Delete
* This is needed because this callback uses the_content filter / calls a function
[912] Fix | Delete
* which uses the_content filter. WordPress doesn't support nested filter
[913] Fix | Delete
*/
[914] Fix | Delete
global $wp_filter;
[915] Fix | Delete
$wp_filter_cache = $wp_filter;
[916] Fix | Delete
$multi_view = et_pb_multi_view_options( $this );
[917] Fix | Delete
$use_current_loop = isset( $this->props['use_current_loop'] ) ? $this->props['use_current_loop'] : 'off';
[918] Fix | Delete
$show_arrows = $this->props['show_arrows'];
[919] Fix | Delete
$show_pagination = $this->props['show_pagination'];
[920] Fix | Delete
$parallax = $this->props['parallax'];
[921] Fix | Delete
$parallax_method = $this->props['parallax_method'];
[922] Fix | Delete
$auto = $this->props['auto'];
[923] Fix | Delete
$auto_speed = $this->props['auto_speed'];
[924] Fix | Delete
$auto_ignore_hover = $this->props['auto_ignore_hover'];
[925] Fix | Delete
$body_font_size = $this->props['body_font_size'];
[926] Fix | Delete
$show_content_on_mobile = $this->props['show_content_on_mobile'];
[927] Fix | Delete
$show_cta_on_mobile = $this->props['show_cta_on_mobile'];
[928] Fix | Delete
$show_image_video_mobile = $this->props['show_image_video_mobile'];
[929] Fix | Delete
$background_position = $this->props['background_position'];
[930] Fix | Delete
$background_size = $this->props['background_size'];
[931] Fix | Delete
$posts_number = $this->props['posts_number'];
[932] Fix | Delete
$include_categories = $this->props['include_categories'];
[933] Fix | Delete
$more_text = $this->props['more_text'];
[934] Fix | Delete
$background_color = $this->props['background_color'];
[935] Fix | Delete
$show_image = $this->props['show_image'];
[936] Fix | Delete
$image_placement = $this->props['image_placement'];
[937] Fix | Delete
$background_image = $this->props['background_image'];
[938] Fix | Delete
$background_repeat = $this->props['background_repeat'];
[939] Fix | Delete
$background_blend = $this->props['background_blend'];
[940] Fix | Delete
$use_bg_overlay = $this->props['use_bg_overlay'];
[941] Fix | Delete
$use_text_overlay = $this->props['use_text_overlay'];
[942] Fix | Delete
$orderby = $this->props['orderby'];
[943] Fix | Delete
$button_custom = $this->props['custom_button'];
[944] Fix | Delete
$button_rel = $this->props['button_rel'];
[945] Fix | Delete
$use_manual_excerpt = $this->props['use_manual_excerpt'];
[946] Fix | Delete
$excerpt_length = $this->props['excerpt_length'];
[947] Fix | Delete
$header_level = $this->props['header_level'];
[948] Fix | Delete
$offset_number = $this->props['offset_number'];
[949] Fix | Delete
$bg_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'bg_overlay_color' );
[950] Fix | Delete
$text_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_overlay_color' );
[951] Fix | Delete
$text_border_radius_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_border_radius' );
[952] Fix | Delete
[953] Fix | Delete
$custom_icon_values = et_pb_responsive_options()->get_property_values( $this->props, 'button_icon' );
[954] Fix | Delete
$custom_icon = isset( $custom_icon_values['desktop'] ) ? $custom_icon_values['desktop'] : '';
[955] Fix | Delete
$custom_icon_tablet = isset( $custom_icon_values['tablet'] ) ? $custom_icon_values['tablet'] : '';
[956] Fix | Delete
$custom_icon_phone = isset( $custom_icon_values['phone'] ) ? $custom_icon_values['phone'] : '';
[957] Fix | Delete
[958] Fix | Delete
$post_index = 0;
[959] Fix | Delete
[960] Fix | Delete
$hide_on_mobile_class = self::HIDE_ON_MOBILE;
[961] Fix | Delete
[962] Fix | Delete
$is_text_overlay_applied = 'on' === $use_text_overlay;
[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
[969] Fix | Delete
if ( $is_text_overlay_applied ) {
[970] Fix | Delete
// Text Overlay color.
[971] 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' );
[972] Fix | Delete
}
[973] Fix | Delete
[974] Fix | Delete
// Text Border Radius.
[975] 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 );
[976] Fix | Delete
[977] Fix | Delete
$video_background = $this->video_background();
[978] Fix | Delete
$parallax_image_background = $this->get_parallax_image_background();
[979] Fix | Delete
[980] Fix | Delete
$this->generate_responsive_hover_style( 'arrows_custom_color', et_pb_slider_options()->get_arrows_selector(), 'color' );
[981] Fix | Delete
$this->generate_responsive_hover_style( 'dot_nav_custom_color', et_pb_slider_options()->get_dots_selector(), 'background-color' );
[982] Fix | Delete
[983] Fix | Delete
$content_source_both = count( $multi_view->get_values( 'content_source', true ) ) > 1;
[984] Fix | Delete
$is_show_image = $multi_view->has_value( 'show_image', 'on' );
[985] Fix | Delete
$is_show_meta = $multi_view->has_value( 'show_meta', 'on' );
[986] Fix | Delete
[987] Fix | Delete
$multi_view_attrs_button = $multi_view->render_attrs( array(
[988] Fix | Delete
'content' => '{{more_text}}',
[989] Fix | Delete
'visibility' => array(
[990] Fix | Delete
'more_text' => '__not_empty',
[991] Fix | Delete
'show_more_button' => 'on',
[992] Fix | Delete
),
[993] Fix | Delete
) );
[994] Fix | Delete
[995] Fix | Delete
$multi_view_attrs_show_meta = $multi_view->render_attrs( array(
[996] Fix | Delete
'visibility' => array(
[997] Fix | Delete
'show_meta' => 'on',
[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