post_id, 'perception_unenroll', true); $class = ('alternate' == @$class) ? '' : 'alternate';?>
post_title?> post_excerpt)): echo apply_filters('perception_content', stripslashes($course->post_excerpt)); endif;?> status) or $course->status == 'pending'): _e('Enroll to get access to the lessons', 'perception'); else: ?> status)): // not enrolled // Konniciwa integration: can't enroll if the content is protected $can_enroll = true; if(!$is_manager): $can_enroll = PSPerceptionLMSCourseModel :: konnichiwa_access($course->post_id); endif; if($can_enroll): echo $_course->enroll_buttons($course, $is_manager); else: _e('No access', 'perception'); endif; else: // enrolled if($course->status == 'pending'): _e('Pending enrollment', 'perception'); endif; if($course->status == 'rejected'): _e('Application rejected', 'perception'); endif; if($course->status == 'frozen'): _e('Frozen / no access', 'perception'); endif; if($course->status == 'enrolled'): printf(__('Enrolled on %s', 'perception'), date_i18n(get_option('date_format'), strtotime($course->enrollment_date))); if($unenroll_allowed):?>

post_id, $user_ID); endif; if($course->status == 'completed'): printf(__('Completed on %s', 'perception'), date_i18n(get_option('date_format'), strtotime($course->completion_date))); endif; endif;?>