mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 14:03:20 +09:00
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:
@@ -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() ) ) {
|
||||
|
||||
Reference in New Issue
Block a user