<aside class="fivecol column last"> <?php $courses = ThemexCourse::getCourses(ThemexUser::$data['active_user']['ID']); $plan = ThemexCourse::getPlan(ThemexUser::$data['active_user']['ID']); if (ThemexUser::isProfile() && !empty($plan)) { ?> <h2 class="secondary"> <?php if ($plan['period'] == 0) { printf(__('"%s" subscription is active.', 'academy'), '<a href="' . $plan['url'] . '">' . get_the_title($plan['ID']) . '</a>'); } else { printf(__('"%s" subscription expires in %s.', 'academy'), '<a href="' . $plan['url'] . '">' . get_the_title($plan['ID']) . '</a>', themex_time($plan['time'])); } ?> </h2> <?php } ?> <?php if (empty($courses)) { ?> <h2 class="secondary"><?php _e('No courses yet.', 'academy'); ?> </h2> <?php } else { ?> <div class="user-courses-listing"> <?php foreach ($courses as $ID) {
</div> <?php if (ThemexForm::isActive('profile')) { ?> <table class="user-fields"> <?php ThemexForm::renderData('profile', array('edit' => false, 'before_title' => '<tr><th>', 'after_title' => '</th>', 'before_content' => '<td>', 'after_content' => '</td></tr>'), ThemexUser::$data['active_user']['profile']); ?> </table> <?php } ?> <?php echo ThemexUser::$data['active_user']['profile']['description']; ?> </div> <?php } ?> <?php if (!ThemexCore::checkOption('profile_courses') || ThemexUser::isProfile()) { ?> <?php get_sidebar('profile-right'); ?> <?php } ?> </div> <?php get_footer();
<aside class="column threecol"> <?php if (!ThemexUser::isProfile()) { ?> <div class="profile-preview sidebar-widget"> <div class="profile-image"> <div class="image-wrap"> <?php echo get_avatar(ThemexUser::$data['active']['ID'], 200); ?> </div> </div> <?php if (!empty(ThemexUser::$data['active']['profile']['location']) && !ThemexCore::checkOption('profile_location') || !ThemexCore::checkOption('profile_date')) { ?> <footer class="profile-footer"> <div class="shop-attributes"> <ul> <?php if (!empty(ThemexUser::$data['active']['profile']['location']) && !ThemexCore::checkOption('profile_location')) { ?> <li> <span class="fa fa-map-marker"></span> <span><?php echo ThemexUser::$data['active']['profile']['location']; ?> </span> </li> <?php }
<aside class="column fourcol last"> <?php ThemexShop::refresh(ThemexUser::$data['active']['shop'], true); if (!ThemexCore::checkOption('shop_multiple') && ThemexShop::$data['status'] == 'publish') { get_template_part('module', 'shop'); } if (!empty(ThemexShop::$data['reviews'])) { get_template_part('module', 'reviews'); } if (!ThemexCore::checkOption('product_favorites')) { get_template_part('module', 'favorites'); } if (ThemexUser::isProfile() && !ThemexCore::checkOption('shop_favorites')) { get_template_part('module', 'updates'); } if (!ThemexCore::checkOption('shop_multiple') && ThemexShop::$data['status'] != 'publish') { get_template_part('module', 'shop'); } ThemexSidebar::renderSidebar('profile'); ?> </aside>