PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | templates/profile/tabs/sections.php +6 -9 4.2.04.4.8 View file →
@@ -35,20 +35,17 @@
35 35 if ( $profile->is_hidden( $section_data ) ) {
36 36 continue;
37 37 }
38 38
39 - $visible_tabs[] = $section_key;
40 - $checked = '';
39 + $visible_tabs[] = $section_key;
40 + $checked = '';
41 41
42 42 if ( $profile->is_current_section( $section_key, $section_key ) ) {
43 43 $active_tab = $section_key;
44 - $checked = checked( true, true, false );
44 +// $checked = checked( true, true, false );
45 +// echo '<div class="mb-current-tab"><label>'.esc_html( $section_data['title'] ).'</label></div>';
45 46 }
46 47 ?>
47 -
48 - <input type="radio" name="<?php echo esc_attr( $unique_group ); ?>"
49 - class="learn-press-tabs__checker" <?php echo esc_attr( $checked ); ?>
50 - id="<?php echo esc_attr( $unique_group . '__' . $section_key ); ?>"/>
51 48 <?php } ?>
52 49
53 50 <ul class="learn-press-tabs__nav" data-tabs="<?php echo esc_attr( count( $visible_tabs ) ); ?>">
54 51 <?php
@@ -56,9 +53,9 @@
56 53 if ( ! in_array( $section_key, $visible_tabs ) ) {
57 54 continue;
58 55 }
59 56
60 - $classes = array( 'learn-press-tabs__tab', esc_attr( $section_key ) );
57 + $classes = array( 'learn-press-tabs__item', esc_attr( $section_key ) );
61 58
62 59 if ( $active_tab == $section_key ) {
63 60 $classes[] = 'active';
64 61 }
@@ -67,9 +64,9 @@
67 64 $section_link = $profile->get_tab_link( $tab_key, $section_slug );
68 65 ?>
69 66
70 67 <li class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">
71 - <label><a href="<?php echo esc_url_raw( $section_link ); ?>"><?php echo esc_html( $section_data['title'] ); ?></a></label>
68 + <a href="<?php echo esc_url_raw( $section_link ); ?>"><?php echo esc_html( $section_data['title'] ); ?></a>
72 69 </li>
73 70
74 71 <?php } ?>
75 72