mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
Update labels
This commit is contained in:
@@ -63,29 +63,31 @@ class Display_Featured_Image_Genesis_Customizer extends Display_Featured_Image_G
|
||||
$sections = array(
|
||||
array(
|
||||
'id' => 'main',
|
||||
'title' => __( 'Optional Sitewide Settings', 'display-featured-image-genesis' ),
|
||||
'title' => __( 'Main', 'display-featured-image-genesis' ),
|
||||
'fields' => $this->define_main_fields(),
|
||||
),
|
||||
array(
|
||||
'id' => 'backstretch',
|
||||
'title' => __( 'Display Settings', 'display-featured-image-genesis' ),
|
||||
'title' => __( 'Backstretch Output', 'display-featured-image-genesis' ),
|
||||
'fields' => $this->define_style_fields(),
|
||||
),
|
||||
array(
|
||||
'id' => 'cpt',
|
||||
'title' => __( 'Sitewide Settings', 'display-featured-image-genesis' ),
|
||||
'fields' => $this->define_cpt_fields(),
|
||||
'id' => 'cpt',
|
||||
'title' => __( 'Content Types', 'display-featured-image-genesis' ),
|
||||
'fields' => $this->define_cpt_fields(),
|
||||
'description' => __( 'Optional: set a custom image for search results and 404 (no results found) pages, as well as content types.', 'display-featured-image-genesis' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'advanced',
|
||||
'title' => __( 'Advanced Plugin Settings', 'display-featured-image-genesis' ),
|
||||
'title' => __( 'Advanced', 'display-featured-image-genesis' ),
|
||||
'fields' => $this->define_advanced_fields(),
|
||||
),
|
||||
);
|
||||
foreach ( $sections as $section ) {
|
||||
$wp_customize->add_section( $this->section . '_' . $section['id'], array(
|
||||
'title' => $section['title'],
|
||||
'panel' => $this->section,
|
||||
'title' => $section['title'],
|
||||
'panel' => $this->section,
|
||||
'description' => isset( $section['description'] ) ? $section['description'] : '',
|
||||
) );
|
||||
$this->add_section_controls( $wp_customize, $section['fields'], $this->section . '_' . $section['id'] );
|
||||
}
|
||||
|
||||
@@ -172,6 +172,7 @@ class Display_Featured_Image_Genesis_Settings_Validate extends Display_Featured_
|
||||
$message = __( 'Sorry, that is an invalid file type.', 'display-featured-image-genesis' );
|
||||
}
|
||||
|
||||
/* translators: the placeholder is the name of the featured image; eg. default, search, or the name of a content type. */
|
||||
$message .= sprintf( __( ' The %s Featured Image has been reset to the last valid setting.', 'display-featured-image-genesis' ), $label );
|
||||
|
||||
return $message;
|
||||
|
||||
Reference in New Issue
Block a user