public/wordpress/wp-content/plugins/wp-courseware/includes/admin/pages/page-course.php
/**
	 * Shortcode Metabox.
	 *
	 * This will display the shortcode for this course.
	 *
	 * @since 4.4.0
	 */
Shortcode Metabox.
This will display the shortcode for this course.


Shortcode Metabox . This will display the shortcode for this course .
public function shortcode_meta_box() {
		if ( ! $this->is_page_request() ) {
			return;
		}
		$course_outline_shortcode     = htmlentities( '[wpcourse course="' . $this->course->get_course_id() . '"]' );
		$course_outline_shortcode_tip = __( '<code>Course Outline Shortcode</code> - You can use this shortcode to display the course outline on any page.', 'wp-courseware' );
		$course_progress_shortcode     = htmlentities( '[wpcourse_progress courses="' . $this->course->get_course_id() . '"]' );
		$course_progress_shortcode_tip = __( '<code>Course Progress Shortcode</code> - You can use this shortcode to display the course progress on any page.', 'wp-courseware' );
		$course_progress_bar_shortcode     = htmlentities( '[wpcourse_progress_bar course="' . $this->course->get_course_id() . '"]' );
		$course_progress_bar_shortcode_tip = __( '<code>Course Progress Bar Shortcode</code> - You can use this shortcode to display the course progress bar on any page.', 'wp-courseware' );
		$support_link = add_query_arg( array( 'page' => 'wpcw-settings', 'tab' => 'support' ), admin_url( 'admin.php' ) );
		?>
		<div class="wpcw-course-shortcode-metabox-wrap">
			<div class="wpcw-course-shortcode-metabox-label"><i class="wpcw-fas wpcw-fa-code left"></i> <?php esc_html_e( 'Course Shortcodes', 'wp-courseware' ); ?></div>
			<div class="wpcw-courses-shortcode wpcw-courses-course-outline-shortcode">
				<abbr class="wpcw-tooltip" title="<?php echo $course_outline_shortcode_tip; ?>" rel="wpcw-tooltip"><i class="wpcw-fas wpcw-fa-info-circle"></i></abbr>
				<input onClick="this.setSelectionRange(0, this.value.length)"
				       type="text"
				       name="wpcw-courses-course-outline-shortcode-input"
				       id="wpcw-courses-course-outline-shortcode-input"
				       class="wpcw-courses-course-outline-shortcode-input" readonly value="<?php echo $course_outline_shortcode; ?>"/>
				<a href="<?php echo $support_link; ?>" target="_blank"><i class="wpcw-fas wpcw-fa-external-link-alt"></i></a>
			</div>
			<div class="wpcw-courses-shortcode wpcw-courses-course-progress-shortcode">
				<abbr class="wpcw-tooltip" title="<?php echo $course_progress_shortcode_tip; ?>" rel="wpcw-tooltip"><i class="wpcw-fas wpcw-fa-info-circle"></i></abbr>
				<input onClick="this.setSelectionRange(0, this.value.length)"
				       type="text"
				       name="wpcw-courses-course-progress-shortcode-input"
				       id="wpcw-courses-course-progress-shortcode-input"
				       class="wpcw-courses-course-progress-shortcode-input" readonly value="<?php echo $course_progress_shortcode; ?>"/>
				<a href="<?php echo $support_link; ?>" target="_blank"><i class="wpcw-fas wpcw-fa-external-link-alt"></i></a>
			</div>
			<div class="wpcw-courses-shortcode wpcw-courses-course-progress-bar-shortcode">
				<abbr class="wpcw-tooltip" title="<?php echo $course_progress_bar_shortcode_tip; ?>" rel="wpcw-tooltip"><i class="wpcw-fas wpcw-fa-info-circle"></i></abbr>
				<input onClick="this.setSelectionRange(0, this.value.length)"
				       type="text"
				       name="wpcw-courses-course-progress-bar-shortcode-input"
				       id="wpcw-courses-course-progress-bar-shortcode-input"
				       class="wpcw-courses-course-progress-bar-shortcode-input" readonly value="<?php echo $course_progress_bar_shortcode; ?>"/>
				<a href="<?php echo $support_link; ?>" target="_blank"><i class="wpcw-fas wpcw-fa-external-link-alt"></i></a>
			</div>
		</div>
		<?php
	}
