Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module
File: Blurb.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class ET_Builder_Module_Blurb extends ET_Builder_Module {
[2] Fix | Delete
function init() {
[3] Fix | Delete
$this->name = esc_html__( 'Blurb', 'et_builder' );
[4] Fix | Delete
$this->plural = esc_html__( 'Blurbs', 'et_builder' );
[5] Fix | Delete
$this->slug = 'et_pb_blurb';
[6] Fix | Delete
$this->vb_support = 'on';
[7] Fix | Delete
$this->main_css_element = '%%order_class%%.et_pb_blurb';
[8] Fix | Delete
$this->settings_modal_toggles = array(
[9] Fix | Delete
'general' => array(
[10] Fix | Delete
'toggles' => array(
[11] Fix | Delete
'main_content' => et_builder_i18n( 'Text' ),
[12] Fix | Delete
'image' => esc_html__( 'Image & Icon', 'et_builder' ),
[13] Fix | Delete
),
[14] Fix | Delete
),
[15] Fix | Delete
'advanced' => array(
[16] Fix | Delete
'toggles' => array(
[17] Fix | Delete
'icon_settings' => esc_html__( 'Image & Icon', 'et_builder' ),
[18] Fix | Delete
'text' => array(
[19] Fix | Delete
'title' => et_builder_i18n( 'Text' ),
[20] Fix | Delete
'priority' => 49,
[21] Fix | Delete
),
[22] Fix | Delete
'width' => array(
[23] Fix | Delete
'title' => et_builder_i18n( 'Sizing' ),
[24] Fix | Delete
'priority' => 65,
[25] Fix | Delete
),
[26] Fix | Delete
),
[27] Fix | Delete
),
[28] Fix | Delete
'custom_css' => array(
[29] Fix | Delete
'toggles' => array(
[30] Fix | Delete
'animation' => array(
[31] Fix | Delete
'title' => esc_html__( 'Animation', 'et_builder' ),
[32] Fix | Delete
'priority' => 90,
[33] Fix | Delete
),
[34] Fix | Delete
'attributes' => array(
[35] Fix | Delete
'title' => esc_html__( 'Attributes', 'et_builder' ),
[36] Fix | Delete
'priority' => 95,
[37] Fix | Delete
),
[38] Fix | Delete
),
[39] Fix | Delete
),
[40] Fix | Delete
);
[41] Fix | Delete
[42] Fix | Delete
$this->advanced_fields = array(
[43] Fix | Delete
'fonts' => array(
[44] Fix | Delete
'header' => array(
[45] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[46] Fix | Delete
'css' => array(
[47] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_module_header, {$this->main_css_element} .et_pb_module_header a",
[48] Fix | Delete
'hover' => "{$this->main_css_element}:hover .et_pb_module_header, {$this->main_css_element}:hover .et_pb_module_header a",
[49] Fix | Delete
),
[50] Fix | Delete
'header_level' => array(
[51] Fix | Delete
'default' => 'h4',
[52] Fix | Delete
),
[53] Fix | Delete
),
[54] Fix | Delete
'body' => array(
[55] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[56] Fix | Delete
'css' => array(
[57] Fix | Delete
'line_height' => "{$this->main_css_element} p",
[58] Fix | Delete
'text_align' => "{$this->main_css_element} .et_pb_blurb_description",
[59] Fix | Delete
'text_shadow' => "{$this->main_css_element} .et_pb_blurb_description",
[60] Fix | Delete
),
[61] Fix | Delete
'block_elements' => array(
[62] Fix | Delete
'tabbed_subtoggles' => true,
[63] Fix | Delete
'bb_icons_support' => true,
[64] Fix | Delete
'css' => array(
[65] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_blurb_description",
[66] Fix | Delete
),
[67] Fix | Delete
),
[68] Fix | Delete
),
[69] Fix | Delete
),
[70] Fix | Delete
'background' => array(
[71] Fix | Delete
'settings' => array(
[72] Fix | Delete
'color' => 'alpha',
[73] Fix | Delete
),
[74] Fix | Delete
),
[75] Fix | Delete
'borders' => array(
[76] Fix | Delete
'default' => array(),
[77] Fix | Delete
'image' => array(
[78] Fix | Delete
'css' => array(
[79] Fix | Delete
'main' => array(
[80] Fix | Delete
'border_radii' => '%%order_class%% .et_pb_main_blurb_image .et_pb_image_wrap',
[81] Fix | Delete
'border_radii_hover' => '%%order_class%%:hover .et_pb_main_blurb_image .et_pb_image_wrap',
[82] Fix | Delete
'border_styles' => '%%order_class%% .et_pb_main_blurb_image .et_pb_image_wrap',
[83] Fix | Delete
'border_styles_hover' => '%%order_class%%:hover .et_pb_main_blurb_image .et_pb_image_wrap',
[84] Fix | Delete
),
[85] Fix | Delete
),
[86] Fix | Delete
'label_prefix' => et_builder_i18n( 'Image' ),
[87] Fix | Delete
'tab_slug' => 'advanced',
[88] Fix | Delete
'toggle_slug' => 'icon_settings',
[89] Fix | Delete
'depends_on' => array( 'use_icon' ),
[90] Fix | Delete
'depends_show_if' => 'off',
[91] Fix | Delete
),
[92] Fix | Delete
),
[93] Fix | Delete
'box_shadow' => array(
[94] Fix | Delete
'default' => array(),
[95] Fix | Delete
'image' => array(
[96] Fix | Delete
'label' => esc_html__( 'Image Box Shadow', 'et_builder' ),
[97] Fix | Delete
'option_category' => 'layout',
[98] Fix | Delete
'tab_slug' => 'advanced',
[99] Fix | Delete
'toggle_slug' => 'icon_settings',
[100] Fix | Delete
'show_if' => array(
[101] Fix | Delete
'use_icon' => 'off',
[102] Fix | Delete
),
[103] Fix | Delete
'css' => array(
[104] Fix | Delete
'main' => '%%order_class%% .et_pb_main_blurb_image .et_pb_image_wrap',
[105] Fix | Delete
'hover' => '%%order_class%%:hover .et_pb_main_blurb_image .et_pb_image_wrap',
[106] Fix | Delete
'show_if_not' => array(
[107] Fix | Delete
'use_icon' => 'on',
[108] Fix | Delete
),
[109] Fix | Delete
'overlay' => 'inset',
[110] Fix | Delete
),
[111] Fix | Delete
'default_on_fronts' => array(
[112] Fix | Delete
'color' => '',
[113] Fix | Delete
'position' => '',
[114] Fix | Delete
),
[115] Fix | Delete
),
[116] Fix | Delete
),
[117] Fix | Delete
'margin_padding' => array(
[118] Fix | Delete
'css' => array(
[119] Fix | Delete
'important' => 'all',
[120] Fix | Delete
),
[121] Fix | Delete
),
[122] Fix | Delete
'max_width' => array(
[123] Fix | Delete
'css' => array(
[124] Fix | Delete
'main' => $this->main_css_element,
[125] Fix | Delete
'module_alignment' => '%%order_class%%.et_pb_blurb.et_pb_module',
[126] Fix | Delete
),
[127] Fix | Delete
),
[128] Fix | Delete
'text' => array(
[129] Fix | Delete
'use_background_layout' => true,
[130] Fix | Delete
'css' => array(
[131] Fix | Delete
'text_shadow' => "{$this->main_css_element} .et_pb_blurb_container",
[132] Fix | Delete
),
[133] Fix | Delete
'options' => array(
[134] Fix | Delete
'background_layout' => array(
[135] Fix | Delete
'default_on_front' => 'light',
[136] Fix | Delete
'hover' => 'tabs',
[137] Fix | Delete
),
[138] Fix | Delete
'text_orientation' => array(
[139] Fix | Delete
'default_on_front' => 'left',
[140] Fix | Delete
),
[141] Fix | Delete
),
[142] Fix | Delete
),
[143] Fix | Delete
'filters' => array(
[144] Fix | Delete
'child_filters_target' => array(
[145] Fix | Delete
'tab_slug' => 'advanced',
[146] Fix | Delete
'toggle_slug' => 'icon_settings',
[147] Fix | Delete
'depends_show_if' => 'off',
[148] Fix | Delete
'css' => array(
[149] Fix | Delete
'main' => '%%order_class%% .et_pb_main_blurb_image',
[150] Fix | Delete
'hover' => '%%order_class%%:hover .et_pb_main_blurb_image',
[151] Fix | Delete
),
[152] Fix | Delete
),
[153] Fix | Delete
),
[154] Fix | Delete
'icon_settings' => array(
[155] Fix | Delete
'css' => array(
[156] Fix | Delete
'main' => '%%order_class%% .et_pb_main_blurb_image',
[157] Fix | Delete
),
[158] Fix | Delete
),
[159] Fix | Delete
'button' => false,
[160] Fix | Delete
);
[161] Fix | Delete
[162] Fix | Delete
$this->custom_css_fields = array(
[163] Fix | Delete
'blurb_image' => array(
[164] Fix | Delete
'label' => esc_html__( 'Blurb Image', 'et_builder' ),
[165] Fix | Delete
'selector' => '.et_pb_main_blurb_image',
[166] Fix | Delete
),
[167] Fix | Delete
'blurb_title' => array(
[168] Fix | Delete
'label' => esc_html__( 'Blurb Title', 'et_builder' ),
[169] Fix | Delete
'selector' => '.et_pb_module_header',
[170] Fix | Delete
),
[171] Fix | Delete
'blurb_content' => array(
[172] Fix | Delete
'label' => esc_html__( 'Blurb Content', 'et_builder' ),
[173] Fix | Delete
'selector' => '.et_pb_blurb_content',
[174] Fix | Delete
),
[175] Fix | Delete
);
[176] Fix | Delete
[177] Fix | Delete
$this->help_videos = array(
[178] Fix | Delete
array(
[179] Fix | Delete
'id' => 'XW7HR86lp8U',
[180] Fix | Delete
'name' => esc_html__( 'An introduction to the Blurb module', 'et_builder' ),
[181] Fix | Delete
),
[182] Fix | Delete
);
[183] Fix | Delete
}
[184] Fix | Delete
[185] Fix | Delete
function get_fields() {
[186] Fix | Delete
$et_accent_color = et_builder_accent_color();
[187] Fix | Delete
[188] Fix | Delete
$image_icon_placement = array(
[189] Fix | Delete
'top' => et_builder_i18n( 'Top' ),
[190] Fix | Delete
);
[191] Fix | Delete
[192] Fix | Delete
if ( ! is_rtl() ) {
[193] Fix | Delete
$image_icon_placement['left'] = et_builder_i18n( 'Left' );
[194] Fix | Delete
} else {
[195] Fix | Delete
$image_icon_placement['right'] = et_builder_i18n( 'Right' );
[196] Fix | Delete
}
[197] Fix | Delete
[198] Fix | Delete
$fields = array(
[199] Fix | Delete
'title' => array(
[200] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[201] Fix | Delete
'type' => 'text',
[202] Fix | Delete
'option_category' => 'basic_option',
[203] Fix | Delete
'description' => esc_html__( 'The title of your blurb will appear in bold below your blurb image.', 'et_builder' ),
[204] Fix | Delete
'toggle_slug' => 'main_content',
[205] Fix | Delete
'dynamic_content' => 'text',
[206] Fix | Delete
'mobile_options' => true,
[207] Fix | Delete
'hover' => 'tabs',
[208] Fix | Delete
),
[209] Fix | Delete
'url' => array(
[210] Fix | Delete
'label' => esc_html__( 'Title Link URL', 'et_builder' ),
[211] Fix | Delete
'type' => 'text',
[212] Fix | Delete
'option_category' => 'basic_option',
[213] Fix | Delete
'description' => esc_html__( 'If you would like to make your blurb a link, input your destination URL here.', 'et_builder' ),
[214] Fix | Delete
'toggle_slug' => 'link_options',
[215] Fix | Delete
'dynamic_content' => 'url',
[216] Fix | Delete
),
[217] Fix | Delete
'url_new_window' => array(
[218] Fix | Delete
'label' => esc_html__( 'Title Link Target', 'et_builder' ),
[219] Fix | Delete
'type' => 'select',
[220] Fix | Delete
'option_category' => 'configuration',
[221] Fix | Delete
'options' => array(
[222] Fix | Delete
'off' => esc_html__( 'In The Same Window', 'et_builder' ),
[223] Fix | Delete
'on' => esc_html__( 'In The New Tab', 'et_builder' ),
[224] Fix | Delete
),
[225] Fix | Delete
'toggle_slug' => 'link_options',
[226] Fix | Delete
'description' => esc_html__( 'Here you can choose whether or not your link opens in a new window', 'et_builder' ),
[227] Fix | Delete
'default_on_front' => 'off',
[228] Fix | Delete
),
[229] Fix | Delete
'use_icon' => array(
[230] Fix | Delete
'label' => esc_html__( 'Use Icon', 'et_builder' ),
[231] Fix | Delete
'type' => 'yes_no_button',
[232] Fix | Delete
'option_category' => 'basic_option',
[233] Fix | Delete
'options' => array(
[234] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[235] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[236] Fix | Delete
),
[237] Fix | Delete
'toggle_slug' => 'image',
[238] Fix | Delete
'affects' => array(
[239] Fix | Delete
'border_radii_image',
[240] Fix | Delete
'border_styles_image',
[241] Fix | Delete
'font_icon',
[242] Fix | Delete
'image_max_width',
[243] Fix | Delete
'use_icon_font_size',
[244] Fix | Delete
'use_circle',
[245] Fix | Delete
'icon_color',
[246] Fix | Delete
'image',
[247] Fix | Delete
'alt',
[248] Fix | Delete
'child_filter_hue_rotate',
[249] Fix | Delete
'child_filter_saturate',
[250] Fix | Delete
'child_filter_brightness',
[251] Fix | Delete
'child_filter_contrast',
[252] Fix | Delete
'child_filter_invert',
[253] Fix | Delete
'child_filter_sepia',
[254] Fix | Delete
'child_filter_opacity',
[255] Fix | Delete
'child_filter_blur',
[256] Fix | Delete
'child_mix_blend_mode',
[257] Fix | Delete
),
[258] Fix | Delete
'description' => esc_html__( 'Here you can choose whether icon set below should be used.', 'et_builder' ),
[259] Fix | Delete
'default_on_front' => 'off',
[260] Fix | Delete
),
[261] Fix | Delete
'font_icon' => array(
[262] Fix | Delete
'label' => esc_html__( 'Icon', 'et_builder' ),
[263] Fix | Delete
'type' => 'select_icon',
[264] Fix | Delete
'option_category' => 'basic_option',
[265] Fix | Delete
'class' => array( 'et-pb-font-icon' ),
[266] Fix | Delete
'toggle_slug' => 'image',
[267] Fix | Delete
'description' => esc_html__( 'Choose an icon to display with your blurb.', 'et_builder' ),
[268] Fix | Delete
'depends_show_if' => 'on',
[269] Fix | Delete
'mobile_options' => true,
[270] Fix | Delete
'hover' => 'tabs',
[271] Fix | Delete
),
[272] Fix | Delete
'icon_color' => array(
[273] Fix | Delete
'default' => $et_accent_color,
[274] Fix | Delete
'label' => esc_html__( 'Icon Color', 'et_builder' ),
[275] Fix | Delete
'type' => 'color-alpha',
[276] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for your icon.', 'et_builder' ),
[277] Fix | Delete
'depends_show_if' => 'on',
[278] Fix | Delete
'tab_slug' => 'advanced',
[279] Fix | Delete
'toggle_slug' => 'icon_settings',
[280] Fix | Delete
'hover' => 'tabs',
[281] Fix | Delete
'mobile_options' => true,
[282] Fix | Delete
'sticky' => true,
[283] Fix | Delete
),
[284] Fix | Delete
'use_circle' => array(
[285] Fix | Delete
'label' => esc_html__( 'Circle Icon', 'et_builder' ),
[286] Fix | Delete
'type' => 'yes_no_button',
[287] Fix | Delete
'option_category' => 'configuration',
[288] Fix | Delete
'options' => array(
[289] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[290] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[291] Fix | Delete
),
[292] Fix | Delete
'affects' => array(
[293] Fix | Delete
'use_circle_border',
[294] Fix | Delete
'circle_color',
[295] Fix | Delete
),
[296] Fix | Delete
'tab_slug' => 'advanced',
[297] Fix | Delete
'toggle_slug' => 'icon_settings',
[298] Fix | Delete
'description' => esc_html__( 'Here you can choose whether icon set above should display within a circle.', 'et_builder' ),
[299] Fix | Delete
'depends_show_if' => 'on',
[300] Fix | Delete
'default_on_front' => 'off',
[301] Fix | Delete
),
[302] Fix | Delete
'circle_color' => array(
[303] Fix | Delete
'default' => $et_accent_color,
[304] Fix | Delete
'label' => esc_html__( 'Circle Color', 'et_builder' ),
[305] Fix | Delete
'type' => 'color-alpha',
[306] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the icon circle.', 'et_builder' ),
[307] Fix | Delete
'depends_show_if' => 'on',
[308] Fix | Delete
'tab_slug' => 'advanced',
[309] Fix | Delete
'toggle_slug' => 'icon_settings',
[310] Fix | Delete
'hover' => 'tabs',
[311] Fix | Delete
'mobile_options' => true,
[312] Fix | Delete
'sticky' => true,
[313] Fix | Delete
),
[314] Fix | Delete
'use_circle_border' => array(
[315] Fix | Delete
'label' => esc_html__( 'Show Circle Border', 'et_builder' ),
[316] Fix | Delete
'type' => 'yes_no_button',
[317] Fix | Delete
'option_category' => 'layout',
[318] Fix | Delete
'options' => array(
[319] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[320] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[321] Fix | Delete
),
[322] Fix | Delete
'affects' => array(
[323] Fix | Delete
'circle_border_color',
[324] Fix | Delete
),
[325] Fix | Delete
'description' => esc_html__( 'Here you can choose whether if the icon circle border should display.', 'et_builder' ),
[326] Fix | Delete
'depends_show_if' => 'on',
[327] Fix | Delete
'tab_slug' => 'advanced',
[328] Fix | Delete
'toggle_slug' => 'icon_settings',
[329] Fix | Delete
'default_on_front' => 'off',
[330] Fix | Delete
),
[331] Fix | Delete
'circle_border_color' => array(
[332] Fix | Delete
'default' => $et_accent_color,
[333] Fix | Delete
'label' => esc_html__( 'Circle Border Color', 'et_builder' ),
[334] Fix | Delete
'type' => 'color-alpha',
[335] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the icon circle border.', 'et_builder' ),
[336] Fix | Delete
'depends_show_if' => 'on',
[337] Fix | Delete
'tab_slug' => 'advanced',
[338] Fix | Delete
'toggle_slug' => 'icon_settings',
[339] Fix | Delete
'hover' => 'tabs',
[340] Fix | Delete
'mobile_options' => true,
[341] Fix | Delete
'sticky' => true,
[342] Fix | Delete
),
[343] Fix | Delete
'image' => array(
[344] Fix | Delete
'label' => et_builder_i18n( 'Image' ),
[345] Fix | Delete
'type' => 'upload',
[346] Fix | Delete
'option_category' => 'basic_option',
[347] Fix | Delete
'upload_button_text' => et_builder_i18n( 'Upload an image' ),
[348] Fix | Delete
'choose_text' => esc_attr__( 'Choose an Image', 'et_builder' ),
[349] Fix | Delete
'update_text' => esc_attr__( 'Set As Image', 'et_builder' ),
[350] Fix | Delete
'depends_show_if' => 'off',
[351] Fix | Delete
'description' => esc_html__( 'Upload an image to display at the top of your blurb.', 'et_builder' ),
[352] Fix | Delete
'toggle_slug' => 'image',
[353] Fix | Delete
'dynamic_content' => 'image',
[354] Fix | Delete
'mobile_options' => true,
[355] Fix | Delete
'hover' => 'tabs',
[356] Fix | Delete
),
[357] Fix | Delete
'alt' => array(
[358] Fix | Delete
'label' => esc_html__( 'Image Alt Text', 'et_builder' ),
[359] Fix | Delete
'type' => 'text',
[360] Fix | Delete
'option_category' => 'basic_option',
[361] Fix | Delete
'description' => esc_html__( 'Define the HTML ALT text for your image here.', 'et_builder' ),
[362] Fix | Delete
'depends_show_if' => 'off',
[363] Fix | Delete
'tab_slug' => 'custom_css',
[364] Fix | Delete
'toggle_slug' => 'attributes',
[365] Fix | Delete
'dynamic_content' => 'text',
[366] Fix | Delete
),
[367] Fix | Delete
'icon_placement' => array(
[368] Fix | Delete
'label' => esc_html__( 'Image/Icon Placement', 'et_builder' ),
[369] Fix | Delete
'type' => 'select',
[370] Fix | Delete
'option_category' => 'layout',
[371] Fix | Delete
'options' => $image_icon_placement,
[372] Fix | Delete
'tab_slug' => 'advanced',
[373] Fix | Delete
'toggle_slug' => 'icon_settings',
[374] Fix | Delete
'description' => esc_html__( 'Here you can choose where to place the icon.', 'et_builder' ),
[375] Fix | Delete
'default_on_front' => 'top',
[376] Fix | Delete
'mobile_options' => true,
[377] Fix | Delete
),
[378] Fix | Delete
'icon_alignment' => array(
[379] Fix | Delete
'label' => esc_html__( 'Image/Icon Alignment', 'et_builder' ),
[380] Fix | Delete
'description' => esc_html__( 'Align image/icon to the left, right or center.', 'et_builder' ),
[381] Fix | Delete
'type' => 'align',
[382] Fix | Delete
'option_category' => 'layout',
[383] Fix | Delete
'options' => et_builder_get_text_orientation_options( array( 'justified' ) ),
[384] Fix | Delete
'tab_slug' => 'advanced',
[385] Fix | Delete
'toggle_slug' => 'icon_settings',
[386] Fix | Delete
'default' => 'center',
[387] Fix | Delete
'mobile_options' => true,
[388] Fix | Delete
'sticky' => true,
[389] Fix | Delete
'show_if' => array(
[390] Fix | Delete
'icon_placement' => 'top',
[391] Fix | Delete
),
[392] Fix | Delete
),
[393] Fix | Delete
'content' => array(
[394] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[395] Fix | Delete
'type' => 'tiny_mce',
[396] Fix | Delete
'option_category' => 'basic_option',
[397] Fix | Delete
'description' => esc_html__( 'Input the main text content for your module here.', 'et_builder' ),
[398] Fix | Delete
'toggle_slug' => 'main_content',
[399] Fix | Delete
'dynamic_content' => 'text',
[400] Fix | Delete
'mobile_options' => true,
[401] Fix | Delete
'hover' => 'tabs',
[402] Fix | Delete
),
[403] Fix | Delete
'image_max_width' => array(
[404] Fix | Delete
'label' => esc_html__( 'Image Width', 'et_builder' ),
[405] Fix | Delete
'description' => esc_html__( 'Adjust the width of the image within the blurb.', 'et_builder' ),
[406] Fix | Delete
'type' => 'range',
[407] Fix | Delete
'option_category' => 'layout',
[408] Fix | Delete
'tab_slug' => 'advanced',
[409] Fix | Delete
'toggle_slug' => 'width',
[410] Fix | Delete
'mobile_options' => true,
[411] Fix | Delete
'validate_unit' => true,
[412] Fix | Delete
'depends_show_if' => 'off',
[413] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[414] Fix | Delete
'default' => '100%',
[415] Fix | Delete
'default_unit' => '%',
[416] Fix | Delete
'default_on_front' => '',
[417] Fix | Delete
'allow_empty' => true,
[418] Fix | Delete
'range_settings' => array(
[419] Fix | Delete
'min' => '0',
[420] Fix | Delete
'max' => '100',
[421] Fix | Delete
'step' => '1',
[422] Fix | Delete
),
[423] Fix | Delete
'responsive' => true,
[424] Fix | Delete
'sticky' => true,
[425] Fix | Delete
),
[426] Fix | Delete
'content_max_width' => array(
[427] Fix | Delete
'label' => esc_html__( 'Content Width', 'et_builder' ),
[428] Fix | Delete
'description' => esc_html__( 'Adjust the width of the content within the blurb.', 'et_builder' ),
[429] Fix | Delete
'type' => 'range',
[430] Fix | Delete
'option_category' => 'layout',
[431] Fix | Delete
'tab_slug' => 'advanced',
[432] Fix | Delete
'toggle_slug' => 'width',
[433] Fix | Delete
'mobile_options' => true,
[434] Fix | Delete
'validate_unit' => true,
[435] Fix | Delete
'default' => '550px',
[436] Fix | Delete
'default_unit' => 'px',
[437] Fix | Delete
'default_on_front' => '',
[438] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[439] Fix | Delete
'allow_empty' => true,
[440] Fix | Delete
'range_settings' => array(
[441] Fix | Delete
'min' => '0',
[442] Fix | Delete
'max' => '1100',
[443] Fix | Delete
'step' => '1',
[444] Fix | Delete
),
[445] Fix | Delete
'responsive' => true,
[446] Fix | Delete
'sticky' => true,
[447] Fix | Delete
),
[448] Fix | Delete
'use_icon_font_size' => array(
[449] Fix | Delete
'label' => esc_html__( 'Use Icon Font Size', 'et_builder' ),
[450] Fix | Delete
'description' => esc_html__( 'If you would like to control the size of the icon, you must first enable this option.', 'et_builder' ),
[451] Fix | Delete
'type' => 'yes_no_button',
[452] Fix | Delete
'option_category' => 'font_option',
[453] Fix | Delete
'options' => array(
[454] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[455] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[456] Fix | Delete
),
[457] Fix | Delete
'affects' => array(
[458] Fix | Delete
'icon_font_size',
[459] Fix | Delete
),
[460] Fix | Delete
'depends_show_if' => 'on',
[461] Fix | Delete
'tab_slug' => 'advanced',
[462] Fix | Delete
'toggle_slug' => 'icon_settings',
[463] Fix | Delete
'default_on_front' => 'off',
[464] Fix | Delete
),
[465] Fix | Delete
'icon_font_size' => array(
[466] Fix | Delete
'label' => esc_html__( 'Icon Font Size', 'et_builder' ),
[467] Fix | Delete
'description' => esc_html__( 'Control the size of the icon by increasing or decreasing the font size.', 'et_builder' ),
[468] Fix | Delete
'type' => 'range',
[469] Fix | Delete
'option_category' => 'font_option',
[470] Fix | Delete
'tab_slug' => 'advanced',
[471] Fix | Delete
'toggle_slug' => 'icon_settings',
[472] Fix | Delete
'default' => '96px',
[473] Fix | Delete
'default_unit' => 'px',
[474] Fix | Delete
'default_on_front' => '',
[475] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[476] Fix | Delete
'range_settings' => array(
[477] Fix | Delete
'min' => '1',
[478] Fix | Delete
'max' => '120',
[479] Fix | Delete
'step' => '1',
[480] Fix | Delete
),
[481] Fix | Delete
'mobile_options' => true,
[482] Fix | Delete
'sticky' => true,
[483] Fix | Delete
'depends_show_if' => 'on',
[484] Fix | Delete
'responsive' => true,
[485] Fix | Delete
'hover' => 'tabs',
[486] Fix | Delete
),
[487] Fix | Delete
);
[488] Fix | Delete
[489] Fix | Delete
return $fields;
[490] Fix | Delete
}
[491] Fix | Delete
[492] Fix | Delete
public function get_transition_fields_css_props() {
[493] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[494] Fix | Delete
$fields['icon_color'] = array(
[495] Fix | Delete
'color' => '%%order_class%% .et-pb-icon',
[496] Fix | Delete
);
[497] Fix | Delete
[498] Fix | Delete
$fields['circle_color'] = array(
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function