Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions assets/icons/kids/calendar-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/icons/kids/completed-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions assets/icons/kids/courses.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icons/kids/home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/icons/kids/notes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/kids/play-line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/icons/kids/qa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icons/kids/time.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions classes/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
*
* @since 1.9.0
*/
add_action( 'admin_head', array( $this, 'tutor_add_mce_button' ) );

Check failure on line 74 in classes/Assets.php

View workflow job for this annotation

GitHub Actions / phpstan

Action callback returns void|null but should not return anything.

Check failure on line 74 in classes/Assets.php

View workflow job for this annotation

GitHub Actions / phpstan

Action callback returns void|null but should not return anything.
add_filter( 'get_the_generator_html', array( $this, 'tutor_generator_tag' ), 10, 2 );
add_filter( 'get_the_generator_xhtml', array( $this, 'tutor_generator_tag' ), 10, 2 );

Expand Down Expand Up @@ -162,7 +162,7 @@
'monetize_by',
);

$tutor_settings = Options_V2::get_only( $required_options );

Check failure on line 165 in classes/Assets.php

View workflow job for this annotation

GitHub Actions / phpstan

Class Tutor\Options_V2 referenced with incorrect case: TUTOR\Options_V2.

Check failure on line 165 in classes/Assets.php

View workflow job for this annotation

GitHub Actions / phpstan

Class Tutor\Options_V2 referenced with incorrect case: TUTOR\Options_V2.

return array(
'ajaxurl' => admin_url( 'admin-ajax.php' ),
Expand Down Expand Up @@ -854,7 +854,7 @@
public function enqueue_scripts() {
$is_dashboard = tutor_utils()->is_dashboard_page();
$is_learning_area = tutor_utils()->is_learning_area();
$is_legacy_learning = tutor_utils()->get_option( 'is_legacy_learning_mode' );
$is_legacy_learning = Options_V2::LEARNING_MODE_LEGACY === tutor_utils()->get_option( 'learning_mode' );

$core_css_url = tutor()->assets_url . 'css/tutor-core.min.css';
$dashboard_css_url = tutor()->assets_url . 'css/tutor-dashboard.min.css';
Expand Down Expand Up @@ -909,7 +909,7 @@
$load = false;
} else {
$is_learning_area = tutor_utils()->is_learning_area();
$is_legacy_learning = tutor_utils()->get_option( 'is_legacy_learning_mode' );
$is_legacy_learning = Options_V2::LEARNING_MODE_LEGACY === tutor_utils()->get_option( 'learning_mode' );
if ( $is_learning_area && ! $is_legacy_learning ) {
$load = false;
}
Expand Down
Loading
Loading