llms_get_template( string $template_name, array $args = array(), string $template_path = '', string $default_path = '' )
Get Template Part
Parameters #Parameters
- $template_name
-
(string) (Required) Name of template.
- $args
-
(array) (Optional) Array of arguments accessible from the template.
Default value: array()
- $template_path
-
(string) (Optional) Dir path to template. Default is empty string. If not supplied the one retrived from
llms()->template_path()
will be used.Default value: ''
- $default_path
-
(string) (Optional) Default path is empty string. If not supplied the template path is
llms()->plugin_path() . '/templates/'
.Default value: ''
Return #Return
(void)
Source #Source
File: includes/functions/llms.functions.template.php
function llms_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) { if ( $args && is_array( $args ) ) { extract( $args ); } $located = llms_locate_template( $template_name, $template_path, $default_path ); /** * Fired before a template part is included * * @since Unknown * * @param string $template_name Name of template. * @param string $template_path Dir path to template as passed to the `llms_get_template()` function. * @param string $located The full path of the template file to load. * @param array $args Array of arguments accessible from the template. */ do_action( 'lifterlms_before_template_part', $template_name, $template_path, $located, $args ); if ( file_exists( $located ) ) { include $located; } /** * Fired after a template part is included * * @since Unknown * * @param string $template_name Name of template. * @param string $template_path Dir path to template as passed to the `llms_get_template()` function. * @param string $located The full path of the (maybe) loaded template file. * @param array $args Array of arguments accessible from the template. */ do_action( 'lifterlms_after_template_part', $template_name, $template_path, $located, $args ); }
Expand full source code Collapse full source code View on GitHub
Related #Related
Uses #Uses
Uses | Description |
---|---|
includes/functions/llms.functions.template.php: lifterlms_before_template_part |
Fired before a template part is included |
includes/functions/llms.functions.template.php: lifterlms_after_template_part |
Fired after a template part is included |
includes/functions/llms.functions.template.php: llms_locate_template() |
Locate Template |
Used By #Used By
Used By | Description |
---|---|
includes/models/model.llms.user.certificate.php: LLMS_User_Certificate::merge_content() |
Merges the post content based on content from the template. |
includes/functions/llms.functions.templates.certificates.php: llms_certificate_content() |
Loads the certificate content template. |
includes/functions/llms.functions.templates.certificates.php: llms_certificate_styles() |
Outputs dynamic CSS for a single certificate template. |
includes/functions/llms.functions.templates.certificates.php: llms_certificate_actions() |
Loads the certificate actions template. |
includes/functions/llms-functions-template-view-order.php: llms_template_view_order() |
Loads the template for a single order view on the student dashboard. |
includes/functions/llms-functions-template-view-order.php: llms_template_view_order_actions() |
Loads the single order view actions sidebar on the student dashboard. |
includes/functions/llms-functions-template-view-order.php: llms_template_view_order_information() |
Loads the single order view information main area on the student dashboard. |
includes/functions/llms-functions-template-view-order.php: llms_template_view_order_transactions() |
Loads the single order view transactions table on the student dashboard. |
libraries/lifterlms-blocks/includes/blocks/class-llms-blocks-php-template-block.php: LLMS_Blocks_PHP_Template_Block::output() |
Output the template. |
includes/functions/llms-functions-templates-memberships.php: llms_template_membership_instructors() |
Get single membership instructors template |
includes/functions/llms-functions-templates-shared.php: llms_template_instructors() |
Get single post instructors template |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_product_not_purchasable() |
Include template for products that aren’t purchasable |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.memberships.php: LLMS_Admin_Reporting_Tab_Memberships::output() |
Output tab content. |
includes/class.llms.student.dashboard.php: LLMS_Student_Dashboard::output_edit_account_content() |
Callback to output the edit account content |
includes/class.llms.student.dashboard.php: LLMS_Student_Dashboard::output_orders_content() |
Endpoint to output orders content |
includes/class.llms.student.dashboard.php: LLMS_Student_Dashboard::output_redeem_voucher_content() |
Callback to output content for the voucher endpoint |
includes/functions/llms-functions-forms.php: llms_get_login_form() | |
includes/llms.template.functions.php: get_available_payment_options() |
Get available payment gateway options Get’s available payment gateways options IE: single, recurring |
includes/llms.template.functions.php: lifterlms_output_content_wrapper() | |
includes/llms.template.functions.php: lifterlms_output_content_wrapper_end() | |
includes/llms.template.functions.php: lifterlms_get_sidebar() | |
includes/functions/llms-functions-templates-courses.php: lifterlms_template_course_author() |
Get single post author template |
includes/llms.template.functions.php: lifterlms_template_single_parent_course() | |
includes/llms.template.functions.php: lifterlms_template_complete_lesson_link() | |
includes/llms.template.functions.php: lifterlms_template_lesson_navigation() | |
includes/llms.template.functions.php: lifterlms_template_single_membership_title() | |
includes/llms.template.functions.php: lifterlms_get_content() | |
includes/llms.template.functions.php: lifterlms_template_single_lesson_audio() | |
includes/llms.template.functions.php: lifterlms_template_single_difficulty() | |
includes/llms.template.functions.php: lifterlms_template_single_prerequisites() | |
includes/llms.template.functions.php: lifterlms_template_single_syllabus() | |
includes/llms.template.functions.php: lifterlms_template_single_course_tags() | |
includes/llms.template.functions.php: lifterlms_template_single_course_tracks() | |
includes/llms.template.functions.php: lifterlms_template_single_video() | |
includes/llms.template.functions.php: lifterlms_template_single_lesson_video() | |
includes/llms.template.functions.php: lifterlms_template_single_audio() | |
includes/llms.template.functions.php: lifterlms_template_single_meta_wrapper_start() | |
includes/llms.template.functions.php: lifterlms_template_single_meta_wrapper_end() | |
includes/llms.template.functions.php: lifterlms_template_single_length() | |
includes/llms.template.functions.php: lifterlms_template_single_course_categories() | |
includes/llms.template.functions.php: lifterlms_template_single_title() | |
includes/llms.template.functions.php: lifterlms_template_single_short_description() | |
includes/llms.template.functions.php: lifterlms_template_single_course_content() | |
includes/llms.template.functions.php: lifterlms_template_single_full_description() | |
includes/llms.template.functions.php: lifterlms_template_single_membership_full_description() | |
includes/llms.template.functions.php: lifterlms_template_single_course_progress() | |
includes/llms.template.functions.php: llms_email_footer() | |
includes/llms.template.functions.php: llms_email_header() | |
includes/achievements/class.llms.achievement.user.php: LLMS_Achievement_User::get_content_html() |
Gets post content and replaces merge fields with user meta-data |
includes/abstracts/llms.abstract.notification.view.php: LLMS_Abstract_Notification_View::get_basic_html() |
Get the html for a basic notification |
includes/functions/llms.functions.notice.php: llms_get_notices() |
Gets messages and errors which are stored in the session, then clears them. |
includes/functions/llms.functions.notice.php: llms_print_notice() |
Prints a single notice |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_memberships() |
Template for My Memberships section on dashboard index |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_notifications() |
Template for My Notifications student dashboard endpoint |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_navigation() |
Dashboard Navigation template |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_home() |
Main dashboard homepage template |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_header() |
Dashboard header template |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_achievements() |
Template for My Achievements on dashboard |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_certificates() |
Template for My Certificates on dashboard |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_courses() |
Template for My Courses section on dashboard index |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_grades() |
Output the “My Grades” template screen on the student dashboard. |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_grades_table() |
Output the template for a single grades table on the student dashboard |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_difficulty() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_enroll_date() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_enroll_status() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_length() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_thumbnail() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_student_dashboard() |
Output the LifterLMS Student Dashboard |
includes/functions/llms.functions.templates.loop.php: lifterlms_loop_start() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_template_loop_author() | |
includes/functions/llms.functions.templates.loop.php: lifterlms_loop() |
Output a LifterLMS Loop |
includes/functions/llms.functions.templates.loop.php: lifterlms_loop_end() | |
includes/functions/llms.functions.template.php: llms_get_template_ajax() | |
includes/functions/llms.functions.templates.certificates.php: llms_get_certificate_preview() |
Get the content of a single certificates |
includes/functions/llms.functions.templates.certificates.php: lifterlms_template_certificates_loop() | |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_trial() |
Include Single Access Plan trial Template |
includes/functions/llms.functions.templates.pricing.table.php: lifterlms_template_pricing_table() |
Include pricing table for a LifterLMS Product (course or membership) |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan() |
Include single access plan template within the pricing table |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_button() |
Include Single Access Plan Button Template |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_description() |
Include Single Access Plan Description Template |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_feature() |
Include Single Access Plan Featured Template |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_pricing() |
Include Single Access Plan pricing Template |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_restrictions() |
Include Single Access Plan restrictions Template |
includes/functions/llms.functions.templates.pricing.table.php: llms_template_access_plan_title() |
Include Single Access Plan title Template |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_return_link() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_wrapper_end() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_wrapper_start() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_start_button() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_wrapper_start() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_meta_info() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_attempt_results() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_attempt_results_questions_list() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_quiz_results() | |
includes/functions/llms.functions.templates.achievements.php: lifterlms_template_achievements_loop() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_content() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_description() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_image() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_video() | |
includes/functions/llms.functions.templates.quizzes.php: lifterlms_template_question_wrapper_end() | |
includes/functions/llms.functions.templates.achievements.php: llms_get_achievement() |
Get the content of a single achievement |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::remove_coupon_code() |
Remove a coupon from an order during checkout |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::validate_coupon_code() |
Validate a Coupon via the Checkout Form |
includes/shortcodes/class.llms.shortcode.course.outline.php: LLMS_Shortcode_Course_Outline::get_output() |
Retrieve the actual content of the shortcode |
includes/shortcodes/class.llms.shortcode.checkout.php: LLMS_Shortcode_Checkout::checkout() |
Renders the checkout template. |
includes/shortcodes/class.llms.shortcode.checkout.php: LLMS_Shortcode_Checkout::confirm_payment() |
Renders the confirm payment checkout template. |
includes/shortcodes/class.llms.shortcodes.php: LLMS_Shortcodes::memberships() |
Memberships Shortcode |
includes/admin/settings/class.llms.settings.general.php: LLMS_Settings_General::get_stats_widgets() | |
includes/admin/reporting/class.llms.admin.reporting.php: LLMS_Admin_Reporting::output() |
Output the reporting screen HTML. |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.sales.php: LLMS_Admin_Reporting_Tab_Sales::output_filters() |
Output filters navigation |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.students.php: LLMS_Admin_Reporting_Tab_Students::output() |
Output HTML for the current view within the students tab |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.sales.php: LLMS_Admin_Reporting_Tab_Sales::output() |
Output the template for the sales tab |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.courses.php: LLMS_Admin_Reporting_Tab_Courses::output() |
Output tab content |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.enrollments.php: LLMS_Admin_Reporting_Tab_Enrollments::output() |
Output the template for the sales tab |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.enrollments.php: LLMS_Admin_Reporting_Tab_Enrollments::output_filters() |
Output filters navigation |
includes/admin/class.llms.admin.notices.php: LLMS_Admin_Notices::output_notice() |
Output a single notice by ID |
includes/admin/reporting/tabs/class.llms.admin.reporting.tab.quizzes.php: LLMS_Admin_Reporting_Tab_Quizzes::output() |
Output tab content |
includes/admin/post-types/meta-boxes/class.llms.meta.box.students.php: LLMS_Meta_Box_Students::output() |
Custom metabox output function |
includes/admin/post-types/meta-boxes/class.llms.meta.box.order.transactions.php: LLMS_Meta_Box_Order_Transactions::output() |
Function to field WP::output() method call Passes output instruction to parent |
includes/admin/class.llms.admin.user.custom.fields.php: LLMS_Admin_User_Custom_Fields::output_custom_fields() |
Output custom field data fields as HTML inputs |
includes/emails/class.llms.email.php: LLMS_Email::get_content_html() |
Get the HTML email content |
includes/emails/class.llms.email.reset.password.php: LLMS_Email_Reset_Password::get_body_content() |
Custom content for the password reset email |
includes/certificates/class.llms.certificate.user.php: LLMS_Certificate_User::get_content_html() |
get_content_html function. |
Changelog #Changelog
Version | Description |
---|---|
3.16.0 | Unknown |
1.0.0 | Introduced. |