<?php /** * Integration file for Elementor documents-related stuff. * * @package LearnDash\Elementor */ namespace LearnDash\Elementor; use Elementor\Core\Documents_Manager; /** * Element documents integration class. * * @since 1.0.5 */ class Documents { /** * Hook into the Elementor Document Manager to register our custom templates. * * @since 1.0.5 * * @param Documents_Manager $documents_manager Instance of Documents_Manager. * * @return void */ public function register( Documents_Manager $documents_manager ): void { if ( ! function_exists( 'learndash_is_active_theme' ) || ! learndash_is_active_theme( 'ld30' ) ) { return; } $documents_manager->register_document_type( learndash_get_post_type_slug( 'course' ), Documents\Course_Single::get_class_full_name() ); $documents_manager->register_document_type( learndash_get_post_type_slug( 'lesson' ), Documents\Lesson_Single::get_class_full_name() ); $documents_manager->register_document_type( learndash_get_post_type_slug( 'topic' ), Documents\Topic_Single::get_class_full_name() ); $documents_manager->register_document_type( learndash_get_post_type_slug( 'quiz' ), Documents\Quiz_Single::get_class_full_name() ); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Admin | Folder | 0755 |
|
|
Documents | Folder | 0755 |
|
|
Settings | Folder | 0755 |
|
|
Shortcodes | Folder | 0755 |
|
|
Utilities | Folder | 0755 |
|
|
Widgets | Folder | 0755 |
|
|
App.php | File | 238 B | 0644 |
|
Compatibility.php | File | 521 B | 0644 |
|
Container.php | File | 244 B | 0644 |
|
Dependency_Checker.php | File | 6.84 KB | 0644 |
|
Documents.php | File | 1.2 KB | 0644 |
|
Editor.php | File | 525 B | 0644 |
|
Elements.php | File | 650 B | 0644 |
|
Frontend.php | File | 6.78 KB | 0644 |
|
Plugin.php | File | 2.56 KB | 0644 |
|
Provider.php | File | 327 B | 0644 |
|
Step.php | File | 696 B | 0644 |
|
Templates.php | File | 3.63 KB | 0644 |
|
Utilities.php | File | 1.32 KB | 0644 |
|
Widgets.php | File | 3.19 KB | 0644 |
|