get_base_url() . '/images/drip-icon.svg'; } /** * Returns the Drip add-on feeds for the current form. * * @return array */ public function get_feeds() { if ( is_object( $this->get_add_on_instance() ) ) { $form_id = $this->get_form_id(); $feeds = $this->get_add_on_instance()->get_feeds( $form_id ); } else { $feeds = array(); } return $feeds; } /** * Processes the given feed for the add-on. * * @param array $feed The Drip add-on feed properties. * * @return bool Is feed processing complete? */ public function process_feed( $feed ) { if ( is_object( $this->get_add_on_instance() ) ) { $form = $this->get_form(); $entry = $this->get_entry(); $this->get_add_on_instance()->process_feed( $feed, $entry, $form ); } return true; } /** * Returns the current instance of the Drip add-on. * * @return GFP_Drip_Addon|null */ public function get_add_on_instance() { if ( ! is_object( $this->_add_on_instance ) && class_exists( $this->_class_name ) ) { $add_on = new GFP_Drip(); $add_on->plugins_loaded(); $this->_add_on_instance = $add_on->get_addon_object(); } return $this->_add_on_instance; } } Gravity_Flow_Steps::register( new Gravity_Flow_Step_Feed_Drip() );