/** * Initializes the banner sidebar by setting its banner spots. * * @param WPSEO_Features $features Class regarding WPSEO Features. */ public function initialize(WPSEO_Features $features) { if ($features->is_free()) { $this->add_banner_spot($this->get_premium_spot()); } $this->add_banner_spot($this->get_services_spot()); $extensions_spot = $this->get_extensions_spot($this->get_active_extensions()); if ($extensions_spot->has_banners()) { $this->add_banner_spot($extensions_spot); } $this->add_banner_spot($this->get_courses_spot()); $this->add_banner_spot($this->get_remove_banner_spot()); }
/** * Returns a premium upsell section if using the free plugin. * * @return string */ protected function get_premium_upsell_section() { $features = new WPSEO_Features(); if ($features->is_free()) { /* translators: %1$s expands anchor to premium plugin page, %2$s expands to </a> */ return sprintf(__('By the way, did you know we also have a %1$sPremium plugin%2$s? It offers advanced features, like a redirect manager and support for multiple keywords. It also comes with 24/7 personal support.', 'wordpress-seo'), "<a href='https://yoa.st/premium-notification'>", '</a>'); } return ''; }