File manager - Edit - /home/theblueo/questionnaire/wp-content/plugins/sfwd-lms/includes/settings/shortcodes-sections/ld_course_info.php
Back
<?php if ( ( class_exists( 'LearnDash_Shortcodes_Section' ) ) && ( !class_exists( 'LearnDash_Shortcodes_Section_ld_course_info' ) ) ) { class LearnDash_Shortcodes_Section_ld_course_info extends LearnDash_Shortcodes_Section { function __construct( $fields_args = array() ) { $this->fields_args = $fields_args; $this->shortcodes_section_key = 'ld_course_info'; $this->shortcodes_section_title = sprintf( esc_html_x( 'LD %s Info', 'placeholder: Course', 'learndash' ), LearnDash_Custom_Label::get_label( 'course' ) ); $this->shortcodes_section_type = 1; $this->shortcodes_section_description = sprintf( esc_html_x( 'This shortcode shows the %s and progress for the user.', 'placeholders: courses', 'learndash' ), learndash_get_custom_label_lower( 'courses' ) ); parent::__construct(); } function init_shortcodes_section_fields() { $this->shortcodes_option_fields = array( 'user_id' => array( 'id' => $this->shortcodes_section_key . '_user_id', 'name' => 'user_id', 'type' => 'number', 'label' => esc_html__( 'User ID', 'learndash' ), 'help_text' => esc_html__('Enter specific User ID. Leave blank for current User.', 'learndash' ), 'value' => '', 'class' => 'small-text' ), 'registered_show_thumbnail' => array( 'id' => $this->shortcodes_section_key . '_registered_show_thumbnail', 'name' => 'registered_show_thumbnail', 'type' => 'select', 'label' => sprintf( esc_html_x('Show %s Thumbnail', 'placeholder: Course', 'learndash'), LearnDash_Custom_Label::get_label( 'course' ) ), 'help_text' => sprintf( esc_html_x( 'shows a %s thumbnail.', 'placeholders: course', 'learndash' ), learndash_get_custom_label_lower( 'course' ) ), 'value' => 'true', 'options' => array( '' => esc_html__('Yes (default)', 'learndash'), 'false' => esc_html__('No', 'learndash'), ) ), 'registered_num' => array( 'id' => $this->shortcodes_section_key . '_registered_num', 'name' => 'registered_num', 'type' => 'number', 'label' => esc_html__( 'Registered per page', 'learndash' ), 'help_text' => sprintf( esc_html_x( 'Registered %1$s per page. Default is %2$d. Set to zero for all.', 'placeholders: courses, default per page', 'learndash' ), learndash_get_custom_label_lower( 'courses' ), LearnDash_Settings_Section::get_section_setting( 'LearnDash_Settings_Section_General_Per_Page', 'per_page' ) ), 'value' => '', 'class' => 'small-text', 'attrs' => array( 'min' => 0, 'step' => 1 ) ), 'registered_orderby' => array( 'id' => $this->shortcodes_section_key . '_registered_orderby', 'name' => 'registered_orderby', 'type' => 'select', 'label' => esc_html__( 'Registered order by', 'learndash' ), 'help_text' => wp_kses_post( __( 'See <a target="_blank" href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters">the full list of available orderby options here.</a>', 'learndash' ) ), 'value' => '', 'options' => array( '' => esc_html__('Title (default) - Order by post title', 'learndash'), 'ID' => esc_html__('ID - Order by post id', 'learndash'), 'date' => esc_html__('Date - Order by post date', 'learndash'), 'menu_order' => esc_html__('Menu - Order by Page Order Value', 'learndash'), ) ), 'registered_order' => array( 'id' => $this->shortcodes_section_key . '_registered_order', 'name' => 'registered_order', 'type' => 'select', 'label' => esc_html__( 'Progress Order', 'learndash' ), 'help_text' => sprintf( esc_html_x( 'Order of %s displayed', 'placeholder: Courses', 'learndash' ), LearnDash_Custom_Label::get_label( 'courses' ) ), 'value' => '', 'options' => array( '' => esc_html__('ASC (default) - lowest to highest values', 'learndash'), 'DESC' => esc_html__('DESC - highest to lowest values', 'learndash'), ) ), 'progress_num' => array( 'id' => $this->shortcodes_section_key . '_progress_num', 'name' => 'progress_num', 'type' => 'number', 'label' => sprintf( esc_html_x( '%s per page', 'placeholder: Courses', 'learndash' ), LearnDash_Custom_Label::get_label( 'courses' ) ), 'help_text' => sprintf( esc_html_x( '%1$s per page. Default is %2$d. Set to zero for all.', 'placeholders: courses, default per page', 'learndash' ), LearnDash_Custom_Label::get_label( 'courses' ), LearnDash_Settings_Section::get_section_setting( 'LearnDash_Settings_Section_General_Per_Page', 'per_page' ) ), 'value' => '', 'class' => 'small-text', 'attrs' => array( 'min' => 0, 'step' => 1 ) ), 'progress_orderby' => array( 'id' => $this->shortcodes_section_key . '_progress_orderby', 'name' => 'progress_orderby', 'type' => 'select', 'label' => sprintf( esc_html_x( '%s order by', 'placeholder: Courses', 'learndash' ), LearnDash_Custom_Label::get_label( 'courses' ) ), 'help_text' => wp_kses_post( __( 'See <a target="_blank" href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters">the full list of available orderby options here.</a>', 'learndash' ) ), 'value' => '', 'options' => array( '' => esc_html__('Title (default) - Order by post title', 'learndash'), 'ID' => esc_html__('ID - Order by post id', 'learndash'), 'date' => esc_html__('Date - Order by post date', 'learndash'), 'menu_order' => esc_html__('Menu - Order by Page Order Value', 'learndash'), ) ), 'progress_order' => array( 'id' => $this->shortcodes_section_key . '_progress_order', 'name' => 'progress_order', 'type' => 'select', 'label' => sprintf( esc_html_x( '%s Order', 'placeholder: Courses', 'learndash' ), LearnDash_Custom_Label::get_label( 'courses' ) ), 'help_text' => sprintf( esc_html_x( 'Order of %s displayed', 'placeholder: Courses', 'learndash' ), LearnDash_Custom_Label::get_label( 'courses' ) ), 'value' => '', 'options' => array( '' => esc_html__('ASC (default) - lowest to highest values', 'learndash'), 'DESC' => esc_html__('DESC - highest to lowest values', 'learndash'), ) ), 'quiz_num' => array( 'id' => $this->shortcodes_section_key . '_quiz_num', 'name' => 'quiz_num', 'type' => 'number', 'label' => sprintf( esc_html_x( '%s per page', 'placeholder: Quizzes', 'learndash' ), LearnDash_Custom_Label::get_label( 'quizzes' ) ), 'help_text' => sprintf( esc_html_x( '%s per page. Default is %d. Set to zero for all.', 'placeholders: quizzes, default per page', 'learndash' ), LearnDash_Custom_Label::get_label( 'quizzes' ), LearnDash_Settings_Section::get_section_setting( 'LearnDash_Settings_Section_General_Per_Page', 'per_page' ) ), 'value' => '', 'class' => 'small-text', 'attrs' => array( 'min' => 0, 'step' => 1 ) ), 'quiz_orderby' => array( 'id' => $this->shortcodes_section_key . '_quiz_orderby', 'name' => 'quiz_orderby', 'type' => 'select', 'label' => sprintf( esc_html_x( '%s order by', 'placeholder: Quizzes', 'learndash' ), LearnDash_Custom_Label::get_label( 'quizzes' ) ), 'help_text' => wp_kses_post( __( 'See <a target="_blank" href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters">the full list of available orderby options here</a>.', 'learndash' ) ), 'value' => '', 'options' => array( '' => esc_html__('Date Taken (default) - Order by date taken', 'learndash'), 'title' => esc_html__('Title - Order by post title', 'learndash'), 'ID' => esc_html__('ID - Order by post id', 'learndash'), 'date' => esc_html__('Date - Order by post date', 'learndash'), 'menu_order' => esc_html__('Menu - Order by Page Order Value', 'learndash'), ) ), 'quiz_order' => array( 'id' => $this->shortcodes_section_key . '_quiz_order', 'name' => 'quiz_order', 'type' => 'select', 'label' => sprintf( esc_html_x( '%s Order', 'placeholder: Quizzes', 'learndash' ), LearnDash_Custom_Label::get_label( 'quizzes' ) ), 'help_text' => sprintf( esc_html_x( 'Order of %s displayed.', 'placeholder: Quizzes', 'learndash' ), LearnDash_Custom_Label::get_label( 'quizzes' ) ), 'value' => '', 'options' => array( '' => esc_html__( 'DESC (default) - highest to lowest values', 'learndash' ), 'ASC' => esc_html__('ASC - lowest to highest values', 'learndash' ), ) ), ); $this->shortcodes_option_fields = apply_filters( 'learndash_settings_fields', $this->shortcodes_option_fields, $this->shortcodes_section_key ); parent::init_shortcodes_section_fields(); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings