mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
ae830c602b
1. sorting: I am using a custom sort criteria (role), but within each role I wanted to ensure a "controlled" sorting, at best by display name 2. add CSS class for user role to member profile 3. add CSS class for user role to member div's in in members directory 4. add link to cover picture in the members directory for easier click. 5. cover picture in format 1.6:1.
34 lines
964 B
PHP
34 lines
964 B
PHP
<div class="um <?php echo $this->get_class( $mode ); ?> um-<?php echo $form_id; ?> um-role-<?php echo um_user('role'); ?> ">
|
|
|
|
<div class="um-form">
|
|
|
|
<?php do_action('um_profile_before_header', $args ); ?>
|
|
|
|
<?php if ( um_is_on_edit_profile() ) { ?><form method="post" action=""><?php } ?>
|
|
|
|
<?php do_action('um_profile_header_cover_area', $args ); ?>
|
|
|
|
<?php do_action('um_profile_header', $args ); ?>
|
|
|
|
<?php do_action('um_profile_navbar', $args ); ?>
|
|
|
|
<?php
|
|
|
|
$nav = $ultimatemember->profile->active_tab;
|
|
$subnav = ( get_query_var('subnav') ) ? get_query_var('subnav') : 'default';
|
|
|
|
print "<div class='um-profile-body $nav $nav-$subnav'>";
|
|
|
|
// Custom hook to display tabbed content
|
|
do_action("um_profile_content_{$nav}", $args);
|
|
do_action("um_profile_content_{$nav}_{$subnav}", $args);
|
|
|
|
print "</div>";
|
|
|
|
?>
|
|
|
|
<?php if ( um_is_on_edit_profile() ) { ?></form><?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|