[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.32.238: ~ $
<?php
/**
 * Product selection meta box
 *
 * @package Tutor\Views
 * @subpackage Tutor\MetaBox
 * @author Themeum <support@themeum.com>
 * @link https://themeum.com
 * @since 1.0.0
 */

use TUTOR\Input;

$tutor_course_price_type = tutils()->price_type();
$course_price            = tutor_utils()->get_raw_course_price( get_the_ID() );
$monetization            = tutor_utils()->get_option( 'monetize_by' );
$course_id               = Input::get( 'course_ID', 0, Input::TYPE_INT );
if ( ! $course_id ) {
	$course_id = get_the_ID();
}
?>
<div class="tutor-row tutor-mt-16 tutor-mb-16 tutor-course-price-fields">
	<div class="tutor-col-12 tutor-col-sm-5 tutor-col-lg-4">
		<label for="tutor_course_price_type" class="tutor-fs-6 tutor-fw-medium">
			<?php esc_html_e( 'Course Type', 'tutor' ); ?> <br />
		</label>
	</div>
	<div class="tutor-col-12 tutor-col-sm-7 tutor-col-lg-8 tutor-d-flex">
		<div class="tutor-form-check tutor-mr-16">
			<input type="radio" id="tutor-course-price-paid" class="tutor-form-check-input" name="tutor_course_price_type" value="paid" <?php checked( $tutor_course_price_type, 'paid' ); ?>/>
			<label for="tutor-course-price-paid"><?php esc_html_e( 'Paid', 'tutor' ); ?></label>
		</div>
		<div class="tutor-form-check tutor-mr-16">
			<input type="radio" id="tutor-course-price-free" class="tutor-form-check-input" name="tutor_course_price_type" value="free" <?php $tutor_course_price_type ? checked( $tutor_course_price_type, 'free' ) : checked( 'true', 'true' ); ?>/>
			<label for="tutor-course-price-free"><?php esc_html_e( 'Free', 'tutor' ); ?></label>
		</div>
	</div>
</div>
<div class="tutor-row tutor-mt-16 tutor-mb-16 tutor-course-product-fields tutor-course-is-<?php echo esc_attr( $tutor_course_price_type ); ?>">
	<div class="tutor-col-12 tutor-col-md-5 tutor-col-lg-4">
		<label class="tutor-fs-6 tutor-fw-medium">
			<?php esc_html_e( 'Select product', 'tutor' ); ?> <br />
			<p class="tutor-color-muted">(<?php echo esc_html( $label_info ); ?>)</p>
		</label>
	</div>
	<div class="tutor-col-12 tutor-col-md-7 tutor-col-lg-8">
		<select name="_tutor_course_product_id" id="tutor-wc-product-select" data-product-id="<?php echo esc_attr( $product_id ); ?>" data-course-id="<?php echo esc_attr( $course_id ); ?>" class="tutor-form-select" required>
			<option value="-1"><?php esc_html_e( 'Select a Product' ); ?></option>
			<?php foreach ( $products as $product ) : ?>
				<option value="<?php echo esc_attr( $product->ID ); ?>" <?php selected( $product->ID, $product_id ); ?>
				>
					<?php echo esc_html( $product->post_title ); ?>
				</option>
			<?php endforeach; ?>
		</select>
		<div class="tutor-form-feedback">
			<i class="tutor-icon-circle-info-o tutor-form-feedback-icon" area-hidden="true"></i>
			<div><?php echo esc_html( $info_text ); ?></div>
		</div>
	</div>
<?php if ( tutor()->has_pro && 'wc' === $monetization ) : ?>
	<div class="tutor-col-12 tutor-col-md-5 tutor-col-lg-4 tutor-mt-12">
		<label class="tutor-fs-6 tutor-fw-medium">
			<?php esc_html_e( 'Regular Price', 'tutor' ); ?>
		</label>
	</div>

	<div class="tutor-col-12 tutor-col-md-7 tutor-col-lg-8 tutor-mt-12">
		<input type="number" class="tutor-form-control" style="width:170px" name="course_price" value="<?php echo esc_attr( 0 === $course_price->regular_price ? null : $course_price->regular_price ); ?>"  step="any" min="0" pattern="^\d*(\.\d{0,2})?$">
	</div>

	<div class="tutor-col-12 tutor-col-md-5 tutor-col-lg-4 tutor-mt-12">
		<label class="tutor-fs-6 tutor-fw-medium">
			<?php esc_html_e( 'Sale Price (Discounted Price)', 'tutor' ); ?>
		</label>
	</div>

	<div class="tutor-col-12 tutor-col-md-7 tutor-col-lg-8 tutor-mt-12">
		<input type="number" class="tutor-form-control" style="width:170px" name="course_sale_price" value="<?php echo esc_attr( 0 === $course_price->sale_price ? null : $course_price->sale_price ); ?>" step="any" min="0" pattern="^\d*(\.\d{0,2})?$">
	</div>
<?php endif; ?>
</div>


Filemanager

Name Type Size Permission Actions
course Folder 0755
course-add-edd-product-metabox.php File 451 B 0644
course-add-product-metabox.php File 711 B 0644
course-additional-data.php File 4.46 KB 0644
course-contents.php File 8.99 KB 0644
course-level-metabox.php File 923 B 0644
course-topics.php File 5.39 KB 0644
instructors-metabox.php File 2.65 KB 0644
lesson-attachments-metabox.php File 910 B 0644
lesson-metabox.php File 1.03 KB 0644
product-selection.php File 3.85 KB 0644
settings-tabs.php File 7.64 KB 0644
user-profile-fields.php File 2.07 KB 0644
video-metabox.php File 9.63 KB 0644