Astra_Menu::get_starter_template_plugin_data()
Get Starter Templates plugin data.
Description
Return
(array)
Source
File: admin/includes/class-astra-menu.php
public static function get_starter_template_plugin_data() {
/** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
$st_data = array(
'title' => is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ? Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-sites', 'name', __( 'Starter Templates', 'astra' ) ) : __( 'Starter Templates', 'astra' ),
'description' => is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ? Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-sites', 'description', __( 'Create professional designed pixel perfect websites in minutes. Get access to 280+ pre-made full website templates for your favorite page builder.', 'astra' ) ) : __( 'Create professional designed pixel perfect websites in minutes. Get access to 280+ pre-made full website templates for your favorite page builder.', 'astra' ),
'is_available' => defined( 'ASTRA_PRO_SITES_VER' ) || defined( 'ASTRA_SITES_VER' ) ? true : false,
'redirection' => admin_url( 'themes.php?page=starter-templates' ),
);
/** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
$skip_free_version = false;
$pro_plugin_status = self::get_plugin_status( 'astra-pro-sites/astra-pro-sites.php' );
if ( 'installed' === $pro_plugin_status || 'activated' === $pro_plugin_status ) {
$skip_free_version = true;
$st_data['slug'] = 'astra-pro-sites';
$st_data['status'] = $pro_plugin_status;
$st_data['path'] = 'astra-pro-sites/astra-pro-sites.php';
}
$free_plugin_status = self::get_plugin_status( 'astra-sites/astra-sites.php' );
if ( ! $skip_free_version ) {
$st_data['slug'] = 'astra-sites';
$st_data['status'] = $free_plugin_status;
$st_data['path'] = 'astra-sites/astra-sites.php';
}
return $st_data;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |