common
4 years ago
basic.php
4 years ago
buddypress.php
4 years ago
color_picker.php
4 years ago
design.php
4 years ago
google_classroom.php
4 years ago
gradebook.php
4 years ago
import_export.php
4 years ago
notifications.php
4 years ago
status.php
4 years ago
tab.php
4 years ago
tutor_pages.php
4 years ago
zoom.php
4 years ago
tab.php
52 lines
| 1 | <?php |
| 2 | $before = array(); |
| 3 | $after = array(); |
| 4 | $tabbed = array(); |
| 5 | |
| 6 | foreach($section['blocks'] as $block) { |
| 7 | if(isset($block['placement'])) { |
| 8 | $block['placement']=='before' ? $before[] = $block : 0; |
| 9 | $block['placement']=='after' ? $after[] = $block : 0; |
| 10 | } else { |
| 11 | $tabbed[] = $block; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | if(count($before)) { |
| 16 | $section['blocks'] = $before; |
| 17 | require __DIR__ . '/basic.php'; |
| 18 | } |
| 19 | ?> |
| 20 | |
| 21 | <div class="tutor-settings-certificate-builder"> |
| 22 | <ul class="tutor-nav" tutor-priority-nav> |
| 23 | <?php foreach($tabbed as $index => $tab): ?> |
| 24 | <li class="tutor-nav-item"> |
| 25 | <a href="#" class="tutor-nav-link<?php echo $index==0 ? ' is-active' : ''; ?>" data-tutor-nav-target="tutor-settings-tab-<?php echo $tab['slug']; ?>"> |
| 26 | <?php echo $tab['label']; ?> |
| 27 | </a> |
| 28 | </li> |
| 29 | <?php endforeach; ?> |
| 30 | |
| 31 | <li class="tutor-nav-item tutor-nav-more tutor-d-none"> |
| 32 | <a class="tutor-nav-link tutor-nav-more-item" href="#"><span class="tutor-mr-4"><?php _e("More", "tutor-pro"); ?></span> <span class="tutor-nav-more-icon tutor-icon-times"></span></a> |
| 33 | <ul class="tutor-nav-more-list tutor-dropdown"></ul> |
| 34 | </li> |
| 35 | </ul> |
| 36 | |
| 37 | <div class="tutor-tab tutor-mt-32"> |
| 38 | <?php foreach($tabbed as $index => $tab): ?> |
| 39 | <div id="tutor-settings-tab-<?php echo $tab['slug']; ?>" class="tutor-tab-item<?php echo $index==0 ? ' is-active' : ''; ?>"> |
| 40 | <?php |
| 41 | if(isset($tab['segments'])) { |
| 42 | foreach($tab['segments'] as $segment){ |
| 43 | echo $this->blocks( $segment ); |
| 44 | } |
| 45 | } else { |
| 46 | echo $this->blocks( $tab ); |
| 47 | } |
| 48 | ?> |
| 49 | </div> |
| 50 | <?php endforeach; ?> |
| 51 | </div> |
| 52 | </div> |