Skip to content

Commit

Permalink
= 4.2.3 =
Browse files Browse the repository at this point in the history
~ Tweak: set default section_per_page, course_item_per_page = -1 to load full.
  • Loading branch information
tungnxt89 committed Apr 7, 2023
1 parent d149819 commit fffa7ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/settings/course.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@
array(
'title' => esc_html__( 'Section Per Page', 'learnpress' ),
'id' => 'section_per_page',
'default' => 1,
'default' => -1,
'type' => 'number',
'desc' => esc_html__( 'The number of displayed sections per page (Enter -1 to display all sections).', 'learnpress' ),
),
array(
'title' => esc_html__( 'Course Item Per Page', 'learnpress' ),
'id' => 'course_item_per_page',
'default' => 10,
'default' => -1,
'type' => 'number',
'desc' => esc_html__( 'The number of displayed course items per page in a section (Enter -1 to display all course items).', 'learnpress' ),
),
Expand Down
2 changes: 1 addition & 1 deletion inc/lp-template-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
*/
add_action(
'learn-press/single-button-toggle-sidebar',
LearnPress::instance()->template( 'course' )->text( '<input type="checkbox" id="sidebar-toggle" />', 'single-button-toggle-sidebar' ),
LearnPress::instance()->template( 'course' )->text( '<input type="checkbox" id="sidebar-toggle" title="Show/Hide curriculum" />', 'single-button-toggle-sidebar' ),
5
);

Expand Down

0 comments on commit fffa7ed

Please sign in to comment.