<?php setup_postdata($response); ?> <div id="courseware-course"> <div class="course-meta courseware-sidebar"> <h4 class="meta"><?php _e('Response Meta', 'bpsp'); ?> </h4> <ul class="courseware-meta"> <li class="date"> <?php printf(__('Date: %1$s', 'bpsp'), bpsp_get_date($response->post_date)); ?> </li> <li class="author"> <?php printf(__('Author: %1$s', 'bpsp'), bp_core_get_userlink($response->post_author)); ?> </li> <li class="assignment-link"> <a href="<?php echo $assignment_permalink; ?> " class="action"><?php _e('Assignment page', 'bpsp'); ?> </a> </li> <?php
<?php } else { foreach ($assignments as $assignment) { ?> <tr> <td> <a href="<?php echo $assignments_hanlder_uri . $assignment->post_name; ?> "><?php echo get_the_title($assignment->ID); ?> </a> <div class="assignment-meta"> <?php printf(__('added on %1$s by %2$s.', 'bpsp'), bpsp_get_date($assignment->post_date), bp_core_get_userlink($assignment->post_author)); ?> </div> </td> <td> <?php if (!empty($assignment->form_data)) { _e('Quiz', 'bpsp'); } else { _e('Task', 'bpsp'); } ?> </td> <td> <?php echo count($assignment->responded_author);
<!-- Ponintless--li class="date"> <?php printf(__('Date: %1$s', 'bpsp'), bpsp_get_date($schedule->post_date)); ?> </li--> <li id="schedule-startdate"> <?php printf(__('Start Date: %1$s', 'bpsp'), bpsp_get_date($schedule->start_date)); ?> </li> <?php if (!empty($schedule->end_date)) { ?> <li id="schedule-enddate"> <?php printf(__('End Date: %1$s', 'bpsp'), bpsp_get_date($schedule->end_date)); ?> </li> <?php } ?> <?php if ($schedule->location) { ?> <li id="schedule-location"> <?php printf(__('Location: %1$s', 'bpsp'), $schedule->location); ?> </li> <?php }
<?php setup_postdata($course); ?> <div id="courseware-course"> <div id="course-meta" class="courseware-sidebar"> <h4 class="meta"><?php _e('Course Info', 'bpsp'); ?> </h4> <ul class="courseware-meta"> <li class="date"> <?php printf(__('Date: %1$s', 'bpsp'), bpsp_get_date($course->post_date)); ?> </li> <li class="author"> <?php printf(__('Author: %1$s', 'bpsp'), bp_core_get_userlink($course->post_author)); ?> </li> <li class="show-bibs"> <a href="#courseware-bibs-list" class="action"><?php _e('Bibliography', 'bpsp'); ?> </a> </li> <?php if ($show_edit) { ?> <li class="add bib">
<?php setup_postdata($course); ?> <div id="courseware-course-header"> <div class="course-content"> <div id="course-body"> <?php the_excerpt(); ?> </div> </div> <div class="course-meta"> <?php printf(__('Course started on %1$s by %2$s.', 'bpsp'), bpsp_get_date($course->post_date), bp_core_get_userlink($course->post_author)); ?> </div> </div>
?> <strong> <?php echo $user_grade['pub_comment']; ?> </strong> </li> <?php } ?> <?php } ?> <li class="date"> <?php printf(__('Date: %1$s', 'bpsp'), bpsp_get_date($assignment->post_date)); ?> </li> <li class="author"> <?php printf(__('Author: %1$s', 'bpsp'), bp_core_get_userlink($assignment->post_author)); ?> </li> <li class="parent-lecture"> <?php if (isset($assignment->lecture)) { printf(__('Lecture: %1$s', 'bpsp'), '<a href="' . $assignment->lecture->permalink . '" >' . $assignment->lecture->post_title . '</a>'); } ?> </li> <?php
foreach ($a->responses as $r) { $no_responses = false; $count--; ?> <li> <a href="<?php echo $a->permalink . '/response/' . $r->ID; ?> "> <?php echo get_the_title($r->ID); ?> </a> <span class="alignright meta"> <?php printf(__('By %s, on %s', 'bpsp'), bp_core_get_userlink($r->post_author), bpsp_get_date($r->post_date)); ?> </span> </li> <?php } } } } ?> <?php if ($no_responses) { ?> <li><?php _e('No responses yet.', 'bpsp'); ?>
<?php setup_postdata($lecture); ?> <div id="courseware-lecture"> <div id="course-meta" class="courseware-sidebar"> <h4 class="meta lectures"><span class="icon"></span><?php _e('Lecture Meta', 'bpsp'); ?> </h4> <ul class="courseware-meta"> <li class="date"> <?php printf(__('Date: %1$s', 'bpsp'), bpsp_get_date($lecture->post_date)); ?> </li> <li class="author"> <?php printf(__('Author: %1$s', 'bpsp'), bp_core_get_userlink($lecture->post_author)); ?> </li> <?php if ($next) { ?> <li class="next"> <a href="<?php echo $next->permalink; ?> " class="action"><?php echo get_the_title($next->ID); ?>
/** * bpsp_date( $date ) * * Outputs a formated date+time string using NXTClass settings * @uses bpsp_get_date() */ function bpsp_date($date) { echo bpsp_get_date($date); }