';
$external_icon = '';
$bar->add_menu( array(
'id' => 'hostinger_admin_bar',
'parent' => null,
'group' => null,
'title' => $hostinger_icon . esc_html__( 'Hostinger', 'hostinger' ),
) );
$bar->add_menu( array(
'id' => 'website_list',
'parent' => 'hostinger_admin_bar',
'title' => esc_html__( 'Website list', 'hostinger' ) . $external_icon,
'href' => self::WEBSITE_LIST_URL,
'meta' => array(
'target' => '_blank',
),
) );
$bar->add_menu( array(
'id' => 'billings',
'parent' => 'hostinger_admin_bar',
'title' => esc_html__( 'Billings', 'hostinger' ) . $external_icon,
'href' => self::WEBSITE_BILLINGS_URL,
'meta' => array(
'target' => '_blank',
),
) );
if ( has_action( 'hostinger_ai_assistant_tab_view' ) && current_user_can( 'edit_posts' ) ) {
$bar->add_menu( array(
'id' => 'create_content_with_ai',
'parent' => 'hostinger_admin_bar',
'title' => esc_html__( 'Create content with AI', 'hostinger' ),
'href' => self::AI_ASSISTANT_URL,
) );
}
}
public function render(): void {
$onboarding = new Onboarding();
include_once __DIR__ . '/Views/Onboarding.php';
}
}