ï»¿PK     ¨,-]vàÙÐ×  ×    attributes.phpnu ßú¥ÿ        <?php
/**
 * The template for displaying attributes content within loop
 *
 * This template can be overridden by copying it to yourtheme/ovabrw-templates/loop/attributes.php
 *
 */

if ( ! defined( 'ABSPATH' ) ) exit();

global $product;

// if the product type isn't ovabrw_car_rental
if( ! $product || $product->get_type() !== 'ovabrw_car_rental' ) return;

$html = '';

$attributes = $product->get_attributes();
foreach ( $attributes as $attribute ) :
    
    $values = array();

    if ( $attribute->is_taxonomy() ) {
        $attribute_taxonomy = $attribute->get_taxonomy_object();
        $attribute_values = wc_get_product_terms( $product->get_id(), $attribute->get_name(), array( 'fields' => 'all' ) );

        foreach ( $attribute_values as $attribute_value ) {

            $value_name = esc_html( $attribute_value->name );

            if ( $attribute_taxonomy->attribute_public ) {
                $values[] = '<a href="' . esc_url( get_term_link( $attribute_value->term_id, $attribute->get_name() ) ) . '" rel="tag">' . $value_name . '</a>';
            } else {
                $values[] = $value_name;
            }
        }
    } else {

        $values = $attribute->get_options();

        foreach ( $values as &$value ) {
            $value = make_clickable( esc_html( $value ) );
        }

    }

    if( !empty( $values ) ){ ?>

        <div class="ovabrw_product_attr">

        	<span class="label">
        		<?php echo wc_attribute_label( $attribute->get_name() ); ?> : 
        	</span>

        	<span class="value">
        		<?php echo apply_filters( 'woocommerce_attribute',  wptexturize( implode( ', ', $values ) ) , $attribute, $values ); ?>
        	<span>
        		
        </div>

    <?php }
    
endforeach;

PK     ¨,-]Ø‚¼'  '    featured.phpnu ßú¥ÿ        <?php
/**
 * The template for displaying featured content within loop
 *
 * This template can be overridden by copying it to yourtheme/ovabrw-templates/loop/featured.php
 *
 */

if ( ! defined( 'ABSPATH' ) ) exit();

global $product;

// if the product type isn't ovabrw_car_rental
if( ! $product || $product->get_type() !== 'ovabrw_car_rental' ) return;

$pid = $product->get_id();
    
    
$icon = get_post_meta( $pid, 'ovabrw_features_icons', true );
$label = get_post_meta( $pid, 'ovabrw_features_label', true );
$desc = get_post_meta( $pid, 'ovabrw_features_desc', true );
$show_in_cat = get_post_meta( $pid, 'ovabrw_features_special', true );

$d = 0;

if( $desc ){ ?>
    <ul class="ovabrw-features">
        <?php
        foreach ($desc as $key => $value) {
            if ( $show_in_cat[$key] == 'yes' && $value ) { ?>
                
                <?php $class = ($d%2) ? 'eve' : 'odd'; ?>

                    <li class="feature-item <?php echo esc_attr( $class ); ?> ">
                        
                        <?php if( apply_filters( 'ovabrw_show_features_icon', true ) && $icon ){ ?>
                            <i class="<?php echo esc_attr( $icon[$key] ); ?>"> </i>
                        <?php } ?>
                        
                        <?php if( apply_filters( 'ovabrw_show_features_label', false ) ){ ?>    
                            <span class="label"><?php echo esc_html( $label[$key] ); ?></span>
                        <?php } ?>

                        <?php if( apply_filters( 'ovabrw_show_features_desc', true ) ){ ?>    
                            <span class="desc"><?php echo esc_html( $value ); ?></span>
                        <?php } ?>

                    </li>

                <?php $d++; ?>
                
            <?php }
        } ?>
    </ul>

<?php } 

PK     ¨,-]®õ[F  F    taxonomy.phpnu ßú¥ÿ        <?php
/**
 * The template for displaying custom taxonomy content within loop
 *
 * This template can be overridden by copying it to yourtheme/ovabrw-templates/loop/taxonomy.php
 *
 */

if ( ! defined( 'ABSPATH' ) ) exit();

global $product;

$pid = $product->get_id();

$all_cus_choosed = get_all_cus_tax_dis_listing( $pid );


if( $all_cus_choosed ){
?>
	<ul class="product_listing_custom_tax">
		<?php foreach ($all_cus_choosed as $key => $value) { ?>
			<li class="<?php echo 'tax_'.$value['slug']; ?> ">
				<?php echo $value['name']; ?>
			</li>
		<?php } ?>
	</ul>
<?php } ?>
PK       ¨,-]vàÙÐ×  ×                  attributes.phpnu ßú¥ÿ        PK       ¨,-]Ø‚¼'  '                featured.phpnu ßú¥ÿ        PK       ¨,-]®õ[F  F              x  taxonomy.phpnu ßú¥ÿ        PK      æ   ú 