/** * */ function training_wpo_get_course_lessons_index($course_id) { $id = get_the_ID(); $api = IB_Educator::get_instance(); $lessons_query = $api->get_lessons($course_id); $number = 0; if ($lessons_query && $lessons_query->have_posts()) { while ($lessons_query->have_posts()) { $number++; $lessons_query->the_post(); $student_can_study = ib_edu_student_can_study(get_the_ID()); $options = get_post_meta(get_the_ID(), 'wpo_postconfig_other', true); ?> <div class="lesson<?php if (get_the_ID() == $id) { ?> active<?php } ?> "> <span class="number"><?php echo esc_attr($number); ?> </span> <span class="lesson-icon"><i class="<?php echo training_wpo_related_post(); ?> "></i></span> <a class="title" href="<?php the_permalink(); ?> "><?php the_title(); ?> <?php if ($student_can_study) { ?> <i class="zmdi zmdi-check"></i> <?php } else { ?> <span class="zmdi zmdi-lock-outline"></span> <?php } ?> <div class="clearfix"></div> <?php if (isset($options['duration']) && $options['duration']) { ?> <span class="duration"><?php echo esc_attr($options['duration']); ?> </span> <?php } ?> </a> </div> <?php } wp_reset_postdata(); } }
wp_link_pages(); ?> </div> <?php if (training_wpo_theme_options('show-share-portfolio', true)) { ?> <div class="post-share"> <div class="row"> <div class="col-sm-12"> <div class="pull-left"> <?php training_wpo_share_box(); ?> </div> </div> </div> </div> <?php } ?> <?php if (training_wpo_theme_options('show-related-portfolio')) { $relate_count = training_wpo_theme_options('portfolio-items-show', 4); training_wpo_related_post($relate_count, 'portfolio', 'category_portfolio'); } ?> </div> </article> </div> </div>
<?php /** * $Desc * * @version $Id$ * @package wpbase * @author WPOpal Team <wpopal@gmail.com, support@wpopal.com> * @copyright Copyright (C) 2015 wpopal.com. All Rights Reserved. * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * * @website http://www.wpopal.com * @support http://www.wpopal.com/support/forum.html */ $postformat = get_post_format(); $icon = training_wpo_related_post(); $class = 'post-default post-classic-fullwidth'; if (is_single()) { $class .= ' post-single'; } else { $class .= ' not-post-single'; } ?> <article id="post-<?php the_ID(); ?> " <?php post_class($class); ?> > <?php
the_title(); ?> <?php if ($student_can_study) { ?> <i class="zmdi zmdi-check"></i> <?php } else { ?> <i class="zmdi zmdi-lock-outline"></i> <?php } ?> <span class="lesson-icon"><i class="<?php echo training_wpo_related_post(); ?> "></i></span> </a> </div> <?php if (isset($options['duration']) && $options['duration']) { ?> <span class="duration"><?php esc_html_e('Duration: ', 'training'); ?> <?php echo esc_attr($options['duration']); ?> </span> <?php