plugin settings revised

changed from setting many individual settings to one which uses an array. If anyone other than me was using the develop branch of the plugin, I apologize.
This commit is contained in:
Robin Cornett
2014-11-04 21:14:33 -05:00
parent 73a77a6a61
commit 4dc5f52e54
6 changed files with 101 additions and 51 deletions
@@ -15,7 +15,8 @@ class Display_Featured_Image_Genesis_Output {
* @since 1.1.3
*/
public function manage_output() {
$fallback = get_option( 'displayfeaturedimage_default' );
$displaysetting = get_option( 'displayfeaturedimagegenesis' );
$fallback = $displaysetting['default'];
if ( ( empty( $fallback ) && ! is_home() && ! is_singular() ) || ( in_array( get_post_type(), Display_Featured_Image_Genesis_Common::get_skipped_posttypes() ) ) ) {
return;
}
@@ -102,7 +103,8 @@ class Display_Featured_Image_Genesis_Output {
echo '<div class="big-leader"><div class="wrap">';
$move_excerpts = get_option( 'displayfeaturedimage_excerpts' );
$displaysetting = get_option( 'displayfeaturedimagegenesis' );
$move_excerpts = $displaysetting['move_excerpts'];
// if move excerpts is enabled
if ( $move_excerpts && ! in_array( get_post_type(), Display_Featured_Image_Genesis_Common::omit_excerpt() ) ) {