Submit
Path:
~
/
home
/
getwphos
/
public_html
/
shellfish
/
wp-content
/
themes
/
amanus
/
advanced-product
/
templates
/
single
/
File Content:
price.php
<?php defined('ADVANCED_PRODUCT') or exit(); use Advanced_Product\AP_Functions; use Advanced_Product\Helper\AP_Helper; use Advanced_Product\Helper\AP_Custom_Field_Helper; ?> <?php $msrp = get_field('ap_price_msrp', get_the_ID()); $price = get_field('ap_price', get_the_ID()); $rental = get_field('ap_rental_price', get_the_ID()); $rental_value = get_field('ap_rental_unit', get_the_ID()); if($rental_value){ $field_rental = get_field_object('ap_rental_unit'); $rental_unit = $field_rental['choices'][ $rental_value ]; } $product_type = get_field('ap_product_type', get_the_ID()); $f_value = get_field('unit-price', get_the_ID()); $call2buy_value = get_field('call-to-buy', get_the_ID()); $price_notice_value = get_field('price-notice', get_the_ID()); $call2buy = AP_Custom_Field_Helper::get_custom_field_option_by_field_name('call-to-buy'); if ((!$product_type || in_array('sale', $product_type)) && !empty($price)) { $html = '<p class="uk-background-primary uk-padding-small uk-light ap-pricing">'; $html .= sprintf('<span class="ap-price uk-h3"><b> %s</b> %s </span>', esc_html__(' ', 'amanus'), AP_Helper::format_price($price)); if (!empty($msrp)/* && $show_price_msrp*/) { $html .= sprintf('<span class="ap-price-msrp"> %s %s </span>', esc_html__('MSRP:', 'amanus'), AP_Helper::format_price($msrp)); } $html .= '</p>'; ?> <div class="ap-single-price uk-flex uk-flex-between uk-flex-middle"> <div class="ap-price-label"> <label class="single-price-label"><?php esc_html_e('PRICE:','amanus');?></label> <?php if($price_notice_value){ ?> <div class="price_notice uk-text-meta"> <?php echo esc_html($price_notice_value);?> </div> <?php } ?> </div> <div class="ap-price-value"> <span class="price"> <?php echo esc_html(AP_Helper::format_price($price)); ?> <?php if($f_value){ ?> <span class="meta"> <?php echo esc_html($f_value);?> </span> <?php } ?> </span> </div> </div> <?php } ?> <?php if (!empty($product_type) && in_array('rental', $product_type) && !empty($rental)) { ?> <div class="ap-single-price uk-flex uk-flex-between uk-flex-middle"> <label class="single-price-label"><?php esc_html_e('RENTAL PRICE:','amanus');?></label> <span class="price rental-price"> <?php echo esc_html(AP_Helper::format_price($rental)); ?> <?php if(!empty($rental_unit)){?> <span class="rental-unit uk-text-meta"><?php echo ' / '.esc_html($rental_unit);?></span> <?php } ?> </span> </div> <?php } ?> <?php if (!empty($product_type) && in_array('sold', $product_type) && !empty($price_sold)) { ?> <div class="ap-single-price uk-flex uk-flex-between uk-flex-middle"> <label class="single-price-label"><?php esc_html_e('PRICE:','amanus');?></label> <span class="price rental-price"> <?php echo esc_html($price_sold); ?> </span> </div> <?php } ?> <?php if (!empty($product_type) && in_array('contact', $product_type) && !empty($price_contact)) { ?> <div class="ap-single-price uk-flex uk-flex-between uk-flex-middle"> <label class="single-price-label"><?php esc_html_e('PRICE:','amanus');?></label> <span class="price rental-price"> <?php echo esc_html($price_contact); ?> </span> </div> <?php } ?>
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
price.php
3812 bytes
0644
single-style1.php
24588 bytes
0644
N4ST4R_ID | Naxtarrr