'dashboard',
'title' => __( 'Tools Dashboard', 'woocommerce-jetpack' ),
),
) );
$html = '
';
$active_tab = ( isset( $_GET['tab'] ) ) ? $_GET['tab'] : 'dashboard';
foreach ( $tabs as $tab ) {
$is_active = ( $active_tab === $tab['id'] ) ? 'nav-tab-active' : '';
$html .= '' . $tab['title'] . '';
}
$html .= '
';
echo $html;
// Content
if ( 'dashboard' === $active_tab ) {
$title = __( 'Booster for WooCommerce Tools - Dashboard', 'woocommerce-jetpack' );
$desc = __( 'This dashboard lets you check statuses and short descriptions of all available Booster for WooCommerce tools. Tools can be enabled through WooCommerce > Settings > Booster. Enabled tools will appear in the tabs menu above.', 'woocommerce-jetpack' );
echo '' . $title . '
';
echo '' . $desc . '
';
echo '';
echo '';
echo '| ' . __( 'Tool', 'woocommerce-jetpack' ) . ' | ';
echo '' . __( 'Module', 'woocommerce-jetpack' ) . ' | ';
echo '' . __( 'Description', 'woocommerce-jetpack' ) . ' | ';
echo '' . __( 'Status', 'woocommerce-jetpack' ) . ' | ';
echo '
';
do_action( 'wcj_tools_' . 'dashboard' );
echo '
';
} else {
do_action( 'wcj_tools_' . $active_tab );
}
}
}
endif;
return new WCJ_Tools();