<?php /** * Edd price template for the course list page * * @package Tutor\Templates * @subpackage EDDIntegration * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.4.3 */ $product_id = tutor_utils()->get_course_product_id(); $download = new EDD_Download( $product_id ); if ( $download->ID ) { if ( ! is_user_logged_in() ) { /** * Add required logged in class * * @since v 1.5.5 */ $button_behavior = edd_get_download_button_behavior( $download->ID ); $args = apply_filters( 'edd_purchase_link_defaults', array( 'text' => 'direct' == $button_behavior ? edd_get_option( 'buy_now_text', __( 'Buy Now', 'easy-digital-downloads' ) ) : edd_get_option( 'add_to_cart_text', __( 'Purchase', 'easy-digital-downloads' ) ), 'style' => edd_get_option( 'button_style', 'button' ), 'color' => edd_get_option( 'checkout_color', 'blue' ), 'class' => 'edd-submit tutor-open-login-modal', ) ); $button_text = edd_currency_filter( edd_format_amount( $download->price ) ) . ' – ' . $args['text']; $button_class = implode( ' ', array( $args['style'], $args['color'], $args['class'] ) ); echo '<button class="' . esc_attr( $button_class ) . '">' . $button_text . '</button>'; //phpcs:ignore } else { echo edd_get_purchase_link( array( 'download_id' => $download->ID ) ); //phpcs:ignore } }
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 |
|