[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.191.171.72: ~ $
<?php
/**
 * Course loop show view cart if in added to.
 *
 * @package Tutor\Templates
 * @subpackage CourseLoopPart
 * @author Themeum <support@themeum.com>
 * @link https://themeum.com
 * @since 1.7.5
 */

?>

<div class="tutor-course-loop-price">
	<?php
	$course_id     = get_the_ID();
	$cart_url      = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : '#';
	$enroll_btn    = '<div  class="tutor-loop-cart-btn-wrap"><a href="' . $cart_url . '" class="tutor-btn tutor-btn-outline-primary tutor-btn-md"><span class="tutor-icon-cart-line tutor-mr-8"></span><span>' . __( 'View Cart', 'tutor' ) . '</span></a></div>';
	$default_price = apply_filters( 'tutor-loop-default-price', __( 'Free', 'tutor' ) );
	$price_html    = '<div class="price"> ' . $default_price . $enroll_btn . '</div>';
	if ( tutor_utils()->is_course_purchasable() ) {

		$product_id = tutor_utils()->get_course_product_id( $course_id );
		$product    = wc_get_product( $product_id );

		if ( $product ) {
			$price_html = '<div class="tutor-d-flex tutor-align-center tutor-justify-between"><div class="list-item-price tutor-d-flex tutor-align-center"> <span class="price tutor-fs-6 tutor-fw-bold tutor-color-black">' . $product->get_price_html() . ' </span></div>';
			$cart_html  = '<div class="list-item-button"> ' . apply_filters( 'tutor_course_restrict_new_entry', $enroll_btn ) . ' </div></div>';
		}
	}
	echo wp_kses_post( $price_html );
	echo wp_kses_post( $cart_html );
	?>
</div>

Filemanager

Name Type Size Permission Actions
add-to-cart-edd.php File 1.37 KB 0644
add-to-cart-tutor.php File 1.43 KB 0644
add-to-cart-woocommerce.php File 2.49 KB 0644
course-author.php File 1.44 KB 0644
course-continue.php File 2.12 KB 0644
course-in-cart.php File 1.43 KB 0644
course-price-edd.php File 4.07 KB 0644
course-price-tutor.php File 3.71 KB 0644
course-price-woocommerce.php File 4.42 KB 0644
course-price.php File 4.45 KB 0644
course.php File 1.56 KB 0644
end_content_wrap.php File 195 B 0644
enrolled-course-progress.php File 986 B 0644
footer.php File 239 B 0644
header.php File 1.23 KB 0644
loop-after-content.php File 232 B 0644
loop-before-content.php File 268 B 0644
loop-end.php File 232 B 0644
loop-start.php File 581 B 0644
meta.php File 2.44 KB 0644
rating.php File 1.18 KB 0644
start_content_wrap.php File 221 B 0644
thumbnail.php File 619 B 0644
title.php File 364 B 0644