Abstract_Plugin_Promo

Abstract class to handle the plugin promo sidebar used in most Barn2 plugins.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

version
1.0

Table of Contents

$plugin  : Plugin
The plugin object.
$promo_content  : string
The content of the plugin promo.
__construct()  : mixed
Constructor.
load_styles()  : void
Load the plugin promo stylesheet.
get_promo_content()  : string
Retrieve the plugin promo content from the API.
get_promo_sidebar()  : string
Retrieve the complete promo sidebar to insert into the settings page.

Properties

Methods

load_styles()

Load the plugin promo stylesheet.

public load_styles() : void
Return values
void

get_promo_content()

Retrieve the plugin promo content from the API.

protected get_promo_content() : string
Return values
string

The promo sidebar content.

get_promo_sidebar()

Retrieve the complete promo sidebar to insert into the settings page.

protected get_promo_sidebar() : string
Return values
string

The promo sidebar.

Search results