Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/function...
File: choices.php
<?php
[0] Fix | Delete
if ( ! function_exists( 'et_divi_font_style_choices' ) ) :
[1] Fix | Delete
/**
[2] Fix | Delete
* Returns font style options
[3] Fix | Delete
* @return array
[4] Fix | Delete
*/
[5] Fix | Delete
function et_divi_font_style_choices() {
[6] Fix | Delete
return apply_filters( 'et_divi_font_style_choices', array(
[7] Fix | Delete
'bold' => esc_html__( 'Bold', 'Divi' ),
[8] Fix | Delete
'italic' => esc_html__( 'Italic', 'Divi' ),
[9] Fix | Delete
'uppercase' => esc_html__( 'Uppercase', 'Divi' ),
[10] Fix | Delete
'underline' => esc_html__( 'Underline', 'Divi' ),
[11] Fix | Delete
) );
[12] Fix | Delete
}
[13] Fix | Delete
endif;
[14] Fix | Delete
[15] Fix | Delete
if ( ! function_exists( 'et_divi_color_scheme_choices' ) ) :
[16] Fix | Delete
/**
[17] Fix | Delete
* Returns list of color scheme used by Divi
[18] Fix | Delete
* @return array
[19] Fix | Delete
*/
[20] Fix | Delete
function et_divi_color_scheme_choices() {
[21] Fix | Delete
return apply_filters( 'et_divi_color_scheme_choices', array(
[22] Fix | Delete
'none' => esc_html__( 'Default', 'Divi' ),
[23] Fix | Delete
'green' => esc_html__( 'Green', 'Divi' ),
[24] Fix | Delete
'orange' => esc_html__( 'Orange', 'Divi' ),
[25] Fix | Delete
'pink' => esc_html__( 'Pink', 'Divi' ),
[26] Fix | Delete
'red' => esc_html__( 'Red', 'Divi' ),
[27] Fix | Delete
) );
[28] Fix | Delete
}
[29] Fix | Delete
endif;
[30] Fix | Delete
[31] Fix | Delete
if ( ! function_exists( 'et_divi_header_style_choices' ) ) :
[32] Fix | Delete
/**
[33] Fix | Delete
* Returns list of header styles used by Divi
[34] Fix | Delete
* @return array
[35] Fix | Delete
*/
[36] Fix | Delete
function et_divi_header_style_choices() {
[37] Fix | Delete
return apply_filters( 'et_divi_header_style_choices', array(
[38] Fix | Delete
'left' => esc_html__( 'Default', 'Divi' ),
[39] Fix | Delete
'centered' => esc_html__( 'Centered', 'Divi' ),
[40] Fix | Delete
'split' => esc_html__( 'Centered Inline Logo', 'Divi' ),
[41] Fix | Delete
'slide' => esc_html__( 'Slide In', 'Divi' ),
[42] Fix | Delete
'fullscreen' => esc_html__( 'Fullscreen', 'Divi' ),
[43] Fix | Delete
) );
[44] Fix | Delete
}
[45] Fix | Delete
endif;
[46] Fix | Delete
[47] Fix | Delete
if ( ! function_exists( 'et_divi_dropdown_animation_choices' ) ) :
[48] Fix | Delete
/**
[49] Fix | Delete
* Returns list of dropdown animation
[50] Fix | Delete
* @return array
[51] Fix | Delete
*/
[52] Fix | Delete
function et_divi_dropdown_animation_choices() {
[53] Fix | Delete
return apply_filters( 'et_divi_dropdown_animation_choices', array(
[54] Fix | Delete
'fade' => esc_html__( 'Fade', 'Divi' ),
[55] Fix | Delete
'expand' => esc_html__( 'Expand', 'Divi' ),
[56] Fix | Delete
'slide' => esc_html__( 'Slide', 'Divi' ),
[57] Fix | Delete
'flip' => esc_html__( 'Flip', 'Divi' )
[58] Fix | Delete
) );
[59] Fix | Delete
}
[60] Fix | Delete
endif;
[61] Fix | Delete
[62] Fix | Delete
if ( ! function_exists( 'et_divi_footer_column_choices' ) ) :
[63] Fix | Delete
/**
[64] Fix | Delete
* Returns list of footer column choices
[65] Fix | Delete
* @return array
[66] Fix | Delete
*/
[67] Fix | Delete
function et_divi_footer_column_choices() {
[68] Fix | Delete
return apply_filters( 'et_divi_footer_column_choices', array(
[69] Fix | Delete
'4' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '4' ),
[70] Fix | Delete
'3' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '3' ),
[71] Fix | Delete
'2' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '2' ),
[72] Fix | Delete
'1' => esc_html__( '1 Column', 'Divi' ),
[73] Fix | Delete
'_1_4__3_4' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/4 + 3/4' ),
[74] Fix | Delete
'_3_4__1_4' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '3/4 + 1/4' ),
[75] Fix | Delete
'_1_3__2_3' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/3 + 2/3' ),
[76] Fix | Delete
'_2_3__1_3' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '2/3 + 1/3' ),
[77] Fix | Delete
'_1_4__1_2' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/4 + 1/4 + 1/2' ),
[78] Fix | Delete
'_1_2__1_4' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/2 + 1/4 + 1/4' ),
[79] Fix | Delete
'_1_5__3_5' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/5 + 1/5 + 3/5' ),
[80] Fix | Delete
'_3_5__1_5' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '3/5 + 1/5 + 1/5' ),
[81] Fix | Delete
'5' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '5' ),
[82] Fix | Delete
'_3_5__2_5' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '3/5 + 2/5' ),
[83] Fix | Delete
'_2_5__3_5' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '2/5 + 3/5' ),
[84] Fix | Delete
'6' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '6' ),
[85] Fix | Delete
'_1_2__1_6' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/2 + 1/6 + 1/6 + 1/6' ),
[86] Fix | Delete
'_1_6__1_2' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/6 + 1/6 + 1/6 + 1/2' ),
[87] Fix | Delete
'_1_4_1_2_1_4' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/4 + 1/2 + 1/4' ),
[88] Fix | Delete
'_1_5_3_5_1_5' => sprintf( esc_html__( '%1$s Columns', 'Divi' ), '1/5 + 3/5 + 1/5' ),
[89] Fix | Delete
) );
[90] Fix | Delete
}
[91] Fix | Delete
endif;
[92] Fix | Delete
[93] Fix | Delete
if ( ! function_exists( 'et_divi_yes_no_choices' ) ) :
[94] Fix | Delete
/**
[95] Fix | Delete
* Returns yes no choices
[96] Fix | Delete
* @return array
[97] Fix | Delete
*/
[98] Fix | Delete
function et_divi_yes_no_choices() {
[99] Fix | Delete
return apply_filters( 'et_divi_yes_no_choices', array(
[100] Fix | Delete
'yes' => esc_html__( 'Yes', 'Divi' ),
[101] Fix | Delete
'no' => esc_html__( 'No', 'Divi' )
[102] Fix | Delete
) );
[103] Fix | Delete
}
[104] Fix | Delete
endif;
[105] Fix | Delete
[106] Fix | Delete
if ( ! function_exists( 'et_divi_left_right_choices' ) ) :
[107] Fix | Delete
/**
[108] Fix | Delete
* Returns left or right choices
[109] Fix | Delete
* @return array
[110] Fix | Delete
*/
[111] Fix | Delete
function et_divi_left_right_choices() {
[112] Fix | Delete
return apply_filters( 'et_divi_left_right_choices', array(
[113] Fix | Delete
'right' => esc_html__( 'Right', 'Divi' ),
[114] Fix | Delete
'left' => esc_html__( 'Left', 'Divi' )
[115] Fix | Delete
) );
[116] Fix | Delete
}
[117] Fix | Delete
endif;
[118] Fix | Delete
[119] Fix | Delete
if ( ! function_exists( 'et_divi_image_animation_choices' ) ) :
[120] Fix | Delete
/**
[121] Fix | Delete
* Returns image animation choices
[122] Fix | Delete
* @return array
[123] Fix | Delete
*/
[124] Fix | Delete
function et_divi_image_animation_choices() {
[125] Fix | Delete
return apply_filters( 'et_divi_image_animation_choices', array(
[126] Fix | Delete
'left' => esc_html__( 'Left to Right', 'Divi' ),
[127] Fix | Delete
'right' => esc_html__( 'Right to Left', 'Divi' ),
[128] Fix | Delete
'top' => esc_html__( 'Top to Bottom', 'Divi' ),
[129] Fix | Delete
'bottom' => esc_html__( 'Bottom to Top', 'Divi' ),
[130] Fix | Delete
'fade_in' => esc_html__( 'Fade In', 'Divi' ),
[131] Fix | Delete
'off' => esc_html__( 'No Animation', 'Divi' ),
[132] Fix | Delete
) );
[133] Fix | Delete
}
[134] Fix | Delete
endif;
[135] Fix | Delete
[136] Fix | Delete
if ( ! function_exists( 'et_divi_divider_style_choices' ) ) :
[137] Fix | Delete
/**
[138] Fix | Delete
* Returns divider style choices
[139] Fix | Delete
* @return array
[140] Fix | Delete
*/
[141] Fix | Delete
function et_divi_divider_style_choices() {
[142] Fix | Delete
return apply_filters( 'et_divi_divider_style_choices', array(
[143] Fix | Delete
'solid' => esc_html__( 'Solid', 'Divi' ),
[144] Fix | Delete
'dotted' => esc_html__( 'Dotted', 'Divi' ),
[145] Fix | Delete
'dashed' => esc_html__( 'Dashed', 'Divi' ),
[146] Fix | Delete
'double' => esc_html__( 'Double', 'Divi' ),
[147] Fix | Delete
'groove' => esc_html__( 'Groove', 'Divi' ),
[148] Fix | Delete
'ridge' => esc_html__( 'Ridge', 'Divi' ),
[149] Fix | Delete
'inset' => esc_html__( 'Inset', 'Divi' ),
[150] Fix | Delete
'outset' => esc_html__( 'Outset', 'Divi' ),
[151] Fix | Delete
) );
[152] Fix | Delete
}
[153] Fix | Delete
endif;
[154] Fix | Delete
[155] Fix | Delete
if ( ! function_exists( 'et_divi_divider_position_choices' ) ) :
[156] Fix | Delete
/**
[157] Fix | Delete
* Returns divider position choices
[158] Fix | Delete
* @return array
[159] Fix | Delete
*/
[160] Fix | Delete
function et_divi_divider_position_choices() {
[161] Fix | Delete
return apply_filters( 'et_divi_divider_position_choices', array(
[162] Fix | Delete
'top' => esc_html__( 'Top', 'Divi' ),
[163] Fix | Delete
'center' => esc_html__( 'Vertically Centered', 'Divi' ),
[164] Fix | Delete
'bottom' => esc_html__( 'Bottom', 'Divi' ),
[165] Fix | Delete
) );
[166] Fix | Delete
}
[167] Fix | Delete
endif;
[168] Fix | Delete
[169] Fix | Delete
if ( ! function_exists( 'et_divi_background_repeat_choices' ) ) :
[170] Fix | Delete
/**
[171] Fix | Delete
* Returns background repeat choices
[172] Fix | Delete
* @return array
[173] Fix | Delete
*/
[174] Fix | Delete
function et_divi_background_repeat_choices() {
[175] Fix | Delete
return apply_filters( 'et_divi_background_repeat_choices', array(
[176] Fix | Delete
'no-repeat' => esc_html__( 'No Repeat', 'Divi' ),
[177] Fix | Delete
'repeat' => esc_html__( 'Tile', 'Divi' ),
[178] Fix | Delete
'repeat-x' => esc_html__( 'Tile Horizontally', 'Divi' ),
[179] Fix | Delete
'repeat-y' => esc_html__( 'Tile Vertically', 'Divi' ),
[180] Fix | Delete
) );
[181] Fix | Delete
}
[182] Fix | Delete
endif;
[183] Fix | Delete
[184] Fix | Delete
if ( ! function_exists( 'et_divi_background_attachment_choices' ) ) :
[185] Fix | Delete
/**
[186] Fix | Delete
* Returns background attachment choices
[187] Fix | Delete
* @return array
[188] Fix | Delete
*/
[189] Fix | Delete
function et_divi_background_attachment_choices() {
[190] Fix | Delete
return apply_filters( 'et_divi_background_attachment_choices', array(
[191] Fix | Delete
'scroll' => esc_html__( 'Scroll', 'Divi' ),
[192] Fix | Delete
'fixed' => esc_html__( 'Fixed', 'Divi' ),
[193] Fix | Delete
) );
[194] Fix | Delete
}
[195] Fix | Delete
endif;
[196] Fix | Delete
[197] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function