public function shortcode_meta_box ( ) { if ( ! $ this -> is_page_request ( ) ) { return ; } $ course_outline_shortcode = htmlentities ( '[wpcourse course="' . $ this -> course -> get_course_id ( ) . '"]' ) ; $ course_outline_shortcode_tip = __ ( '<code>Course Outline Shortcode</code> - You can use this shortcode to display the course outline on any page.' , 'wp-courseware' ) ; $ course_progress_shortcode = htmlentities ( '[wpcourse_progress courses="' . $ this -> course -> get_course_id ( ) . '"]' ) ; $ course_progress_shortcode_tip = __ ( '<code>Course Progress Shortcode</code> - You can use this shortcode to display the course progress on any page.' , 'wp-courseware' ) ; $ course_progress_bar_shortcode = htmlentities ( '[wpcourse_progress_bar course="' . $ this -> course -> get_course_id ( ) . '"]' ) ; $ course_progress_bar_shortcode_tip = __ ( '<code>Course Progress Bar Shortcode</code> - You can use this shortcode to display the course progress bar on any page.' , 'wp-courseware' ) ; $ support_link = add_query_arg ( array ( 'page' => 'wpcw-settings' , 'tab' => 'support' ) , admin_url ( 'admin.php' ) ) ; ?> <div class="wpcw-course-shortcode-metabox-wrap">
			<div class="wpcw-course-shortcode-metabox-label"><i class="wpcw-fas wpcw-fa-code left"></i>  <?php esc_html_e ( 'Course Shortcodes' , 'wp-courseware' ) ; ?> </div>
			<div class="wpcw-courses-shortcode wpcw-courses-course-outline-shortcode">
				<abbr class="wpcw-tooltip" title=" <?php echo $ course_outline_shortcode_tip ; ?> " rel="wpcw-tooltip"><i class="wpcw-fas wpcw-fa-info-circle"></i></abbr>
				<input onClick="this.setSelectionRange(0, this.value.length)"
				       type="text"
				       name="wpcw-courses-course-outline-shortcode-input"
				       id="wpcw-courses-course-outline-shortcode-input"
				       class="wpcw-courses-course-outline-shortcode-input" readonly value=" <?php echo $ course_outline_shortcode ; ?> "/>
				<a href=" <?php echo $ support_link ; ?> " target="_blank"><i class="wpcw-fas wpcw-fa-external-link-alt"></i></a>
			</div>
			<div class="wpcw-courses-shortcode wpcw-courses-course-progress-shortcode">
				<abbr class="wpcw-tooltip" title=" <?php echo $ course_progress_shortcode_tip ; ?> " rel="wpcw-tooltip"><i class="wpcw-fas wpcw-fa-info-circle"></i></abbr>
				<input onClick="this.setSelectionRange(0, this.value.length)"
				       type="text"
				       name="wpcw-courses-course-progress-shortcode-input"
				       id="wpcw-courses-course-progress-shortcode-input"
				       class="wpcw-courses-course-progress-shortcode-input" readonly value=" <?php echo $ course_progress_shortcode ; ?> "/>
				<a href=" <?php echo $ support_link ; ?> " target="_blank"><i class="wpcw-fas wpcw-fa-external-link-alt"></i></a>
			</div>
			<div class="wpcw-courses-shortcode wpcw-courses-course-progress-bar-shortcode">
				<abbr class="wpcw-tooltip" title=" <?php echo $ course_progress_bar_shortcode_tip ; ?> " rel="wpcw-tooltip"><i class="wpcw-fas wpcw-fa-info-circle"></i></abbr>
				<input onClick="this.setSelectionRange(0, this.value.length)"
				       type="text"
				       name="wpcw-courses-course-progress-bar-shortcode-input"
				       id="wpcw-courses-course-progress-bar-shortcode-input"
				       class="wpcw-courses-course-progress-bar-shortcode-input" readonly value=" <?php echo $ course_progress_bar_shortcode ; ?> "/>
				<a href=" <?php echo $ support_link ; ?> " target="_blank"><i class="wpcw-fas wpcw-fa-external-link-alt"></i></a>
			</div>
		</div>
		 <?php }
Shortcode Metabox.
Shortcode Metabox .