<?php /** * Settings tabs * * @package Tutor\Views * @subpackage Tutor\Settings * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 2.0.0 */ $before = array(); $after = array(); $tabbed = array(); foreach ( $section['blocks'] as $block ) { if ( isset( $block['placement'] ) ) { 'before' == $block['placement'] ? $before[] = $block : 0; 'after' == $block['placement'] ? $after[] = $block : 0; } else { $tabbed[] = $block; } } if ( count( $before ) ) { $section['blocks'] = $before; require __DIR__ . '/basic.php'; } ?> <div class="tutor-settings-certificate-builder"> <ul class="tutor-nav" tutor-priority-nav> <?php foreach ( $tabbed as $index => $tab ) : ?> <li class="tutor-nav-item"> <a href="#" class="tutor-nav-link<?php echo esc_attr( 0 == $index ? ' is-active' : '' ); ?>" data-tutor-nav-target="tutor-settings-tab-<?php echo esc_attr( $tab['slug'] ); ?>"> <?php echo esc_html( $tab['label'] ); ?> </a> </li> <?php endforeach; ?> <li class="tutor-nav-item tutor-nav-more tutor-d-none"> <a class="tutor-nav-link tutor-nav-more-item" href="#"><span class="tutor-mr-4"><?php esc_html_e( 'More', 'tutor-pro' ); ?></span> <span class="tutor-nav-more-icon tutor-icon-times"></span></a> <ul class="tutor-nav-more-list tutor-dropdown"></ul> </li> </ul> <div class="tutor-tab tutor-mt-32"> <?php foreach ( $tabbed as $index => $tab ) : ?> <div id="tutor-settings-tab-<?php echo esc_attr( $tab['slug'] ); ?>" class="tutor-tab-item<?php echo 0 == $index ? ' is-active' : ''; ?>"> <?php if ( isset( $tab['segments'] ) ) { foreach ( $tab['segments'] as $segment ) { echo $this->blocks( $segment ); //phpcs:ignore -- contain safe data } } else { echo $this->blocks( $tab ); //phpcs:ignore -- contain safe data } ?> </div> <?php endforeach; ?> </div> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
common | Folder | 0755 |
|
|
basic.php | File | 918 B | 0644 |
|
buddypress.php | File | 293 B | 0644 |
|
color_picker.php | File | 4.48 KB | 0644 |
|
design.php | File | 676 B | 0644 |
|
google_classroom.php | File | 570 B | 0644 |
|
gradebook.php | File | 936 B | 0644 |
|
import_export.php | File | 7.47 KB | 0644 |
|
notifications.php | File | 661 B | 0644 |
|
status.php | File | 666 B | 0644 |
|
tab.php | File | 1.85 KB | 0644 |
|
tutor_pages.php | File | 2.87 KB | 0644 |
|
zoom.php | File | 71 B | 0644 |
|