HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpmuhibbah_err/wp-content/plugins/envato-market/inc/admin/view/partials/tabs.php
<?php
/**
 * Tabs partial
 *
 * @package Envato_Market
 * @since 1.0.0
 */

$tab     = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : '';
$themes  = envato_market()->items()->themes( 'purchased' );
$plugins = envato_market()->items()->plugins( 'purchased' );

?>
<h2 class="nav-tab-wrapper">
	<?php
	// Themes tab.
	$theme_class = array();
	if ( ! empty( $themes ) ) {
		if ( empty( $tab ) ) {
			$tab = 'themes';
		}
		if ( 'themes' === $tab ) {
			$theme_class[] = 'nav-tab-active';
		}
	} else {
		$theme_class[] = 'hidden';
	}
	echo '<a href="#themes" data-id="theme" class="nav-tab ' . esc_attr( implode( ' ', $theme_class ) ) . '">' . esc_html__( 'Themes', 'envato-market' ) . '</a>';

	// Plugins tab.
	$plugin_class = array();
	if ( ! empty( $plugins ) ) {
		if ( empty( $tab ) ) {
			$tab = 'plugins';
		}
		if ( 'plugins' === $tab ) {
			$plugin_class[] = 'nav-tab-active';
		}
	} else {
		$plugin_class[] = 'hidden';
	}
	echo '<a href="#plugins" data-id="plugin" class="nav-tab ' . esc_attr( implode( ' ', $plugin_class ) ) . '">' . esc_html__( 'Plugins', 'envato-market' ) . '</a>';

	// Settings tab.
	echo '<a href="#settings" class="nav-tab ' . esc_attr( 'settings' === $tab || empty( $tab ) ? 'nav-tab-active' : '' ) . '">' . esc_html__( 'Settings', 'envato-market' ) . '</a>';

	// Help tab.
	echo '<a href="#help" class="nav-tab ' . esc_attr( 'help' === $tab ? 'nav-tab-active' : '' ) . '">' . esc_html__( 'Help', 'envato-market' ) . '</a>';
	?>
</h2>