Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/
Upload File :
Current File : /home/x/b/o/xbodynamge/namtation/wp-content/loop.tar

result-count.php000066600000002564151143723100007731 0ustar00<?php
/**
 * Result Count
 *
 * Shows text: Showing x - x of x results.
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/loop/result-count.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see         https://docs.woocommerce.com/document/template-structure/
 * @author      WooThemes
 * @package     WooCommerce/Templates
 * @version     3.3.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<p class="woocommerce-result-count text-uppercase text-xsmall">
	<?php
	if ( $total <= $per_page || -1 === $per_page ) {
		/* translators: %d: total results */
		printf( _n( 'Showing the single result', 'Showing all %d results', $total, 'customify' ), $total ); //phpcs:ignore
	} else {
		$first = ( $per_page * $current ) - $per_page + 1;
		$last  = min( $total, $per_page * $current );
		/* translators: 1: first result 2: last result 3: total results */
		printf( _nx( 'Showing the single result', 'Showing %1$d&ndash;%2$d of %3$d results', $total, 'with first and last result', 'customify' ), $first, $last, $total ); //phpcs:ignore
	}
	?>
</p>
add-to-cart.php000066600000001627151143723100007363 0ustar00<?php
/**
 * Loop Add to Cart
 *
 * @see         https://docs.woocommerce.com/document/template-structure/
 * @author      WooThemes
 * @package     WooCommerce/Templates
 * @version     3.3.0
 */

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

global $product;
$text = $product->add_to_cart_text();
if ( ! isset( $args['class'] ) ) {
	$args['class'] = 'button';
}

if ( strpos( $args['class'], 'add_to_cart_button' ) === false ) {
	$args['class'] .= ' add_to_cart_button';
}

echo apply_filters(
	'woocommerce_loop_add_to_cart_link', // WPCS: XSS ok.
	sprintf(
		'<a href="%1$s" data-quantity="%2$s" class="%3$s" %4$s><span class="button-label">%5$s</span></a>',
		esc_url( $product->add_to_cart_url() ),
		esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ),
		esc_attr( $args['class'] ),
		isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '',
		$text
	),
	$product,
	$args
);
sale-flash.php000066600000005171151143723100007301 0ustar00<?php
/**
 * Product loop sale flash
 *
 * @see         https://docs.woocommerce.com/document/template-structure/
 * @author      WooThemes
 * @package     WooCommerce/Templates
 * @version     1.6.4
 */

if ( ! defined( 'ABSPATH' ) ) {
	// Exit if accessed directly ?
	exit;
}

global $post, $product;
if ( $product->is_on_sale() ) {

	$type = Customify()->get_setting( 'wc_cd_sale_bubble_type' );

	$product_type = $product->get_type();

	$text = '';

	switch ( $type ) {
		case 'value':
			if ( 'variable' == $product_type ) {
				$available_variations = $product->get_available_variations();
				$maximumper           = 0;
				$n = count( $available_variations );
				for ( $i = 0; $i < $n; ++ $i ) {
					$variation_id      = $available_variations[ $i ]['variation_id'];
					$variable_product1 = new WC_Product_Variation( $variation_id );
					$regular_price     = $variable_product1->get_regular_price();
					$sales_price       = $variable_product1->get_sale_price();
					if ( is_numeric( $regular_price ) && is_numeric( $sales_price ) ) {
						$p = $regular_price - $sales_price;
						if ( $p > $maximumper ) {
							$maximumper = $p;
						}
					}
				}
				$text = wc_price( - $maximumper );

			} elseif ( 'simple' == $product_type ) {
				$text = wc_price( - ( $product->get_regular_price() - $product->get_sale_price() ) );
			}
			break;
		case 'percent':
			if ( 'variable' == $product_type ) {
				$available_variations = $product->get_available_variations();
				$maximumper           = 0;
				$n = count( $available_variations );
				for ( $i = 0; $i < $n; ++ $i ) {
					$variation_id      = $available_variations[ $i ]['variation_id'];
					$variable_product1 = new WC_Product_Variation( $variation_id );
					$regular_price     = $variable_product1->get_regular_price();
					$sales_price       = $variable_product1->get_sale_price();
					if ( is_numeric( $regular_price ) && is_numeric( $sales_price ) ) {
						$percentage = round( ( ( ( $regular_price - $sales_price ) / $regular_price ) * 100 ), 1 );
						if ( $percentage > $maximumper ) {
							$maximumper = $percentage;
						}
					}
				}

				$text = sprintf(
					'%s',
					- $maximumper . '%'
				);

			} elseif ( 'simple' == $product_type ) {
				$percentage = round( ( ( $product->get_regular_price() - $product->get_sale_price() ) / $product->get_regular_price() ) * 100 );

				$text = sprintf(
					'%s',
					- $percentage . '%'
				);
			}
			break;
		default:
			$text = false;
	}
	if ( ! $text ) {
		$text = esc_html__( 'Sale!', 'customify' );
	}

	$text = apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . $text . '</span>', $post, $product );
	echo $text;
}
pagination.php000066600000001757151143723100007421 0ustar00<?php
/**
 * @see     https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates
 * @version 3.3.1
 */

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

$total   = isset( $total ) ? $total : wc_get_loop_prop( 'total_pages' );
$current = isset( $current ) ? $current : wc_get_loop_prop( 'current_page' );
$base    = isset( $base ) ? $base : esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) );
$format  = isset( $format ) ? $format : '';

if ( $total <= 1 ) {
	return;
}
?>
<nav class="woocommerce-pagination">
	<?php

	the_posts_pagination(
		array(
			'format'       => $format,
			'base'         => $base,
			'add_args'     => false,
			'total'        => $total,
			'current'      => max( 1, $current ),
			'end_size'     => 3,
			'mid_size'     => 3,
			'prev_text' => _x( 'Previous', 'previous set of posts', 'customify' ),
			'next_text' => _x( 'Next', 'next set of posts', 'customify' ),
		)
	);
	?>
</nav>
loop-end.php000066600000000304151143723100006770 0ustar00<?php
/**
 * Product Loop End
 *
 * @see https://docs.woocommerce.com/document/template-structure/
 * @package woocommerce
 * @version 2.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
</ul>
loop-start.php000066600000001716151143723100007367 0ustar00<?php
/**
 * Product Loop Start
 *
 * @see         https://docs.woocommerce.com/document/template-structure/
 * @author      WooThemes
 * @package     WooCommerce/Templates
 * @version     3.3.0
 */

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

do_action( 'customify_wc_loop_start' );

$columns = intval( wc_get_loop_prop( 'columns', 3 ) );
$tablet = intval( wc_get_loop_prop( 'tablet_columns', 2 ) );
$mobile = intval( wc_get_loop_prop( 'mobile_columns', 1 ) );

if ( $tablet > $columns && $columns > 1 ) {
	$tablet = $columns;
}

if ( ! $tablet ) {
	$tablet = $columns;
}

if ( $mobile >= $tablet && $tablet > 1 ) {
	$mobile = $tablet;
}

if ( ! $mobile ) {
	$mobile = 1;
}
if ( ! $columns ) {
	$columns = 4;
	$tablet = 2;
	$mobile = 1;
}

$view = customify_get_default_catalog_view_mod();
$class = sprintf( "customify-grid-{$columns}_md-{$columns}_sm-{$tablet}_xs-{$mobile}" );
$class .= ' wc-' . $view . '-view';

?>
<ul class="products <?php echo esc_attr( $class ); ?>">