Add setting to always use default image

This commit is contained in:
Robin Cornett
2016-07-02 14:02:54 -04:00
parent 518937a3ab
commit 72a50ea505
4 changed files with 15 additions and 1 deletions
@@ -141,6 +141,7 @@ class Display_Featured_Image_Genesis_Settings extends Display_Featured_Image_Gen
'skip' => array(),
'fallback' => array(),
'max_height' => '',
'always_default' => 0,
) );
}
@@ -208,6 +209,13 @@ class Display_Featured_Image_Genesis_Settings extends Display_Featured_Image_Gen
'callback' => 'set_default_image',
'section' => 'main',
),
array(
'id' => 'always_default',
'title' => __( 'Always Use Default', 'display-featured-image-genesis' ),
'callback' => 'do_checkbox',
'section' => 'main',
'args' => array( 'setting' => 'always_default', 'label' => __( 'Always use the default image, even if a featured image is set.', 'display-featured-image-genesis' ) ),
),
array(
'id' => 'exclude_front',
'title' => __( 'Skip Front Page', 'display-featured-image-genesis' ),