add_new_instructor.php
7 years ago
addons.php
7 years ago
answer.php
7 years ago
enable_disable_addons.php
7 years ago
get-pro.php
7 years ago
instructors.php
7 years ago
question_answer.php
7 years ago
quiz_attempts.php
7 years ago
status.php
7 years ago
students.php
7 years ago
tutor-pro-addons.php
7 years ago
uninstall.php
7 years ago
view_attempt.php
7 years ago
withdraw_requests.php
7 years ago
enable_disable_addons.php
67 lines
| 1 | <div class="wrap"> |
| 2 | <div class="tutor-addons-list"> |
| 3 | <h3 class="addon-list-heading"><?php _e('Addons List', 'tutor'); ?></h3> |
| 4 | <br class="clear"> |
| 5 | <?php |
| 6 | $addons = apply_filters('tutor_addons_lists_config', array()); |
| 7 | |
| 8 | if (is_array($addons) && count($addons)){ |
| 9 | ?> |
| 10 | <div class="wp-list-table widefat plugin-install"> |
| 11 | <div id="the-list"> |
| 12 | <?php |
| 13 | foreach ( $addons as $basName => $addon ) { |
| 14 | $addonConfig = tutor_utils()->get_addon_config($basName); |
| 15 | $isEnable = (bool) tutor_utils()->avalue_dot('is_enable', $addonConfig); |
| 16 | |
| 17 | $thumbnailURL = tutor()->url.'assets/images/tutor-plugin.png'; |
| 18 | if (file_exists($addon['path'].'assets/images/thumbnail.png') ){ |
| 19 | $thumbnailURL = $addon['url'].'assets/images/thumbnail.png'; |
| 20 | }elseif (file_exists($addon['path'].'assets/images/thumbnail.svg')){ |
| 21 | $thumbnailURL = $addon['url'].'assets/images/thumbnail.svg'; |
| 22 | } |
| 23 | |
| 24 | ?> |
| 25 | <div class="plugin-card plugin-card-akismet"> |
| 26 | <div class="plugin-card-top"> |
| 27 | <div class="name column-name"> |
| 28 | <h3> |
| 29 | <?php |
| 30 | echo $addon['name']; |
| 31 | echo "<img src='{$thumbnailURL}' class='plugin-icon' alt=''>"; |
| 32 | ?> |
| 33 | </h3> |
| 34 | </div> |
| 35 | <div class="action-links"> |
| 36 | <ul class="plugin-action-buttons"> |
| 37 | <li> |
| 38 | <label class="btn-switch"> |
| 39 | <input type="checkbox" class="tutor_addons_list_item" value="1" name="<?php echo $basName; ?>" <?php checked(true, $isEnable) ?> /> |
| 40 | <div class="btn-slider btn-round"></div> |
| 41 | </label> |
| 42 | </li> |
| 43 | </ul> |
| 44 | </div> |
| 45 | <div class="desc column-description"> |
| 46 | <p><?php echo $addon['description']; ?></p> |
| 47 | |
| 48 | <p class="authors"><cite>By <a href="https://www.themeum.com" target="_blank">Themeum</a></cite></p> |
| 49 | </div> |
| 50 | </div> |
| 51 | <div class="plugin-card-bottom"> |
| 52 | <?php |
| 53 | echo "<div class='plugin-version'> " . __( 'Version', 'tutor' ) . " : ".TUTOR_VERSION." </div>"; |
| 54 | ?> |
| 55 | </div> |
| 56 | </div> |
| 57 | <?php } |
| 58 | ?> |
| 59 | </div> |
| 60 | </div> |
| 61 | |
| 62 | <br class="clear"> |
| 63 | <?php |
| 64 | } |
| 65 | ?> |
| 66 | </div> |
| 67 | </div> |