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:
Robin Cornett
2016-06-23 12:16:18 -04:00
parent e71746840f
commit e3e9a8f68c
@@ -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;
}
/**