2017-05-30 16:46:26 +00:00
|
|
|
<?php defined( 'ABSPATH' ) or exit(); ?>
|
|
|
|
|
|
|
|
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
|
|
|
|
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons' ) ); ?>" class="nav-tab"><?php _e( 'Browse Extensions', 'woocommerce' ); ?></a>
|
2017-08-28 07:01:01 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
$count = WC_Helper_Updater::get_updates_count();
|
2017-08-29 09:52:57 +00:00
|
|
|
$count_html = sprintf( '<span class="update-plugins count-%d"><span class="update-count">%d</span></span>', $count, number_format_i18n( $count ) );
|
2017-08-28 07:32:51 +00:00
|
|
|
if ( ! $count ) {
|
|
|
|
$count_html = '';
|
|
|
|
}
|
|
|
|
|
2017-08-28 07:01:01 +00:00
|
|
|
$menu_title = sprintf( __( 'WooCommerce.com Subscriptions %s', 'woocommerce' ), $count_html );
|
|
|
|
?>
|
|
|
|
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons§ion=helper' ) ); ?>" class="nav-tab nav-tab-active"><?php echo $menu_title; ?></a>
|
2017-05-30 16:46:26 +00:00
|
|
|
</nav>
|