quiz
7 years ago
announcements-metabox.php
7 years ago
course-add-edd-product-metabox.php
7 years ago
course-add-product-metabox.php
7 years ago
course-additional-data.php
7 years ago
course-attachments-metabox.php
7 years ago
course-contents.php
7 years ago
course-topics.php
7 years ago
instructors-metabox.php
7 years ago
lesson-attachments-metabox.php
7 years ago
lesson-metabox.php
7 years ago
quiz_questions.php
7 years ago
quizzes.php
7 years ago
user-profile-fields.php
7 years ago
video-metabox.php
7 years ago
course-attachments-metabox.php
23 lines
| 1 | <div class="tutor-lesson-attachments-metabox"> |
| 2 | |
| 3 | <div class="tutor-added-attachments-wrap"> |
| 4 | <?php |
| 5 | $attachments = tutor_utils()->get_attachments(); |
| 6 | if ( is_array($attachments) && count($attachments)) { |
| 7 | foreach ( $attachments as $attachment ) { |
| 8 | ?> |
| 9 | <div class="tutor-added-attachment"> |
| 10 | <p><a href="javascript:;" class="tutor-delete-attachment">×</a> |
| 11 | <span> |
| 12 | <a href="<?php echo $attachment->url; ?>"><?php echo $attachment->name; ?></a> |
| 13 | </span> |
| 14 | </p> |
| 15 | <input type="hidden" name="tutor_attachments[]" value="<?php echo $attachment->id; ?>"> |
| 16 | </div> |
| 17 | <?php } |
| 18 | } |
| 19 | ?> |
| 20 | </div> |
| 21 | |
| 22 | <button type="button" class="button button-primary tutorUploadAttachmentBtn"><?php _e('Upload Attachment', 'tutor'); ?></button> |
| 23 | </div> |