PHP Class WPSEO_Admin_Banner_Sidebar, wordpress-seo

Afficher le fichier Open project: yoast/wordpress-seo Class Usage Examples

Protected Properties

Свойство Type Description
$banner_renderer WPSEO_Admin_Banner_Renderer
$banner_spots WPSEO_Admin_Banner_Spot[]
$title string

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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.

Method Details

__construct() public méthode

WPSEO_Admin_Banner_Sidebar constructor.
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.

add_banner_spot() protected méthode

Adds a banner spot.
protected add_banner_spot ( WPSEO_Admin_Banner_Spot $spot )
$spot WPSEO_Admin_Banner_Spot The spot to add.

get_active_extensions() protected méthode

Returns an array with the Yoast SEO extensions with the value true when they are active.
protected get_active_extensions ( ) : array
Résultat array

get_banner_spots() public méthode

Returns array with bannerspots.
public get_banner_spots ( ) : WPSEO_Admin_Banner_Spot[]
Résultat WPSEO_Admin_Banner_Spot[]

get_courses_spot() protected méthode

Returns the courses banner spot.
protected get_courses_spot ( ) : WPSEO_Admin_Banner_Spot
Résultat WPSEO_Admin_Banner_Spot

get_extensions_spot() protected méthode

Returns the extensions banner spot.
protected get_extensions_spot ( array $active_extensions ) : WPSEO_Admin_Banner_Spot
$active_extensions array The active extensions.
Résultat WPSEO_Admin_Banner_Spot

get_premium_spot() protected méthode

Returns the premium banner spot.
protected get_premium_spot ( ) : WPSEO_Admin_Banner_Spot
Résultat WPSEO_Admin_Banner_Spot

get_remove_banner_spot() protected méthode

Returns the remove banner spot.
protected get_remove_banner_spot ( ) : WPSEO_Admin_Banner_Spot
Résultat WPSEO_Admin_Banner_Spot

get_services_spot() protected méthode

Returns the services banner spot.
protected get_services_spot ( ) : WPSEO_Admin_Banner_Spot
Résultat WPSEO_Admin_Banner_Spot

get_title() public méthode

Returns the set title.
public get_title ( ) : string
Résultat string

initialize() public méthode

Initializes the banner sidebar by setting its banner spots.
public initialize ( WPSEO_Features $features )
$features WPSEO_Features Class regarding WPSEO Features.

Property Details

$banner_renderer protected_oe property

protected WPSEO_Admin_Banner_Renderer $banner_renderer
Résultat WPSEO_Admin_Banner_Renderer

$banner_spots protected_oe property

protected WPSEO_Admin_Banner_Spot[] $banner_spots
Résultat WPSEO_Admin_Banner_Spot[]

$title protected_oe property

protected string $title
Résultat string