<?php
/**
 * Performance reports meta box header.
 *
 * @package Hummingbird
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

?>

<h3  class="sui-box-title">
	<?php echo esc_html( $title ); ?>
	<?php if ( ! \Hummingbird\Core\Utils::is_member() ) : ?>
		<span class="sui-tag sui-tag-pro"><?php esc_html_e( 'Pro', 'wphb' ); ?></span>
	<?php endif; ?>
</h3>

<?php if ( ! \Hummingbird\Core\Utils::is_member() ) : ?>
	<div class="sui-actions-right">
		<?php $link = \Hummingbird\Core\Utils::get_link( 'plugin', 'hummingbird_test_upgrade_button' ); ?>
		<a class="sui-button sui-button-purple" href="<?php echo esc_url( $link ); ?>" target="_blank">
			<?php esc_html_e( 'Upgrade to Pro', 'wphb' ); ?>
		</a>
	</div>
<?php endif; ?>