[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.147.81.172: ~ $
<?php
/**
 * Template for displaying user profile tabs.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/profile/tabs.php.
 *
 * @author   ThimPress
 * @package  Learnpress/Templates
 * @version  3.0.0
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit();

$profile = LP_Profile::instance();
$profile_id = $profile->get_user()->get_id();
$tabs = $profile->get_tabs()->tabs();

if (!user_can($profile_id, 'edit_lp_courses')) {
	unset($tabs['instructor']);
}


?>

<?php do_action( 'learn-press/before-profile-nav', $profile ); ?>

	<ul class="nav nav-tabs" role="tablist">

		<?php
		foreach ( $tabs as $tab_key => $tab_data ) {

			if ( $tab_data->is_hidden() || ! $tab_data->user_can_view() ) {
				continue;
			}

			$slug        = $profile->get_slug( $tab_data, $tab_key );
			$link        = $profile->get_tab_link( $tab_key, true );

			// Rewrite url if use WPML in profile page
			if ( function_exists('icl_object_id') ) {
				$link = apply_filters( 'wpml_permalink', $link , ICL_LANGUAGE_CODE );
			}

			$tab_classes = array( esc_attr( $tab_key ) );

			if ( $profile->is_current_tab( $tab_key ) ) {
				$tab_classes[] = 'active';
			}
			?>

			<li class="<?php echo join( ' ', $tab_classes ) ?>">
				<!--tabs-->
				<a href="<?php echo esc_url( $link ); ?>" data-slug="<?php echo esc_attr( $link ); ?>">
					<?php echo apply_filters( 'learn_press_profile_' . $tab_key . '_tab_title', esc_html( $tab_data['title'] ), $tab_key ); ?>
				</a>

			</li>
		<?php } ?>

	</ul>

<?php do_action( 'learn-press/after-profile-nav', $profile ); ?>

Filemanager

Name Type Size Permission Actions
tabs Folder 0755
content.php File 1.65 KB 0644
not-logged-in.php File 582 B 0644
profile-cover.php File 2.59 KB 0644
profile.php File 1.1 KB 0644
tabs.php File 1.57 KB 0644