Esempio n. 1
0
?>
	<?php 
if ($next = ThemexCourse::getAdjacentLesson(ThemexLesson::$data['ID'])) {
    ?>
	<a href="<?php 
    echo get_permalink($next->ID);
    ?>
" 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'])) {