Property | Type | Description | |
---|---|---|---|
$banner_renderer | WPSEO_Admin_Banner_Renderer | ||
$banner_spots | WPSEO_Admin_Banner_Spot[] | ||
$title | string |
Method | Description | |
---|---|---|
__construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer ) | WPSEO_Admin_Banner_Sidebar constructor. | |
get_banner_spots ( ) : WPSEO_Admin_Banner_Spot[] | Returns array with bannerspots. | |
get_title ( ) : string | Returns the set title. | |
initialize ( WPSEO_Features $features ) | Initializes the banner sidebar by setting its banner spots. |
Method | Description | |
---|---|---|
add_banner_spot ( WPSEO_Admin_Banner_Spot $spot ) | Adds a banner spot. | |
get_active_extensions ( ) : array | Returns an array with the Yoast SEO extensions with the value true when they are active. | |
get_courses_spot ( ) : WPSEO_Admin_Banner_Spot | Returns the courses banner spot. | |
get_extensions_spot ( array $active_extensions ) : WPSEO_Admin_Banner_Spot | Returns the extensions banner spot. | |
get_premium_spot ( ) : WPSEO_Admin_Banner_Spot | Returns the premium banner spot. | |
get_remove_banner_spot ( ) : WPSEO_Admin_Banner_Spot | Returns the remove banner spot. | |
get_services_spot ( ) : WPSEO_Admin_Banner_Spot | Returns the services banner spot. |
public __construct ( string $title, WPSEO_Admin_Banner_Renderer $banner_renderer ) | ||
$title | string | The title for the sidebar. |
$banner_renderer | WPSEO_Admin_Banner_Renderer | The render class for banners. |
protected add_banner_spot ( WPSEO_Admin_Banner_Spot $spot ) | ||
$spot | WPSEO_Admin_Banner_Spot | The spot to add. |
protected get_active_extensions ( ) : array | ||
return | array |
public get_banner_spots ( ) : WPSEO_Admin_Banner_Spot[] | ||
return | WPSEO_Admin_Banner_Spot[] |
protected get_courses_spot ( ) : WPSEO_Admin_Banner_Spot | ||
return | WPSEO_Admin_Banner_Spot |
protected get_extensions_spot ( array $active_extensions ) : WPSEO_Admin_Banner_Spot | ||
$active_extensions | array | The active extensions. |
return | WPSEO_Admin_Banner_Spot |
protected get_remove_banner_spot ( ) : WPSEO_Admin_Banner_Spot | ||
return | WPSEO_Admin_Banner_Spot |
protected get_services_spot ( ) : WPSEO_Admin_Banner_Spot | ||
return | WPSEO_Admin_Banner_Spot |
public initialize ( WPSEO_Features $features ) | ||
$features | WPSEO_Features | Class regarding WPSEO Features. |
protected WPSEO_Admin_Banner_Renderer $banner_renderer | ||
return | WPSEO_Admin_Banner_Renderer |
protected WPSEO_Admin_Banner_Spot[] $banner_spots | ||
return | WPSEO_Admin_Banner_Spot[] |