<ul> <?php while ($query->have_posts()) { ?> <?php $query->the_post(); $video = ThemexCore::getPostMeta($post->ID, 'slide_video'); $link = ThemexCore::getPostMeta($post->ID, 'slide_link'); ?> <li> <?php if (!empty($video)) { ?> <div class="embedded-video"> <?php echo themex_html($video); ?> </div> <?php } else { ?> <?php if (!empty($link)) { ?> <a href="<?php echo $link; ?> "><?php the_post_thumbnail('large'); ?> </a>
" title="<?php _e('Next Lesson', 'academy'); ?> " class="element-button next-lesson secondary"><span class="button-icon nomargin next"></span></a> <?php } ?> <?php if ($prev = ThemexCourse::getAdjacentLesson(ThemexLesson::$data['ID'], false)) { ?> <a href="<?php echo get_permalink($prev->ID); ?> " title="<?php _e('Previous Lesson', 'academy'); ?> " class="element-button prev-lesson secondary"><span class="button-icon nomargin prev"></span></a> <?php } ?> </div> <?php echo do_shortcode(themex_html(ThemexLesson::$data['sidebar'])); if (!empty(ThemexLesson::$data['attachments'])) { get_template_part('module', 'attachments'); } if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('lesson')) { } if (!empty(ThemexCourse::$data['lessons'])) { get_template_part('module', 'lessons'); }
_e('Description', 'academy'); ?> </h4> </div> <div class="widget-content"> <?php the_content(); ?> <footer class="course-footer"> <?php get_template_part('module', 'form'); ?> </footer> </div> </div> </div> <?php if (ThemexCourse::hasMembers() || is_active_sidebar('course') || !empty(ThemexCourse::$data['sidebar'])) { ?> <aside class="sidebar threecol column last"> <?php echo do_shortcode(themex_html(ThemexCourse::$data['sidebar'])); if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('course')) { } if (ThemexCourse::hasMembers()) { get_template_part('module', 'users'); } ?> </aside> <?php }
<!-- /login options --> <div class="search-form right"> <?php get_search_form(); ?> </div> <!-- /search form --> <?php if ($code = ThemexCore::getOption('sharing')) { ?> <div class="button-wrap share-button tooltip right"> <a href="#" class="element-button dark"><span class="button-icon plus nomargin"></span></a> <div class="tooltip-wrap"> <div class="corner"></div> <div class="tooltip-text"><?php echo themex_html($code); ?> </div> </div> </div> <!-- /share button --> <?php } ?> </div> <!-- /header options --> <div class="mobile-search-form"> <?php get_search_form(); ?> </div>