mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 14:03:20 +09:00
Change post_meta checkboxes to be settings aware
"Don't move title" will only show if the "don't move title" is not set in the general plugin settings.
This commit is contained in:
@@ -43,16 +43,20 @@ class Display_Featured_Image_Genesis_Post_Meta {
|
||||
* @since 2.5.2
|
||||
*/
|
||||
protected function get_checkboxes() {
|
||||
return array(
|
||||
$checkboxes = array(
|
||||
array(
|
||||
'setting' => $this->disable,
|
||||
'label' => __( 'Don\'t show the featured image on this post', 'display-featured-image-genesis' ),
|
||||
),
|
||||
array(
|
||||
'setting' => $this->move,
|
||||
'label' => __( 'Don\'t move the title to overlay the featured image on this post', 'display-featured-image-genesis' ),
|
||||
),
|
||||
);
|
||||
$setting = displayfeaturedimagegenesis_get_setting();
|
||||
if ( ! $setting['keep_titles'] ) {
|
||||
$checkboxes[] = array(
|
||||
'setting' => $this->move,
|
||||
'label' => __( 'Don\'t move the title to overlay the backstretch featured image on this post', 'display-featured-image-genesis' ),
|
||||
);
|
||||
}
|
||||
return $checkboxes;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user