Website/wp-content/plugins/ultimate-member/templates/profile.php
2015-12-03 19:57:30 -05:00

34 lines
957 B
PHP

<div class="um <?php echo $this->get_class( $mode ); ?> um-<?php echo $form_id; ?>">
<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>