Add the following code in wplms-customizer plugin->customizer_class.php
- Add the following code in _construct().
remove_action('wplms_event_after_content','wplms_unit_assignments',1,2); remove_action('wplms_after_every_unit','wplms_unit_assignments',1,2); add_action('wplms_event_after_content',array($this,'wplms_unit_assignments'),1,2); add_action('wplms_after_every_unit',array($this,'wplms_unit_assignments'),1,2);
2.Add the following code in WPLMS_Customizer_Plugin_Class.
function wplms_unit_assignments($unit_id){ $assignment_ids = get_post_meta($unit_id,'vibe_assignment',false); if(is_Array($assignment_ids) && is_array($assignment_ids[0])) $assignment_ids = vibe_sanitize($assignment_ids); $assignment_duration_parameter = apply_filters('vibe_assignment_duration_parameter',86400); ; if(isset($assignment_ids) && is_array($assignment_ids)) foreach($assignment_ids as $assignment_id){ if(is_numeric($assignment_id)){ $marks = get_post_meta($assignment_id,'vibe_assignment_marks',true); $duration = get_post_meta($assignment_id,'vibe_assignment_duration',true); echo '<h3 class="assignment_heading heading">'.__('ASSIGNMENT : ','wplms-assignments').' <strong><a href="'.get_permalink($assignment_id).'">'.get_the_title($assignment_id).'<i class="icon-in-alt"></i></a></strong> <span>'.__('MARKS : ','wplms-assignments').$marks.'</span> <span>'.__('DURATION : ','wplms-assignments').(function_exists('tofriendlytime')?tofriendlytime($duration*$assignment_duration_parameter):$duration.__(' days','wplms-assignments')).'</span> </h3>'; } } }