Change post_meta disable

Initial work to change `_displayfeaturedimagegenesis_disable` to a select with image size options instead of being a checkbox. Options will be:
* 0: default (consistent with checkbox)
* 1: disable (consistent with checkbox)
* 2: backstretch (new)
* 3: large (new)
This commit is contained in:
Robin Cornett
2017-11-13 11:09:20 -05:00
parent ce25026ae0
commit 7ba7224246
3 changed files with 83 additions and 13 deletions
@@ -350,7 +350,7 @@ class Display_Featured_Image_Genesis_Output {
$post_type = get_post_type();
$skip_singular = is_singular() && isset( $this->setting['skip'][ $post_type ] ) && $this->setting['skip'][ $post_type ] ? true : false;
if ( $this->get_skipped_posttypes() || $skip_singular || $exclude_front || $this->check_post_meta( '_displayfeaturedimagegenesis_disable' ) ) {
if ( $this->get_skipped_posttypes() || $skip_singular || $exclude_front || 1 === (int) $this->check_post_meta( '_displayfeaturedimagegenesis_disable' ) ) {
$disable = true;
}