Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module
File: Blog.php
<?php
[0] Fix | Delete
[1] Fix | Delete
require_once 'helpers/Overlay.php';
[2] Fix | Delete
[3] Fix | Delete
class ET_Builder_Module_Blog extends ET_Builder_Module_Type_PostBased {
[4] Fix | Delete
/**
[5] Fix | Delete
* Track if the module is currently rendering to prevent unnecessary rendering and recursion.
[6] Fix | Delete
*
[7] Fix | Delete
* @var bool
[8] Fix | Delete
*/
[9] Fix | Delete
protected static $rendering = false;
[10] Fix | Delete
[11] Fix | Delete
function init() {
[12] Fix | Delete
$this->name = esc_html__( 'Blog', 'et_builder' );
[13] Fix | Delete
$this->plural = esc_html__( 'Blogs', 'et_builder' );
[14] Fix | Delete
$this->slug = 'et_pb_blog';
[15] Fix | Delete
$this->vb_support = 'on';
[16] Fix | Delete
$this->main_css_element = '%%order_class%% .et_pb_post';
[17] Fix | Delete
[18] Fix | Delete
$this->settings_modal_toggles = array(
[19] Fix | Delete
'general' => array(
[20] Fix | Delete
'toggles' => array(
[21] Fix | Delete
'main_content' => et_builder_i18n( 'Content' ),
[22] Fix | Delete
'elements' => et_builder_i18n( 'Elements' ),
[23] Fix | Delete
),
[24] Fix | Delete
),
[25] Fix | Delete
'advanced' => array(
[26] Fix | Delete
'toggles' => array(
[27] Fix | Delete
'layout' => et_builder_i18n( 'Layout' ),
[28] Fix | Delete
'overlay' => et_builder_i18n( 'Overlay' ),
[29] Fix | Delete
'image' => array(
[30] Fix | Delete
'title' => et_builder_i18n( 'Image' ),
[31] Fix | Delete
'priority' => 49,
[32] Fix | Delete
),
[33] Fix | Delete
'text' => array(
[34] Fix | Delete
'title' => et_builder_i18n( 'Text' ),
[35] Fix | Delete
'priority' => 51,
[36] Fix | Delete
),
[37] Fix | Delete
),
[38] Fix | Delete
),
[39] Fix | Delete
);
[40] Fix | Delete
[41] Fix | Delete
$this->advanced_fields = array(
[42] Fix | Delete
'fonts' => array(
[43] Fix | Delete
'header' => array(
[44] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[45] Fix | Delete
'css' => array(
[46] Fix | Delete
'main' => "{$this->main_css_element} .entry-title, %%order_class%% .not-found-title",
[47] Fix | Delete
'font' => "{$this->main_css_element} .entry-title a, %%order_class%% .not-found-title",
[48] Fix | Delete
'color' => "{$this->main_css_element} .entry-title a, %%order_class%% .not-found-title",
[49] Fix | Delete
'limited_main' => "{$this->main_css_element} .entry-title, {$this->main_css_element} .entry-title a, %%order_class%% .not-found-title",
[50] Fix | Delete
'hover' => "{$this->main_css_element}:hover .entry-title, {$this->main_css_element}:hover .entry-title:hover a, %%order_class%% .not-found-title",
[51] Fix | Delete
'color_hover' => "{$this->main_css_element}:hover .entry-title a, %%order_class%%:hover .not-found-title",
[52] Fix | Delete
'important' => 'all',
[53] Fix | Delete
),
[54] Fix | Delete
'header_level' => array(
[55] Fix | Delete
'default' => 'h2',
[56] Fix | Delete
'computed_affects' => array(
[57] Fix | Delete
'__posts',
[58] Fix | Delete
),
[59] Fix | Delete
),
[60] Fix | Delete
),
[61] Fix | Delete
'body' => array(
[62] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[63] Fix | Delete
'css' => array(
[64] Fix | Delete
'main' => "{$this->main_css_element} .post-content, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content p, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content p",
[65] Fix | Delete
'color' => "{$this->main_css_element}, {$this->main_css_element} .post-content *",
[66] Fix | Delete
'line_height' => "{$this->main_css_element} p",
[67] Fix | Delete
'limited_main' => "{$this->main_css_element}, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content p, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content p, %%order_class%%.et_pb_bg_layout_light .et_pb_post a.more-link, %%order_class%%.et_pb_bg_layout_dark .et_pb_post a.more-link",
[68] Fix | Delete
'hover' => "{$this->main_css_element}:hover .post-content, %%order_class%%.et_pb_bg_layout_light:hover .et_pb_post .post-content p, %%order_class%%.et_pb_bg_layout_dark:hover .et_pb_post .post-content p",
[69] Fix | Delete
'color_hover' => "{$this->main_css_element}:hover, {$this->main_css_element}:hover .post-content *",
[70] Fix | Delete
),
[71] Fix | Delete
'block_elements' => array(
[72] Fix | Delete
'tabbed_subtoggles' => true,
[73] Fix | Delete
'bb_icons_support' => true,
[74] Fix | Delete
'css' => array(
[75] Fix | Delete
'link' => "{$this->main_css_element} .post-content a, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content a, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content a",
[76] Fix | Delete
'ul' => "{$this->main_css_element} .post-content ul li, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content ul li, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content ul li",
[77] Fix | Delete
'ul_item_indent' => "{$this->main_css_element} .post-content ul, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content ul, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content ul",
[78] Fix | Delete
'ol' => "{$this->main_css_element} .post-content ol li, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content ol li, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content ol li",
[79] Fix | Delete
'ol_item_indent' => "{$this->main_css_element} .post-content ol, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content ol, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content ol",
[80] Fix | Delete
'quote' => "{$this->main_css_element} .post-content blockquote, %%order_class%%.et_pb_bg_layout_light .et_pb_post .post-content blockquote, %%order_class%%.et_pb_bg_layout_dark .et_pb_post .post-content blockquote",
[81] Fix | Delete
),
[82] Fix | Delete
),
[83] Fix | Delete
),
[84] Fix | Delete
'meta' => array(
[85] Fix | Delete
'label' => esc_html__( 'Meta', 'et_builder' ),
[86] Fix | Delete
'css' => array(
[87] Fix | Delete
'main' => "{$this->main_css_element} .post-meta, {$this->main_css_element} .post-meta a",
[88] Fix | Delete
'limited_main' => "{$this->main_css_element} .post-meta, {$this->main_css_element} .post-meta a, {$this->main_css_element} .post-meta span",
[89] Fix | Delete
'hover' => "{$this->main_css_element}:hover .post-meta, {$this->main_css_element}:hover .post-meta a, {$this->main_css_element}:hover .post-meta span",
[90] Fix | Delete
),
[91] Fix | Delete
),
[92] Fix | Delete
'read_more' => array(
[93] Fix | Delete
'label' => esc_html__( 'Read More', 'et_builder' ),
[94] Fix | Delete
'css' => array(
[95] Fix | Delete
'main' => "{$this->main_css_element} div.post-content a.more-link",
[96] Fix | Delete
'hover' => "{$this->main_css_element} div.post-content a.more-link:hover",
[97] Fix | Delete
),
[98] Fix | Delete
'hide_text_align' => true,
[99] Fix | Delete
),
[100] Fix | Delete
'pagination' => array(
[101] Fix | Delete
'label' => esc_html__( 'Pagination', 'et_builder' ),
[102] Fix | Delete
'css' => array(
[103] Fix | Delete
'main' => function_exists( 'wp_pagenavi' ) ? '%%order_class%% .wp-pagenavi a, %%order_class%% .wp-pagenavi span' : '%%order_class%% .pagination a',
[104] Fix | Delete
'important' => function_exists( 'wp_pagenavi' ) ? 'all' : array(),
[105] Fix | Delete
'text_align' => '%%order_class%% .wp-pagenavi',
[106] Fix | Delete
'hover' => function_exists( 'wp_pagenavi' ) ? '%%order_class%% .wp-pagenavi a:hover, %%order_class%% .wp-pagenavi span:hover' : '%%order_class%% .pagination a:hover',
[107] Fix | Delete
),
[108] Fix | Delete
'hide_text_align' => ! function_exists( 'wp_pagenavi' ),
[109] Fix | Delete
'text_align' => array(
[110] Fix | Delete
'options' => et_builder_get_text_orientation_options( array( 'justified' ), array() ),
[111] Fix | Delete
),
[112] Fix | Delete
),
[113] Fix | Delete
),
[114] Fix | Delete
'background' => array(
[115] Fix | Delete
'css' => array(
[116] Fix | Delete
'main' => '%%order_class%%',
[117] Fix | Delete
),
[118] Fix | Delete
),
[119] Fix | Delete
'borders' => array(
[120] Fix | Delete
'default' => array(
[121] Fix | Delete
'css' => array(
[122] Fix | Delete
'main' => array(
[123] Fix | Delete
'border_radii' => '%%order_class%% .et_pb_blog_grid .et_pb_post',
[124] Fix | Delete
'border_styles' => '%%order_class%% .et_pb_blog_grid .et_pb_post',
[125] Fix | Delete
'border_styles_hover' => '%%order_class%% .et_pb_blog_grid .et_pb_post:hover',
[126] Fix | Delete
),
[127] Fix | Delete
),
[128] Fix | Delete
'depends_on' => array( 'fullwidth' ),
[129] Fix | Delete
'depends_show_if' => 'off',
[130] Fix | Delete
'defaults' => array(
[131] Fix | Delete
'border_radii' => 'on||||',
[132] Fix | Delete
'border_styles' => array(
[133] Fix | Delete
'width' => '1px',
[134] Fix | Delete
'color' => '#d8d8d8',
[135] Fix | Delete
'style' => 'solid',
[136] Fix | Delete
),
[137] Fix | Delete
),
[138] Fix | Delete
'label_prefix' => esc_html__( 'Grid Layout', 'et_builder' ),
[139] Fix | Delete
),
[140] Fix | Delete
'fullwidth' => array(
[141] Fix | Delete
'css' => array(
[142] Fix | Delete
'main' => array(
[143] Fix | Delete
'border_radii' => '%%order_class%%:not(.et_pb_blog_grid_wrapper) .et_pb_post',
[144] Fix | Delete
'border_styles' => '%%order_class%%:not(.et_pb_blog_grid_wrapper) .et_pb_post',
[145] Fix | Delete
),
[146] Fix | Delete
),
[147] Fix | Delete
'depends_on' => array( 'fullwidth' ),
[148] Fix | Delete
'depends_show_if' => 'on',
[149] Fix | Delete
'defaults' => array(
[150] Fix | Delete
'border_radii' => 'on||||',
[151] Fix | Delete
'border_styles' => array(
[152] Fix | Delete
'width' => '0px',
[153] Fix | Delete
'color' => '#333333',
[154] Fix | Delete
'style' => 'solid',
[155] Fix | Delete
),
[156] Fix | Delete
),
[157] Fix | Delete
),
[158] Fix | Delete
'image' => array(
[159] Fix | Delete
'css' => array(
[160] Fix | Delete
'main' => array(
[161] Fix | Delete
'border_radii' => '%%order_class%% .et_pb_post .entry-featured-image-url img, %%order_class%% .et_pb_post .et_pb_slides, %%order_class%% .et_pb_post .et_pb_video_overlay',
[162] Fix | Delete
'border_styles' => '%%order_class%% .et_pb_post .entry-featured-image-url img, %%order_class%% .et_pb_post .et_pb_slides, %%order_class%% .et_pb_post .et_pb_video_overlay',
[163] Fix | Delete
),
[164] Fix | Delete
),
[165] Fix | Delete
'label_prefix' => et_builder_i18n( 'Image' ),
[166] Fix | Delete
'tab_slug' => 'advanced',
[167] Fix | Delete
'toggle_slug' => 'image',
[168] Fix | Delete
),
[169] Fix | Delete
),
[170] Fix | Delete
'box_shadow' => array(
[171] Fix | Delete
'default' => array(),
[172] Fix | Delete
'image' => array(
[173] Fix | Delete
'label' => esc_html__( 'Image Box Shadow', 'et_builder' ),
[174] Fix | Delete
'option_category' => 'layout',
[175] Fix | Delete
'tab_slug' => 'advanced',
[176] Fix | Delete
'toggle_slug' => 'image',
[177] Fix | Delete
'css' => array(
[178] Fix | Delete
'main' => '%%order_class%% .entry-featured-image-url, %%order_class%% img, %%order_class%% .et_pb_slides, %%order_class%% .et_pb_video_overlay',
[179] Fix | Delete
'overlay' => 'inset',
[180] Fix | Delete
),
[181] Fix | Delete
'default_on_fronts' => array(
[182] Fix | Delete
'color' => '',
[183] Fix | Delete
'position' => '',
[184] Fix | Delete
),
[185] Fix | Delete
),
[186] Fix | Delete
),
[187] Fix | Delete
'height' => array(
[188] Fix | Delete
'css' => array(
[189] Fix | Delete
'main' => '%%order_class%%',
[190] Fix | Delete
),
[191] Fix | Delete
),
[192] Fix | Delete
'margin_padding' => array(
[193] Fix | Delete
'css' => array(
[194] Fix | Delete
'main' => '%%order_class%%',
[195] Fix | Delete
'important' => array( 'custom_margin' ),
[196] Fix | Delete
),
[197] Fix | Delete
),
[198] Fix | Delete
'text' => array(
[199] Fix | Delete
'use_background_layout' => true,
[200] Fix | Delete
'css' => array(
[201] Fix | Delete
'text_shadow' => '%%order_class%%',
[202] Fix | Delete
),
[203] Fix | Delete
'options' => array(
[204] Fix | Delete
'background_layout' => array(
[205] Fix | Delete
'depends_show_if' => 'on',
[206] Fix | Delete
'default_on_front' => 'light',
[207] Fix | Delete
'hover' => 'tabs',
[208] Fix | Delete
),
[209] Fix | Delete
),
[210] Fix | Delete
),
[211] Fix | Delete
'filters' => array(
[212] Fix | Delete
'css' => array(
[213] Fix | Delete
'main' => '%%order_class%%',
[214] Fix | Delete
),
[215] Fix | Delete
'child_filters_target' => array(
[216] Fix | Delete
'tab_slug' => 'advanced',
[217] Fix | Delete
'toggle_slug' => 'image',
[218] Fix | Delete
),
[219] Fix | Delete
),
[220] Fix | Delete
'image' => array(
[221] Fix | Delete
'css' => array(
[222] Fix | Delete
'main' => implode(
[223] Fix | Delete
', ',
[224] Fix | Delete
array(
[225] Fix | Delete
'%%order_class%% img',
[226] Fix | Delete
'%%order_class%% .et_pb_slides',
[227] Fix | Delete
'%%order_class%% .et_pb_video_overlay',
[228] Fix | Delete
)
[229] Fix | Delete
),
[230] Fix | Delete
),
[231] Fix | Delete
),
[232] Fix | Delete
'scroll_effects' => array(
[233] Fix | Delete
'grid_support' => 'yes',
[234] Fix | Delete
),
[235] Fix | Delete
'button' => false,
[236] Fix | Delete
);
[237] Fix | Delete
[238] Fix | Delete
$this->custom_css_fields = array(
[239] Fix | Delete
'title' => array(
[240] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[241] Fix | Delete
'selector' => '.entry-title',
[242] Fix | Delete
),
[243] Fix | Delete
'content' => array(
[244] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[245] Fix | Delete
'selector' => '.post-content',
[246] Fix | Delete
),
[247] Fix | Delete
'post_meta' => array(
[248] Fix | Delete
'label' => esc_html__( 'Post Meta', 'et_builder' ),
[249] Fix | Delete
'selector' => '.post-meta',
[250] Fix | Delete
),
[251] Fix | Delete
'pagenavi' => array(
[252] Fix | Delete
'label' => esc_html__( 'Pagenavi', 'et_builder' ),
[253] Fix | Delete
'selector' => '.wp_pagenavi',
[254] Fix | Delete
),
[255] Fix | Delete
'featured_image' => array(
[256] Fix | Delete
'label' => esc_html__( 'Featured Image', 'et_builder' ),
[257] Fix | Delete
'selector' => '.entry-featured-image-url img',
[258] Fix | Delete
),
[259] Fix | Delete
'read_more' => array(
[260] Fix | Delete
'label' => esc_html__( 'Read More Button', 'et_builder' ),
[261] Fix | Delete
'selector' => 'a.more-link',
[262] Fix | Delete
),
[263] Fix | Delete
);
[264] Fix | Delete
[265] Fix | Delete
$this->help_videos = array(
[266] Fix | Delete
array(
[267] Fix | Delete
'id' => 'PRaWaGI75wc',
[268] Fix | Delete
'name' => esc_html__( 'An introduction to the Blog module', 'et_builder' ),
[269] Fix | Delete
),
[270] Fix | Delete
array(
[271] Fix | Delete
'id' => 'jETCzKVv6P0',
[272] Fix | Delete
'name' => esc_html__( 'How To Use Divi Blog Post Formats', 'et_builder' ),
[273] Fix | Delete
),
[274] Fix | Delete
);
[275] Fix | Delete
}
[276] Fix | Delete
[277] Fix | Delete
function get_fields() {
[278] Fix | Delete
$fields = array(
[279] Fix | Delete
'fullwidth' => array(
[280] Fix | Delete
'label' => et_builder_i18n( 'Layout' ),
[281] Fix | Delete
'type' => 'select',
[282] Fix | Delete
'option_category' => 'layout',
[283] Fix | Delete
'options' => array(
[284] Fix | Delete
'on' => esc_html__( 'Fullwidth', 'et_builder' ),
[285] Fix | Delete
'off' => esc_html__( 'Grid', 'et_builder' ),
[286] Fix | Delete
),
[287] Fix | Delete
'affects' => array(
[288] Fix | Delete
'background_layout',
[289] Fix | Delete
'masonry_tile_background_color',
[290] Fix | Delete
'border_radii_fullwidth',
[291] Fix | Delete
'border_styles_fullwidth',
[292] Fix | Delete
'border_radii',
[293] Fix | Delete
'border_styles',
[294] Fix | Delete
),
[295] Fix | Delete
'description' => esc_html__( 'Toggle between the various blog layout types.', 'et_builder' ),
[296] Fix | Delete
'computed_affects' => array(
[297] Fix | Delete
'__posts',
[298] Fix | Delete
),
[299] Fix | Delete
'tab_slug' => 'advanced',
[300] Fix | Delete
'toggle_slug' => 'layout',
[301] Fix | Delete
'default_on_front' => 'on',
[302] Fix | Delete
),
[303] Fix | Delete
'use_current_loop' => array(
[304] Fix | Delete
'label' => esc_html__( 'Posts For Current Page', 'et_builder' ),
[305] Fix | Delete
'type' => 'yes_no_button',
[306] Fix | Delete
'option_category' => 'configuration',
[307] Fix | Delete
'options' => array(
[308] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[309] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[310] Fix | Delete
),
[311] Fix | Delete
'description' => esc_html__( 'Display posts for the current page. Useful on archive and index pages.', 'et_builder' ),
[312] Fix | Delete
'computed_affects' => array(
[313] Fix | Delete
'__posts',
[314] Fix | Delete
),
[315] Fix | Delete
'toggle_slug' => 'main_content',
[316] Fix | Delete
'default' => 'off',
[317] Fix | Delete
'show_if' => array(
[318] Fix | Delete
'function.isTBLayout' => 'on',
[319] Fix | Delete
),
[320] Fix | Delete
),
[321] Fix | Delete
'post_type' => array(
[322] Fix | Delete
'label' => esc_html__( 'Post Type', 'et_builder' ),
[323] Fix | Delete
'type' => 'select',
[324] Fix | Delete
'option_category' => 'configuration',
[325] Fix | Delete
'options' => et_get_registered_post_type_options( false, false ),
[326] Fix | Delete
'description' => esc_html__( 'Choose posts of which post type you would like to display.', 'et_builder' ),
[327] Fix | Delete
'computed_affects' => array(
[328] Fix | Delete
'__posts',
[329] Fix | Delete
),
[330] Fix | Delete
'toggle_slug' => 'main_content',
[331] Fix | Delete
'default' => 'post',
[332] Fix | Delete
'show_if' => array(
[333] Fix | Delete
'use_current_loop' => 'off',
[334] Fix | Delete
),
[335] Fix | Delete
),
[336] Fix | Delete
'posts_number' => array(
[337] Fix | Delete
'label' => esc_html__( 'Post Count', 'et_builder' ),
[338] Fix | Delete
'type' => 'text',
[339] Fix | Delete
'option_category' => 'configuration',
[340] Fix | Delete
'description' => esc_html__( 'Choose how much posts you would like to display per page.', 'et_builder' ),
[341] Fix | Delete
'computed_affects' => array(
[342] Fix | Delete
'__posts',
[343] Fix | Delete
),
[344] Fix | Delete
'toggle_slug' => 'main_content',
[345] Fix | Delete
'default' => 10,
[346] Fix | Delete
),
[347] Fix | Delete
'include_categories' => array(
[348] Fix | Delete
'label' => esc_html__( 'Included Categories', 'et_builder' ),
[349] Fix | Delete
'type' => 'categories',
[350] Fix | Delete
'meta_categories' => array(
[351] Fix | Delete
'all' => esc_html__( 'All Categories', 'et_builder' ),
[352] Fix | Delete
'current' => esc_html__( 'Current Category', 'et_builder' ),
[353] Fix | Delete
),
[354] Fix | Delete
'option_category' => 'basic_option',
[355] Fix | Delete
'renderer_options' => array(
[356] Fix | Delete
'use_terms' => false,
[357] Fix | Delete
),
[358] Fix | Delete
'description' => esc_html__( 'Choose which categories you would like to include in the feed.', 'et_builder' ),
[359] Fix | Delete
'toggle_slug' => 'main_content',
[360] Fix | Delete
'computed_affects' => array(
[361] Fix | Delete
'__posts',
[362] Fix | Delete
),
[363] Fix | Delete
'show_if' => array(
[364] Fix | Delete
'use_current_loop' => 'off',
[365] Fix | Delete
'post_type' => 'post',
[366] Fix | Delete
),
[367] Fix | Delete
),
[368] Fix | Delete
'meta_date' => array(
[369] Fix | Delete
'label' => esc_html__( 'Date Format', 'et_builder' ),
[370] Fix | Delete
'type' => 'text',
[371] Fix | Delete
'option_category' => 'configuration',
[372] Fix | Delete
'description' => esc_html__( 'If you would like to adjust the date format, input the appropriate PHP date format here.', 'et_builder' ),
[373] Fix | Delete
'toggle_slug' => 'main_content',
[374] Fix | Delete
'computed_affects' => array(
[375] Fix | Delete
'__posts',
[376] Fix | Delete
),
[377] Fix | Delete
'default' => 'M j, Y',
[378] Fix | Delete
),
[379] Fix | Delete
'show_thumbnail' => array(
[380] Fix | Delete
'label' => esc_html__( 'Show Featured Image', 'et_builder' ),
[381] Fix | Delete
'type' => 'yes_no_button',
[382] Fix | Delete
'option_category' => 'configuration',
[383] Fix | Delete
'options' => array(
[384] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[385] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[386] Fix | Delete
),
[387] Fix | Delete
'description' => esc_html__( 'This will turn thumbnails on and off.', 'et_builder' ),
[388] Fix | Delete
'computed_affects' => array(
[389] Fix | Delete
'__posts',
[390] Fix | Delete
),
[391] Fix | Delete
'toggle_slug' => 'elements',
[392] Fix | Delete
'default_on_front' => 'on',
[393] Fix | Delete
'mobile_options' => true,
[394] Fix | Delete
'hover' => 'tabs',
[395] Fix | Delete
),
[396] Fix | Delete
'show_content' => array(
[397] Fix | Delete
'label' => esc_html__( 'Content Length', 'et_builder' ),
[398] Fix | Delete
'type' => 'select',
[399] Fix | Delete
'option_category' => 'configuration',
[400] Fix | Delete
'options' => array(
[401] Fix | Delete
'off' => esc_html__( 'Show Excerpt', 'et_builder' ),
[402] Fix | Delete
'on' => esc_html__( 'Show Content', 'et_builder' ),
[403] Fix | Delete
),
[404] Fix | Delete
'affects' => array(
[405] Fix | Delete
'show_more',
[406] Fix | Delete
'show_excerpt',
[407] Fix | Delete
'use_manual_excerpt',
[408] Fix | Delete
'excerpt_length',
[409] Fix | Delete
),
[410] Fix | Delete
'description' => esc_html__( 'Showing the full content will not truncate your posts on the index page. Showing the excerpt will only display your excerpt text.', 'et_builder' ),
[411] Fix | Delete
'toggle_slug' => 'main_content',
[412] Fix | Delete
'computed_affects' => array(
[413] Fix | Delete
'__posts',
[414] Fix | Delete
),
[415] Fix | Delete
'default_on_front' => 'off',
[416] Fix | Delete
'mobile_options' => true,
[417] Fix | Delete
'hover' => 'tabs',
[418] Fix | Delete
),
[419] Fix | Delete
'use_manual_excerpt' => array(
[420] Fix | Delete
'label' => esc_html__( 'Use Post Excerpts', 'et_builder' ),
[421] Fix | Delete
'description' => esc_html__( 'Disable this option if you want to ignore manually defined excerpts and always generate it automatically.', 'et_builder' ),
[422] Fix | Delete
'type' => 'yes_no_button',
[423] Fix | Delete
'options' => array(
[424] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[425] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[426] Fix | Delete
),
[427] Fix | Delete
'default' => 'on',
[428] Fix | Delete
'computed_affects' => array(
[429] Fix | Delete
'__posts',
[430] Fix | Delete
),
[431] Fix | Delete
'depends_show_if' => 'off',
[432] Fix | Delete
'toggle_slug' => 'main_content',
[433] Fix | Delete
'option_category' => 'configuration',
[434] Fix | Delete
),
[435] Fix | Delete
'excerpt_length' => array(
[436] Fix | Delete
'label' => esc_html__( 'Excerpt Length', 'et_builder' ),
[437] Fix | Delete
'description' => esc_html__( 'Define the length of automatically generated excerpts. Leave blank for default ( 270 ) ', 'et_builder' ),
[438] Fix | Delete
'type' => 'text',
[439] Fix | Delete
'default' => '270',
[440] Fix | Delete
'computed_affects' => array(
[441] Fix | Delete
'__posts',
[442] Fix | Delete
),
[443] Fix | Delete
'depends_show_if' => 'off',
[444] Fix | Delete
'toggle_slug' => 'main_content',
[445] Fix | Delete
'option_category' => 'configuration',
[446] Fix | Delete
),
[447] Fix | Delete
'show_more' => array(
[448] Fix | Delete
'label' => esc_html__( 'Show Read More Button', 'et_builder' ),
[449] Fix | Delete
'type' => 'yes_no_button',
[450] Fix | Delete
'option_category' => 'configuration',
[451] Fix | Delete
'options' => array(
[452] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[453] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[454] Fix | Delete
),
[455] Fix | Delete
'depends_show_if' => 'off',
[456] Fix | Delete
'description' => esc_html__( 'Here you can define whether to show "read more" link after the excerpts or not.', 'et_builder' ),
[457] Fix | Delete
'computed_affects' => array(
[458] Fix | Delete
'__posts',
[459] Fix | Delete
),
[460] Fix | Delete
'toggle_slug' => 'elements',
[461] Fix | Delete
'default_on_front' => 'off',
[462] Fix | Delete
'mobile_options' => true,
[463] Fix | Delete
'hover' => 'tabs',
[464] Fix | Delete
),
[465] Fix | Delete
'show_author' => array(
[466] Fix | Delete
'label' => esc_html__( 'Show Author', 'et_builder' ),
[467] Fix | Delete
'type' => 'yes_no_button',
[468] Fix | Delete
'option_category' => 'configuration',
[469] Fix | Delete
'options' => array(
[470] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[471] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[472] Fix | Delete
),
[473] Fix | Delete
'description' => esc_html__( 'Turn on or off the author link.', 'et_builder' ),
[474] Fix | Delete
'computed_affects' => array(
[475] Fix | Delete
'__posts',
[476] Fix | Delete
),
[477] Fix | Delete
'toggle_slug' => 'elements',
[478] Fix | Delete
'default_on_front' => 'on',
[479] Fix | Delete
'mobile_options' => true,
[480] Fix | Delete
'hover' => 'tabs',
[481] Fix | Delete
),
[482] Fix | Delete
'show_date' => array(
[483] Fix | Delete
'label' => esc_html__( 'Show Date', 'et_builder' ),
[484] Fix | Delete
'type' => 'yes_no_button',
[485] Fix | Delete
'option_category' => 'configuration',
[486] Fix | Delete
'options' => array(
[487] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[488] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[489] Fix | Delete
),
[490] Fix | Delete
'description' => esc_html__( 'Turn the date on or off.', 'et_builder' ),
[491] Fix | Delete
'computed_affects' => array(
[492] Fix | Delete
'__posts',
[493] Fix | Delete
),
[494] Fix | Delete
'toggle_slug' => 'elements',
[495] Fix | Delete
'default_on_front' => 'on',
[496] Fix | Delete
'mobile_options' => true,
[497] Fix | Delete
'hover' => 'tabs',
[498] Fix | Delete
),
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function