ASTRA_Ext_LearnDash_Markup::astra_header_learndash( string $profile_link = '' )
Add LearnDash icon markup
Description
Parameters
- $profile_link
-
(string) (Optional) Profile Link.
Default value: ''
Return
(void)
Source
File: addons/learndash/classes/class-astra-ext-learndash-markup.php
public static function astra_header_learndash( $profile_link = '' ) {
if ( is_user_logged_in() ) :
?>
<div class="ast-masthead-custom-menu-items learndash-custom-menu-item">
<div class="main-header-log-out">
<?php if ( ! empty( $profile_link ) ) : ?>
<a class="learndash-profile-link" href="<?php echo empty( $profile_link ) ? '#' : esc_url( $profile_link ); ?>">
<?php else : ?>
<span class="learndash-profile-link">
<?php endif; ?>
<?php echo get_avatar( get_current_user_id(), 45 ); ?>
<?php if ( ! empty( $profile_link ) ) : ?>
</a>
<?php else : ?>
</span>
<?php endif; ?>
</div>
</div>
<?php
endif;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |