golden hour
/var/www/html/wp-content/plugins/designthemes-webinar/modules/google-classroom/settings
⬆️ Go Up
Upload
File/Folder
Size
Actions
add-course.php
27 B
Del
OK
classroom-template.php
3.23 KB
Del
OK
general.php
4.37 KB
Del
OK
index.php
1.57 KB
Del
OK
list-course.php
1.73 KB
Del
OK
Edit: index.php
<?php function dtwebinar_gcr_settings() { $tabs = array ( 'general' => array ( 'label' => esc_html__('General', 'dtwebinar'), 'path' => DTWEBINAR_GCR_PLUGIN_PATH . 'settings/general.php' ), 'template' => array ( 'label' => esc_html__('Classroom Template', 'dtwebinar'), 'path' => DTWEBINAR_GCR_PLUGIN_PATH . 'settings/classroom-template.php' )/* , 'list-course' => array ( 'label' => esc_html__('List Course', 'dtwebinar'), 'path' => DTWEBINAR_GCR_PLUGIN_PATH . 'settings/list-course.php' ), 'add-course' => array ( 'label' => esc_html__('Add Course', 'dtwebinar'), 'path' => DTWEBINAR_GCR_PLUGIN_PATH . 'settings/add-course.php' ) */ ); $tabs = apply_filters( 'dtwebinar_settings', $tabs ); $current = isset( $_GET['parenttab'] ) ? $_GET['parenttab'] : 'general'; dtwebinar_get_settings_submenus($current, $tabs); dtwebinar_get_settings_tab($current, $tabs); } function dtwebinar_get_settings_submenus($current, $tabs) { echo '<h2 class="dtwebinar-custom-nav nav-tab-wrapper">'; foreach( $tabs as $key => $tab ) { $class = ( $key == $current ) ? 'nav-tab-active' : ''; echo '<a class="nav-tab '.$class.'" href="?page=dtwebinar-google-classroom&parenttab='.$key.'">'.$tab['label'].'</a>'; } echo '</h2>'; } function dtwebinar_get_settings_tab($current, $tabs) { require_once $tabs[$current]['path']; } ?>
Save