Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi
File: functions.php
'key' => 'padding',
[6500] Fix | Delete
'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description',
[6501] Fix | Delete
),
[6502] Fix | Delete
) );
[6503] Fix | Delete
[6504] Fix | Delete
/* Pricing Table */
[6505] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_pricing_tables', array(
[6506] Fix | Delete
array(
[6507] Fix | Delete
'type' => 'font-size',
[6508] Fix | Delete
'key' => 'header_font_size',
[6509] Fix | Delete
'selector' => '.et_pb_pricing_heading h2',
[6510] Fix | Delete
),
[6511] Fix | Delete
array(
[6512] Fix | Delete
'type' => 'font-size',
[6513] Fix | Delete
'key' => 'subheader_font_size',
[6514] Fix | Delete
'selector' => '.et_pb_best_value',
[6515] Fix | Delete
),
[6516] Fix | Delete
array(
[6517] Fix | Delete
'type' => 'font-size',
[6518] Fix | Delete
'key' => 'price_font_size',
[6519] Fix | Delete
'selector' => '.et_pb_sum',
[6520] Fix | Delete
),
[6521] Fix | Delete
) );
[6522] Fix | Delete
[6523] Fix | Delete
/* Call to Action */
[6524] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_cta', array(
[6525] Fix | Delete
array(
[6526] Fix | Delete
'type' => 'font-size',
[6527] Fix | Delete
'key' => 'header_font_size',
[6528] Fix | Delete
'selector' => '.et_pb_promo h2',
[6529] Fix | Delete
),
[6530] Fix | Delete
array(
[6531] Fix | Delete
'type' => 'padding-call-to-action',
[6532] Fix | Delete
'key' => 'custom_padding',
[6533] Fix | Delete
'selector' => '',
[6534] Fix | Delete
'important' => true,
[6535] Fix | Delete
),
[6536] Fix | Delete
) );
[6537] Fix | Delete
[6538] Fix | Delete
/* Audio */
[6539] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_audio', array(
[6540] Fix | Delete
array(
[6541] Fix | Delete
'type' => 'font-size',
[6542] Fix | Delete
'key' => 'title_font_size',
[6543] Fix | Delete
'selector' => '.et_pb_audio_module_content h2',
[6544] Fix | Delete
),
[6545] Fix | Delete
array(
[6546] Fix | Delete
'type' => 'font-size',
[6547] Fix | Delete
'key' => 'caption_font_size',
[6548] Fix | Delete
'selector' => '.et_pb_audio_module p',
[6549] Fix | Delete
),
[6550] Fix | Delete
) );
[6551] Fix | Delete
[6552] Fix | Delete
/* Email Optin */
[6553] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_signup', array(
[6554] Fix | Delete
array(
[6555] Fix | Delete
'type' => 'font-size',
[6556] Fix | Delete
'key' => 'header_font_size',
[6557] Fix | Delete
'selector' => '.et_pb_subscribe h2',
[6558] Fix | Delete
),
[6559] Fix | Delete
array(
[6560] Fix | Delete
'type' => 'padding',
[6561] Fix | Delete
'key' => 'padding',
[6562] Fix | Delete
'selector' => '.et_pb_subscribe',
[6563] Fix | Delete
),
[6564] Fix | Delete
) );
[6565] Fix | Delete
[6566] Fix | Delete
/* Login */
[6567] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_login', array(
[6568] Fix | Delete
array(
[6569] Fix | Delete
'type' => 'font-size',
[6570] Fix | Delete
'key' => 'header_font_size',
[6571] Fix | Delete
'selector' => '.et_pb_login h2',
[6572] Fix | Delete
),
[6573] Fix | Delete
array(
[6574] Fix | Delete
'type' => 'padding-top-bottom',
[6575] Fix | Delete
'key' => 'custom_padding',
[6576] Fix | Delete
'selector' => '.et_pb_login',
[6577] Fix | Delete
),
[6578] Fix | Delete
) );
[6579] Fix | Delete
[6580] Fix | Delete
/* Portfolio */
[6581] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_portfolio', array(
[6582] Fix | Delete
array(
[6583] Fix | Delete
'type' => 'font-size',
[6584] Fix | Delete
'key' => 'title_font_size',
[6585] Fix | Delete
'selector' => '.et_pb_portfolio .et_pb_portfolio_item h2, .et_pb_fullwidth_portfolio .et_pb_portfolio_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2',
[6586] Fix | Delete
),
[6587] Fix | Delete
array(
[6588] Fix | Delete
'type' => 'font-size',
[6589] Fix | Delete
'key' => 'caption_font_size',
[6590] Fix | Delete
'selector' => '.et_pb_portfolio .et_pb_portfolio_item .post-meta, .et_pb_fullwidth_portfolio .et_pb_portfolio_item .post-meta, .et_pb_portfolio_grid .et_pb_portfolio_item .post-meta',
[6591] Fix | Delete
),
[6592] Fix | Delete
) );
[6593] Fix | Delete
[6594] Fix | Delete
/* Filterable Portfolio */
[6595] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_filterable_portfolio', array(
[6596] Fix | Delete
array(
[6597] Fix | Delete
'type' => 'font-size',
[6598] Fix | Delete
'key' => 'title_font_size',
[6599] Fix | Delete
'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item h2',
[6600] Fix | Delete
),
[6601] Fix | Delete
array(
[6602] Fix | Delete
'type' => 'font-size',
[6603] Fix | Delete
'key' => 'caption_font_size',
[6604] Fix | Delete
'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item .post-meta',
[6605] Fix | Delete
),
[6606] Fix | Delete
array(
[6607] Fix | Delete
'type' => 'font-size',
[6608] Fix | Delete
'key' => 'filter_font_size',
[6609] Fix | Delete
'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_filters li',
[6610] Fix | Delete
),
[6611] Fix | Delete
) );
[6612] Fix | Delete
[6613] Fix | Delete
/* Bar Counter */
[6614] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_counters', array(
[6615] Fix | Delete
array(
[6616] Fix | Delete
'type' => 'font-size',
[6617] Fix | Delete
'key' => 'title_font_size',
[6618] Fix | Delete
'selector' => '.et_pb_counters .et_pb_counter_title',
[6619] Fix | Delete
),
[6620] Fix | Delete
array(
[6621] Fix | Delete
'type' => 'font-size',
[6622] Fix | Delete
'key' => 'percent_font_size',
[6623] Fix | Delete
'selector' => '.et_pb_counters .et_pb_counter_amount',
[6624] Fix | Delete
),
[6625] Fix | Delete
array(
[6626] Fix | Delete
'type' => 'padding',
[6627] Fix | Delete
'key' => 'padding',
[6628] Fix | Delete
'selector' => '.et_pb_counter_amount',
[6629] Fix | Delete
),
[6630] Fix | Delete
) );
[6631] Fix | Delete
[6632] Fix | Delete
/* Circle Counter */
[6633] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_circle_counter', array(
[6634] Fix | Delete
array(
[6635] Fix | Delete
'type' => 'font-size',
[6636] Fix | Delete
'key' => 'number_font_size',
[6637] Fix | Delete
'selector' => '.et_pb_circle_counter .percent p',
[6638] Fix | Delete
),
[6639] Fix | Delete
array(
[6640] Fix | Delete
'type' => 'font-size',
[6641] Fix | Delete
'key' => 'title_font_size',
[6642] Fix | Delete
'selector' => '.et_pb_circle_counter h3',
[6643] Fix | Delete
),
[6644] Fix | Delete
) );
[6645] Fix | Delete
[6646] Fix | Delete
/* Number Counter */
[6647] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_number_counter', array(
[6648] Fix | Delete
array(
[6649] Fix | Delete
'type' => 'font-size',
[6650] Fix | Delete
'key' => 'number_font_size',
[6651] Fix | Delete
'selector' => '.et_pb_number_counter .percent p',
[6652] Fix | Delete
),
[6653] Fix | Delete
array(
[6654] Fix | Delete
'type' => 'font-size',
[6655] Fix | Delete
'key' => 'title_font_size',
[6656] Fix | Delete
'selector' => '.et_pb_number_counter h3',
[6657] Fix | Delete
),
[6658] Fix | Delete
) );
[6659] Fix | Delete
[6660] Fix | Delete
/* Accordion */
[6661] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_accordion', array(
[6662] Fix | Delete
array(
[6663] Fix | Delete
'type' => 'font-size',
[6664] Fix | Delete
'key' => 'toggle_font_size',
[6665] Fix | Delete
'selector' => '.et_pb_accordion .et_pb_toggle_title',
[6666] Fix | Delete
),
[6667] Fix | Delete
array(
[6668] Fix | Delete
'type' => 'padding',
[6669] Fix | Delete
'key' => 'custom_padding',
[6670] Fix | Delete
'selector' => '.et_pb_accordion .et_pb_toggle_open, .et_pb_accordion .et_pb_toggle_close',
[6671] Fix | Delete
),
[6672] Fix | Delete
) );
[6673] Fix | Delete
[6674] Fix | Delete
/* Toggle */
[6675] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_toggle', array(
[6676] Fix | Delete
array(
[6677] Fix | Delete
'type' => 'font-size',
[6678] Fix | Delete
'key' => 'title_font_size',
[6679] Fix | Delete
'selector' => '.et_pb_toggle.et_pb_toggle_item h5',
[6680] Fix | Delete
),
[6681] Fix | Delete
array(
[6682] Fix | Delete
'type' => 'padding',
[6683] Fix | Delete
'key' => 'custom_padding',
[6684] Fix | Delete
'selector' => '.et_pb_toggle.et_pb_toggle_item',
[6685] Fix | Delete
),
[6686] Fix | Delete
) );
[6687] Fix | Delete
[6688] Fix | Delete
/* Contact Form */
[6689] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_contact_form', array(
[6690] Fix | Delete
array(
[6691] Fix | Delete
'type' => 'font-size',
[6692] Fix | Delete
'key' => 'title_font_size',
[6693] Fix | Delete
'selector' => '.et_pb_contact_form_container .et_pb_contact_main_title',
[6694] Fix | Delete
),
[6695] Fix | Delete
array(
[6696] Fix | Delete
'type' => 'font-size',
[6697] Fix | Delete
'key' => 'form_field_font_size',
[6698] Fix | Delete
'selector' => '.et_pb_contact_form_container .et_pb_contact p input, .et_pb_contact_form_container .et_pb_contact p textarea',
[6699] Fix | Delete
),
[6700] Fix | Delete
array(
[6701] Fix | Delete
'type' => 'font-size',
[6702] Fix | Delete
'key' => 'captcha_font_size',
[6703] Fix | Delete
'selector' => '.et_pb_contact_captcha_question',
[6704] Fix | Delete
),
[6705] Fix | Delete
array(
[6706] Fix | Delete
'type' => 'padding',
[6707] Fix | Delete
'key' => 'padding',
[6708] Fix | Delete
'selector' => '.et_pb_contact p input, .et_pb_contact p textarea',
[6709] Fix | Delete
),
[6710] Fix | Delete
) );
[6711] Fix | Delete
[6712] Fix | Delete
/* Sidebar */
[6713] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_sidebar', array(
[6714] Fix | Delete
array(
[6715] Fix | Delete
'type' => 'font-size',
[6716] Fix | Delete
'key' => 'header_font_size',
[6717] Fix | Delete
'selector' => '.et_pb_widget_area h4',
[6718] Fix | Delete
),
[6719] Fix | Delete
) );
[6720] Fix | Delete
[6721] Fix | Delete
/* Person */
[6722] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_team_member', array(
[6723] Fix | Delete
array(
[6724] Fix | Delete
'type' => 'font-size',
[6725] Fix | Delete
'key' => 'header_font_size',
[6726] Fix | Delete
'selector' => '.et_pb_team_member h4',
[6727] Fix | Delete
),
[6728] Fix | Delete
array(
[6729] Fix | Delete
'type' => 'font-size',
[6730] Fix | Delete
'key' => 'subheader_font_size',
[6731] Fix | Delete
'selector' => '.et_pb_team_member .et_pb_member_position',
[6732] Fix | Delete
),
[6733] Fix | Delete
) );
[6734] Fix | Delete
[6735] Fix | Delete
/* Blog */
[6736] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_blog', array(
[6737] Fix | Delete
array(
[6738] Fix | Delete
'type' => 'font-size',
[6739] Fix | Delete
'key' => 'header_font_size',
[6740] Fix | Delete
'selector' => '.et_pb_posts .et_pb_post h2',
[6741] Fix | Delete
),
[6742] Fix | Delete
array(
[6743] Fix | Delete
'type' => 'font-size',
[6744] Fix | Delete
'key' => 'meta_font_size',
[6745] Fix | Delete
'selector' => '.et_pb_posts .et_pb_post .post-meta',
[6746] Fix | Delete
),
[6747] Fix | Delete
) );
[6748] Fix | Delete
[6749] Fix | Delete
/* Blog Masonry */
[6750] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_blog_masonry', array(
[6751] Fix | Delete
array(
[6752] Fix | Delete
'type' => 'font-size',
[6753] Fix | Delete
'key' => 'header_font_size',
[6754] Fix | Delete
'selector' => '.et_pb_blog_grid .et_pb_post h2',
[6755] Fix | Delete
),
[6756] Fix | Delete
array(
[6757] Fix | Delete
'type' => 'font-size',
[6758] Fix | Delete
'key' => 'meta_font_size',
[6759] Fix | Delete
'selector' => '.et_pb_blog_grid .et_pb_post .post-meta',
[6760] Fix | Delete
),
[6761] Fix | Delete
) );
[6762] Fix | Delete
[6763] Fix | Delete
/* Shop */
[6764] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_shop', array(
[6765] Fix | Delete
array(
[6766] Fix | Delete
'type' => 'font-size',
[6767] Fix | Delete
'key' => 'title_font_size',
[6768] Fix | Delete
'selector' => '.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3',
[6769] Fix | Delete
'important' => false,
[6770] Fix | Delete
),
[6771] Fix | Delete
array(
[6772] Fix | Delete
'type' => 'font-size',
[6773] Fix | Delete
'key' => 'sale_badge_font_size',
[6774] Fix | Delete
'selector' => '.woocommerce span.onsale, .woocommerce-page span.onsale',
[6775] Fix | Delete
'important' => false,
[6776] Fix | Delete
),
[6777] Fix | Delete
array(
[6778] Fix | Delete
'type' => 'font-size',
[6779] Fix | Delete
'key' => 'price_font_size',
[6780] Fix | Delete
'selector' => '.woocommerce ul.products li.product .price .amount, .woocommerce-page ul.products li.product .price .amount',
[6781] Fix | Delete
'important' => false,
[6782] Fix | Delete
),
[6783] Fix | Delete
array(
[6784] Fix | Delete
'type' => 'font-size',
[6785] Fix | Delete
'key' => 'sale_price_font_size',
[6786] Fix | Delete
'selector' => '.woocommerce ul.products li.product .price ins .amount, .woocommerce-page ul.products li.product .price ins .amount',
[6787] Fix | Delete
'important' => false,
[6788] Fix | Delete
),
[6789] Fix | Delete
) );
[6790] Fix | Delete
[6791] Fix | Delete
/* Countdown */
[6792] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_countdown_timer', array(
[6793] Fix | Delete
array(
[6794] Fix | Delete
'type' => 'font-size',
[6795] Fix | Delete
'key' => 'header_font_size',
[6796] Fix | Delete
'selector' => '.et_pb_countdown_timer .title',
[6797] Fix | Delete
),
[6798] Fix | Delete
) );
[6799] Fix | Delete
[6800] Fix | Delete
/* Social */
[6801] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_social_media_follow', array(
[6802] Fix | Delete
array(
[6803] Fix | Delete
'type' => 'social-icon-size',
[6804] Fix | Delete
'key' => 'icon_size',
[6805] Fix | Delete
'selector' => '',
[6806] Fix | Delete
),
[6807] Fix | Delete
) );
[6808] Fix | Delete
[6809] Fix | Delete
/* Fullwidth Slider */
[6810] Fix | Delete
et_pb_print_module_styles_css( 'et_pb_fullwidth_slider', array(
[6811] Fix | Delete
array(
[6812] Fix | Delete
'type' => 'font-size',
[6813] Fix | Delete
'key' => 'header_font_size',
[6814] Fix | Delete
'selector' => '.et_pb_fullwidth_section .et_pb_slide_description .et_pb_slide_title',
[6815] Fix | Delete
'default' => '46',
[6816] Fix | Delete
),
[6817] Fix | Delete
array(
[6818] Fix | Delete
'type' => 'font-size',
[6819] Fix | Delete
'key' => 'body_font_size',
[6820] Fix | Delete
'selector' => '.et_pb_fullwidth_section .et_pb_slide_content',
[6821] Fix | Delete
'default' => 16,
[6822] Fix | Delete
),
[6823] Fix | Delete
array(
[6824] Fix | Delete
'type' => 'padding-slider',
[6825] Fix | Delete
'key' => 'padding',
[6826] Fix | Delete
'selector' => '.et_pb_fullwidth_section .et_pb_slide_description',
[6827] Fix | Delete
'default' => '16',
[6828] Fix | Delete
),
[6829] Fix | Delete
) ); // <<<--------- END MODULE CUSTOMIZER CSS --------->>>
[6830] Fix | Delete
[6831] Fix | Delete
/**
[6832] Fix | Delete
* Filter Module Customizer CSS output.
[6833] Fix | Delete
*
[6834] Fix | Delete
* @since 3.0.51
[6835] Fix | Delete
*
[6836] Fix | Delete
* @param string $module_customizer_css
[6837] Fix | Delete
*/
[6838] Fix | Delete
$css_output[] = apply_filters( 'et_divi_module_customizer_css_output', ob_get_clean() );
[6839] Fix | Delete
}
[6840] Fix | Delete
[6841] Fix | Delete
// Give the output to the style manager so a static resource can be created and served.
[6842] Fix | Delete
$styles_manager->set_data( implode( '\n', $css_output ) );
[6843] Fix | Delete
}
[6844] Fix | Delete
add_action( 'wp', 'et_divi_add_customizer_css' );
[6845] Fix | Delete
[6846] Fix | Delete
/**
[6847] Fix | Delete
* Outputting saved customizer style settings
[6848] Fix | Delete
*
[6849] Fix | Delete
* @return void
[6850] Fix | Delete
*/
[6851] Fix | Delete
function et_pb_print_css( $setting ) {
[6852] Fix | Delete
[6853] Fix | Delete
// Defaults value
[6854] Fix | Delete
$defaults = array(
[6855] Fix | Delete
'key' => false,
[6856] Fix | Delete
'selector' => false,
[6857] Fix | Delete
'type' => false,
[6858] Fix | Delete
'default' => false,
[6859] Fix | Delete
'important' => false
[6860] Fix | Delete
);
[6861] Fix | Delete
[6862] Fix | Delete
// Parse given settings aginst defaults
[6863] Fix | Delete
$setting = wp_parse_args( $setting, $defaults );
[6864] Fix | Delete
[6865] Fix | Delete
if (
[6866] Fix | Delete
$setting['key'] !== false ||
[6867] Fix | Delete
$setting['selector'] !== false ||
[6868] Fix | Delete
$setting['type'] !== false ||
[6869] Fix | Delete
$setting['settings'] !== false
[6870] Fix | Delete
) {
[6871] Fix | Delete
[6872] Fix | Delete
// Some attribute requires !important tag
[6873] Fix | Delete
if ( $setting['important'] ) {
[6874] Fix | Delete
$important = "!important";
[6875] Fix | Delete
} else {
[6876] Fix | Delete
$important = "";
[6877] Fix | Delete
}
[6878] Fix | Delete
[6879] Fix | Delete
// get value
[6880] Fix | Delete
$value = et_get_option( $setting['key'], $setting['default'] );
[6881] Fix | Delete
[6882] Fix | Delete
// Output css based on its type
[6883] Fix | Delete
if ( $value !== false && $value != $setting['default'] ) {
[6884] Fix | Delete
switch ( $setting['type'] ) {
[6885] Fix | Delete
case 'font-size':
[6886] Fix | Delete
printf( '%1$s { font-size: %2$spx %3$s; }',
[6887] Fix | Delete
esc_html( $setting['selector'] ),
[6888] Fix | Delete
esc_html( $value ),
[6889] Fix | Delete
$important );
[6890] Fix | Delete
break;
[6891] Fix | Delete
[6892] Fix | Delete
case 'font-size-post-header':
[6893] Fix | Delete
$posts_font_size = intval( $value ) * ( 26 / 30 );
[6894] Fix | Delete
printf( 'body.home-posts #left-area .et_pb_post h2, body.archive #left-area .et_pb_post h2, body.search #left-area .et_pb_post h2 { font-size:%1$spx }
[6895] Fix | Delete
body.single .et_post_meta_wrapper h1 { font-size:%2$spx; }',
[6896] Fix | Delete
esc_html( $posts_font_size ),
[6897] Fix | Delete
esc_html( $value )
[6898] Fix | Delete
);
[6899] Fix | Delete
break;
[6900] Fix | Delete
[6901] Fix | Delete
case 'font-style':
[6902] Fix | Delete
printf( '%1$s { %2$s }',
[6903] Fix | Delete
esc_html( $setting['selector'] ),
[6904] Fix | Delete
et_pb_print_font_style( $value, $important )
[6905] Fix | Delete
);
[6906] Fix | Delete
break;
[6907] Fix | Delete
[6908] Fix | Delete
case 'letter-spacing':
[6909] Fix | Delete
printf( '%1$s { letter-spacing: %2$spx %3$s; }',
[6910] Fix | Delete
esc_html( $setting['selector'] ),
[6911] Fix | Delete
esc_html( $value ),
[6912] Fix | Delete
$important
[6913] Fix | Delete
);
[6914] Fix | Delete
break;
[6915] Fix | Delete
[6916] Fix | Delete
case 'line-height':
[6917] Fix | Delete
printf( '%1$s { line-height: %2$sem %3$s; }',
[6918] Fix | Delete
esc_html( $setting['selector'] ),
[6919] Fix | Delete
esc_html( $value ),
[6920] Fix | Delete
$important
[6921] Fix | Delete
);
[6922] Fix | Delete
break;
[6923] Fix | Delete
[6924] Fix | Delete
case 'color':
[6925] Fix | Delete
printf( '%1$s { color: %2$s; }',
[6926] Fix | Delete
esc_html( $setting['selector'] ),
[6927] Fix | Delete
esc_html( $value )
[6928] Fix | Delete
);
[6929] Fix | Delete
break;
[6930] Fix | Delete
[6931] Fix | Delete
case 'background-color':
[6932] Fix | Delete
printf( '%1$s { background-color: %2$s; }',
[6933] Fix | Delete
esc_html( $setting['selector'] ),
[6934] Fix | Delete
esc_html( $value )
[6935] Fix | Delete
);
[6936] Fix | Delete
break;
[6937] Fix | Delete
[6938] Fix | Delete
case 'border-radius':
[6939] Fix | Delete
printf( '%1$s { -moz-border-radius: %2$spx; -webkit-border-radius: %2$spx; border-radius: %2$spx; }',
[6940] Fix | Delete
esc_html( $setting['selector'] ),
[6941] Fix | Delete
esc_html( $value )
[6942] Fix | Delete
);
[6943] Fix | Delete
break;
[6944] Fix | Delete
[6945] Fix | Delete
case 'width':
[6946] Fix | Delete
printf( '%1$s { width: %2$spx; }',
[6947] Fix | Delete
esc_html( $setting['selector'] ),
[6948] Fix | Delete
esc_html( $value )
[6949] Fix | Delete
);
[6950] Fix | Delete
break;
[6951] Fix | Delete
[6952] Fix | Delete
case 'height':
[6953] Fix | Delete
printf( '%1$s { height: %2$spx; }',
[6954] Fix | Delete
esc_html( $setting['selector'] ),
[6955] Fix | Delete
esc_html( $value )
[6956] Fix | Delete
);
[6957] Fix | Delete
break;
[6958] Fix | Delete
[6959] Fix | Delete
case 'padding':
[6960] Fix | Delete
printf( '%1$s { padding: %2$spx; }',
[6961] Fix | Delete
esc_html( $setting['selector'] ),
[6962] Fix | Delete
esc_html( $value )
[6963] Fix | Delete
);
[6964] Fix | Delete
break;
[6965] Fix | Delete
[6966] Fix | Delete
case 'padding-top-bottom':
[6967] Fix | Delete
printf( '%1$s { padding: %2$spx 0; }',
[6968] Fix | Delete
esc_html( $setting['selector'] ),
[6969] Fix | Delete
esc_html( $value )
[6970] Fix | Delete
);
[6971] Fix | Delete
break;
[6972] Fix | Delete
[6973] Fix | Delete
case 'padding-tabs':
[6974] Fix | Delete
printf( '%1$s { padding: %2$spx %3$spx; }',
[6975] Fix | Delete
esc_html( $setting['selector'] ),
[6976] Fix | Delete
esc_html( ( intval( $value ) * 0.5 ) ),
[6977] Fix | Delete
esc_html( $value )
[6978] Fix | Delete
);
[6979] Fix | Delete
break;
[6980] Fix | Delete
[6981] Fix | Delete
case 'padding-fullwidth-slider':
[6982] Fix | Delete
printf( '%1$s { padding: %2$s %3$s; }',
[6983] Fix | Delete
esc_html( $setting['selector'] ),
[6984] Fix | Delete
esc_html( $value ) . '%',
[6985] Fix | Delete
'0'
[6986] Fix | Delete
);
[6987] Fix | Delete
break;
[6988] Fix | Delete
[6989] Fix | Delete
case 'padding-slider':
[6990] Fix | Delete
printf( '%1$s { padding: %2$s %3$s; }',
[6991] Fix | Delete
esc_html( $setting['selector'] ),
[6992] Fix | Delete
esc_html( $value ) . '%',
[6993] Fix | Delete
esc_html( ( intval( $value ) / 2 ) ) . '%'
[6994] Fix | Delete
);
[6995] Fix | Delete
break;
[6996] Fix | Delete
[6997] Fix | Delete
case 'social-icon-size':
[6998] Fix | Delete
$icon_margin = intval( $value ) * 0.57;
[6999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function