Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw.../classes
File: class-twentytwenty-customize.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Customizer settings for this theme.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Twenty_Twenty
[5] Fix | Delete
* @since Twenty Twenty 1.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
[9] Fix | Delete
/**
[10] Fix | Delete
* CUSTOMIZER SETTINGS
[11] Fix | Delete
*/
[12] Fix | Delete
class TwentyTwenty_Customize {
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Register customizer options.
[16] Fix | Delete
*
[17] Fix | Delete
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
[18] Fix | Delete
*/
[19] Fix | Delete
public static function register( $wp_customize ) {
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Site Title & Description.
[23] Fix | Delete
* */
[24] Fix | Delete
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
[25] Fix | Delete
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
[26] Fix | Delete
[27] Fix | Delete
$wp_customize->selective_refresh->add_partial(
[28] Fix | Delete
'blogname',
[29] Fix | Delete
array(
[30] Fix | Delete
'selector' => '.site-title a',
[31] Fix | Delete
'render_callback' => 'twentytwenty_customize_partial_blogname',
[32] Fix | Delete
)
[33] Fix | Delete
);
[34] Fix | Delete
[35] Fix | Delete
$wp_customize->selective_refresh->add_partial(
[36] Fix | Delete
'blogdescription',
[37] Fix | Delete
array(
[38] Fix | Delete
'selector' => '.site-description',
[39] Fix | Delete
'render_callback' => 'twentytwenty_customize_partial_blogdescription',
[40] Fix | Delete
)
[41] Fix | Delete
);
[42] Fix | Delete
[43] Fix | Delete
$wp_customize->selective_refresh->add_partial(
[44] Fix | Delete
'custom_logo',
[45] Fix | Delete
array(
[46] Fix | Delete
'selector' => '.header-titles [class*=site-]:not(.site-description)',
[47] Fix | Delete
'render_callback' => 'twentytwenty_customize_partial_site_logo',
[48] Fix | Delete
)
[49] Fix | Delete
);
[50] Fix | Delete
[51] Fix | Delete
$wp_customize->selective_refresh->add_partial(
[52] Fix | Delete
'retina_logo',
[53] Fix | Delete
array(
[54] Fix | Delete
'selector' => '.header-titles [class*=site-]:not(.site-description)',
[55] Fix | Delete
'render_callback' => 'twentytwenty_customize_partial_site_logo',
[56] Fix | Delete
)
[57] Fix | Delete
);
[58] Fix | Delete
[59] Fix | Delete
/**
[60] Fix | Delete
* Site Identity
[61] Fix | Delete
*/
[62] Fix | Delete
[63] Fix | Delete
/* 2X Header Logo ---------------- */
[64] Fix | Delete
$wp_customize->add_setting(
[65] Fix | Delete
'retina_logo',
[66] Fix | Delete
array(
[67] Fix | Delete
'capability' => 'edit_theme_options',
[68] Fix | Delete
'sanitize_callback' => array( __CLASS__, 'sanitize_checkbox' ),
[69] Fix | Delete
'transport' => 'postMessage',
[70] Fix | Delete
)
[71] Fix | Delete
);
[72] Fix | Delete
[73] Fix | Delete
$wp_customize->add_control(
[74] Fix | Delete
'retina_logo',
[75] Fix | Delete
array(
[76] Fix | Delete
'type' => 'checkbox',
[77] Fix | Delete
'section' => 'title_tagline',
[78] Fix | Delete
'priority' => 10,
[79] Fix | Delete
'label' => __( 'Retina logo', 'twentytwenty' ),
[80] Fix | Delete
'description' => __( 'Scales the logo to half its uploaded size, making it sharp on high-res screens.', 'twentytwenty' ),
[81] Fix | Delete
)
[82] Fix | Delete
);
[83] Fix | Delete
[84] Fix | Delete
// Header & Footer Background Color.
[85] Fix | Delete
$wp_customize->add_setting(
[86] Fix | Delete
'header_footer_background_color',
[87] Fix | Delete
array(
[88] Fix | Delete
'default' => '#ffffff',
[89] Fix | Delete
'sanitize_callback' => 'sanitize_hex_color',
[90] Fix | Delete
'transport' => 'postMessage',
[91] Fix | Delete
)
[92] Fix | Delete
);
[93] Fix | Delete
[94] Fix | Delete
$wp_customize->add_control(
[95] Fix | Delete
new WP_Customize_Color_Control(
[96] Fix | Delete
$wp_customize,
[97] Fix | Delete
'header_footer_background_color',
[98] Fix | Delete
array(
[99] Fix | Delete
'label' => __( 'Header &amp; Footer Background Color', 'twentytwenty' ),
[100] Fix | Delete
'section' => 'colors',
[101] Fix | Delete
)
[102] Fix | Delete
)
[103] Fix | Delete
);
[104] Fix | Delete
[105] Fix | Delete
// Enable picking an accent color.
[106] Fix | Delete
$wp_customize->add_setting(
[107] Fix | Delete
'accent_hue_active',
[108] Fix | Delete
array(
[109] Fix | Delete
'capability' => 'edit_theme_options',
[110] Fix | Delete
'sanitize_callback' => array( __CLASS__, 'sanitize_select' ),
[111] Fix | Delete
'transport' => 'postMessage',
[112] Fix | Delete
'default' => 'default',
[113] Fix | Delete
)
[114] Fix | Delete
);
[115] Fix | Delete
[116] Fix | Delete
$wp_customize->add_control(
[117] Fix | Delete
'accent_hue_active',
[118] Fix | Delete
array(
[119] Fix | Delete
'type' => 'radio',
[120] Fix | Delete
'section' => 'colors',
[121] Fix | Delete
'label' => __( 'Primary Color', 'twentytwenty' ),
[122] Fix | Delete
'choices' => array(
[123] Fix | Delete
'default' => _x( 'Default', 'color', 'twentytwenty' ),
[124] Fix | Delete
'custom' => _x( 'Custom', 'color', 'twentytwenty' ),
[125] Fix | Delete
),
[126] Fix | Delete
)
[127] Fix | Delete
);
[128] Fix | Delete
[129] Fix | Delete
/**
[130] Fix | Delete
* Implementation for the accent color.
[131] Fix | Delete
* This is different to all other color options because of the accessibility enhancements.
[132] Fix | Delete
* The control is a hue-only colorpicker, and there is a separate setting that holds values
[133] Fix | Delete
* for other colors calculated based on the selected hue and various background-colors on the page.
[134] Fix | Delete
*
[135] Fix | Delete
* @since Twenty Twenty 1.0
[136] Fix | Delete
*/
[137] Fix | Delete
[138] Fix | Delete
// Add the setting for the hue colorpicker.
[139] Fix | Delete
$wp_customize->add_setting(
[140] Fix | Delete
'accent_hue',
[141] Fix | Delete
array(
[142] Fix | Delete
'default' => 344,
[143] Fix | Delete
'type' => 'theme_mod',
[144] Fix | Delete
'sanitize_callback' => 'absint',
[145] Fix | Delete
'transport' => 'postMessage',
[146] Fix | Delete
)
[147] Fix | Delete
);
[148] Fix | Delete
[149] Fix | Delete
// Add setting to hold colors derived from the accent hue.
[150] Fix | Delete
$wp_customize->add_setting(
[151] Fix | Delete
'accent_accessible_colors',
[152] Fix | Delete
array(
[153] Fix | Delete
'default' => array(
[154] Fix | Delete
'content' => array(
[155] Fix | Delete
'text' => '#000000',
[156] Fix | Delete
'accent' => '#cd2653',
[157] Fix | Delete
'secondary' => '#6d6d6d',
[158] Fix | Delete
'borders' => '#dcd7ca',
[159] Fix | Delete
),
[160] Fix | Delete
'header-footer' => array(
[161] Fix | Delete
'text' => '#000000',
[162] Fix | Delete
'accent' => '#cd2653',
[163] Fix | Delete
'secondary' => '#6d6d6d',
[164] Fix | Delete
'borders' => '#dcd7ca',
[165] Fix | Delete
),
[166] Fix | Delete
),
[167] Fix | Delete
'type' => 'theme_mod',
[168] Fix | Delete
'transport' => 'postMessage',
[169] Fix | Delete
'sanitize_callback' => array( __CLASS__, 'sanitize_accent_accessible_colors' ),
[170] Fix | Delete
)
[171] Fix | Delete
);
[172] Fix | Delete
[173] Fix | Delete
// Add the hue-only colorpicker for the accent color.
[174] Fix | Delete
$wp_customize->add_control(
[175] Fix | Delete
new WP_Customize_Color_Control(
[176] Fix | Delete
$wp_customize,
[177] Fix | Delete
'accent_hue',
[178] Fix | Delete
array(
[179] Fix | Delete
'section' => 'colors',
[180] Fix | Delete
'settings' => 'accent_hue',
[181] Fix | Delete
'description' => __( 'Apply a custom color for links, buttons, featured images.', 'twentytwenty' ),
[182] Fix | Delete
'mode' => 'hue',
[183] Fix | Delete
'active_callback' => function() use ( $wp_customize ) {
[184] Fix | Delete
return ( 'custom' === $wp_customize->get_setting( 'accent_hue_active' )->value() );
[185] Fix | Delete
},
[186] Fix | Delete
)
[187] Fix | Delete
)
[188] Fix | Delete
);
[189] Fix | Delete
[190] Fix | Delete
// Update background color with postMessage, so inline CSS output is updated as well.
[191] Fix | Delete
$wp_customize->get_setting( 'background_color' )->transport = 'postMessage';
[192] Fix | Delete
[193] Fix | Delete
/**
[194] Fix | Delete
* Theme Options
[195] Fix | Delete
*/
[196] Fix | Delete
[197] Fix | Delete
$wp_customize->add_section(
[198] Fix | Delete
'options',
[199] Fix | Delete
array(
[200] Fix | Delete
'title' => __( 'Theme Options', 'twentytwenty' ),
[201] Fix | Delete
'priority' => 40,
[202] Fix | Delete
'capability' => 'edit_theme_options',
[203] Fix | Delete
)
[204] Fix | Delete
);
[205] Fix | Delete
[206] Fix | Delete
/* Enable Header Search ----------------------------------------------- */
[207] Fix | Delete
[208] Fix | Delete
$wp_customize->add_setting(
[209] Fix | Delete
'enable_header_search',
[210] Fix | Delete
array(
[211] Fix | Delete
'capability' => 'edit_theme_options',
[212] Fix | Delete
'default' => true,
[213] Fix | Delete
'sanitize_callback' => array( __CLASS__, 'sanitize_checkbox' ),
[214] Fix | Delete
)
[215] Fix | Delete
);
[216] Fix | Delete
[217] Fix | Delete
$wp_customize->add_control(
[218] Fix | Delete
'enable_header_search',
[219] Fix | Delete
array(
[220] Fix | Delete
'type' => 'checkbox',
[221] Fix | Delete
'section' => 'options',
[222] Fix | Delete
'priority' => 10,
[223] Fix | Delete
'label' => __( 'Show search in header', 'twentytwenty' ),
[224] Fix | Delete
)
[225] Fix | Delete
);
[226] Fix | Delete
[227] Fix | Delete
/* Show author bio ---------------------------------------------------- */
[228] Fix | Delete
[229] Fix | Delete
$wp_customize->add_setting(
[230] Fix | Delete
'show_author_bio',
[231] Fix | Delete
array(
[232] Fix | Delete
'capability' => 'edit_theme_options',
[233] Fix | Delete
'default' => true,
[234] Fix | Delete
'sanitize_callback' => array( __CLASS__, 'sanitize_checkbox' ),
[235] Fix | Delete
)
[236] Fix | Delete
);
[237] Fix | Delete
[238] Fix | Delete
$wp_customize->add_control(
[239] Fix | Delete
'show_author_bio',
[240] Fix | Delete
array(
[241] Fix | Delete
'type' => 'checkbox',
[242] Fix | Delete
'section' => 'options',
[243] Fix | Delete
'priority' => 10,
[244] Fix | Delete
'label' => __( 'Show author bio', 'twentytwenty' ),
[245] Fix | Delete
)
[246] Fix | Delete
);
[247] Fix | Delete
[248] Fix | Delete
/* Display full content or excerpts on the blog and archives --------- */
[249] Fix | Delete
[250] Fix | Delete
$wp_customize->add_setting(
[251] Fix | Delete
'blog_content',
[252] Fix | Delete
array(
[253] Fix | Delete
'capability' => 'edit_theme_options',
[254] Fix | Delete
'default' => 'full',
[255] Fix | Delete
'sanitize_callback' => array( __CLASS__, 'sanitize_select' ),
[256] Fix | Delete
)
[257] Fix | Delete
);
[258] Fix | Delete
[259] Fix | Delete
$wp_customize->add_control(
[260] Fix | Delete
'blog_content',
[261] Fix | Delete
array(
[262] Fix | Delete
'type' => 'radio',
[263] Fix | Delete
'section' => 'options',
[264] Fix | Delete
'priority' => 10,
[265] Fix | Delete
'label' => __( 'On archive pages, posts show:', 'twentytwenty' ),
[266] Fix | Delete
'choices' => array(
[267] Fix | Delete
'full' => __( 'Full text', 'twentytwenty' ),
[268] Fix | Delete
'summary' => __( 'Summary', 'twentytwenty' ),
[269] Fix | Delete
),
[270] Fix | Delete
)
[271] Fix | Delete
);
[272] Fix | Delete
[273] Fix | Delete
/**
[274] Fix | Delete
* Template: Cover Template.
[275] Fix | Delete
*/
[276] Fix | Delete
$wp_customize->add_section(
[277] Fix | Delete
'cover_template_options',
[278] Fix | Delete
array(
[279] Fix | Delete
'title' => __( 'Cover Template', 'twentytwenty' ),
[280] Fix | Delete
'capability' => 'edit_theme_options',
[281] Fix | Delete
'description' => __( 'Settings for the "Cover Template" page template. Add a featured image to use as background.', 'twentytwenty' ),
[282] Fix | Delete
'priority' => 42,
[283] Fix | Delete
)
[284] Fix | Delete
);
[285] Fix | Delete
[286] Fix | Delete
/* Overlay Fixed Background ------ */
[287] Fix | Delete
[288] Fix | Delete
$wp_customize->add_setting(
[289] Fix | Delete
'cover_template_fixed_background',
[290] Fix | Delete
array(
[291] Fix | Delete
'capability' => 'edit_theme_options',
[292] Fix | Delete
'default' => true,
[293] Fix | Delete
'sanitize_callback' => array( __CLASS__, 'sanitize_checkbox' ),
[294] Fix | Delete
'transport' => 'postMessage',
[295] Fix | Delete
)
[296] Fix | Delete
);
[297] Fix | Delete
[298] Fix | Delete
$wp_customize->add_control(
[299] Fix | Delete
'cover_template_fixed_background',
[300] Fix | Delete
array(
[301] Fix | Delete
'type' => 'checkbox',
[302] Fix | Delete
'section' => 'cover_template_options',
[303] Fix | Delete
'label' => __( 'Fixed Background Image', 'twentytwenty' ),
[304] Fix | Delete
'description' => __( 'Creates a parallax effect when the visitor scrolls.', 'twentytwenty' ),
[305] Fix | Delete
)
[306] Fix | Delete
);
[307] Fix | Delete
[308] Fix | Delete
$wp_customize->selective_refresh->add_partial(
[309] Fix | Delete
'cover_template_fixed_background',
[310] Fix | Delete
array(
[311] Fix | Delete
'selector' => '.cover-header',
[312] Fix | Delete
'type' => 'cover_fixed',
[313] Fix | Delete
)
[314] Fix | Delete
);
[315] Fix | Delete
[316] Fix | Delete
/* Separator --------------------- */
[317] Fix | Delete
[318] Fix | Delete
$wp_customize->add_setting(
[319] Fix | Delete
'cover_template_separator_1',
[320] Fix | Delete
array(
[321] Fix | Delete
'sanitize_callback' => 'wp_filter_nohtml_kses',
[322] Fix | Delete
)
[323] Fix | Delete
);
[324] Fix | Delete
[325] Fix | Delete
$wp_customize->add_control(
[326] Fix | Delete
new TwentyTwenty_Separator_Control(
[327] Fix | Delete
$wp_customize,
[328] Fix | Delete
'cover_template_separator_1',
[329] Fix | Delete
array(
[330] Fix | Delete
'section' => 'cover_template_options',
[331] Fix | Delete
)
[332] Fix | Delete
)
[333] Fix | Delete
);
[334] Fix | Delete
[335] Fix | Delete
/* Overlay Background Color ------ */
[336] Fix | Delete
[337] Fix | Delete
$wp_customize->add_setting(
[338] Fix | Delete
'cover_template_overlay_background_color',
[339] Fix | Delete
array(
[340] Fix | Delete
'default' => twentytwenty_get_color_for_area( 'content', 'accent' ),
[341] Fix | Delete
'sanitize_callback' => 'sanitize_hex_color',
[342] Fix | Delete
)
[343] Fix | Delete
);
[344] Fix | Delete
[345] Fix | Delete
$wp_customize->add_control(
[346] Fix | Delete
new WP_Customize_Color_Control(
[347] Fix | Delete
$wp_customize,
[348] Fix | Delete
'cover_template_overlay_background_color',
[349] Fix | Delete
array(
[350] Fix | Delete
'label' => __( 'Overlay Background Color', 'twentytwenty' ),
[351] Fix | Delete
'description' => __( 'The color used for the overlay. Defaults to the accent color.', 'twentytwenty' ),
[352] Fix | Delete
'section' => 'cover_template_options',
[353] Fix | Delete
)
[354] Fix | Delete
)
[355] Fix | Delete
);
[356] Fix | Delete
[357] Fix | Delete
/* Overlay Text Color ------------ */
[358] Fix | Delete
[359] Fix | Delete
$wp_customize->add_setting(
[360] Fix | Delete
'cover_template_overlay_text_color',
[361] Fix | Delete
array(
[362] Fix | Delete
'default' => '#ffffff',
[363] Fix | Delete
'sanitize_callback' => 'sanitize_hex_color',
[364] Fix | Delete
)
[365] Fix | Delete
);
[366] Fix | Delete
[367] Fix | Delete
$wp_customize->add_control(
[368] Fix | Delete
new WP_Customize_Color_Control(
[369] Fix | Delete
$wp_customize,
[370] Fix | Delete
'cover_template_overlay_text_color',
[371] Fix | Delete
array(
[372] Fix | Delete
'label' => __( 'Overlay Text Color', 'twentytwenty' ),
[373] Fix | Delete
'description' => __( 'The color used for the text in the overlay.', 'twentytwenty' ),
[374] Fix | Delete
'section' => 'cover_template_options',
[375] Fix | Delete
)
[376] Fix | Delete
)
[377] Fix | Delete
);
[378] Fix | Delete
[379] Fix | Delete
/* Overlay Color Opacity --------- */
[380] Fix | Delete
[381] Fix | Delete
$wp_customize->add_setting(
[382] Fix | Delete
'cover_template_overlay_opacity',
[383] Fix | Delete
array(
[384] Fix | Delete
'default' => 80,
[385] Fix | Delete
'sanitize_callback' => 'absint',
[386] Fix | Delete
'transport' => 'postMessage',
[387] Fix | Delete
)
[388] Fix | Delete
);
[389] Fix | Delete
[390] Fix | Delete
$wp_customize->add_control(
[391] Fix | Delete
'cover_template_overlay_opacity',
[392] Fix | Delete
array(
[393] Fix | Delete
'label' => __( 'Overlay Opacity', 'twentytwenty' ),
[394] Fix | Delete
'description' => __( 'Make sure that the contrast is high enough so that the text is readable.', 'twentytwenty' ),
[395] Fix | Delete
'section' => 'cover_template_options',
[396] Fix | Delete
'type' => 'range',
[397] Fix | Delete
'input_attrs' => twentytwenty_customize_opacity_range(),
[398] Fix | Delete
)
[399] Fix | Delete
);
[400] Fix | Delete
[401] Fix | Delete
$wp_customize->selective_refresh->add_partial(
[402] Fix | Delete
'cover_template_overlay_opacity',
[403] Fix | Delete
array(
[404] Fix | Delete
'selector' => '.cover-color-overlay',
[405] Fix | Delete
'type' => 'cover_opacity',
[406] Fix | Delete
)
[407] Fix | Delete
);
[408] Fix | Delete
}
[409] Fix | Delete
[410] Fix | Delete
/**
[411] Fix | Delete
* Sanitization callback for the "accent_accessible_colors" setting.
[412] Fix | Delete
*
[413] Fix | Delete
* @static
[414] Fix | Delete
* @access public
[415] Fix | Delete
* @since Twenty Twenty 1.0
[416] Fix | Delete
* @param array $value The value we want to sanitize.
[417] Fix | Delete
* @return array Returns sanitized value. Each item in the array gets sanitized separately.
[418] Fix | Delete
*/
[419] Fix | Delete
public static function sanitize_accent_accessible_colors( $value ) {
[420] Fix | Delete
[421] Fix | Delete
// Make sure the value is an array. Do not typecast, use empty array as fallback.
[422] Fix | Delete
$value = is_array( $value ) ? $value : array();
[423] Fix | Delete
[424] Fix | Delete
// Loop values.
[425] Fix | Delete
foreach ( $value as $area => $values ) {
[426] Fix | Delete
foreach ( $values as $context => $color_val ) {
[427] Fix | Delete
$value[ $area ][ $context ] = sanitize_hex_color( $color_val );
[428] Fix | Delete
}
[429] Fix | Delete
}
[430] Fix | Delete
[431] Fix | Delete
return $value;
[432] Fix | Delete
}
[433] Fix | Delete
[434] Fix | Delete
/**
[435] Fix | Delete
* Sanitize select.
[436] Fix | Delete
*
[437] Fix | Delete
* @param string $input The input from the setting.
[438] Fix | Delete
* @param object $setting The selected setting.
[439] Fix | Delete
* @return string The input from the setting or the default setting.
[440] Fix | Delete
*/
[441] Fix | Delete
public static function sanitize_select( $input, $setting ) {
[442] Fix | Delete
$input = sanitize_key( $input );
[443] Fix | Delete
$choices = $setting->manager->get_control( $setting->id )->choices;
[444] Fix | Delete
return ( array_key_exists( $input, $choices ) ? $input : $setting->default );
[445] Fix | Delete
}
[446] Fix | Delete
[447] Fix | Delete
/**
[448] Fix | Delete
* Sanitize boolean for checkbox.
[449] Fix | Delete
*
[450] Fix | Delete
* @param bool $checked Whether or not a box is checked.
[451] Fix | Delete
* @return bool
[452] Fix | Delete
*/
[453] Fix | Delete
public static function sanitize_checkbox( $checked ) {
[454] Fix | Delete
return ( ( isset( $checked ) && true === $checked ) ? true : false );
[455] Fix | Delete
}
[456] Fix | Delete
[457] Fix | Delete
}
[458] Fix | Delete
[459] Fix | Delete
// Setup the Theme Customizer settings and controls.
[460] Fix | Delete
add_action( 'customize_register', array( 'TwentyTwenty_Customize', 'register' ) );
[461] Fix | Delete
[462] Fix | Delete
}
[463] Fix | Delete
[464] Fix | Delete
/**
[465] Fix | Delete
* PARTIAL REFRESH FUNCTIONS
[466] Fix | Delete
* */
[467] Fix | Delete
if ( ! function_exists( 'twentytwenty_customize_partial_blogname' ) ) {
[468] Fix | Delete
/**
[469] Fix | Delete
* Render the site title for the selective refresh partial.
[470] Fix | Delete
*/
[471] Fix | Delete
function twentytwenty_customize_partial_blogname() {
[472] Fix | Delete
bloginfo( 'name' );
[473] Fix | Delete
}
[474] Fix | Delete
}
[475] Fix | Delete
[476] Fix | Delete
if ( ! function_exists( 'twentytwenty_customize_partial_blogdescription' ) ) {
[477] Fix | Delete
/**
[478] Fix | Delete
* Render the site description for the selective refresh partial.
[479] Fix | Delete
*/
[480] Fix | Delete
function twentytwenty_customize_partial_blogdescription() {
[481] Fix | Delete
bloginfo( 'description' );
[482] Fix | Delete
}
[483] Fix | Delete
}
[484] Fix | Delete
[485] Fix | Delete
if ( ! function_exists( 'twentytwenty_customize_partial_site_logo' ) ) {
[486] Fix | Delete
/**
[487] Fix | Delete
* Render the site logo for the selective refresh partial.
[488] Fix | Delete
*
[489] Fix | Delete
* Doing it this way so we don't have issues with `render_callback`'s arguments.
[490] Fix | Delete
*/
[491] Fix | Delete
function twentytwenty_customize_partial_site_logo() {
[492] Fix | Delete
twentytwenty_site_logo();
[493] Fix | Delete
}
[494] Fix | Delete
}
[495] Fix | Delete
[496] Fix | Delete
[497] Fix | Delete
/**
[498] Fix | Delete
* Input attributes for cover overlay opacity option.
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function