post_type; $aelms_allowed_post_type = [ acadlix()->cpt()->course()->get_post_type(), ]; if (acadlix()->helper()->is_course_bundle_addon_active()) { $aelms_allowed_post_type[] = acadlix()->cpt()->course_bundle()->get_post_type(); } $type = 'course'; $aelms_users = $post->post_author > 0 ? get_userdata($post->post_author) : 0; if (in_array($post_type, $aelms_allowed_post_type)) { if ($post_type == acadlix()->cpt()->course()->get_post_type()) { $aelms_item = acadlix()->model()->course()->ofCourse()->find($post->ID); $type = 'course'; } else if ($post_type == acadlix()->cpt()->course_bundle()->get_post_type()) { $aelms_item = acadlix()->model()->courseBundle()->ofCourseBundle()->find($post->ID); $type = 'course-bundle'; } if (count($aelms_item->users) > 0) { $aelms_users = $aelms_item->users; } } $aelms_title = $settings['course_author_title']; $aelms_display_title = $settings['course_author_display_check']; $aelms_target = $settings['course_author_link'] === 'new_window' ? 'target="_blank"' : ''; ?>