/**
  * set parameters for scripts, etc. to run.
  *
  * @since 1.1.3
  */
 public function manage_output()
 {
     $settings = new Display_Featured_Image_Genesis_Settings();
     $this->displaysetting = $settings->get_display_setting();
     $skip = $this->displaysetting['exclude_front'];
     $post_types = array('attachment', 'revision', 'nav_menu_item');
     $skipped_types = apply_filters('display_featured_image_genesis_skipped_posttypes', $post_types);
     if (is_admin() || in_array(get_post_type(), $skipped_types) || $skip && is_front_page()) {
         return;
     }
     $this->common = new Display_Featured_Image_Genesis_Common();
     $this->item = Display_Featured_Image_Genesis_Common::get_image_variables();
     add_action('wp_enqueue_scripts', array($this, 'load_scripts'));
     add_filter('body_class', array($this, 'add_body_class'));
 }
 /**
  * Decide whether or not to add the featured image to the feed or the feed excerpt
  *
  * @return filter the_excerpt_rss (if summaries) or the_content_feed (full text)
  * @since  1.5.0
  */
 public function maybe_do_feed()
 {
     $settings = new Display_Featured_Image_Genesis_Settings();
     $displaysetting = $settings->get_display_setting();
     $feed_image = $displaysetting['feed_image'];
     $post_types = array();
     $skipped_types = apply_filters('display_featured_image_genesis_skipped_posttypes', $post_types);
     // if the user isn't sending images to the feed, we're done
     if (!$feed_image || in_array(get_post_type(), $skipped_types)) {
         return;
     }
     // if the feed is summary, filter the excerpt
     $which_filter = 'the_excerpt_rss';
     $priority = 1000;
     $rss_option = get_option('rss_use_excerpt');
     // if the feed is full text, filter the content
     if ('0' === $rss_option) {
         $which_filter = 'the_content_feed';
         $priority = 15;
     }
     add_filter($which_filter, array($this, 'add_image_to_feed'), $priority);
 }