post_type === 'salyut_lead' ||
strpos( $screen->id, 'salyut' ) !== false
);
if ( ! $is_plugin_screen ) {
return;
}
salyut_agents_render_admin_header();
}
/**
* Output the header markup.
*
* Public so pages can call it if they need it outside admin_notices
* (e.g. inside a
for layout reasons — rare).
*/
function salyut_agents_render_admin_header(): void {
$logo = plugins_url( 'assets/images/salyut-agents-logo.webp', SALYUT_AGENTS_PLUGIN_FILE );
$version = get_file_data( SALYUT_AGENTS_PLUGIN_FILE, [ 'Version' => 'Version' ] )['Version'] ?? '';
$display_name = salyut_agents_display_name();
/**
* Filters the tagline shown under the product name in the admin header.
*
* @param string $tagline The tagline. Default: the plugin's own translated tagline.
*/
$tagline = (string) apply_filters( 'salyut_agents_admin_tagline', __( 'Your AI lead-capture team.', 'salyut-agents' ) );
?>