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/courses-top-bar.php +3 -3 4.2.04.4.8 View file →
@@ -10,9 +10,9 @@
10 10 defined( 'ABSPATH' ) || exit;
11 11
12 12 $layouts = learn_press_courses_layouts();
13 13 $active = learn_press_get_courses_layout();
14 -$s = LP_Request::get( 'c_search' );
14 +$s = LP_Request::get_param( 'c_search' );
15 15 ?>
16 16
17 17 <div class="lp-courses-bar <?php echo esc_attr( $active ); ?>">
18 18 <form class="search-courses" method="get" action="<?php echo esc_url_raw( learn_press_get_page_link( 'courses' ) ); ?>">
@@ -20,9 +20,9 @@
20 20 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( get_queried_object()->taxonomy ?? $_GET['taxonomy'] ?? '' ); ?>">
21 21 <input type="hidden" name="term_id" value="<?php echo esc_attr( get_queried_object()->term_id ?? $_GET['term_id'] ?? '' ); ?>">
22 22 <input type="hidden" name="term" value="<?php echo esc_attr( get_queried_object()->slug ?? $_GET['term'] ?? '' ); ?>">
23 23 <input type="text" placeholder="<?php esc_attr_e( 'Search courses...', 'learnpress' ); ?>" name="c_search" value="<?php echo esc_attr( $s ); ?>">
24 - <button type="submit"><i class="fas fa-search"></i></button>
24 + <button type="submit" name="lp-btn-search-courses"><i class="lp-icon-search"></i></button>
25 25 </form>
26 26
27 27 <div class="switch-layout">
28 28 <?php foreach ( $layouts as $layout => $value ) : ?>
@@ -29,9 +29,9 @@
29 29 <input type="radio" name="lp-switch-layout-btn"
30 30 value="<?php echo esc_attr( $layout ); ?>"
31 31 id="lp-switch-layout-btn-<?php echo esc_attr( $layout ); ?>" <?php checked( $layout, $active ); ?>>
32 32 <label class="switch-btn <?php echo esc_attr( $layout ); ?>"
33 - title="<?php echo sprintf( esc_attr__( 'Switch to %s', 'learnpress' ), $layout ); ?>"
33 + title="<?php echo sprintf( esc_attr__( 'Switch to %s', 'learnpress' ), $value ); ?>"
34 34 for="lp-switch-layout-btn-<?php echo esc_attr( $layout ); ?>"></label>
35 35 <?php endforeach; ?>
36 36 </div>
37 37 </div>