Initial Commit N° : 001 - V.4.3.3

This commit is contained in:
2025-03-28 14:32:57 +01:00
commit 238e5d7999
809 changed files with 371149 additions and 0 deletions
+69
View File
@@ -0,0 +1,69 @@
<?php
/*
* WooCommerce Account - Navigations
*/
defined('ABSPATH') or exit; // Exit if accessed directly
$menu_items = !isset($menu_items) ? wc_get_account_menu_items() : $menu_items;
if (!empty($menu_items)) :
$class_wrap = 'woocommerce-MyAccount-navigation';
$class_wrap .= isset($extra_class) ? ' ' . $extra_class : '';
?>
<nav class="<?php echo esc_attr($class_wrap); ?>" aria-label="<?php esc_attr_e('Account pages', 'elessi-theme'); ?>">
<ul>
<?php foreach ($menu_items as $endpoint => $label) : ?>
<li class="<?php echo wc_get_account_menu_item_classes($endpoint); ?>">
<a href="<?php echo esc_url(wc_get_account_endpoint_url($endpoint)); ?>" title="<?php echo esc_attr($label); ?>" class="nasa-flex"<?php echo (function_exists('wc_is_current_account_menu_item') && wc_is_current_account_menu_item($endpoint)) ? ' aria-current="page"' : ''; ?>>
<?php
/**
* SVG
*/
switch ($endpoint) :
case 'dashboard' :
echo '<span class="ns-svg-wrap nasa-flex"><svg class="ns-dashboard" width="27" height="32" viewBox="0 0 27 32" fill="currentColor"><path d="M16.785 12.328h7.342v1.049h-7.342v-1.049z" /><path d="M16.784 18.623h7.343v1.049h-7.343v-1.049z" /><path d="M16.784 15.475h5.237v1.049h-5.237v-1.049z" /><path d="M15.735 6.034v-3.147h-4.196v3.147h-11.539v23.079h27.275v-23.079h-11.539zM26.226 7.083v2.098h-10.49v-2.098h10.49zM12.588 3.936h2.098v5.245h-2.098v-5.245zM1.049 7.083h10.49v2.098h-10.49v-2.098zM1.049 28.064v-17.833h25.177v17.833h-25.177z" /><path d="M15.463 23.402c-0.757-0.315-2.545-0.936-3.652-1.263-0.094-0.030-0.108-0.035-0.108-0.428 0-0.324 0.133-0.65 0.263-0.927 0.14-0.301 0.308-0.806 0.368-1.259 0.168-0.196 0.396-0.58 0.545-1.313 0.128-0.645 0.069-0.881-0.017-1.102-0.009-0.023-0.018-0.046-0.026-0.069-0.033-0.152 0.012-0.938 0.123-1.549 0.076-0.418-0.019-1.309-0.596-2.046-0.364-0.466-1.060-1.037-2.334-1.117l-0.699 0.001c-1.251 0.079-1.949 0.651-2.312 1.116-0.577 0.737-0.673 1.628-0.597 2.046 0.112 0.611 0.156 1.397 0.124 1.546-0.006 0.026-0.016 0.049-0.026 0.072-0.085 0.221-0.146 0.456-0.016 1.102 0.146 0.733 0.375 1.117 0.544 1.313 0.058 0.453 0.226 0.958 0.368 1.259 0.103 0.22 0.153 0.519 0.153 0.942 0 0.393-0.015 0.398-0.103 0.426-1.144 0.338-2.967 0.996-3.646 1.293-0.539 0.231-0.67 0.646-0.67 1.020 0 0.105 0 0.268 0 0.453h1.049v-0.453c0-0.017 0.001-0.030 0.002-0.040 0.009-0.005 0.021-0.011 0.039-0.018 0.645-0.283 2.433-0.927 3.543-1.255 0.835-0.265 0.835-1.049 0.835-1.426 0-0.581-0.080-1.022-0.252-1.389-0.105-0.224-0.235-0.621-0.277-0.946l-0.041-0.313-0.206-0.239c-0.032-0.036-0.192-0.244-0.309-0.833-0.080-0.397-0.051-0.471-0.035-0.514 0.028-0.068 0.051-0.135 0.073-0.23 0.092-0.424-0.030-1.483-0.116-1.955-0.029-0.155 0.012-0.73 0.39-1.214 0.332-0.425 0.844-0.665 1.522-0.713l0.629-0.001c0.691 0.049 1.209 0.289 1.541 0.714 0.379 0.484 0.419 1.059 0.391 1.213-0.086 0.472-0.208 1.53-0.117 1.957l0.009 0.041 0.011 0.040c0.014 0.046 0.030 0.090 0.052 0.149 0.017 0.044 0.046 0.117-0.033 0.513-0.119 0.59-0.28 0.8-0.312 0.836l-0.204 0.237-0.041 0.31c-0.043 0.326-0.172 0.725-0.277 0.949-0.17 0.36-0.364 0.841-0.364 1.375 0 0.377 0 1.162 0.861 1.434 1.048 0.309 2.805 0.916 3.535 1.221 0.111 0.047 0.151 0.105 0.162 0.127v0.424h1.049c0-0.184 0-0.348 0-0.453-0-0.374-0.259-0.831-0.797-1.063z" /></svg></span>';
break;
case 'orders' :
echo '<span class="ns-svg-wrap nasa-flex"><svg class="ns-orders" width="25" height="32" viewBox="0 0 25 32" fill="currentColor"><path d="M6.294 14.164h12.588v1.049h-12.588v-1.049z" /><path d="M6.294 18.36h12.588v1.049h-12.588v-1.049z" /><path d="M6.294 22.557h8.392v1.049h-8.392v-1.049z" /><path d="M15.688 3.674c-0.25-1.488-1.541-2.623-3.1-2.623s-2.85 1.135-3.1 2.623h-9.489v27.275h25.176v-27.275h-9.488zM10.49 6.082v-1.884c0-1.157 0.941-2.098 2.098-2.098s2.098 0.941 2.098 2.098v1.884l0.531 0.302c1.030 0.586 1.82 1.477 2.273 2.535h-9.803c0.453-1.058 1.243-1.949 2.273-2.535l0.53-0.302zM24.128 29.9h-23.078v-25.177h8.392v0.749c-1.638 0.932-2.824 2.566-3.147 4.496h12.588c-0.322-1.93-1.509-3.563-3.147-4.496v-0.749h8.392v25.177z" /></svg></span>';
break;
case 'downloads' :
echo '<span class="ns-svg-wrap nasa-flex"><svg width="32" height="32" viewBox="0 0 32 32" fill="currentColor"><path d="M11.335 13.315l-0.754 0.754 5.419 5.419 5.419-5.419-0.754-0.754-4.132 4.132v-16.877h-1.066v16.877z" /><path d="M18.666 5.9v1.066h6.931v18.126h-19.192v-18.126h6.931v-1.066h-7.997v20.259h21.325v-20.259z" /></svg></span>';
break;
case 'edit-address' :
echo '<span class="ns-svg-wrap nasa-flex"><svg width="32" height="32" viewBox="0 0 32 32" fill="currentColor"><path d="M16.001 1.072c5.291 0 9.596 4.305 9.596 9.597 0 1.683-0.446 3.341-1.29 4.799l-8.307 14.394-8.308-14.395c-0.843-1.456-1.289-3.115-1.289-4.798 0-5.292 4.305-9.597 9.597-9.597zM16.001 14.4c2.058 0 3.731-1.674 3.731-3.731s-1.674-3.731-3.731-3.731c-2.058 0-3.732 1.674-3.732 3.731s1.674 3.731 3.732 3.731zM16.001 0.006c-5.889 0-10.663 4.775-10.663 10.663 0 1.945 0.523 3.762 1.432 5.332l9.23 15.994 9.23-15.994c0.909-1.57 1.432-3.387 1.432-5.332 0-5.888-4.774-10.663-10.662-10.663v0zM16.001 13.334c-1.472 0-2.666-1.193-2.666-2.665 0-1.471 1.194-2.665 2.666-2.665s2.665 1.194 2.665 2.665c0 1.472-1.193 2.665-2.665 2.665v0z" /></svg></span>';
break;
case 'edit-account' :
echo '<span class="ns-svg-wrap nasa-flex"><svg width="32" height="32" viewBox="0 0 32 32" fill="currentColor"><path d="M16 3.205c-7.067 0-12.795 5.728-12.795 12.795s5.728 12.795 12.795 12.795 12.795-5.728 12.795-12.795c0-7.067-5.728-12.795-12.795-12.795zM16 4.271c6.467 0 11.729 5.261 11.729 11.729 0 2.845-1.019 5.457-2.711 7.49-1.169-0.488-3.93-1.446-5.638-1.951-0.146-0.046-0.169-0.053-0.169-0.66 0-0.501 0.206-1.005 0.407-1.432 0.218-0.464 0.476-1.244 0.569-1.944 0.259-0.301 0.612-0.895 0.839-2.026 0.199-0.997 0.106-1.36-0.026-1.7-0.014-0.036-0.028-0.071-0.039-0.107-0.050-0.234 0.019-1.448 0.189-2.391 0.118-0.647-0.030-2.022-0.921-3.159-0.562-0.719-1.638-1.601-3.603-1.724l-1.078 0.001c-1.932 0.122-3.008 1.004-3.57 1.723-0.89 1.137-1.038 2.513-0.92 3.159 0.172 0.943 0.239 2.157 0.191 2.387-0.010 0.040-0.025 0.075-0.040 0.111-0.131 0.341-0.225 0.703-0.025 1.7 0.226 1.131 0.579 1.725 0.839 2.026 0.092 0.7 0.35 1.48 0.569 1.944 0.159 0.339 0.234 0.801 0.234 1.454 0 0.607-0.023 0.614-0.159 0.657-1.767 0.522-4.579 1.538-5.628 1.997-1.725-2.042-2.768-4.679-2.768-7.555 0-6.467 5.261-11.729 11.729-11.729zM7.811 24.386c1.201-0.49 3.594-1.344 5.167-1.808 0.914-0.288 0.914-1.058 0.914-1.677 0-0.513-0.035-1.269-0.335-1.908-0.206-0.438-0.442-1.189-0.494-1.776-0.011-0.137-0.076-0.265-0.18-0.355-0.151-0.132-0.458-0.616-0.654-1.593-0.155-0.773-0.089-0.942-0.026-1.106 0.027-0.070 0.053-0.139 0.074-0.216 0.128-0.468-0.015-2.005-0.17-2.858-0.068-0.371 0.018-1.424 0.711-2.311 0.622-0.795 1.563-1.238 2.764-1.315l1.011-0.001c1.233 0.078 2.174 0.521 2.797 1.316 0.694 0.887 0.778 1.94 0.71 2.312-0.154 0.852-0.298 2.39-0.17 2.857 0.022 0.078 0.047 0.147 0.074 0.217 0.064 0.163 0.129 0.333-0.025 1.106-0.196 0.977-0.504 1.461-0.655 1.593-0.103 0.091-0.168 0.218-0.18 0.355-0.051 0.588-0.286 1.338-0.492 1.776-0.236 0.502-0.508 1.171-0.508 1.886 0 0.619 0 1.389 0.924 1.68 1.505 0.445 3.91 1.271 5.18 1.77-2.121 2.1-5.035 3.4-8.248 3.4-3.183 0-6.073-1.277-8.188-3.342z" /></svg></span>';
break;
case 'payment-methods' :
echo '<span class="ns-svg-wrap nasa-flex"><svg width="32" height="32" viewBox="0 0 32 32" fill="currentColor"><path d="M28.795 6.404h-25.59c-0.883 0-1.599 0.716-1.599 1.599v15.994c0 0.884 0.716 1.599 1.599 1.599h25.59c0.883 0 1.599-0.715 1.599-1.599v-15.994c0-0.883-0.716-1.599-1.599-1.599zM2.672 10.669h26.656v2.133h-26.656v-2.133zM29.328 23.997c0 0.294-0.239 0.533-0.533 0.533h-25.59c-0.294 0-0.533-0.239-0.533-0.533v-10.129h26.656v10.129zM2.672 9.602v-1.599c0-0.294 0.239-0.533 0.533-0.533h25.59c0.294 0 0.533 0.239 0.533 0.533v1.599h-26.656z" /><path d="M4.804 21.331h10.662v1.066h-10.662v-1.066z" /><path d="M4.804 18.133h6.398v1.066h-6.397v-1.066z" /><path d="M23.981 22.398h2.165c0.579 0 1.050-0.462 1.050-1.034v-0.064c0-0.571-0.47-1.035-1.050-1.035h-2.165c-0.58 0-1.051 0.463-1.051 1.035v0.064c0 0.572 0.47 1.034 1.051 1.034z" /></svg></span>';
break;
case 'customer-logout' :
echo '<span class="ns-svg-wrap nasa-flex"><svg width="32" height="32" viewBox="0 0 32 32" fill="currentColor"><path d="M14.389 7.956v4.374l1.056 0.010c7.335 0.071 11.466 3.333 12.543 9.944-4.029-4.661-8.675-4.663-12.532-4.664h-1.067v4.337l-9.884-7.001 9.884-7zM15.456 5.893l-12.795 9.063 12.795 9.063v-5.332c5.121 0.002 9.869 0.26 13.884 7.42 0-4.547-0.751-14.706-13.884-14.833v-5.381z" /></svg></span>';
break;
default:
echo '<span class="ns-svg-wrap nasa-flex"><svg width="32" height="32" viewBox="0 0 32 32" fill="currentColor"><path d="M16.067 11.156c0.883 0 1.599-0.716 1.599-1.599 0-0.884-0.716-1.598-1.599-1.598s-1.599 0.714-1.599 1.598c0 0.883 0.716 1.599 1.599 1.599z" /><path d="M17.153 13.289v-1.066h-3.199v1.066h1.066v9.063h-1.066v1.066h4.265v-1.066h-1.066z" /><path d="M16 2.672c-7.361 0-13.328 5.968-13.328 13.328 0 7.362 5.968 13.328 13.328 13.328s13.328-5.966 13.328-13.328c0-7.361-5.968-13.328-13.328-13.328zM16 28.262c-6.761 0-12.262-5.501-12.262-12.262s5.5-12.262 12.262-12.262c6.761 0 12.262 5.501 12.262 12.262s-5.5 12.262-12.262 12.262z" /></svg></span>';
break;
endswitch;
/**
* Label
*/
echo esc_html($label);
?>
</a>
</li>
<?php endforeach; ?>
</ul>
</nav>
<?php
endif;
+180
View File
@@ -0,0 +1,180 @@
<?php
/**
* Popup after add to cart
* Your Order Popup
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
global $nasa_opt;
if (!isset($cart_items)) :
$nasa_cart = WC()->cart;
$cart_items = $nasa_cart->get_cart();
endif;
do_action('popup_woocommerce_before_cart');
?>
<a class="nasa-stclose popup-cart-close" href="javascript:void(0);" title="<?php echo esc_attr__('Close (Esc)', 'elessi-theme'); ?>"></a>
<h3 class="nasa-title-after-add-to-cart text-center">
<?php echo esc_html__('Your Order', 'elessi-theme'); ?>
</h3>
<form class="after-add-to-cart-form<?php echo isset($nasa_opt['auto_update_cart']) && $nasa_opt['auto_update_cart'] ? ' qty-auto-update': ''; ?>" action="<?php echo esc_url(wc_get_cart_url()); ?>" method="post">
<?php do_action('popup_woocommerce_before_cart_table'); ?>
<div class="nasa-table-wrap nasa-active">
<table class="after-add-to-cart-shop_table shop_table responsive woocommerce-cart-form__contents">
<thead>
<tr>
<th class="product-name" colspan="3"><?php esc_html_e('Product', 'elessi-theme'); ?></th>
<th class="product-price hide-for-small"><?php esc_html_e('Price', 'elessi-theme'); ?></th>
<th class="product-quantity"><?php esc_html_e('Quantity', 'elessi-theme'); ?></th>
<th class="product-subtotal hide-for-small"><?php esc_html_e('Total', 'elessi-theme'); ?></th>
</tr>
</thead>
<tbody>
<?php do_action('popup_woocommerce_before_cart_contents'); ?>
<?php
foreach ($cart_items as $cart_item_key => $cart_item) :
$_product = apply_filters('woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key);
$product_id = apply_filters('woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key);
if ($_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters('woocommerce_cart_item_visible', true, $cart_item, $cart_item_key)) :
$product_permalink = apply_filters('woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink($cart_item) : '', $cart_item, $cart_item_key);
$priceProduct = apply_filters(
'woocommerce_cart_item_price',
$nasa_cart->get_product_price($_product),
$cart_item,
$cart_item_key
);
?>
<tr class="woocommerce-cart-form__cart-item <?php echo esc_attr(apply_filters('woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key)); ?>">
<td class="product-remove remove-product">
<?php echo apply_filters(
'woocommerce_cart_item_remove_link',
sprintf('<a href="%s" class="remove_from_cart_popup nasa-stclose" title="%s" data-product_id="%s" data-product_sku="%s">%s</a>',
esc_url(function_exists('wc_get_cart_remove_url') ? wc_get_cart_remove_url($cart_item_key) : $nasa_cart->get_remove_url($cart_item_key)),
esc_attr__('Remove', 'elessi-theme'),
esc_attr($product_id),
esc_attr($_product->get_sku()),
esc_html__('Remove', 'elessi-theme')
), $cart_item_key
); ?>
</td>
<td class="product-thumbnail">
<?php
$thumbnail = apply_filters('woocommerce_cart_item_thumbnail', str_replace(array('http:', 'https:'), '', $_product->get_image()), $cart_item, $cart_item_key);
if (!$product_permalink) :
echo $thumbnail;
else :
printf('<a href="%s">%s</a>', esc_url($product_permalink), $thumbnail);
endif;
?>
</td>
<td class="product-name" data-title="<?php esc_attr_e('Product', 'elessi-theme'); ?>">
<?php
if (!$product_permalink):
echo wp_kses_post(apply_filters('woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) . '&nbsp;');
else:
echo wp_kses_post(apply_filters('woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url($product_permalink), $_product->get_name()), $cart_item, $cart_item_key));
endif;
do_action('woocommerce_after_cart_item_name', $cart_item, $cart_item_key);
// Meta data
echo function_exists('wc_get_formatted_cart_item_data') ? wc_get_formatted_cart_item_data($cart_item) : $nasa_cart->get_item_data($cart_item);
// Backorder notification
if ($_product->backorders_require_notification() && $_product->is_on_backorder($cart_item['quantity'])) :
echo wp_kses_post(apply_filters('woocommerce_cart_item_backorder_notification', '<p class="backorder_notification">' . esc_html__('Available on backorder', 'elessi-theme') . '</p>', $product_id));
endif;
?>
<div class="mobile-price show-for-small" data-title="<?php esc_attr_e('Price', 'elessi-theme'); ?>">
<?php echo $priceProduct; ?>
</div>
</td>
<td class="product-price hide-for-small" data-title="<?php esc_attr_e('Price', 'elessi-theme'); ?>">
<?php echo $priceProduct; ?>
</td>
<td class="product-quantity" data-title="<?php esc_attr_e('Quantity', 'elessi-theme'); ?>">
<?php
if ($_product->is_sold_individually()) :
$product_quantity = sprintf('1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key);
else :
$product_quantity = woocommerce_quantity_input(
array(
'input_name' => 'cart[' . $cart_item_key . '][qty]',
'input_value' => $cart_item['quantity'],
'max_value' => $_product->get_max_purchase_quantity(),
'min_value' => '0',
'product_name' => $_product->get_name(),
),
$_product,
false
);
endif;
echo apply_filters('woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item); // PHPCS: XSS ok.
?>
</td>
<td class="product-subtotal hide-for-small" data-title="<?php esc_attr_e('Total', 'elessi-theme'); ?>">
<?php
echo apply_filters('woocommerce_cart_item_subtotal', $nasa_cart->get_product_subtotal($_product, $cart_item['quantity']), $cart_item, $cart_item_key); // PHPCS: XSS ok.
?>
</td>
</tr>
<?php
endif;
endforeach;
do_action('popup_woocommerce_cart_contents');
do_action('popup_woocommerce_after_cart_contents');
?>
</tbody>
</table>
</div>
<?php do_action('popup_woocommerce_after_cart_table'); ?>
<div class="nasa-after-add-to-cart-subtotal text-center">
<span class="nasa-after-add-to-cart-subtotal-title">
<?php esc_html_e('Subtotal&nbsp;&nbsp;&nbsp;', 'elessi-theme'); ?>
</span>
<span class="nasa-after-add-to-cart-subtotal-price">
<?php wc_cart_totals_subtotal_html(); ?>
</span>
</div>
<?php do_action('nasa_subtotal_free_shipping'); ?>
<div class="nasa-after-add-to-cart-buttons margin-top-20">
<a class="button nasa-disable nasa-update-cart-popup left rtl-right" href="javascript:void(0);" title="<?php esc_attr_e('Update Cart', 'elessi-theme'); ?>" rel="nofollow">
<?php esc_html_e('Update Cart', 'elessi-theme'); ?>
</a>
<a href="<?php echo esc_url(wc_get_cart_url()); ?>" class="popup-view-cart-button button alt wc-forward right rtl-left" title="<?php esc_attr_e('View cart', 'elessi-theme'); ?>">
<?php esc_html_e('View cart', 'elessi-theme'); ?>
</a>
<a href="<?php echo esc_url(wc_get_checkout_url()); ?>" class="checkout-button button alt wc-forward right rtl-left" title="<?php esc_attr_e('Proceed to checkout', 'elessi-theme'); ?>">
<?php esc_html_e('Proceed to checkout', 'elessi-theme'); ?>
</a>
</div>
<div class="clearfix"></div>
<?php wp_nonce_field('woocommerce-cart', 'woocommerce-cart-nonce'); ?>
</form>
<?php
do_action('popup_woocommerce_after_cart');
+41
View File
@@ -0,0 +1,41 @@
<?php
/*
* Age Verification
*/
defined('ABSPATH') or exit; // Exit if accessed directly
?>
<script type="text/template" id="nasa-age-verification-popup-tmp">
<div id="nasa-age-verification-popup-wrap">
<div class="nasa-age-verification nasa-flex jc flex-column">
<span class="nasa-age-question nasa-bold verification-text">
<?php echo esc_html__('Are you over 18?', 'elessi-theme'); ?>
</span>
<span class="nasa-age-notice verification-text">
<?php echo esc_html__('You must be 18 years of age or older to view page.', 'elessi-theme'); ?><br />
<?php echo esc_html__('Please verify your age to enter.', 'elessi-theme'); ?>
</span>
<div class="nasa-age-verification-button-wrap nasa-flex jc">
<a href="javascript:void(0);" class="nasa-over-18 button" rel="nofollow">
<?php echo esc_html__('I am 18 or older', 'elessi-theme'); ?>
</a>
<a href="javascript:void(0);" class="nasa-under-18 button" rel="nofollow">
<?php echo esc_html__('I am under 18', 'elessi-theme'); ?>
</a>
</div>
</div>
<div class="nasa-age-verification ns-age-denied nasa-flex jc flex-column">
<span class="nasa-age-question nasa-bold verification-text">
<?php echo esc_html__('Access fobidden', 'elessi-theme'); ?>
</span>
<span class="nasa-age-notice verification-text">
<?php echo esc_html__('Your access is restricted because of your age.', 'elessi-theme'); ?>
</span>
</div>
</div>
</script>
+104
View File
@@ -0,0 +1,104 @@
<?php
if ($k == 0) :
$class_wrap = 'group-blogs';
$class_wrap .= ' large-block-grid-' . (isset($nasa_opt['masonry_blogs_columns_desk']) && (int) $nasa_opt['masonry_blogs_columns_desk'] ? (int) $nasa_opt['masonry_blogs_columns_desk'] : '3');
$class_wrap .= ' medium-block-grid-' . (isset($nasa_opt['masonry_blogs_columns_tablet']) && (int) $nasa_opt['masonry_blogs_columns_tablet'] ? (int) $nasa_opt['masonry_blogs_columns_tablet'] : '2');
$class_wrap .= ' small-block-grid-' . (isset($nasa_opt['masonry_blogs_columns_small']) && (int) $nasa_opt['masonry_blogs_columns_small'] ? (int) $nasa_opt['masonry_blogs_columns_small'] : '1');
echo '<ul class="' . $class_wrap . '">';
endif;
$post_type = get_post_type();
$post_blog = 'post' == $post_type ? true : false;
$show_comment = $show_comment_info && comments_open() ? true : false;
?>
<li class="nasa-item-normal nasa-item-blog-grid blog-item entry-blog">
<article id="post-<?php echo absint($postId); ?>" <?php post_class(); ?>>
<?php if (has_post_thumbnail()) : ?>
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>" class="entry-image blog-image nasa-blog-img blog-image-attachment nasa-blog-img-masonry-isotope nasa-block">
<?php the_post_thumbnail($k == 0 ? 'large' : 'medium'); ?>
<div class="image-overlay"></div>
</a>
<?php endif; ?>
<header class="entry-header">
<?php
$categories_list = $post_blog && $show_cat_info ? get_the_category_list(', ') : false;
if ($categories_list) : ?>
<!-- Categories item -->
<span class="cat-links-archive nasa-archive-info">
<?php echo $categories_list; ?>
</span>
<?php endif; ?>
<h3 class="entry-title nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>" rel="bookmark">
<?php echo $title; ?>
</a>
</h3>
<?php if ($show_author_info || $show_date_info || $show_comment) : ?>
<div class="text-left info-wrap nasa-archive-info">
<?php if ($show_author_info) : ?>
<a href="<?php echo esc_url($link_author); ?>" title="<?php echo esc_attr($author); ?>">
<span class="meta-author meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M16 3.205c-7.067 0-12.795 5.728-12.795 12.795s5.728 12.795 12.795 12.795 12.795-5.728 12.795-12.795c0-7.067-5.728-12.795-12.795-12.795zM16 4.271c6.467 0 11.729 5.261 11.729 11.729 0 2.845-1.019 5.457-2.711 7.49-1.169-0.488-3.93-1.446-5.638-1.951-0.146-0.046-0.169-0.053-0.169-0.66 0-0.501 0.206-1.005 0.407-1.432 0.218-0.464 0.476-1.244 0.569-1.944 0.259-0.301 0.612-0.895 0.839-2.026 0.199-0.997 0.106-1.36-0.026-1.7-0.014-0.036-0.028-0.071-0.039-0.107-0.050-0.234 0.019-1.448 0.189-2.391 0.118-0.647-0.030-2.022-0.921-3.159-0.562-0.719-1.638-1.601-3.603-1.724l-1.078 0.001c-1.932 0.122-3.008 1.004-3.57 1.723-0.89 1.137-1.038 2.513-0.92 3.159 0.172 0.943 0.239 2.157 0.191 2.387-0.010 0.040-0.025 0.075-0.040 0.111-0.131 0.341-0.225 0.703-0.025 1.7 0.226 1.131 0.579 1.725 0.839 2.026 0.092 0.7 0.35 1.48 0.569 1.944 0.159 0.339 0.234 0.801 0.234 1.454 0 0.607-0.023 0.614-0.159 0.657-1.767 0.522-4.579 1.538-5.628 1.997-1.725-2.042-2.768-4.679-2.768-7.555 0-6.467 5.261-11.729 11.729-11.729zM7.811 24.386c1.201-0.49 3.594-1.344 5.167-1.808 0.914-0.288 0.914-1.058 0.914-1.677 0-0.513-0.035-1.269-0.335-1.908-0.206-0.438-0.442-1.189-0.494-1.776-0.011-0.137-0.076-0.265-0.18-0.355-0.151-0.132-0.458-0.616-0.654-1.593-0.155-0.773-0.089-0.942-0.026-1.106 0.027-0.070 0.053-0.139 0.074-0.216 0.128-0.468-0.015-2.005-0.17-2.858-0.068-0.371 0.018-1.424 0.711-2.311 0.622-0.795 1.563-1.238 2.764-1.315l1.011-0.001c1.233 0.078 2.174 0.521 2.797 1.316 0.694 0.887 0.778 1.94 0.71 2.312-0.154 0.852-0.298 2.39-0.17 2.857 0.022 0.078 0.047 0.147 0.074 0.217 0.064 0.163 0.129 0.333-0.025 1.106-0.196 0.977-0.504 1.461-0.655 1.593-0.103 0.091-0.168 0.218-0.18 0.355-0.051 0.588-0.286 1.338-0.492 1.776-0.236 0.502-0.508 1.171-0.508 1.886 0 0.619 0 1.389 0.924 1.68 1.505 0.445 3.91 1.271 5.18 1.77-2.121 2.1-5.035 3.4-8.248 3.4-3.183 0-6.073-1.277-8.188-3.342z" /></svg>
<?php echo $author; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_date_info) : ?>
<a href="<?php echo esc_url($link_date); ?>" title="<?php echo esc_attr($date_post); ?>">
<span class="post-date meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M3.205 3.205v25.59h25.59v-25.59h-25.59zM27.729 4.271v4.798h-23.457v-4.798h23.457zM4.271 27.729v-17.593h23.457v17.593h-23.457z" /><path d="M11.201 5.871h1.6v1.599h-1.6v-1.599z" /><path d="M19.199 5.871h1.599v1.599h-1.599v-1.599z" /><path d="M12.348 13.929c-0.191 1.297-0.808 1.32-2.050 1.365l-0.193 0.007v0.904h2.104v5.914h1.116v-8.361h-0.953l-0.025 0.171z" /><path d="M18.642 16.442c-0.496 0-1.005 0.162-1.408 0.433l0.38-1.955h3.515v-1.060h-4.347l-0.848 4.528h0.965l0.059-0.092c0.337-0.525 0.952-0.852 1.606-0.852 1.064 0 1.836 0.787 1.836 1.87 0 0.98-0.615 1.972-1.79 1.972-1.004 0-1.726-0.678-1.756-1.649l-0.006-0.194h-1.115l0.005 0.205c0.036 1.58 1.167 2.641 2.816 2.641 1.662 0 2.963-1.272 2.963-2.895-0-1.766-1.154-2.953-2.872-2.953z" /></svg>
<?php echo $date_post; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_comment) :
$count_comments = get_comments_number();
$class_number = 'nasa-comment-count';
$class_number .= !$count_comments ? ' nasa-empty' : '';
?>
<a href="<?php echo esc_url($link); ?>#respond" title="<?php echo esc_attr__('Comments', 'elessi-theme'); ?>">
<span class="post-comment-count meta-item nasa-iflex">
<svg width="20" height="20" viewBox="0 -3 32 32" fill="currentColor"><path d="M26.664 4.82h-21.328c-1.178 0-2.132 0.955-2.132 2.133v13.868c0 1.178 0.955 2.133 2.132 2.133h14.968l4.226 4.226v-4.226h2.134c1.178 0 2.133-0.955 2.133-2.133v-13.868c-0-1.178-0.955-2.133-2.133-2.133zM27.73 20.821c0 0.588-0.479 1.066-1.066 1.066h-3.2v2.718l-2.718-2.718h-15.41c-0.588 0-1.066-0.478-1.066-1.066v-13.868c0-0.588 0.479-1.066 1.066-1.066h21.328c0.588 0 1.066 0.478 1.066 1.066v13.868z" /><path d="M16 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M20.265 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M11.835 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /></svg>
<span class="<?php echo esc_attr($class_number); ?>"><?php echo $count_comments; ?></span>
</span>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($post_type !== 'page' && $show_desc_blog) : ?>
<div class="entry-summary nasa-archive-info"><?php the_excerpt(); ?></div>
<?php endif; ?>
<?php if ($show_readmore) : ?>
<div class="entry-readmore nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr__('CONTINUE READING &#10142;', 'elessi-theme'); ?>">
<?php echo esc_html__('CONTINUE READING &#10142;', 'elessi-theme'); ?>
</a>
</div>
<?php endif; ?>
</header>
<?php
$tags_list = $post_blog && $show_tag_info ? get_the_tag_list('', esc_html__(', ', 'elessi-theme')) : false;
if ($tags_list) : ?>
<footer class="entry-meta nasa-archive-info">
<!-- Tagged -->
<span class="tags-links">
<?php printf(esc_html__('Tagged %1$s', 'elessi-theme'), $tags_list); ?>
</span>
</footer>
<?php endif; ?>
</article>
</li>
+104
View File
@@ -0,0 +1,104 @@
<?php
$class_col = 'large-12 columns';
$post_type = get_post_type();
$post_blog = 'post' == $post_type ? true : false;
$show_comment = $show_comment_info && comments_open() ? true : false;
?>
<div class="blog-list-style blog-item">
<article id="post-<?php echo (int) $postId; ?>" <?php post_class(); ?>>
<div class="row">
<?php if (has_post_thumbnail()) : ?>
<div class="entry-image large-4 columns">
<a class="blog-image-attachment nasa-block" href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>">
<?php the_post_thumbnail('medium'); ?>
<div class="image-overlay"></div>
</a>
</div>
<?php
$class_col = 'large-8 columns';
endif; ?>
<div class="<?php echo esc_attr($class_col); ?>">
<div class="entry-content row">
<div class="large-12 columns">
<!-- Categories item -->
<?php
$categories_list = $post_blog && $show_cat_info ? get_the_category_list(', ') : false;
if ($categories_list) : ?>
<span class="cat-links-archive nasa-archive-info first">
<?php echo $categories_list; ?>
</span>
<?php endif; ?>
<h3 class="entry-title nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>" rel="bookmark">
<?php echo $title; ?>
</a>
</h3>
</div>
<?php if ($show_author_info || $show_date_info || $show_comment) : ?>
<div class="large-12 columns text-left info-wrap nasa-archive-info">
<?php if ($show_author_info) : ?>
<a href="<?php echo esc_url($link_author); ?>" title="<?php echo esc_attr($author); ?>">
<span class="meta-author meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M16 3.205c-7.067 0-12.795 5.728-12.795 12.795s5.728 12.795 12.795 12.795 12.795-5.728 12.795-12.795c0-7.067-5.728-12.795-12.795-12.795zM16 4.271c6.467 0 11.729 5.261 11.729 11.729 0 2.845-1.019 5.457-2.711 7.49-1.169-0.488-3.93-1.446-5.638-1.951-0.146-0.046-0.169-0.053-0.169-0.66 0-0.501 0.206-1.005 0.407-1.432 0.218-0.464 0.476-1.244 0.569-1.944 0.259-0.301 0.612-0.895 0.839-2.026 0.199-0.997 0.106-1.36-0.026-1.7-0.014-0.036-0.028-0.071-0.039-0.107-0.050-0.234 0.019-1.448 0.189-2.391 0.118-0.647-0.030-2.022-0.921-3.159-0.562-0.719-1.638-1.601-3.603-1.724l-1.078 0.001c-1.932 0.122-3.008 1.004-3.57 1.723-0.89 1.137-1.038 2.513-0.92 3.159 0.172 0.943 0.239 2.157 0.191 2.387-0.010 0.040-0.025 0.075-0.040 0.111-0.131 0.341-0.225 0.703-0.025 1.7 0.226 1.131 0.579 1.725 0.839 2.026 0.092 0.7 0.35 1.48 0.569 1.944 0.159 0.339 0.234 0.801 0.234 1.454 0 0.607-0.023 0.614-0.159 0.657-1.767 0.522-4.579 1.538-5.628 1.997-1.725-2.042-2.768-4.679-2.768-7.555 0-6.467 5.261-11.729 11.729-11.729zM7.811 24.386c1.201-0.49 3.594-1.344 5.167-1.808 0.914-0.288 0.914-1.058 0.914-1.677 0-0.513-0.035-1.269-0.335-1.908-0.206-0.438-0.442-1.189-0.494-1.776-0.011-0.137-0.076-0.265-0.18-0.355-0.151-0.132-0.458-0.616-0.654-1.593-0.155-0.773-0.089-0.942-0.026-1.106 0.027-0.070 0.053-0.139 0.074-0.216 0.128-0.468-0.015-2.005-0.17-2.858-0.068-0.371 0.018-1.424 0.711-2.311 0.622-0.795 1.563-1.238 2.764-1.315l1.011-0.001c1.233 0.078 2.174 0.521 2.797 1.316 0.694 0.887 0.778 1.94 0.71 2.312-0.154 0.852-0.298 2.39-0.17 2.857 0.022 0.078 0.047 0.147 0.074 0.217 0.064 0.163 0.129 0.333-0.025 1.106-0.196 0.977-0.504 1.461-0.655 1.593-0.103 0.091-0.168 0.218-0.18 0.355-0.051 0.588-0.286 1.338-0.492 1.776-0.236 0.502-0.508 1.171-0.508 1.886 0 0.619 0 1.389 0.924 1.68 1.505 0.445 3.91 1.271 5.18 1.77-2.121 2.1-5.035 3.4-8.248 3.4-3.183 0-6.073-1.277-8.188-3.342z" /></svg>
<?php echo $author; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_date_info) : ?>
<a href="<?php echo esc_url($link_date); ?>" title="<?php echo esc_attr($date_post); ?>">
<span class="post-date meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M3.205 3.205v25.59h25.59v-25.59h-25.59zM27.729 4.271v4.798h-23.457v-4.798h23.457zM4.271 27.729v-17.593h23.457v17.593h-23.457z" /><path d="M11.201 5.871h1.6v1.599h-1.6v-1.599z" /><path d="M19.199 5.871h1.599v1.599h-1.599v-1.599z" /><path d="M12.348 13.929c-0.191 1.297-0.808 1.32-2.050 1.365l-0.193 0.007v0.904h2.104v5.914h1.116v-8.361h-0.953l-0.025 0.171z" /><path d="M18.642 16.442c-0.496 0-1.005 0.162-1.408 0.433l0.38-1.955h3.515v-1.060h-4.347l-0.848 4.528h0.965l0.059-0.092c0.337-0.525 0.952-0.852 1.606-0.852 1.064 0 1.836 0.787 1.836 1.87 0 0.98-0.615 1.972-1.79 1.972-1.004 0-1.726-0.678-1.756-1.649l-0.006-0.194h-1.115l0.005 0.205c0.036 1.58 1.167 2.641 2.816 2.641 1.662 0 2.963-1.272 2.963-2.895-0-1.766-1.154-2.953-2.872-2.953z" /></svg>
<?php echo $date_post; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_comment) :
$count_comments = get_comments_number();
$class_number = 'nasa-comment-count';
$class_number .= !$count_comments ? ' nasa-empty' : '';
?>
<a href="<?php echo esc_url($link); ?>#respond" title="<?php echo esc_attr__('Comments', 'elessi-theme'); ?>">
<span class="post-comment-count meta-item nasa-iflex">
<svg width="20" height="20" viewBox="0 -3 32 32" fill="currentColor"><path d="M26.664 4.82h-21.328c-1.178 0-2.132 0.955-2.132 2.133v13.868c0 1.178 0.955 2.133 2.132 2.133h14.968l4.226 4.226v-4.226h2.134c1.178 0 2.133-0.955 2.133-2.133v-13.868c-0-1.178-0.955-2.133-2.133-2.133zM27.73 20.821c0 0.588-0.479 1.066-1.066 1.066h-3.2v2.718l-2.718-2.718h-15.41c-0.588 0-1.066-0.478-1.066-1.066v-13.868c0-0.588 0.479-1.066 1.066-1.066h21.328c0.588 0 1.066 0.478 1.066 1.066v13.868z" /><path d="M16 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M20.265 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M11.835 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /></svg>
<span class="<?php echo esc_attr($class_number); ?>"><?php echo $count_comments; ?></span>
</span>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($post_type !== 'page' && $show_desc_blog) : ?>
<div class="large-12 columns entry-summary nasa-archive-info"><?php the_excerpt(); ?></div>
<?php endif; ?>
<?php if ($show_readmore) : ?>
<div class="large-12 columns entry-readmore nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr__('CONTINUE READING &#10142;', 'elessi-theme'); ?>">
<?php echo esc_html__('CONTINUE READING &#10142;', 'elessi-theme'); ?>
</a>
</div>
<?php endif; ?>
<?php
$tags_list = $post_blog && $show_tag_info ? get_the_tag_list('', esc_html__(', ', 'elessi-theme')) : false;
if ($tags_list) : ?>
<div class="large-12 columns">
<!-- Tagged -->
<span class="tags-links nasa-archive-info">
<?php printf(esc_html__('Tagged %1$s', 'elessi-theme'), $tags_list); ?>
</span>
</div>
<?php endif; ?>
</div>
</div>
</div>
</article>
</div>
+110
View File
@@ -0,0 +1,110 @@
<?php
$paged = get_query_var('paged');
$k = ($k == 0 && $paged > 1) ? 1 : $k;
if ($k == 1) :
$class_wrap = 'nasa-posts-masonry-isotope group-blogs';
$class_wrap .= ' large-block-grid-' . (isset($nasa_opt['masonry_blogs_columns_desk']) && (int) $nasa_opt['masonry_blogs_columns_desk'] ? (int) $nasa_opt['masonry_blogs_columns_desk'] : '3');
$class_wrap .= ' medium-block-grid-' . (isset($nasa_opt['masonry_blogs_columns_tablet']) && (int) $nasa_opt['masonry_blogs_columns_tablet'] ? (int) $nasa_opt['masonry_blogs_columns_tablet'] : '2');
$class_wrap .= ' small-block-grid-' . (isset($nasa_opt['masonry_blogs_columns_small']) && (int) $nasa_opt['masonry_blogs_columns_small'] ? (int) $nasa_opt['masonry_blogs_columns_small'] : '1');
echo '<ul class="' . $class_wrap . '">';
endif;
$post_type = get_post_type();
$post_blog = 'post' == $post_type ? true : false;
$show_comment = $show_comment_info && comments_open() ? true : false;
?>
<?php echo ($k == 0) ? '<div class="nasa-posts-masonry-isotope-item nasa-posts-sticky-item blog-item">' : '<li class="nasa-posts-masonry-isotope-item nasa-item-normal entry-blog blog-item">'; ?>
<article id="post-<?php echo absint($postId); ?>" <?php post_class(); ?>>
<?php if (has_post_thumbnail()) : ?>
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>" class="entry-image blog-image nasa-blog-img blog-image-attachment nasa-blog-img-masonry-isotope nasa-block">
<?php the_post_thumbnail($k == 0 ? 'large' : 'medium'); ?>
<div class="image-overlay"></div>
</a>
<?php endif; ?>
<header class="entry-header">
<?php
$categories_list = $post_blog && $show_cat_info ? get_the_category_list(', ') : false;
if ($categories_list) : ?>
<!-- Categories item -->
<span class="cat-links-archive nasa-archive-info">
<?php echo $categories_list; ?>
</span>
<?php endif; ?>
<h3 class="entry-title nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>" rel="bookmark">
<?php echo $title; ?>
</a>
</h3>
<?php if ($show_author_info || $show_date_info || $show_comment) : ?>
<div class="text-left info-wrap nasa-archive-info">
<?php if ($show_author_info) : ?>
<a href="<?php echo esc_url($link_author); ?>" title="<?php echo esc_attr($author); ?>">
<span class="meta-author meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M16 3.205c-7.067 0-12.795 5.728-12.795 12.795s5.728 12.795 12.795 12.795 12.795-5.728 12.795-12.795c0-7.067-5.728-12.795-12.795-12.795zM16 4.271c6.467 0 11.729 5.261 11.729 11.729 0 2.845-1.019 5.457-2.711 7.49-1.169-0.488-3.93-1.446-5.638-1.951-0.146-0.046-0.169-0.053-0.169-0.66 0-0.501 0.206-1.005 0.407-1.432 0.218-0.464 0.476-1.244 0.569-1.944 0.259-0.301 0.612-0.895 0.839-2.026 0.199-0.997 0.106-1.36-0.026-1.7-0.014-0.036-0.028-0.071-0.039-0.107-0.050-0.234 0.019-1.448 0.189-2.391 0.118-0.647-0.030-2.022-0.921-3.159-0.562-0.719-1.638-1.601-3.603-1.724l-1.078 0.001c-1.932 0.122-3.008 1.004-3.57 1.723-0.89 1.137-1.038 2.513-0.92 3.159 0.172 0.943 0.239 2.157 0.191 2.387-0.010 0.040-0.025 0.075-0.040 0.111-0.131 0.341-0.225 0.703-0.025 1.7 0.226 1.131 0.579 1.725 0.839 2.026 0.092 0.7 0.35 1.48 0.569 1.944 0.159 0.339 0.234 0.801 0.234 1.454 0 0.607-0.023 0.614-0.159 0.657-1.767 0.522-4.579 1.538-5.628 1.997-1.725-2.042-2.768-4.679-2.768-7.555 0-6.467 5.261-11.729 11.729-11.729zM7.811 24.386c1.201-0.49 3.594-1.344 5.167-1.808 0.914-0.288 0.914-1.058 0.914-1.677 0-0.513-0.035-1.269-0.335-1.908-0.206-0.438-0.442-1.189-0.494-1.776-0.011-0.137-0.076-0.265-0.18-0.355-0.151-0.132-0.458-0.616-0.654-1.593-0.155-0.773-0.089-0.942-0.026-1.106 0.027-0.070 0.053-0.139 0.074-0.216 0.128-0.468-0.015-2.005-0.17-2.858-0.068-0.371 0.018-1.424 0.711-2.311 0.622-0.795 1.563-1.238 2.764-1.315l1.011-0.001c1.233 0.078 2.174 0.521 2.797 1.316 0.694 0.887 0.778 1.94 0.71 2.312-0.154 0.852-0.298 2.39-0.17 2.857 0.022 0.078 0.047 0.147 0.074 0.217 0.064 0.163 0.129 0.333-0.025 1.106-0.196 0.977-0.504 1.461-0.655 1.593-0.103 0.091-0.168 0.218-0.18 0.355-0.051 0.588-0.286 1.338-0.492 1.776-0.236 0.502-0.508 1.171-0.508 1.886 0 0.619 0 1.389 0.924 1.68 1.505 0.445 3.91 1.271 5.18 1.77-2.121 2.1-5.035 3.4-8.248 3.4-3.183 0-6.073-1.277-8.188-3.342z" /></svg>
<?php echo $author; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_date_info) : ?>
<a href="<?php echo esc_url($link_date); ?>" title="<?php echo esc_attr($date_post); ?>">
<span class="post-date meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M3.205 3.205v25.59h25.59v-25.59h-25.59zM27.729 4.271v4.798h-23.457v-4.798h23.457zM4.271 27.729v-17.593h23.457v17.593h-23.457z" /><path d="M11.201 5.871h1.6v1.599h-1.6v-1.599z" /><path d="M19.199 5.871h1.599v1.599h-1.599v-1.599z" /><path d="M12.348 13.929c-0.191 1.297-0.808 1.32-2.050 1.365l-0.193 0.007v0.904h2.104v5.914h1.116v-8.361h-0.953l-0.025 0.171z" /><path d="M18.642 16.442c-0.496 0-1.005 0.162-1.408 0.433l0.38-1.955h3.515v-1.060h-4.347l-0.848 4.528h0.965l0.059-0.092c0.337-0.525 0.952-0.852 1.606-0.852 1.064 0 1.836 0.787 1.836 1.87 0 0.98-0.615 1.972-1.79 1.972-1.004 0-1.726-0.678-1.756-1.649l-0.006-0.194h-1.115l0.005 0.205c0.036 1.58 1.167 2.641 2.816 2.641 1.662 0 2.963-1.272 2.963-2.895-0-1.766-1.154-2.953-2.872-2.953z" /></svg>
<?php echo $date_post; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_comment) :
$count_comments = get_comments_number();
$class_number = 'nasa-comment-count';
$class_number .= !$count_comments ? ' nasa-empty' : '';
?>
<a href="<?php echo esc_url($link); ?>#respond" title="<?php echo esc_attr__('Comments', 'elessi-theme'); ?>">
<span class="post-comment-count meta-item nasa-iflex">
<svg width="20" height="20" viewBox="0 -3 32 32" fill="currentColor"><path d="M26.664 4.82h-21.328c-1.178 0-2.132 0.955-2.132 2.133v13.868c0 1.178 0.955 2.133 2.132 2.133h14.968l4.226 4.226v-4.226h2.134c1.178 0 2.133-0.955 2.133-2.133v-13.868c-0-1.178-0.955-2.133-2.133-2.133zM27.73 20.821c0 0.588-0.479 1.066-1.066 1.066h-3.2v2.718l-2.718-2.718h-15.41c-0.588 0-1.066-0.478-1.066-1.066v-13.868c0-0.588 0.479-1.066 1.066-1.066h21.328c0.588 0 1.066 0.478 1.066 1.066v13.868z" /><path d="M16 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M20.265 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M11.835 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /></svg>
<span class="<?php echo esc_attr($class_number); ?>"><?php echo $count_comments; ?></span>
</span>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($k == 0) : ?>
<?php if ($post_type !== 'page' && $show_desc_blog) : ?>
<div class="entry-summary nasa-archive-info"><?php the_excerpt(); ?></div>
<?php endif; ?>
<?php if ($show_readmore) : ?>
<div class="entry-readmore nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr__('CONTINUE READING &#10142;', 'elessi-theme'); ?>">
<?php echo esc_html__('CONTINUE READING &#10142;', 'elessi-theme'); ?>
</a>
</div>
<?php endif; ?>
<?php endif; ?>
</header>
<?php
if ($k == 0) :
$tags_list = $post_blog && $show_tag_info ? get_the_tag_list('', esc_html__(', ', 'elessi-theme')) : false;
if ($tags_list) : ?>
<footer class="entry-meta footer-entry-meta">
<!-- Tagged -->
<span class="tags-links nasa-archive-info">
<?php printf(esc_html__('Tagged %1$s', 'elessi-theme'), $tags_list); ?>
</span>
</footer>
<?php endif; ?>
<?php endif; ?>
</article>
<?php
echo ($k == 0) ? '</div>' : '</li>';
+46
View File
@@ -0,0 +1,46 @@
<?php
$number_slide = (isset($nasa_opt['number_post_slide']) && (int) $nasa_opt['number_post_slide']) ? (int) $nasa_opt['number_post_slide'] : 1;
$style_bg = (isset($nasa_opt['background_area']) && $nasa_opt['background_area']) ? 'background: url(\'' . $nasa_opt['background_area'] . '\') center center no-repeat; background-size: cover;' : '';
$promo_slide = isset($nasa_opt['enable_promo_slide']) && $nasa_opt['enable_promo_slide'] ? 'nasa-promo-silde slick-slider' : '';
$promo_slide .= isset($nasa_opt['promo_slide_direction']) && $nasa_opt['promo_slide_direction'] != '' ? ' nasa-promo-silde-'.$nasa_opt['promo_slide_direction'] : ' nasa-promo-silde-vertical';
$style_bg = ($style_bg != '') ? ' style="' . esc_attr($style_bg) . '"' : '';
$style_color = (isset($nasa_opt['t_promotion_color']) && $nasa_opt['t_promotion_color']) ? 'color:' . $nasa_opt['t_promotion_color'] : '';
$style_color = ($style_color != '') ? ' style="' . esc_attr($style_color) . '"' : '';
?>
<div class="section-element nasa-promotion-news nasa-hide">
<div class="nasa-wapper-promotion">
<div class="nasa-content-promotion-news <?php echo (!isset($nasa_opt['enable_fullwidth']) || $nasa_opt['enable_fullwidth'] == 1) ? 'nasa-row fullwidth' : 'row'; ?>"<?php echo $style_bg; ?>>
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="nasa-promotion-close nasa-stclose bg-white" rel="nofollow"></a>
<?php if ($content): ?>
<div class="nasa-content-promotion-custom <?php echo $promo_slide; ?>"<?php echo $style_color; ?>>
<?php echo do_shortcode($content); ?>
</div>
<?php elseif (!empty($posts)): ?>
<div class="nasa-post-slider hidden-tag" data-autoplay="true" data-columns="<?php echo esc_attr($number_slide); ?>" data-columns-small="1" data-columns-tablet="1" data-switch-tablet="<?php echo elessi_switch_tablet(); ?>" data-switch-desktop="<?php echo elessi_switch_desktop(); ?>">
<?php foreach ($posts as $v): ?>
<div class="nasa-post-slider-item">
<a href="<?php echo esc_url(get_permalink($v->ID)); ?>" title="<?php echo esc_attr($v->post_title); ?>"<?php echo $style_color; ?>><?php echo $v->post_title; ?></a>
</div>
<?php endforeach; ?>
</div>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
</div>
</div>
<div class="nasa-position-relative nasa-promo-bg"></div>
<a href="javascript:void(0);" title="<?php echo esc_attr__('Show', 'elessi-theme'); ?>" class="nasa-promotion-show" rel="nofollow">
<svg width="20" height="20" viewBox="0 0 32 32" stroke-width=".5" stroke="currentColor">
<path d="M15.233 19.175l0.754 0.754 6.035-6.035-0.754-0.754-5.281 5.281-5.256-5.256-0.754 0.754 3.013 3.013z" fill="currentColor" />
</svg>
</a>
+95
View File
@@ -0,0 +1,95 @@
<?php
$post_type = get_post_type();
$post_blog = 'post' == $post_type ? true : false;
$show_comment = $show_comment_info && comments_open() ? true : false;
?>
<div class="blog-item nasa-item-standard">
<article id="post-<?php echo (int) $postId; ?>" <?php post_class(); ?>>
<?php if (has_post_thumbnail()) : ?>
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>" class="entry-image nasa-blog-img blog-image-attachment nasa-block">
<?php the_post_thumbnail('large'); ?>
<div class="image-overlay"></div>
</a>
<?php endif; ?>
<header class="entry-header">
<?php
$categories_list = $post_blog && $show_cat_info ? get_the_category_list(', ') : false;
if ($categories_list) : ?>
<!-- Categories item -->
<span class="cat-links-archive nasa-archive-info">
<?php echo $categories_list; ?>
</span>
<?php endif; ?>
<!-- Title -->
<h3 class="entry-title nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>" rel="bookmark">
<?php echo $title; ?>
</a>
</h3>
<?php if ($show_author_info || $show_date_info || $show_comment) : ?>
<div class="text-left info-wrap nasa-archive-info">
<?php if ($show_author_info) : ?>
<a href="<?php echo esc_url($link_author); ?>" title="<?php echo esc_attr__('By ', 'elessi-theme') . esc_attr($author); ?>">
<span class="meta-author meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M16 3.205c-7.067 0-12.795 5.728-12.795 12.795s5.728 12.795 12.795 12.795 12.795-5.728 12.795-12.795c0-7.067-5.728-12.795-12.795-12.795zM16 4.271c6.467 0 11.729 5.261 11.729 11.729 0 2.845-1.019 5.457-2.711 7.49-1.169-0.488-3.93-1.446-5.638-1.951-0.146-0.046-0.169-0.053-0.169-0.66 0-0.501 0.206-1.005 0.407-1.432 0.218-0.464 0.476-1.244 0.569-1.944 0.259-0.301 0.612-0.895 0.839-2.026 0.199-0.997 0.106-1.36-0.026-1.7-0.014-0.036-0.028-0.071-0.039-0.107-0.050-0.234 0.019-1.448 0.189-2.391 0.118-0.647-0.030-2.022-0.921-3.159-0.562-0.719-1.638-1.601-3.603-1.724l-1.078 0.001c-1.932 0.122-3.008 1.004-3.57 1.723-0.89 1.137-1.038 2.513-0.92 3.159 0.172 0.943 0.239 2.157 0.191 2.387-0.010 0.040-0.025 0.075-0.040 0.111-0.131 0.341-0.225 0.703-0.025 1.7 0.226 1.131 0.579 1.725 0.839 2.026 0.092 0.7 0.35 1.48 0.569 1.944 0.159 0.339 0.234 0.801 0.234 1.454 0 0.607-0.023 0.614-0.159 0.657-1.767 0.522-4.579 1.538-5.628 1.997-1.725-2.042-2.768-4.679-2.768-7.555 0-6.467 5.261-11.729 11.729-11.729zM7.811 24.386c1.201-0.49 3.594-1.344 5.167-1.808 0.914-0.288 0.914-1.058 0.914-1.677 0-0.513-0.035-1.269-0.335-1.908-0.206-0.438-0.442-1.189-0.494-1.776-0.011-0.137-0.076-0.265-0.18-0.355-0.151-0.132-0.458-0.616-0.654-1.593-0.155-0.773-0.089-0.942-0.026-1.106 0.027-0.070 0.053-0.139 0.074-0.216 0.128-0.468-0.015-2.005-0.17-2.858-0.068-0.371 0.018-1.424 0.711-2.311 0.622-0.795 1.563-1.238 2.764-1.315l1.011-0.001c1.233 0.078 2.174 0.521 2.797 1.316 0.694 0.887 0.778 1.94 0.71 2.312-0.154 0.852-0.298 2.39-0.17 2.857 0.022 0.078 0.047 0.147 0.074 0.217 0.064 0.163 0.129 0.333-0.025 1.106-0.196 0.977-0.504 1.461-0.655 1.593-0.103 0.091-0.168 0.218-0.18 0.355-0.051 0.588-0.286 1.338-0.492 1.776-0.236 0.502-0.508 1.171-0.508 1.886 0 0.619 0 1.389 0.924 1.68 1.505 0.445 3.91 1.271 5.18 1.77-2.121 2.1-5.035 3.4-8.248 3.4-3.183 0-6.073-1.277-8.188-3.342z" /></svg>
<?php echo $author; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_date_info) : ?>
<a href="<?php echo esc_url($link_date); ?>" title="<?php echo esc_attr($date_post); ?>">
<span class="post-date meta-item nasa-iflex">
<svg class="margin-right-5 rtl-margin-right-0 rtl-margin-left-5" width="18" height="18" viewBox="0 0 32 32" fill="currentColor"><path d="M3.205 3.205v25.59h25.59v-25.59h-25.59zM27.729 4.271v4.798h-23.457v-4.798h23.457zM4.271 27.729v-17.593h23.457v17.593h-23.457z" /><path d="M11.201 5.871h1.6v1.599h-1.6v-1.599z" /><path d="M19.199 5.871h1.599v1.599h-1.599v-1.599z" /><path d="M12.348 13.929c-0.191 1.297-0.808 1.32-2.050 1.365l-0.193 0.007v0.904h2.104v5.914h1.116v-8.361h-0.953l-0.025 0.171z" /><path d="M18.642 16.442c-0.496 0-1.005 0.162-1.408 0.433l0.38-1.955h3.515v-1.060h-4.347l-0.848 4.528h0.965l0.059-0.092c0.337-0.525 0.952-0.852 1.606-0.852 1.064 0 1.836 0.787 1.836 1.87 0 0.98-0.615 1.972-1.79 1.972-1.004 0-1.726-0.678-1.756-1.649l-0.006-0.194h-1.115l0.005 0.205c0.036 1.58 1.167 2.641 2.816 2.641 1.662 0 2.963-1.272 2.963-2.895-0-1.766-1.154-2.953-2.872-2.953z" /></svg>
<?php echo $date_post; ?>
</span>
</a>
<?php endif; ?>
<?php if ($show_comment) :
$count_comments = get_comments_number();
$class_number = 'nasa-comment-count';
$class_number .= !$count_comments ? ' nasa-empty' : '';
?>
<a href="<?php echo esc_url($link); ?>#respond" title="<?php echo esc_attr__('Comments', 'elessi-theme'); ?>">
<span class="post-comment-count meta-item nasa-iflex">
<svg width="20" height="20" viewBox="0 -3 32 32" fill="currentColor"><path d="M26.664 4.82h-21.328c-1.178 0-2.132 0.955-2.132 2.133v13.868c0 1.178 0.955 2.133 2.132 2.133h14.968l4.226 4.226v-4.226h2.134c1.178 0 2.133-0.955 2.133-2.133v-13.868c-0-1.178-0.955-2.133-2.133-2.133zM27.73 20.821c0 0.588-0.479 1.066-1.066 1.066h-3.2v2.718l-2.718-2.718h-15.41c-0.588 0-1.066-0.478-1.066-1.066v-13.868c0-0.588 0.479-1.066 1.066-1.066h21.328c0.588 0 1.066 0.478 1.066 1.066v13.868z" /><path d="M16 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M20.265 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /><path d="M11.835 12.824c-0.589 0-1.066 0.478-1.066 1.066s0.477 1.066 1.066 1.066 1.066-0.477 1.066-1.066c0-0.588-0.477-1.066-1.066-1.066z" /></svg>
<span class="<?php echo esc_attr($class_number); ?>"><?php echo $count_comments; ?></span>
</span>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($post_type !== 'page' && $show_desc_blog) : ?>
<div class="entry-summary nasa-archive-info"><?php the_excerpt(); ?></div>
<?php endif; ?>
<?php if ($show_readmore) : ?>
<div class="entry-readmore nasa-archive-info">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr__('CONTINUE READING &#10142;', 'elessi-theme'); ?>">
<?php echo esc_html__('CONTINUE READING &#10142;', 'elessi-theme'); ?>
</a>
</div>
<?php endif; ?>
</header>
<?php
$tags_list = $post_blog && $show_tag_info ? get_the_tag_list('', esc_html__(', ', 'elessi-theme')) : false;
if ($tags_list) : ?>
<footer class="entry-meta nasa-archive-info">
<!-- Tagged -->
<span class="tags-links">
<?php printf(esc_html__('Tagged %1$s', 'elessi-theme'), $tags_list); ?>
</span>
</footer>
<?php endif; ?>
</article>
</div>
+335
View File
@@ -0,0 +1,335 @@
<?php
/**
* Change view Layout
* Archive Products page
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$typeView = isset($nasa_opt['products_type_view']) && in_array($nasa_opt['products_type_view'],array('grid', 'list', 'list-2')) ? $nasa_opt['products_type_view'] : 'grid';
$products_per_row = isset($nasa_opt['products_per_row']) && in_array($nasa_opt['products_per_row'], array(2, 3, 4, 5, 6)) ? $nasa_opt['products_per_row'] : 4;
switch ($typeView) :
case 'list' :
$setup = $type_show = 'list';
break;
case 'list-2' :
$setup = $type_show = 'list-2';
break;
case 'grid' :
default:
$setup = $type_show = 'grid-' . $products_per_row;
break;
endswitch;
if (isset($_GET['view-layout']) && in_array($_GET['view-layout'], array('grid-2', 'grid-3', 'grid-4', 'grid-5', 'grid-6', 'list', 'list-2'))) {
$type_show = $_GET['view-layout'];
}
$classic = in_array($nasa_sidebar, array('left-classic', 'right-classic', 'top-push-cat'));
echo $classic ? '<input type="hidden" name="nasa-data-sidebar" value="' . esc_attr($nasa_sidebar) . '" />' : '';
$col_2 = isset($nasa_opt['option_2_cols']) && $nasa_opt['option_2_cols'] ? true : false;
$col_6 = isset($nasa_opt['option_6_cols']) && $nasa_opt['option_6_cols'] ? true : false;
$class_wrap = 'filter-tabs nasa-change-view';
$layout_view = isset($nasa_opt['nasa_change_layout_view']) && in_array($nasa_opt['nasa_change_layout_view'],array('number_view', 'img_view_2', 'img_view_1')) ? $nasa_opt['nasa_change_layout_view'] : 'img_view_1';
$number_view = false;
$multicheck_option_cols_display = array();
if (isset($nasa_opt['multicheck_options_cols_display'])) {
if (!empty($nasa_opt['multicheck_options_cols_display'])) {
foreach ($nasa_opt['multicheck_options_cols_display'] as $key => $val) {
if ($val && !in_array($key, $multicheck_option_cols_display)) {
$multicheck_option_cols_display[] = $key;
}
if (!in_array($products_per_row . '-cols', $multicheck_option_cols_display) && $products_per_row . '-cols' === $key) {
$multicheck_option_cols_display[] = $products_per_row.'-cols';
}
}
} else {
$multicheck_option_cols_display = array("3-cols", "4-cols", "5-cols", "list");
}
} else {
if ($col_2) {
$multicheck_option_cols_display[] = '2-cols';
}
if ($col_6) {
$multicheck_option_cols_display[] = '6-cols';
}
}
$svg_2col = '<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 18" fill="none">
<rect width="8" height="8" rx="2" fill="currentColor"/>
<rect y="9" width="8" height="8" rx="2" fill="currentColor"/>
<rect x="9" width="8" height="8" rx="2" fill="currentColor"/>
<rect x="9" y="9" width="8" height="8" rx="2" fill="currentColor"/>
</svg>';
$svg_3col = '<svg xmlns="http://www.w3.org/2000/svg" width="26" height="17" viewBox="0 0 26 18" fill="none">
<rect width="8" height="8" rx="2" fill="currentColor"/>
<rect y="9" width="8" height="8" rx="2" fill="currentColor"/>
<rect x="9" width="8" height="8" rx="2" fill="currentColor"/>
<rect x="18" width="8" height="8" rx="2" fill="currentColor"/>
<rect x="9" y="9" width="8" height="8" rx="2" fill="currentColor"/>
<rect x="18" y="9" width="8" height="8" rx="2" fill="currentColor"/>
</svg>';
$svg_4col = '<svg xmlns="http://www.w3.org/2000/svg" width="23" height="17" viewBox="0 0 23 18" fill="none">
<rect y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="6" y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="12" y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="18" y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="6" y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="12" y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="18" y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect width="5" height="5" rx="1" fill="currentColor"/>
<rect x="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="18" width="5" height="5" rx="1" fill="currentColor"/>
</svg>';
$svg_5col = '<svg xmlns="http://www.w3.org/2000/svg" width="29" height="17" viewBox="0 0 29 18" fill="none">
<rect y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="6" y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="12" y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="18" y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="24" y="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="6" y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="12" y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="18" y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="24" y="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect width="5" height="5" rx="1" fill="currentColor"/>
<rect x="6" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="12" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="18" width="5" height="5" rx="1" fill="currentColor"/>
<rect x="24" width="5" height="5" rx="1" fill="currentColor"/>
</svg>';
$svg_6col = '<svg xmlns="http://www.w3.org/2000/svg" width="29" height="17" viewBox="0 0 29 18" fill="none">
<rect width="4" height="4" rx="1" fill="currentColor"/>
<rect x="5" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="10" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="15" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="20" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="25" width="4" height="4" rx="1" fill="currentColor"/>
<rect y="6.5" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="5" y="6.5" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="10" y="6.5" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="15" y="6.5" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="20" y="6.5" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="25" y="6.5" width="4" height="4" rx="1" fill="currentColor"/>
<rect y="13" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="5" y="13" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="10" y="13" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="15" y="13" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="20" y="13" width="4" height="4" rx="1" fill="currentColor"/>
<rect x="25" y="13" width="4" height="4" rx="1" fill="currentColor"/>
</svg>';
$svg_list = '<svg xmlns="http://www.w3.org/2000/svg" width="21" height="17" viewBox="0 0 21 18" fill="none">
<rect x="9" y="2" width="12" height="1" rx="0.5" fill="currentColor"/>
<rect x="9" y="4" width="12" height="1" rx="0.5" fill="currentColor"/>
<rect width="8" height="8" rx="1.5" fill="currentColor"/>
<rect x="9" y="11" width="12" height="1" rx="0.5" fill="currentColor"/>
<rect x="9" y="13" width="12" height="1" rx="0.5" fill="currentColor"/>
<rect y="9" width="8" height="8" rx="1.5" fill="currentColor"/>
</svg>';
$svg_list2 = '<svg xmlns="http://www.w3.org/2000/svg" width="29" height="17" viewBox="0 0 29 18" fill="none">
<rect x="8" y="2" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect x="8" y="4" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect width="7" height="7" rx="1.5" fill="currentColor"/>
<rect x="8" y="12" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect x="8" y="14" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect y="10" width="7" height="7" rx="1.5" fill="currentColor"/>
<rect x="23" y="2" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect x="23" y="4" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect x="15" width="7" height="7" rx="1.5" fill="currentColor"/>
<rect x="23" y="12" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect x="23" y="14" width="6" height="0.8" rx="0.4" fill="currentColor"/>
<rect x="15" y="10" width="7" height="7" rx="1.5" fill="currentColor"/>
</svg>';
switch ($layout_view):
case 'number_view':
$class_wrap .= ' nasa-show-number';
$number_view = true;
break;
case 'img_view_2':
$class_wrap .= ' nasa-change-layout-img-2';
$svg_2col = '<svg xmlns="http://www.w3.org/2000/svg" width="6" height="12" viewBox="0 0 6 12" fill="none">
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 1.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 5.5 0)" fill="currentColor"/>
</svg>';
$svg_3col = '<svg xmlns="http://www.w3.org/2000/svg" width="10" height="12" viewBox="0 0 10 12" fill="none">
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 1.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 5.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 9.5 0)" fill="currentColor"/>
</svg>';
$svg_4col = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 1.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 5.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 9.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 13.5 0)" fill="currentColor"/>
</svg>';
$svg_5col = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none">
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 1.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 4.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 7.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 10.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 13.5 0)" fill="currentColor"/>
</svg>';
$svg_6col = '<svg xmlns="http://www.w3.org/2000/svg" width="17" height="12" viewBox="0 0 17 12" fill="none">
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 1.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 4.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 7.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 10.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 13.5 0)" fill="currentColor"/>
<rect width="1.5" height="12" rx="0.75" transform="matrix(-1 0 0 1 16.5 0)" fill="currentColor"/>
</svg>';
$svg_list = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 10" fill="none">
<rect width="1.5" height="14" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 0 8)" fill="currentColor"/>
<rect width="1.5" height="14" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 0 4)" fill="currentColor"/>
<rect width="1.5" height="14" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 0 0)" fill="currentColor"/>
</svg>';
$svg_list2 = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 10" fill="none">
<rect width="1.5" height="6" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 8 8)" fill="currentColor"/>
<rect width="1.5" height="6" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 8 4)" fill="currentColor"/>
<rect width="1.5" height="6" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 8 0)" fill="currentColor"/>
<rect width="1.5" height="6" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 0 8)" fill="currentColor"/>
<rect width="1.5" height="6" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 0 4)" fill="currentColor"/>
<rect width="1.5" height="6" rx="0.75" transform="matrix(4.37114e-08 1 1 -4.37114e-08 0 0)" fill="currentColor"/>
</svg>';
break;
case 'img_view_1':
default :
$class_wrap .= ' nasa-change-layout-img-1';
break;
endswitch;
$list_view = isset($nasa_opt['products_layout_style']) && $nasa_opt['products_layout_style'] == 'masonry-isotope' ? false : true;
?>
<div class="<?php echo $class_wrap; ?>">
<?php if ($number_view && !empty($multicheck_option_cols_display)) : ?>
<span class="nasa-label-change-view margin-right-10 rtl-margin-right-0 rtl-margin-left-10 nasa-bold-700">
<?php echo esc_html__('See', 'elessi-theme'); ?>
</span>
<?php endif; ?>
<?php if (in_array('2-cols', $multicheck_option_cols_display)) : ?>
<a href="javascript:void(0);" class="nasa-change-layout productGrid grid-2 nasa-tip<?php echo ($type_show == 'grid-2') ? ' active' : ''; ?><?php echo ($setup == 'grid-2') ? ' df' : ''; ?>" data-tip="<?php echo esc_html__('2 Columns', 'elessi-theme'); ?>" data-columns="2" rel="nofollow">
<?php if ($number_view) : ?>
<span class="nasa-text-number hidden-tag">
<?php echo esc_html__('2', 'elessi-theme'); ?>
</span>
<?php endif; ?>
<?php echo ($svg_2col); ?>
<!-- <svg width="22" height="22" viewBox="0 0 512 512" fill="currentColor">
<path d="M333 53l0 408-67 0 0-410 67 0z m-87-2l0 410-67 0 0-410c0 0 67 0 67 0z"/>
</svg> -->
</a>
<?php endif; ?>
<?php if (in_array('3-cols', $multicheck_option_cols_display)) : ?>
<a href="javascript:void(0);" class="nasa-change-layout productGrid grid-3 nasa-tip<?php echo ($type_show == 'grid-3') ? ' active' : ''; ?><?php echo ($setup == 'grid-3') ? ' df' : ''; ?>" data-columns="3" rel="nofollow" data-tip="<?php echo esc_html__('3 Columns', 'elessi-theme'); ?>">
<?php if ($number_view) : ?>
<span class="nasa-text-number hidden-tag">
<?php echo esc_html__('3', 'elessi-theme'); ?>
</span>
<?php endif; ?>
<?php echo ($svg_3col); ?>
<!-- <svg width="22" height="22" viewBox="0 0 512 512" fill="currentColor">
<path d="M298 53l0 408-69 0 0-410 69 0z m-87 0l0 408-69 0 0-410 69 0z m173 0l0 409-69 0 0-409z"/>
</svg> -->
</a>
<?php endif; ?>
<?php if (in_array('4-cols', $multicheck_option_cols_display)) : ?>
<a href="javascript:void(0);" class="nasa-change-layout productGrid grid-4 nasa-tip<?php echo ($type_show == 'grid-4') ? ' active' : ''; ?><?php echo ($setup == 'grid-4') ? ' df' : ''; ?>" data-columns="4" rel="nofollow" data-tip="<?php echo esc_html__('4 Columns', 'elessi-theme'); ?>">
<?php if ($number_view) : ?>
<span class="nasa-text-number hidden-tag">
<?php echo esc_html__('4', 'elessi-theme'); ?>
</span>
<?php endif; ?>
<?php echo ($svg_4col); ?>
<!-- <svg width="22" height="22" viewBox="0 0 512 512" fill="currentColor">
<path d="M250 53l0 408-69 0 0-410 69 0z m-87-2l0 410-69 0 0-410c0 0 69 0 69 0z m173 2l0 409-69 0 0-409z m86 0l0 409-68 0 0-409z"/>
</svg> -->
</a>
<?php endif; ?>
<?php if (in_array('5-cols', $multicheck_option_cols_display)) : ?>
<a href="javascript:void(0);" class="nasa-change-layout productGrid grid-5 nasa-tip<?php echo ($type_show == 'grid-5') ? ' active' : ''; ?><?php echo ($setup == 'grid-5') ? ' df' : ''; ?>" data-columns="5" rel="nofollow" data-tip="<?php echo esc_html__('5 Columns', 'elessi-theme'); ?>">
<?php if ($number_view) : ?>
<span class="nasa-text-number hidden-tag">
<?php echo esc_html__('5', 'elessi-theme'); ?>
</span>
<?php endif; ?>
<?php echo ($svg_5col); ?>
<!-- <svg width="22" height="22" viewBox="0 0 512 512" fill="currentColor">
<path d="M203 53l0 408-67 0 0-410 67 0z m-86-2l0 410-67 0 0-410c0 0 67 0 67 0z m174 2l0 409-69 0 0-409z m87 0l0 409-69 0 0-409z m88 0l0 409-69 0 0-409z"/>
</svg> -->
</a>
<?php endif; ?>
<?php if (in_array('6-cols', $multicheck_option_cols_display)) : ?>
<a href="javascript:void(0);" class="nasa-change-layout productGrid grid-6 nasa-tip<?php echo ($type_show == 'grid-6') ? ' active' : ''; ?><?php echo ($setup == 'grid-6') ? ' df' : ''; ?>" data-columns="6" rel="nofollow" data-tip="<?php echo esc_html__('6 Columns', 'elessi-theme'); ?>">
<?php if ($number_view) : ?>
<span class="nasa-text-number hidden-tag">
<?php echo esc_html__('6', 'elessi-theme'); ?>
</span>
<?php endif; ?>
<?php echo ($svg_6col); ?>
</a>
<?php endif; ?>
<?php if ($list_view && in_array('list-2cols', $multicheck_option_cols_display)) : ?>
<a href="javascript:void(0);" class="nasa-change-layout productList list-2 nasa-tip<?php echo ($type_show == 'list-2') ? ' active' : ''; ?><?php echo ($setup == 'list-2') ? ' df' : ''; ?>" data-columns="list-2" rel="nofollow" data-tip="<?php echo esc_html__('List 2 Columns', 'elessi-theme'); ?>">
<?php if ($number_view) : ?>
<span class="nasa-text-number hidden-tag">
<?php echo esc_html__('List 2', 'elessi-theme'); ?>
</span>
<?php endif; ?>
<?php echo ($svg_list2); ?>
<!-- <svg width="22" height="22" viewBox="0 0 512 512" fill="currentColor">
<path d="M462 202l-300 0 0-68 302 0z m0-87l-300 0 0-67 302 0c0 0 0 67-2 67z m0 175l-300 0 0-69 300 0z m0 86l-300 0 0-69 300 0z m0 88l-300 0 0-69 300 0z m-321-262l-88 0 0-68 88 0z m0-87l-88 0 0-67 88 0c0 0 0 67 0 67z m0 175l-90 0 0-69 88 0 0 69z m0 86l-90 0 0-69 88 0 0 69z m0 88l-90 0 0-69 88 0 0 69z"/>
</svg> -->
</a>
<?php endif; ?>
<?php if ($list_view && in_array('list', $multicheck_option_cols_display)) : ?>
<a href="javascript:void(0);" class="nasa-change-layout productList list nasa-tip<?php echo ($type_show == 'list') ? ' active' : ''; ?><?php echo ($setup == 'list') ? ' df' : ''; ?>" data-columns="1" rel="nofollow" data-tip="<?php echo esc_html__('List', 'elessi-theme'); ?>">
<?php if ($number_view) : ?>
<span class="nasa-text-number hidden-tag">
<?php echo esc_html__('List', 'elessi-theme'); ?>
</span>
<?php endif;?>
<?php echo ($svg_list);?>
<!-- <svg width="22" height="22" viewBox="0 0 512 512" fill="currentColor">
<path d="M462 202l-300 0 0-68 302 0z m0-87l-300 0 0-67 302 0c0 0 0 67-2 67z m0 175l-300 0 0-69 300 0z m0 86l-300 0 0-69 300 0z m0 88l-300 0 0-69 300 0z m-321-262l-88 0 0-68 88 0z m0-87l-88 0 0-67 88 0c0 0 0 67 0 67z m0 175l-90 0 0-69 88 0 0 69z m0 86l-90 0 0-69 88 0 0 69z m0 88l-90 0 0-69 88 0 0 69z"/>
</svg> -->
</a>
<?php endif; ?>
</div>
+43
View File
@@ -0,0 +1,43 @@
<?php
/**
* Checkout coupon form Clone
*
* @author NasaTheme
* @package Elessi-theme/WooCommerce
* Since 4.4.5
*/
defined('ABSPATH') || exit;
if (!wc_coupons_enabled()) :
return;
endif;
$publish_couponts = elessi_wc_publish_coupons();
$coupons_used = WC()->cart->get_applied_coupons();
?>
<tr>
<td colspan="2" class="coupon-clone-td">
<div class="nasa-flex">
<a href="javascript:void(0);" class="showcoupon-clone nasa-flex" rel="nofollow">
<svg class="ns-coupon-icon" width="18" height="25" viewBox="0 0 32 32" fill="currentColor">
<path d="M2784 4905 c-34 -7 -77 -21 -95 -30 -19 -9 -573 -555 -1232 -1213 -893 -892 -1205 -1210 -1225 -1247 -23 -43 -27 -62 -27 -135 0 -69 4 -93 24 -130 34 -66 1848 -1882 1916 -1918 43 -23 62 -27 135 -27 73 0 92 4 135 27 37 20 355 332 1247 1225 658 659 1204 1213 1213 1231 43 87 45 122 45 1044 0 877 0 878 -22 945 -18 57 -32 79 -88 134 -57 58 -75 70 -134 88 -67 21 -81 21 -950 20 -694 0 -894 -3 -942 -14z m1844 -220 c18 -11 43 -36 55 -55 l22 -35 0 -870 c0 -669 -3 -878 -12 -905 -10 -26 -333 -355 -1197 -1219 -1073 -1073 -1187 -1184 -1216 -1184 -29 0 -119 87 -947 916 -829 828 -916 918 -916 947 0 29 110 142 1179 1211 648 649 1188 1185 1199 1191 41 23 151 26 965 24 816 -1 836 -1 868 -21z" />
<path d="M3895 4396 c-70 -18 -130 -51 -186 -103 -227 -212 -138 -601 158 -693 147 -45 294 -13 407 91 172 157 178 428 13 593 -106 107 -249 147 -392 112z m183 -225 c70 -36 112 -102 112 -176 0 -154 -162 -249 -293 -172 -175 103 -107 365 96 367 28 0 63 -8 85 -19z" />
</svg>
<?php echo esc_html__('Have a coupon code?', 'elessi-theme'); ?>
</a>
<a href="javascript:void(0);" class="showcoupon-clone ns-add-coupon margin-left-10 rtl-margin-left-0 rtl-margin-right-10" data-close="<?php echo esc_html__('Close', 'elessi-theme'); ?>" data-add="<?php echo esc_html__('Add', 'elessi-theme'); ?>" rel="nofollow"><?php echo esc_html__('Add', 'elessi-theme'); ?></a>
</div>
<div class="form-row form-row-first margin-top-10 coupon-clone-wrap hidden-tag title-align-left">
<div class="nasa-flex">
<input type="text" name="coupon_code_clone" class="nasa-bold nasa-uppercase input-text margin-right-10 rtl-margin-right-0 rtl-margin-left-10" placeholder="<?php esc_attr_e('Coupon code', 'elessi-theme'); ?>" id="coupon_code-clone" value="" />
<button type="submit" class="button" name="apply_coupon_clone" value="<?php esc_attr_e('Apply coupon', 'elessi-theme'); ?>" id="apply_coupon_clone"><?php esc_html_e('Apply', 'elessi-theme'); ?></button>
</div>
<?php elessi_checkout_get_coupon_slide(); ?>
</div>
</td>
</tr>
+85
View File
@@ -0,0 +1,85 @@
<?php
/**
* Checkout Form: Layout - Default
*/
if (!defined('ABSPATH')) {
exit;
}
do_action('woocommerce_before_checkout_form', $checkout);
// If checkout registration is disabled and not logged in, the user cannot checkout
if (!$checkout->is_registration_enabled() && $checkout->is_registration_required() && !NASA_CORE_USER_LOGGED) :
echo apply_filters('woocommerce_checkout_must_be_logged_in_message', esc_html__('You must be logged in to checkout.', 'elessi-theme'));
return;
endif;
?>
<form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url(wc_get_checkout_url()); ?>" enctype="multipart/form-data" aria-label="<?php echo esc_attr__('Checkout', 'elessi-theme'); ?>">
<div class="row">
<?php
$class_order_review = 'large-12 columns';
if ($checkout->get_checkout_fields()) :
$class_order_review = 'large-5 columns';
?>
<div class="large-7 columns">
<?php do_action('woocommerce_checkout_before_customer_details'); ?>
<div class="checkout-group woo-billing">
<div class="col2-set" id="customer_details">
<div class="col-1">
<?php do_action('woocommerce_checkout_billing'); ?>
</div>
<div class="col-2">
<?php do_action('woocommerce_checkout_shipping'); ?>
</div>
</div>
</div>
<?php do_action('woocommerce_checkout_after_customer_details'); ?>
</div>
<?php endif; ?>
<div class="<?php echo esc_attr($class_order_review); ?>">
<?php
/**
* Custom action
*/
do_action('nasa_checkout_before_order_review');
?>
<div class="order-review">
<?php do_action('woocommerce_checkout_before_order_review_heading'); ?>
<h3 id="order_review_heading" class="order_review-heading">
<?php esc_html_e('Your Order', 'elessi-theme'); ?>
</h3>
<?php do_action('woocommerce_checkout_before_order_review'); ?>
<div id="order_review" class="woocommerce-checkout-review-order">
<?php do_action('woocommerce_checkout_order_review'); ?>
</div>
<?php do_action('woocommerce_checkout_after_order_review'); ?>
</div>
<?php
/**
* Custom action
*/
do_action('nasa_checkout_after_order_review');
?>
</div>
</div>
</form>
<?php
do_action('woocommerce_after_checkout_form', $checkout);
@@ -0,0 +1,40 @@
<?php
/**
* Checkout Billing detail: Layout - Modern
* Case: Shipping First
*/
if (!defined('ABSPATH')) :
exit;
endif;
?>
<div class="checkout-group margin-bottom-30 clearfix" id="nasa-billing-detail-wrap">
<h3 class="nasa-box-heading billing-detail-method-step padding-top-0 padding-bottom-0 margin-bottom-10">
<?php echo esc_html__('Billing address', 'elessi-theme'); ?>
</h3>
<p class="nasa-box-desc billing-detail-method-step">
<?php echo esc_html__('Select the address that matches your card or payment method.', 'elessi-theme'); ?>
</p>
<div class="ns-billing-select clearfix">
<div class="ns-same-shipping ns-billing-select-item">
<div class="nasa-flex ns-input-wrap">
<input type="radio" name="ns-billing-select" id="ns-billing-same" value="same" class="input-radio" checked />
<label for="ns-billing-same">
<?php echo esc_html__('Same as shipping address', 'elessi-theme'); ?>
</label>
</div>
</div>
<div class="ns-different-shipping ns-billing-select-item">
<div class="nasa-flex ns-input-wrap">
<input type="radio" name="ns-billing-select" id="ns-billing-different" value="different" class="input-radio" />
<label for="ns-billing-different">
<?php echo esc_html__('Use a different billing address', 'elessi-theme'); ?>
</label>
</div>
<div class="woocommerce-billing-fields"></div>
</div>
</div>
</div>
+186
View File
@@ -0,0 +1,186 @@
<?php
/**
* Checkout Form: Layout - Modern
*/
if (!defined('ABSPATH')) :
exit;
endif;
// If checkout registration is disabled and not logged in, the user cannot checkout
if (!$checkout->is_registration_enabled() && $checkout->is_registration_required() && !NASA_CORE_USER_LOGGED) :
echo '<div class="row"><div class="large-12 columns ns-checkout-must-login">';
echo apply_filters('woocommerce_checkout_must_be_logged_in_message', esc_html__('You must be logged in to checkout.', 'elessi-theme'));
/**
* Hook Login form
*/
do_action('woocommerce_before_checkout_form', $checkout);
echo '</div></div>';
return;
endif;
// $need_shipping = 'no' === get_option('woocommerce_enable_shipping_calc') || !WC()->cart->needs_shipping() ? false : true;
$need_shipping = true === WC()->cart->needs_shipping() ? true : false;
?>
<!-- Checkout BG -->
<div class="checkout-modern-bg hide-for-mobile">
<div class="checkout-modern-bg-left"></div>
<div class="checkout-modern-bg-right"></div>
</div>
<div class="row">
<!-- Checkout Wrap -->
<div class="checkout-modern-wrap large-12 columns">
<!-- Checkout Left -->
<div class="checkout-modern-left-wrap">
<!-- Checkout Breadcrumb -->
<div class="nasa-bc-modern">
<!--Back-->
<a class="nasa-icon ns-check-out-back nasa-flex" href="javascript: history.go(-1);" title="Back" rel="nofollow">
<svg fill="currentColor" height="25" width="25" viewBox="0 0 32 32">
<path d="M 13.811 6.077 L 4.384 15.507 C 4.117 15.773 4.081 16.044 4.348 16.31 L 13.887 26.01 C 14.153 26.277 14.465 26.222 14.732 25.955 C 14.998 25.689 14.602 25.292 14.336 25.026 L 5.776 16.392 L 27.151 16.392 C 27.527 16.392 27.835 16.249 27.835 15.873 C 27.835 15.496 27.527 15.351 27.151 15.351 L 5.96 15.351 L 14.336 6.953 C 14.469 6.82 14.734 6.558 14.734 6.383 C 14.734 6.209 14.693 6.1 14.56 5.967 C 14.293 5.702 14.077 5.812 13.811 6.077 Z" />
</svg>
</a>
<!-- Checkout Logo -->
<div class="mobile-text-center margin-bottom-30 mobile-margin-bottom-0">
<?php echo elessi_logo(); ?>
</div>
<div class="nasa-bc-modern-wrap">
<div class="nasa-iflex flex-nowrap">
<a class ="nasa-back_to_cart" href="<?php echo esc_url(wc_get_cart_url()); ?>" title="<?php echo esc_attr__('CART', 'elessi-theme'); ?>"><?php echo esc_html__('CART', 'elessi-theme'); ?></a>
<svg class="d-ltr" width="20" height="20" viewBox="0 0 32 32" fill="currentColor"><path d="M19.159 16.767l0.754-0.754-6.035-6.035-0.754 0.754 5.281 5.281-5.256 5.256 0.754 0.754 3.013-3.013z" /></svg>
<a href="javascript:void(0);" title="<?php echo esc_attr__('INFORMATION', 'elessi-theme'); ?>" rel="nofollow" class="nasa-billing-step active"><?php echo esc_html__('INFORMATION', 'elessi-theme'); ?></a>
<svg class="d-ltr" width="20" height="20" viewBox="0 0 32 32" fill="currentColor"><path d="M19.159 16.767l0.754-0.754-6.035-6.035-0.754 0.754 5.281 5.281-5.256 5.256 0.754 0.754 3.013-3.013z" /></svg>
<?php if ($need_shipping) : ?>
<a href="javascript:void(0);" title="<?php echo esc_attr__('SHIPPING', 'elessi-theme'); ?>" rel="nofollow" class="nasa-shipping-step"><?php echo esc_html__('SHIPPING', 'elessi-theme'); ?></a>
<svg class="d-ltr" width="20" height="20" viewBox="0 0 32 32" fill="currentColor"><path d="M19.159 16.767l0.754-0.754-6.035-6.035-0.754 0.754 5.281 5.281-5.256 5.256 0.754 0.754 3.013-3.013z" /></svg>
<?php endif; ?>
<a href="javascript:void(0);" title="<?php echo esc_attr__('PAYMENT', 'elessi-theme'); ?>" rel="nofollow" class="nasa-payment-step"><?php echo esc_html__('PAYMENT', 'elessi-theme'); ?></a>
</div>
</div>
</div>
<!-- Checkout Mobile Your Order -->
<a href="javascript:void(0);" class="hidden-tag your-order-mobile nasa-bold" rel="nofollow">
<span class="your-order-title">
<svg class="nasa-icon margin-right-10 rtl-margin-right-0 rtl-margin-left-10" width="22" height="22" viewBox="0 0 25 32">
<path d="M6.294 14.164h12.588v1.049h-12.588v-1.049z" fill="currentColor" />
<path d="M6.294 18.36h12.588v1.049h-12.588v-1.049z" fill="currentColor" />
<path d="M6.294 22.557h8.392v1.049h-8.392v-1.049z" fill="currentColor" />
<path d="M15.688 3.674c-0.25-1.488-1.541-2.623-3.1-2.623s-2.85 1.135-3.1 2.623h-9.489v27.275h25.176v-27.275h-9.488zM10.49 6.082v-1.884c0-1.157 0.941-2.098 2.098-2.098s2.098 0.941 2.098 2.098v1.884l0.531 0.302c1.030 0.586 1.82 1.477 2.273 2.535h-9.803c0.453-1.058 1.243-1.949 2.273-2.535l0.53-0.302zM24.128 29.9h-23.078v-25.177h8.392v0.749c-1.638 0.932-2.824 2.566-3.147 4.496h12.588c-0.322-1.93-1.509-3.563-3.147-4.496v-0.749h8.392v25.177z" fill="currentColor" />
</svg>
<?php echo esc_html__('Your Order', 'elessi-theme'); ?>
<svg class="nasa-icon rtl-margin-left-0 rtl-margin-right-10 nasa-flip-vertical" width="35" height="35" viewBox="0 0 32 32" fill="currentColor">
<path d="M16.767 12.809l-0.754-0.754-6.035 6.035 0.754 0.754 5.281-5.281 5.256 5.256 0.754-0.754-3.013-3.013z" />
</svg>
</span>
<span class="your-order-price"></span>
</a>
<?php do_action('woocommerce_before_checkout_form', $checkout); ?>
<!-- Checkout Form -->
<form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url(wc_get_checkout_url()); ?>" enctype="multipart/form-data">
<?php
$fields = $checkout->get_checkout_fields();
if ($fields) :
do_action('woocommerce_checkout_before_customer_details');
$billing_fields = isset($fields['billing']) ? $fields['billing'] : null;
$email_fields = isset($billing_fields['billing_email']) ? $billing_fields['billing_email'] : null;
if ($email_fields || (!NASA_CORE_USER_LOGGED && $checkout->is_registration_enabled())) : ?>
<!-- Custom Contact Information -->
<div class="checkout-group checkout-contact margin-bottom-10 clearfix" id="ns-checkout-contact">
<h3>
<?php echo esc_html__('Contact information', 'elessi-theme'); ?>
</h3>
<div class="form-row-wrap">
<p class="form-row form-row-wide nasa-email-field">
<label for="ns-email-add"><?php echo esc_html__('Email address', 'elessi-theme'); ?>&nbsp;</label>
<span class="woocommerce-input-wrapper">
<input id="ns-email-add" type="email" class="input-text" placeholder="Email address" value="" disabled />
</span>
</p>
</div>
</div>
<?php endif; ?>
<div class="checkout-group woo-billing clearfix">
<div id="customer_details">
<?php if (true === WC()->cart->needs_shipping_address() && 'shipping' === get_option('woocommerce_ship_to_destination')) : ?>
<div class="ns-shipping-first">
<h3>
<?php echo esc_html__('Shipping address', 'elessi-theme'); ?>
</h3>
<?php do_action('woocommerce_checkout_shipping'); ?>
<?php do_action('woocommerce_checkout_billing'); ?>
</div>
<?php else : ?>
<?php do_action('woocommerce_checkout_billing'); ?>
<?php do_action('woocommerce_checkout_shipping'); ?>
<?php endif; ?>
</div>
</div>
<?php do_action('woocommerce_checkout_after_customer_details'); ?>
<?php endif; ?>
</form>
<?php do_action('woocommerce_after_checkout_form', $checkout); ?>
</div>
<!-- Checkout Right -->
<div class="checkout-modern-right-wrap">
<?php
/**
* Custom action
*/
do_action('nasa_checkout_before_order_review');
?>
<div class="order-review order-review-modern">
<?php do_action('woocommerce_checkout_before_order_review_heading'); ?>
<h3 id="order_review_heading" class="order_review-heading">
<?php esc_html_e('Your Order', 'elessi-theme'); ?>
<a href="javascript:void(0);" class="hidden-tag close-your-order-mobile nasa-stclose" rel="nofollow"></a>
</h3>
<?php do_action('woocommerce_checkout_before_order_review'); ?>
<div id="order_review" class="woocommerce-checkout-review-order">
<?php do_action('woocommerce_checkout_order_review'); ?>
</div>
<?php do_action('woocommerce_checkout_after_order_review'); ?>
</div>
<?php
/**
* Custom action
*/
do_action('nasa_checkout_after_order_review');
?>
</div>
</div>
</div>
@@ -0,0 +1,46 @@
<?php
// Exit if accessed directly
if (!defined('ABSPATH')) :
exit;
endif;
if (!$product->is_purchasable()) :
return;
endif;
$bundled_items = $product->get_bundled_items();
if ($bundled_items) : ?>
<hr class="nasa-single-hr">
<h3 class="nasa-gift-label"><?php echo esc_html__('Bundle product for', 'elessi-theme'); ?>&nbsp;<span class="nasa-gift-count">(<?php echo count($bundled_items) . '&nbsp;' . esc_html__('items', 'elessi-theme'); ?>)</span></h3>
<div
id="nasa-slider-gifts-product-quickview"
class="ns-items-gap nasa-slick-slider"
data-columns="3"
data-columns-small="2"
data-columns-tablet="3"
data-switch-tablet="<?php echo elessi_switch_tablet(); ?>"
data-switch-desktop="<?php echo elessi_switch_desktop(); ?>">
<?php foreach ($bundled_items as $bundled_item) :
$bundled_product = $bundled_item->get_product();
$bundled_post = get_post(yit_get_base_product_id($bundled_product));
$quantity = $bundled_item->get_quantity();
?>
<div class="nasa-gift-product-quickview-item nasa-slider-item">
<a href="<?php echo esc_url($bundled_product->get_permalink()); ?>" title="<?php echo esc_attr($bundled_product->get_title()); ?>">
<div class="nasa-bundled-item-image"><?php echo ($bundled_product->get_image()); ?></div>
<h5><?php echo ($quantity . ' x ' . $bundled_product->get_title()); ?></h5>
</a>
<?php
if ($bundled_product->has_enough_stock($quantity) && $bundled_product->is_in_stock()) :
echo '<div class="nasa-label-stock nasa-item-instock">' . esc_html__('In stock', 'elessi-theme') . '</div>';
else :
echo '<div class="nasa-label-stock nasa-item-outofstock">' . esc_html__('Out of stock', 'elessi-theme') . '</div>';
endif;
?>
</div>
<?php endforeach; ?>
</div>
<?php endif;
+45
View File
@@ -0,0 +1,45 @@
<?php
/**
* Carousel slide for gift products
*/
$id_sc = rand(0, 9999999);
$_delay = 0;
$_delay_item = (isset($nasa_opt['delay_overlay']) && (int) $nasa_opt['delay_overlay']) ? (int) $nasa_opt['delay_overlay'] : 100;
?>
<div class="nasa-slider-wrap nasa-warp-slide-nav-side nasa-slider-wrap-combo">
<div class="large-2 medium-3 columns">
<div class="nasa-slide-left-info-wrap">
<h4 class="nasa-combo-gift"><?php echo esc_html__('Bundle product for', 'elessi-theme'); ?></h4>
<h3><?php echo ($product->get_name()); ?><span class="nasa-count-items">(<?php echo count($combo) . ' ' . esc_html__('Items', 'elessi-theme'); ?>)</span></h3>
<div class="nasa-nav-carousel-wrap nasa-clear-both">
<a class="nasa-nav-icon-slider icon-nasa-left-arrow" href="javascript:void(0);" data-do="prev" rel="nofollow"></a>
<a class="nasa-nav-icon-slider icon-nasa-right-arrow" href="javascript:void(0);" data-do="next" rel="nofollow"></a>
</div>
<?php if (!isset($nasa_viewmore) || $nasa_viewmore == true) : ?>
<a class="nasa-view-more-slider" href="<?php echo esc_url($product->get_permalink()); ?>" title="<?php echo esc_attr__('View more', 'elessi-theme'); ?>"><?php echo esc_html__('View more', 'elessi-theme'); ?></a>
<?php endif; ?>
</div>
</div>
<div class="large-10 medium-9 columns">
<div
id="nasa-slider-<?php echo esc_attr($id_sc); ?>"
class="ns-items-gap nasa-slick-slider nasa-combo-slider"
data-columns="4"
data-columns-small="2"
data-columns-tablet="3"
data-switch-tablet="<?php echo elessi_switch_tablet(); ?>"
data-switch-desktop="<?php echo elessi_switch_desktop(); ?>">
<?php
$file_content = ELESSI_CHILD_PATH . '/includes/nasa-content-product-gift.php';
$file_content = is_file($file_content) ? $file_content : ELESSI_THEME_PATH . '/includes/nasa-content-product-gift.php';
foreach ($combo as $bundle_item) :
include $file_content;
$_delay += $_delay_item;
endforeach;
?>
</div>
</div>
</div>
+80
View File
@@ -0,0 +1,80 @@
<?php
/**
*
* The template for displaying product gifts content within loops
*/
global $nasa_opt;
/**
* Hover effect products in grid
*/
$nasa_animated_products = isset($nasa_opt['animated_products']) && $nasa_opt['animated_products'] ? $nasa_opt['animated_products'] : '';
$product_gift = $bundle_item->product;
if (!$product_gift->is_visible() && (!isset($_REQUEST['nasa_load_ajax']) || !$_REQUEST['nasa_load_ajax'])) :
return;
endif;
$post_gift = get_post($product_gift->get_id());
$productId = $product_gift->get_id();
$time_sale = (isset($is_deals) && $is_deals) ? get_post_meta($productId, '_sale_price_dates_to', true) : false;
$image_size = apply_filters('single_product_archive_thumbnail_size', 'woocommerce_thumbnail');
$main_img = $product_gift->get_image($image_size);
$nasa_title = get_the_title($post_gift); // Title
$nasa_link = get_permalink($post_gift); // permalink
$product_category = function_exists('wc_get_product_category_list') ? wc_get_product_category_list($productId, ', ') : $product_gift->get_categories(', '); // Categories list
$class_wrap = 'wow fadeInUp product-item grid';
$attachment_ids = $nasa_animated_products != '' ? $product_gift->get_gallery_image_ids() : false;
$class_wrap .= $nasa_animated_products ? ' ' . $nasa_animated_products : '';
$stock_status = $product_gift->get_stock_status();
$class_wrap .= $stock_status == "outofstock" ? ' out-of-stock' : '';
echo '<div class="' . esc_attr($class_wrap) . '" data-wow-duration="1s" data-wow-delay="' . esc_attr($_delay) . 'ms" data-wow="fadeInUp">';
?>
<div class="<?php echo ($time_sale) ? ' product-deals' : ''; ?> nasa-title-bottom">
<div class="product-inner">
<div class="product-img">
<a href="<?php echo esc_url($nasa_link); ?>" title="<?php echo esc_attr($nasa_title); ?>">
<div class="main-img"><?php echo ($main_img); ?></div>
<?php if ($attachment_ids) :
foreach ($attachment_ids as $attachment_id) :
$image_link = wp_get_attachment_url($attachment_id);
if (!$image_link):
continue;
endif;
printf('<div class="back-img back">%s</div>', wp_get_attachment_image($attachment_id, apply_filters('single_product_archive_thumbnail_size', 'woocommerce_thumbnail')));
break;
endforeach;
endif; ?>
</a>
<?php if ($stock_status == "outofstock"): ?>
<div class="badge out-of-stock-label">
<?php esc_html_e('Sold Out', 'elessi-theme'); ?>
</div>
<?php endif; ?>
</div>
<div class="info nasa-combo-info-item">
<div class="name nasa-name text-center">
<a href="<?php echo esc_url($nasa_link); ?>" title="<?php echo esc_attr($nasa_title); ?>">
<?php echo $nasa_title; ?>
</a>
</div>
</div>
<?php echo elessi_time_sale($time_sale); ?>
</div>
</div>
<?php
echo '</div>';
+20
View File
@@ -0,0 +1,20 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$nasa_gdpr_policies = isset($nasa_opt['nasa_gdpr_policies']) && $nasa_opt['nasa_gdpr_policies'] ? $nasa_opt['nasa_gdpr_policies'] : false;
?>
<div class="nasa-cookie-notice-container">
<div class="nasa-cookie-notice-centent">
<span class="nasa-notice-text">
<?php echo esc_html__('In order to provide you a personalized shopping experience, our site uses cookies. By continuing to use this site, you are agreeing to our', 'elessi-theme'); ?>
<?php if ($nasa_gdpr_policies) : ?>
<a href="<?php echo esc_url($nasa_gdpr_policies); ?>" target="_blank" class="nasa-policies-cookie" title="<?php echo esc_attr__('cookie policy', 'elessi-theme'); ?>" rel="nofollow"><?php echo esc_html__('cookie policy', 'elessi-theme'); ?>.</a>
<?php endif; ?>
</span>
<a href="javascript:void(0);" class="nasa-accept-cookie" title="<?php echo esc_attr__('Accept', 'elessi-theme'); ?>" class="button" rel="nofollow"><?php echo esc_html__('Accept', 'elessi-theme'); ?></a>
</div>
</div>
+28
View File
@@ -0,0 +1,28 @@
<?php
if (wc_get_loop_prop('total')) :
global $nasa_opt;
$_delay = $count = 0;
$_delay_item = (isset($nasa_opt['delay_overlay']) && (int) $nasa_opt['delay_overlay']) ? (int) $nasa_opt['delay_overlay'] : 100;
while (have_posts()) :
the_post();
/**
* Hook: woocommerce_shop_loop.
*/
do_action('woocommerce_shop_loop');
wc_get_template(
'content-product.php',
array(
'_delay' => $_delay,
'wrapper' => 'li'
)
);
$_delay += $_delay_item;
$count++;
endwhile;
endif;
+76
View File
@@ -0,0 +1,76 @@
<?php
/**
* Global wishlist button template
*/
if (!NASA_WISHLIST_NEW_VER) :
$label_option = get_option('yith_wcwl_add_to_wishlist_text');
$localize_label = function_exists('icl_translate') ? icl_translate('Plugins', 'plugin_yit_wishlist_button', $label_option) : $label_option;
$label = apply_filters('yith_wcwl_button_label', $localize_label);
$icon = get_option('yith_wcwl_add_to_wishlist_icon') != 'none' ? '<i class="fa ' . get_option('yith_wcwl_add_to_wishlist_icon') . '"></i>' : '';
$link_classes = get_option('yith_wcwl_use_button') == 'yes' ? 'add_to_wishlist single_add_to_wishlist button alt' : 'add_to_wishlist';
$product_added_text = get_option('yith_wcwl_product_added_text');
$already_in_wishslist_text = get_option('yith_wcwl_already_in_wishlist_text');
$browse_wishlist_text = get_option('yith_wcwl_browse_wishlist_text');
?>
<script type="text/template" id="tmpl-nasa-global-wishlist">
<div class="yith-wcwl-add-to-wishlist add-to-wishlist-%%product_id%%">
<div class="yith-wcwl-add-button">
<a href="<?php echo esc_url(add_query_arg('add_to_wishlist', '%%product_id%%')); ?>" rel="nofollow" data-product-id="%%product_id%%" data-product-type="%%product_type%%" class="<?php echo $link_classes; ?>">
<?php echo $icon; ?>
<?php echo $label; ?>
</a>
<img src="<?php echo esc_url(YITH_WCWL_URL . 'assets/images/wpspin_light.gif'); ?>" class="ajax-loading" alt="loading" width="16" height="16" style="visibility:hidden" />
</div>
<div class="yith-wcwl-wishlistaddedbrowse">
<span class="feedback">
<?php echo $product_added_text; ?>
</span>
<a href="#" rel="nofollow">
<?php echo apply_filters('yith-wcwl-browse-wishlist-label', $browse_wishlist_text); ?>
</a>
</div>
<div class="yith-wcwl-wishlistexistsbrowse">
<span class="feedback"><?php echo $already_in_wishslist_text; ?></span>
<a href="#" rel="nofollow">
<?php echo apply_filters('yith-wcwl-browse-wishlist-label', $browse_wishlist_text); ?>
</a>
</div>
<div style="clear:both"></div>
<div class="yith-wcwl-wishlistaddresponse"></div>
</div>
</script>
<?php
else :
/**
* Version 3.0 or higher
*/
$label_option = get_option('yith_wcwl_add_to_wishlist_text');
$icon_option = get_option('yith_wcwl_add_to_wishlist_icon');
// button label
$label = apply_filters('yith_wcwl_button_label', $label_option);
// button icon
$icon = apply_filters('yith_wcwl_button_icon', $icon_option != 'none' ? $icon_option : '');
$use_custom_button = get_option('yith_wcwl_add_to_wishlist_style');
$link_classes = apply_filters('yith_wcwl_add_to_wishlist_button_classes', in_array($use_custom_button, array('button_custom', 'button_default')) ? 'add_to_wishlist single_add_to_wishlist button alt' : 'add_to_wishlist single_add_to_wishlist');
?>
<script type="text/template" id="tmpl-nasa-global-wishlist">
<div class="yith-wcwl-add-button">
<a href="<?php echo esc_url(add_query_arg('add_to_wishlist', '%%product_id%%')); ?>" rel="nofollow" data-product-id="%%product_id%%" data-product-type="%%product_type%%" data-original-product-id="%%original_product_id%%" class="<?php echo $link_classes; ?>" data-title="<?php echo esc_attr(apply_filters('yith_wcwl_add_to_wishlist_title', $label)); ?>">
<?php echo $icon; ?>
<span><?php echo $label ?></span>
</a>
</div>
</script>
<?php
endif;
echo '<div id="yith-wcwl-popup-message" style="display: none;"><div id="yith-wcwl-message"></div></div>';
+189
View File
@@ -0,0 +1,189 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
defined('ABSPATH') or exit; // Exit if accessed directly
do_action('nasa_init_login_register_form');
$login_ajax = (bool) $prefix;
$prefix = $prefix ? 'nasa_' : '';
$nasa_keyUserName = $prefix . 'username';
$nasa_keyPass = $prefix . 'password';
$nasa_keyEmail = $prefix . 'email';
$nasa_keyLogin = $prefix . 'login';
$nasa_keyRememberme = $prefix . 'rememberme';
$nasa_keyRegUsername = $prefix . 'reg_username';
$nasa_keyRegEmail = $prefix . 'reg_email';
$nasa_keyRegPass = $prefix . 'reg_password';
$nasa_keyReg = $prefix . 'register';
$nasa_register = get_option('woocommerce_enable_myaccount_registration') == 'yes' ? true : false;
$svg_eye =
'<svg width="20px" height="20px" viewBox="0 0 24 24" fill="currentColor" class="ns-svg-eye-op">
<path d="M12 5C5.63636 5 2 12 2 12C2 12 5.63636 19 12 19C18.3636 19 22 12 22 12C22 12 18.3636 5 12 5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
<path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>';
$svg_eye_close =
'<svg width="20px" height="20px" viewBox="0 0 24 24" fill="currentColor" class="ns-svg-eye-cl">
<path d="M20 14.8335C21.3082 13.3317 22 12 22 12C22 12 18.3636 5 12 5C11.6588 5 11.3254 5.02013 11 5.05822C10.6578 5.09828 10.3244 5.15822 10 5.23552M12 9C12.3506 9 12.6872 9.06015 13 9.17071C13.8524 9.47199 14.528 10.1476 14.8293 11C14.9398 11.3128 15 11.6494 15 12M3 3L21 21M12 15C11.6494 15 11.3128 14.9398 11 14.8293C10.1476 14.528 9.47198 13.8524 9.1707 13C9.11386 12.8392 9.07034 12.6721 9.04147 12.5M4.14701 9C3.83877 9.34451 3.56234 9.68241 3.31864 10C2.45286 11.1282 2 12 2 12C2 12 5.63636 19 12 19C12.3412 19 12.6746 18.9799 13 18.9418" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>';
$styleRegister = $styleLogin = '';
if (isset($_REQUEST['register'])) :
$styleRegister = ' style="left: 0px; position: relative;"';
$styleLogin = ' style="left: -100%; position: absolute;"';
endif;
?>
<?php do_action('woocommerce_before_customer_login_form'); ?>
<div class="row" id="<?php echo esc_attr($prefix); ?>customer_login">
<div class="large-12 columns <?php echo esc_attr($prefix); ?>login-form"<?php echo $styleLogin; ?>>
<span class="nasa-form-title">
<?php esc_html_e('Great to have you back!', 'elessi-theme'); ?>
</span>
<form method="post" class="woocommerce-form woocommerce-form-login login">
<?php do_action('woocommerce_login_form_start'); ?>
<p class="form-row form-row-wide">
<span>
<label for="<?php echo esc_attr($nasa_keyUserName); ?>" class="inline-block left rtl-right">
<?php esc_html_e('Username or email', 'elessi-theme'); ?> <span class="required" aria-hidden="true">*</span>
</label>
<!-- Remember -->
<label for="<?php echo esc_attr($nasa_keyRememberme); ?>" class="woocommerce-form__label woocommerce-form__label-for-checkbox woocommerce-form-login__rememberme inline-block right rtl-left none-weight">
<input class="woocommerce-form__input woocommerce-form__input-checkbox margin-right-5 rtl-margin-right-0 rtl-margin-left-5" name="<?php echo esc_attr($nasa_keyRememberme); ?>" type="checkbox" id="<?php echo esc_attr($nasa_keyRememberme); ?>" value="forever" /> <?php esc_html_e('Remember', 'elessi-theme'); ?>
</label>
</span>
<!-- Username -->
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="<?php echo esc_attr($nasa_keyUserName); ?>" id="<?php echo esc_attr($nasa_keyUserName); ?>" autocomplete="username" value="<?php echo (!empty($_POST[$nasa_keyUserName])) ? esc_attr(wp_unslash($_POST[$nasa_keyUserName])) : ''; ?>" required aria-required="true" />
</p>
<p class="form-row form-row-wide">
<span>
<label for="<?php echo esc_attr($nasa_keyPass); ?>" class="inline-block left rtl-right">
<?php esc_html_e('Password', 'elessi-theme'); ?> <span class="required" aria-hidden="true">*</span>
</label>
<a class="lost_password inline-block right rtl-left none-weight" href="<?php echo esc_url(wc_lostpassword_url()); ?>"><?php esc_html_e('Lost?', 'elessi-theme'); ?></a>
</span>
<a href="javascript:void(0);" class="ns-show-password"><?php echo $svg_eye . $svg_eye_close; ?></a>
<input class="woocommerce-Input woocommerce-Input--text input-text" type="password" name="<?php echo esc_attr($nasa_keyPass); ?>" id="<?php echo esc_attr($nasa_keyPass); ?>" autocomplete="current-password" required aria-required="true" />
</p>
<?php do_action('woocommerce_login_form'); ?>
<p class="form-row row-submit">
<?php wp_nonce_field('woocommerce-login', 'woocommerce-login-nonce'); ?>
<button type="submit" class="woocommerce-button button woocommerce-form-login__submit nasa-fullwidth margin-top-10" name="<?php echo esc_attr($nasa_keyLogin); ?>" value="<?php esc_attr_e('SIGN IN TO YOUR ACCOUNT', 'elessi-theme'); ?>"><?php esc_html_e('SIGN IN TO YOUR ACCOUNT', 'elessi-theme'); ?></button>
</p>
<?php do_action('woocommerce_login_form_end'); ?>
</form>
<?php if ($nasa_register) : ?>
<p class="nasa-switch-form">
<?php esc_html_e('Not a member? ', 'elessi-theme'); ?>
<a class="nasa-switch-register" href="javascript:void(0);" rel="nofollow">
<?php esc_html_e('Create an account', 'elessi-theme'); ?>
</a>
</p>
<?php endif; ?>
</div>
<?php if ($nasa_register) : ?>
<div class="large-12 columns <?php echo esc_attr($prefix); ?>register-form"<?php echo $styleRegister; ?>>
<span class="nasa-form-title">
<?php esc_html_e('Great to see you here!', 'elessi-theme'); ?>
</span>
<form method="post" class="woocommerce-form woocommerce-form-register register" <?php do_action('woocommerce_register_form_tag'); ?>>
<?php do_action('woocommerce_register_form_start'); ?>
<?php if ('no' === get_option('woocommerce_registration_generate_username')) : ?>
<p class="form-row form-row-wide">
<label for="<?php echo esc_attr($nasa_keyRegUsername); ?>" class="left rtl-right">
<?php esc_html_e('Username', 'elessi-theme'); ?> <span class="required" aria-hidden="true">*</span>
</label>
<!-- Username -->
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="<?php echo esc_attr($nasa_keyUserName); ?>" id="<?php echo esc_attr($nasa_keyRegUsername); ?>" autocomplete="username" value="<?php echo (!empty($_POST[$nasa_keyUserName])) ? esc_attr(wp_unslash($_POST[$nasa_keyUserName])) : ''; ?>" />
</p>
<?php endif; ?>
<p class="form-row form-row-wide">
<label for="<?php echo esc_attr($nasa_keyRegEmail); ?>" class="left rtl-right">
<?php esc_html_e('Email address', 'elessi-theme'); ?> <span class="required" aria-hidden="true">*</span>
</label>
<!-- Email -->
<input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="<?php echo esc_attr($nasa_keyEmail); ?>" id="<?php echo esc_attr($nasa_keyRegEmail); ?>" autocomplete="email" value="<?php echo (!empty($_POST[$nasa_keyEmail])) ? esc_attr(wp_unslash($_POST[$nasa_keyEmail])) : ''; ?>" required aria-required="true" />
</p>
<?php if ('no' === get_option('woocommerce_registration_generate_password')) : ?>
<p class="form-row form-row-wide">
<label for="<?php echo esc_attr($nasa_keyRegPass); ?>" class="left rtl-right">
<?php esc_html_e('Password', 'elessi-theme'); ?> <span class="required">*</span>
</label>
<!-- Password -->
<a href="javascript:void(0);" class="ns-show-password"><?php echo $svg_eye . $svg_eye_close; ?></a>
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="<?php echo esc_attr($nasa_keyPass); ?>" id="<?php echo esc_attr($nasa_keyRegPass); ?>" autocomplete="new-password" required aria-required="true" />
</p>
<?php else : ?>
<p class="form-row form-row-wide">
<?php esc_html_e('A link to set a new password will be sent to your email address.', 'elessi-theme'); ?>
</p>
<?php endif; ?>
<?php do_action('woocommerce_register_form'); ?>
<p class="form-row">
<?php wp_nonce_field('woocommerce-register', 'woocommerce-register-nonce'); ?>
<!-- Submit button -->
<button type="submit" class="woocommerce-Button woocommerce-button button woocommerce-form-register__submit nasa-fullwidth" name="<?php echo esc_attr($nasa_keyReg); ?>" value="<?php esc_attr_e('SETUP YOUR ACCOUNT', 'elessi-theme'); ?>"><?php esc_html_e('SETUP YOUR ACCOUNT', 'elessi-theme'); ?></button>
</p>
<?php do_action('woocommerce_register_form_end'); ?>
</form>
<p class="nasa-switch-form">
<?php esc_html_e('Already got an account? ', 'elessi-theme'); ?>
<a class="nasa-switch-login" href="javascript:void(0);" rel="nofollow">
<?php esc_html_e('Sign in here', 'elessi-theme'); ?>
</a>
</p>
</div>
<?php endif; ?>
</div>
<?php
do_action('woocommerce_after_customer_login_form');
+106
View File
@@ -0,0 +1,106 @@
<?php
/**
* Loop Product Thumbnail
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
global $nasa_opt, $product;
$is_mobile = isset($nasa_opt['nasa_in_mobile']) && $nasa_opt['nasa_in_mobile'] ? true : false;
/**
* Hover effect products in grid
*/
$nasa_animated_products = isset($nasa_opt['animated_products']) && $nasa_opt['animated_products'] ? $nasa_opt['animated_products'] : '';
$nasa_link = $product->get_permalink(); // permalink
$nasa_title = $product->get_name(); // Title
$attachment_ids = false;
$backImageMobile = isset($nasa_opt['mobile_back_image']) && $nasa_opt['mobile_back_image'] ? true : false;
/**
* Mobile detect
*/
if (
!in_array($nasa_animated_products, array('', 'hover-zoom', 'hover-to-top')) &&
(!$is_mobile || ($is_mobile && $backImageMobile))
) :
$attachment_ids = apply_filters('ns_sp_back_img_product_grid', true) ? $product->get_gallery_image_ids() : false;
endif;
$image_size = apply_filters('single_product_archive_thumbnail_size', 'woocommerce_thumbnail');
// $main_img = $product->get_image($image_size);
$class_wrap = 'product-img';
if (!$attachment_ids && !in_array($nasa_animated_products, array('hover-zoom', 'hover-to-top'))) :
$class_wrap .= ' nasa-no-effect';
endif;
$gallery = array();
if (in_array($nasa_animated_products, array('hover-carousel')) && $attachment_ids) :
$class_wrap .= ' loop-gallery-carousel';
foreach ($attachment_ids as $attachment_id) :
$img = wp_get_attachment_image_src($attachment_id, $image_size);
if ($img) :
$gallery[] = array(
'src' => $img[0],
'w' => $img[1],
'h' => $img[2]
);
endif;
endforeach;
endif;
$wrap = 'a';
$wrap_attrs = array();
if (!empty($gallery)) :
$wrap = 'div';
$gallery_json = wp_json_encode($gallery);
$gallery_json_str = function_exists('wc_esc_json') ? wc_esc_json($gallery_json) : _wp_specialchars($gallery_json, ENT_QUOTES, 'UTF-8', true);
$wrap_attrs = array(
'class="' . esc_attr($class_wrap) . '"',
'title="' . esc_attr($nasa_title) . '"',
'data-gellery="' . $gallery_json_str . '"'
);
else :
$class_wrap .= defined('NASA_AJAX_PRODUCT') && NASA_AJAX_PRODUCT ? ' nasa-ajax-call' : '';
$wrap_attrs = array(
'class="' . esc_attr($class_wrap) . '"',
'href="' . esc_url($nasa_link) . '"',
'title="' . esc_attr($nasa_title) . '"'
);
endif;
?>
<?php if ($wrap !== 'a') :
$class_a = 'link-absolute';
$class_a .= defined('NASA_AJAX_PRODUCT') && NASA_AJAX_PRODUCT ? ' nasa-ajax-call' : '';
?>
<a href="<?php echo esc_url($nasa_link); ?>" title="<?php echo esc_attr($nasa_title); ?>" class="<?php echo esc_attr($class_a); ?>"></a>
<?php endif; ?>
<<?php echo $wrap; ?><?php echo !empty($wrap_attrs) ? ' ' . implode(' ', $wrap_attrs) : ''; ?>>
<div class="main-img">
<?php echo $product->get_image($image_size); ?>
</div>
<?php
/**
* Back image
*/
if (empty($gallery) && $attachment_ids) :
foreach ($attachment_ids as $attachment_id) :
printf('<div class="back-img back">%s</div>', wp_get_attachment_image($attachment_id, $image_size));
break;
endforeach;
endif; ?>
</<?php echo $wrap; ?>>
+69
View File
@@ -0,0 +1,69 @@
<?php
defined('ABSPATH') || exit;
/**
* Publish Coupons
*/
$publish_couponts = elessi_wc_publish_coupons();
if (!empty($publish_couponts)) : ?>
<p class="node-title nasa-bold fs-20 mobile-fs-18">
<?php echo esc_html__('Select an available coupon', 'elessi-theme'); ?>
</p>
<div class="publish-coupons nasa-flex flex-column">
<?php foreach ($publish_couponts as $coupon) :
$code = $coupon->get_code();
$amount = $coupon->get_amount();
$discount_type = $coupon->get_discount_type();
$discount_lbl = '';
if ($discount_type == 'fixed_cart') :
$discount_lbl = sprintf(esc_html__('%s&nbsp;Discount', 'elessi-theme'), wc_price($amount));
endif;
if ($discount_type == 'percent') :
$discount_lbl = sprintf(esc_html__('%s&nbsp;Discount', 'elessi-theme'), $amount . '%');
endif;
if ($discount_type == 'fixed_product') :
$discount_lbl = sprintf(esc_html__('%s&nbsp;Product Discount', 'elessi-theme'), wc_price($amount));
endif;
$date_expires = $coupon->get_date_expires();
$date_expires_lbl = !$date_expires ? esc_html__('Never expire', 'elessi-theme') : '<span class="hide-for-small">' . esc_html__('Valid until ', 'elessi-theme') . '</span>' . get_date_from_gmt(date('Y-m-d H:i:s', strtotime($date_expires)), apply_filters('nasa_coupon_date_expire_format', 'm/d/Y'));
$desc = $coupon->get_description();
$min_amout = $coupon->get_minimum_amount();
$min_amout_lbl = $min_amout ? sprintf(esc_html__('The minimum spend for this coupon is&nbsp;%s', 'elessi-theme'), wc_price($min_amout)) : '';
$max_amout = $coupon->get_maximum_amount();
$max_amout_lbl = $max_amout ? sprintf(esc_html__('The maximum spend for this coupon is&nbsp;%s', 'elessi-theme'), wc_price($max_amout)) : '';
?>
<a href="javascript:void(0);" data-code="<?php echo esc_attr($code); ?>" class="publish-coupon fs-15" title="<?php echo esc_attr__('Click here to Apply this coupon.', 'elessi-theme'); ?>">
<span class="discount-info fs-16 nasa-flex nasa-fullwidth nasa-bold"><?php echo $discount_lbl; ?></span>
<span class="discount-code nasa-flex nasa-fullwidth flex-wrap">
<span class="nasa-bold nasa-uppercase margin-right-10 rtl-margin-right-0 rtl-margin-left-10"><?php echo $code; ?></span>
<span class="discount-exp"><?php echo $date_expires_lbl; ?></span>
</span>
<?php echo $desc ? '<span class="discount-desc nasa-flex nasa-fullwidth">' . $desc . '</span>' : ''; ?>
<?php echo $min_amout_lbl ? '<span class="discount-min nasa-flex nasa-fullwidth">' . $min_amout_lbl . '</span>' : ''; ?>
<?php echo $max_amout_lbl ? '<span class="discount-max nasa-flex nasa-fullwidth">' . $max_amout_lbl . '</span>' : ''; ?>
</a>
<?php endforeach; ?>
</div>
<?php endif; ?>
<p class="node-title nasa-bold ns-coupon-ask fs-20 mobile-fs-18">
<?php echo esc_html__('Have a coupon code?', 'elessi-theme'); ?>
</p>
<div class="coupon-btns nasa-flex flex-column">
<input type="text" name="coupon_code" class="input-text nasa-uppercase nasa-bold" id="mini-cart-add-coupon_code" value="" />
<button type="submit" class="button nasa-fullwidth margin-top-10" name="mini-cart-apply_coupon" value="<?php echo esc_attr__('Apply coupon', 'elessi-theme'); ?>" id="mini-cart-apply_coupon">
<?php echo esc_html__('Apply', 'elessi-theme'); ?>
</button>
</div>
+19
View File
@@ -0,0 +1,19 @@
<?php
defined('ABSPATH') || exit;
$coupons = WC()->cart->get_coupons();
if ($coupons) :
foreach ($coupons as $code => $coupon) : ?>
<div class="coupon-wrap ext-item-wrap nasa-flex jbw" data-code="<?php echo esc_attr($coupon->get_code()); ?>">
<span class="coupon-label ext-item-label">
<?php wc_cart_totals_coupon_label($coupon); ?>
</span>
<span class="coupon-content ext-item-content">
<?php wc_cart_totals_coupon_html($coupon); ?>
</span>
</div>
<?php
endforeach;
endif;
+19
View File
@@ -0,0 +1,19 @@
<?php
defined('ABSPATH') || exit;
$fees = WC()->cart->get_fees();
if ($fees) :
foreach ($fees as $fee) : ?>
<div class="fees-cart-wrap ext-item-wrap nasa-flex jbw">
<span class="fees-label ext-item-label">
<?php echo esc_html($fee->name); ?>
</span>
<span class="fees-content ext-item-content">
<?php wc_cart_totals_fee_html($fee); ?>
</span>
</div>
<?php
endforeach;
endif;
+25
View File
@@ -0,0 +1,25 @@
<?php
defined('ABSPATH') || exit;
if (apply_filters('woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes'))) :
$checkout = WC()->checkout();
echo '<p class="node-title nasa-bold fs-20 mobile-fs-18">' . esc_html__('Add note', 'elessi-theme') . '</p>';
do_action('woocommerce_before_order_notes', $checkout);
foreach ($checkout->get_checkout_fields('order') as $key => $field) :
woocommerce_form_field($key, $field, $checkout->get_value($key));
endforeach;
do_action('woocommerce_after_order_notes', $checkout);
?>
<button type="submit" class="button nasa-fullwidth" name="mini-cart-save_note" value="<?php echo esc_attr__('Note', 'elessi-theme'); ?>" id="mini-cart-save_note">
<?php echo esc_html__('Save', 'elessi-theme'); ?>
</button>
<?php
endif;
+53
View File
@@ -0,0 +1,53 @@
<?php
defined('ABSPATH') || exit;
/**
* Calculate Shipping
*/
WC()->cart->calculate_shipping();
WC()->cart->calculate_totals();
/**
* Get Packages
*/
$packages = WC()->shipping()->get_packages();
foreach ($packages as $i => $package) :
$chosen_method = isset(WC()->session->chosen_shipping_methods[$i]) ? WC()->session->chosen_shipping_methods[$i] : '';
$available_methods = isset($package['rates']) ? $package['rates'] : null;
if ($available_methods) :
$index = $i;
?>
<div class="shipping-wrap ext-item-wrap nasa-flex jbw">
<span class="shipping-label ext-item-label">
<?php echo esc_html__('Shipping', 'elessi-theme'); ?>
</span>
<span class="shipping-content ext-item-content">
<?php foreach ($available_methods as $method) :
if ($chosen_method == '') :
printf('<span data-for="shipping_method_%1$s_%2$s">%3$s</span>', $index, esc_attr(sanitize_title($method->id)), wc_cart_totals_shipping_method_label($method)); // WPCS: XSS ok.
do_action('woocommerce_after_shipping_rate', $method, $index);
break;
else :
if ($method->id !== $chosen_method) :
continue;
endif;
printf('<span data-for="shipping_method_%1$s_%2$s">%3$s</span>', $index, esc_attr(sanitize_title($method->id)), wc_cart_totals_shipping_method_label($method)); // WPCS: XSS ok.
do_action('woocommerce_after_shipping_rate', $method, $index);
break;
endif;
endforeach; ?>
</span>
</div>
<?php
endif;
endforeach;
+38
View File
@@ -0,0 +1,38 @@
<?php
defined('ABSPATH') || exit;
if (wc_tax_enabled() && !WC()->cart->display_prices_including_tax()) :
$taxable_address = WC()->customer->get_taxable_address();
$estimated_text = '';
if (WC()->customer->is_customer_outside_base() && !WC()->customer->has_calculated_shipping()) :
/* translators: %s location. */
$estimated_text = sprintf(' <small>' . esc_html__('(estimated for %s)', 'elessi-theme') . '</small>', WC()->countries->estimated_for_prefix($taxable_address[0]) . WC()->countries->countries[$taxable_address[0]]);
endif;
if ('itemized' === get_option('woocommerce_tax_total_display')) :
foreach (WC()->cart->get_tax_totals() as $code => $tax) : ?>
<div class="tax-cart-wrap ext-item-wrap nasa-flex jbw">
<span class="tax-label ext-item-label">
<?php echo esc_html($tax->label) . $estimated_text; ?>
</span>
<span class="tax-content ext-item-content">
<?php echo wp_kses_post($tax->formatted_amount); ?>
</span>
</div>
<?php endforeach; ?>
<?php else : ?>
<div class="tax-cart-wrap ext-item-wrap nasa-flex jbw">
<span class="tax-label ext-item-label">
<?php echo esc_html(WC()->countries->tax_or_vat()) . $estimated_text; ?>
</span>
<span class="tax-content ext-item-cotnent">
<?php wc_cart_totals_taxes_total_html(); ?>
</span>
</div>
<?php
endif;
endif;
+11
View File
@@ -0,0 +1,11 @@
<?php defined('ABSPATH') || exit; ?>
<div class="total-cart-wrap nasa-flex jbw">
<span class="total-price-label2">
<?php echo esc_html__('Total', 'elessi-theme'); ?>
</span>
<span class="total-price-2">
<?php wc_cart_totals_order_total_html(); ?>
</span>
</div>
+87
View File
@@ -0,0 +1,87 @@
<?php
$max_compare = isset($nasa_opt['max_compare']) ? (int) $nasa_opt['max_compare'] : 4;
$nasa_compare_list = isset($nasa_compare_list) ? $nasa_compare_list : array();
$count_compare = count($nasa_compare_list);
$image_size = apply_filters('single_product_archive_thumbnail_size', 'woocommerce_thumbnail');
?>
<div class="nasa-compare-list">
<div class="row">
<div class="large-12 columns">
<table>
<tr>
<td class="nasa-td-30">
<h5 class="clearfix text-center mobile-text-left rtl-mobile-text-right nasa-compare-label">
<span class="nasa-block mobile-text-center mobile-margin-top-15 mobile-margin-bottom-5 mobile-fs-23">
<?php echo esc_html__('Compare Products', 'elessi-theme'); ?>
</span>
<span class="color-gray hide-for-mobile">
(<?php echo $count_compare . ' ' . ($count_compare == 1 ? esc_html__('Product', 'elessi-theme') : esc_html__('Products', 'elessi-theme')); ?>)
</span>
</h5>
</td>
<td class="nasa-td-40 nasa-td-products-compare">
<div class="row padding-side-15 nasa-flex align-start jc">
<?php
$k = 0;
$class_item = $max_compare == 4 ? 'large-3 small-3 columns' : 'large-4 small-4 columns';
if ($nasa_compare_list) :
foreach ($nasa_compare_list as $product) :
if ($k > $max_compare - 1):
break;
endif;
$productId = $product->get_id();
$nasa_title = $product->get_name();
$nasa_href = $product->get_permalink();
?>
<div class="<?php echo esc_attr($class_item); ?>">
<div class="nasa-compare-wrap-item">
<div class="nasa-compare-item-hover">
<div class="nasa-compare-item-hover-wraper">
<a href="<?php echo esc_url($nasa_href); ?>" title="<?php echo esc_attr($nasa_title); ?>">
<?php echo $product->get_image($image_size, array('alt' => esc_attr($nasa_title))); ?>
<h5 class="margin-top-10"><?php echo esc_html($nasa_title); ?></h5>
</a>
</div>
</div>
<div class="nasa-compare-item">
<a href="javascript:void(0);" class="nasa-remove-compare" data-prod="<?php echo esc_attr($productId); ?>" rel="nofollow"><svg width="19" height="19" viewBox="0 0 32 32" fill="currentColor"><path d="M10.722 9.969l-0.754 0.754 5.278 5.278-5.253 5.253 0.754 0.754 5.253-5.253 5.253 5.253 0.754-0.754-5.253-5.253 5.278-5.278-0.754-0.754-5.278 5.278z"/></svg></a>
<a href="<?php echo esc_url($nasa_href); ?>" class="nasa-img-compare" title="<?php echo esc_attr($nasa_title); ?>">
<?php echo $product->get_image('thumbnail', array('alt' => esc_attr($nasa_title))); ?>
</a>
</div>
</div>
</div>
<?php
$k++;
endforeach; ?>
<?php endif; ?>
<?php if ($k < $max_compare) :
$nasa_src_no_image = wc_placeholder_img_src();
for ($i=$k; $i<$max_compare; $i++): ?>
<div class="<?php echo esc_attr($class_item); ?>">
<div class="nasa-compare-wrap-item">
<div class="nasa-compare-item">
<span class="nasa-no-image">
<img src="<?php echo esc_url($nasa_src_no_image); ?>" width="65" height="65" alt="<?php echo esc_attr__("Compare Product", 'elessi-theme'); ?>" />
</span>
</div>
</div>
</div>
<?php endfor; ?>
<?php endif; ?>
</div>
</td>
<td class="nasa-td-30">
<div class="ns-compare-btns nasa-compare-label<?php echo !$count_compare ? ' hidden-tag' : ''; ?>">
<a class="nasa-compare-clear-all nasa-hover-underline color-gray" href="javascript:void(0);" title="<?php echo esc_attr__('Clear All', 'elessi-theme'); ?>" rel="nofollow"><?php echo esc_html__('Clear All', 'elessi-theme'); ?></a>
<a class="nasa-compare-view btn button" href="<?php echo esc_url($view_href); ?>" title="<?php echo esc_attr__("Let's Compare!", 'elessi-theme'); ?>"><?php echo esc_html__("Let's Compare!", 'elessi-theme'); ?></a>
</div>
</td>
</tr>
</table>
</div>
</div>
<a class="nasa-close-mini-compare nasa-stclose" href="javascript:void(0)" rel="nofollow"></a>
</div>
+5
View File
@@ -0,0 +1,5 @@
<script type="text/template" id="tmpl-nasa-mobile-account">
<div class="content-account">
<?php echo elessi_tiny_account(true); ?>
</div>
</script>
+113
View File
@@ -0,0 +1,113 @@
<?php
$close = NASA_WOO_ACTIVED ? is_product() || is_checkout() : false;
$is_close = apply_filters('nasa_close_mobile_bottom_bar', $close);
if (!$is_close) :
$is_store = false;
if (NASA_WOO_ACTIVED) :
$is_product_taxonomy = is_product_taxonomy();
$is_shop = is_shop();
$is_store = $is_product_taxonomy || $is_shop ? true : false;
endif;
$shop_link = !$is_store && NASA_WOO_ACTIVED ? wc_get_page_permalink('shop') : home_url('/');
$class_shop = 'nasa-bot-icons';
$class_shop .= !$is_store ? ' nasa-bot-icon-shop' : ' nasa-bot-icon-home';
$svg_shop =
'<svg class="nasa-svg-shop" height="23" width="22" viewBox="0 0 32 32" fill="currentColor">
<g transform="matrix(0.048565, 0, 0, 0.048565, 24.580261, 2.974931)">
<g transform="matrix(1, 0, 0, 1, -518.638794, 10.322351)">
<path d="M 325.775 138.986 L 325.775 3.106 L 226.224 3.106 L 206.439 139.36 C 206.645 170.27 234.133 190.889 268.991 190.889 C 303.978 190.889 325.803 170.085 325.803 139.017 C 325.803 139.007 325.803 138.997 325.803 138.986 L 325.775 138.986 Z M 184.112 137.888 L 203.681 3.106 L 97.891 3.106 L 58.284 139.43 C 58.584 170.266 86.435 190.733 121.233 190.733 C 156.222 190.733 184.07 170.085 184.07 139.017 C 184.07 138.63 184.088 138.254 184.128 137.89 L 184.112 137.888 Z M 594.367 -19.814 C 599.223 -19.831 603.454 -16.894 604.618 -12.712 L 646.637 136.813 C 646.84 137.534 646.943 138.276 646.947 139.019 C 646.947 180.185 613.869 209.926 567.511 209.926 C 531.02 209.926 499.688 193.287 489.208 175.252 C 478.646 193.118 453.202 209.443 416.701 209.443 C 380.201 209.443 352.393 193.307 341.803 175.252 C 331.352 193.145 304.741 212.29 268.25 212.29 C 231.749 212.29 205.105 193.207 194.551 175.252 C 184.058 193.315 157.589 211.144 121.098 211.144 C 74.74 211.144 36.736 180.185 36.736 139.019 C 36.741 138.277 36.843 137.534 37.048 136.813 L 79.14 -12.712 C 80.303 -16.894 84.542 -19.831 89.392 -19.814 L 594.367 -19.814 Z M 348.045 139.207 C 348.045 170.275 381.317 188.935 416.303 188.935 C 450.995 188.935 476.125 170.509 476.599 139.807 L 456.751 3.106 L 348.015 3.295 L 348.015 138.403 C 348.035 138.666 348.045 138.933 348.045 139.207 Z M 499.694 139.017 C 499.694 170.085 533.968 189.636 568.956 189.636 C 603.758 189.636 624.426 170.27 624.721 139.43 L 585.114 3.106 C 587.139 0.878 481.773 1.17 480.014 3.106 L 499.402 136.59 C 499.593 137.337 499.694 138.147 499.694 139.017 Z" style="stroke-width: 0px;"/>
<path d="M 84.471 189.481 L 84.471 477.433 C 84.471 477.433 84.553 498.229 93.5 514.914 C 102.449 531.6 120.513 544.603 156.583 544.603 L 527.101 544.603 C 527.101 544.603 555.31 542.288 573.205 533.941 C 591.1 525.599 599.213 510.85 599.213 477.431 L 599.213 189.48 L 577.499 189.098 L 577.499 477.049 C 577.499 501.307 570.068 508.99 557.08 515.043 C 544.094 521.099 527.101 521.66 527.101 521.66 L 156.583 521.66 C 130.839 521.66 118.528 516.699 112.038 504.589 C 105.541 492.481 105.426 477.431 105.426 477.431 L 105.426 189.48 L 84.471 189.481 Z" style="stroke-width: 0px;"/>
<path d="M 305.173 310.741 C 271.149 310.741 253.821 328.39 245.355 345.327 C 236.885 362.259 237.011 378.904 237.011 378.904 L 237.011 525.004 L 260 525.004 L 260 378.904 C 260 378.904 260.061 367.149 266.204 354.864 C 272.349 342.576 280.805 333.685 305.338 333.685 L 383.276 333.685 C 383.276 333.685 392.741 333.794 405.026 339.942 C 417.314 346.087 428.659 354.397 428.659 378.907 L 428.663 525.007 L 451.275 525.007 L 451.275 378.907 C 451.275 345.025 433.626 327.554 416.689 319.089 C 399.757 310.619 383.112 310.745 383.112 310.745 L 305.173 310.741 Z" style="stroke-width: 0px;"/>
</g>
</g>
</svg>';
$svg_home = '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M16 2.672l-5.331 5.331v-2.133h-4.265v6.398l-3.755 3.755 0.754 0.754 12.597-12.597 12.597 12.597 0.754-0.754-13.351-13.351zM7.47 6.937h2.132v2.132l-2.133 2.133v-4.265z"/><path d="M6.404 16.533v12.795h7.464v-7.464h4.265v7.464h7.464v-12.795l-9.596-9.596-9.596 9.596zM24.53 28.262h-5.331v-7.464h-6.398v7.464h-5.331v-11.287l8.53-8.53 8.53 8.53v11.287z"/></svg>';
$icon_home = apply_filters('nasa_bot_icon_home', (!$is_store ? $svg_shop : $svg_home));
$icon_filter = apply_filters('nasa_bot_icon_filter', '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M19.199 28.262h-6.403v-10.398l-10.661-14.126h27.731l-10.667 14.126v10.398zM13.862 27.196h4.271v-9.688l9.592-12.703h-23.449l9.586 12.703v9.688z"/></svg>');
$icon_cats = apply_filters('nasa_bot_icon_filter_cats', '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M6.937 21.865c-1.766 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM6.937 27.195c-1.176 0-2.132-0.956-2.132-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/><path d="M6.937 3.738c-1.766 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM6.937 9.069c-1.176 0-2.132-0.956-2.132-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/><path d="M6.937 12.779c-1.766 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM6.937 18.11c-1.176 0-2.132-0.957-2.132-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/><path d="M16 21.865c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM16 27.195c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/><path d="M16 3.738c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM16 9.069c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/><path d="M16 12.779c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM16 18.11c-1.176 0-2.133-0.957-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/><path d="M25.063 21.865c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM25.063 27.195c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/><path d="M25.063 10.135c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199zM25.063 4.805c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132z"/><path d="M25.063 12.779c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM25.063 18.11c-1.176 0-2.133-0.957-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z"/></svg>');
$login_ajax = !NASA_CORE_USER_LOGGED && (!isset($nasa_opt['login_ajax']) || $nasa_opt['login_ajax'] == 1) ? '1' : '0';
$links_acc = elessi_link_account();
$icon_acc = apply_filters('nasa_bot_icon_account', '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M16 3.205c-7.067 0-12.795 5.728-12.795 12.795s5.728 12.795 12.795 12.795 12.795-5.728 12.795-12.795c0-7.067-5.728-12.795-12.795-12.795zM16 4.271c6.467 0 11.729 5.261 11.729 11.729 0 2.845-1.019 5.457-2.711 7.49-1.169-0.488-3.93-1.446-5.638-1.951-0.146-0.046-0.169-0.053-0.169-0.66 0-0.501 0.206-1.005 0.407-1.432 0.218-0.464 0.476-1.244 0.569-1.944 0.259-0.301 0.612-0.895 0.839-2.026 0.199-0.997 0.106-1.36-0.026-1.7-0.014-0.036-0.028-0.071-0.039-0.107-0.050-0.234 0.019-1.448 0.189-2.391 0.118-0.647-0.030-2.022-0.921-3.159-0.562-0.719-1.638-1.601-3.603-1.724l-1.078 0.001c-1.932 0.122-3.008 1.004-3.57 1.723-0.89 1.137-1.038 2.513-0.92 3.159 0.172 0.943 0.239 2.157 0.191 2.387-0.010 0.040-0.025 0.075-0.040 0.111-0.131 0.341-0.225 0.703-0.025 1.7 0.226 1.131 0.579 1.725 0.839 2.026 0.092 0.7 0.35 1.48 0.569 1.944 0.159 0.339 0.234 0.801 0.234 1.454 0 0.607-0.023 0.614-0.159 0.657-1.767 0.522-4.579 1.538-5.628 1.997-1.725-2.042-2.768-4.679-2.768-7.555 0-6.467 5.261-11.729 11.729-11.729zM7.811 24.386c1.201-0.49 3.594-1.344 5.167-1.808 0.914-0.288 0.914-1.058 0.914-1.677 0-0.513-0.035-1.269-0.335-1.908-0.206-0.438-0.442-1.189-0.494-1.776-0.011-0.137-0.076-0.265-0.18-0.355-0.151-0.132-0.458-0.616-0.654-1.593-0.155-0.773-0.089-0.942-0.026-1.106 0.027-0.070 0.053-0.139 0.074-0.216 0.128-0.468-0.015-2.005-0.17-2.858-0.068-0.371 0.018-1.424 0.711-2.311 0.622-0.795 1.563-1.238 2.764-1.315l1.011-0.001c1.233 0.078 2.174 0.521 2.797 1.316 0.694 0.887 0.778 1.94 0.71 2.312-0.154 0.852-0.298 2.39-0.17 2.857 0.022 0.078 0.047 0.147 0.074 0.217 0.064 0.163 0.129 0.333-0.025 1.106-0.196 0.977-0.504 1.461-0.655 1.593-0.103 0.091-0.168 0.218-0.18 0.355-0.051 0.588-0.286 1.338-0.492 1.776-0.236 0.502-0.508 1.171-0.508 1.886 0 0.619 0 1.389 0.924 1.68 1.505 0.445 3.91 1.271 5.18 1.77-2.121 2.1-5.035 3.4-8.248 3.4-3.183 0-6.073-1.277-8.188-3.342z"/></svg>');
?>
<ul class="nasa-bottom-bar-icons">
<li class="nasa-bot-item ns-bot-store">
<a class="<?php echo esc_attr($class_shop); ?>" href="<?php echo esc_url($shop_link); ?>" title="<?php echo !$is_store ? esc_attr__('Shop', 'elessi-theme') : esc_attr__('Home', 'elessi-theme'); ?>">
<?php echo $icon_home; ?>
<?php echo !$is_store ? esc_html__('Shop', 'elessi-theme') : esc_html__('Home', 'elessi-theme'); ?>
</a>
</li>
<li class="nasa-bot-item nasa-bot-item-sidebar hidden-tag">
<a class="nasa-bot-icons nasa-bot-icon-sidebar" href="javascript:void(0);" title="<?php echo esc_attr__('Filters', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_filter; ?>
<?php echo esc_html__('Filters', 'elessi-theme'); ?>
</a>
</li>
<?php if (NASA_WOO_ACTIVED) : ?>
<li class="nasa-bot-item ns-bot-cats">
<a class="nasa-bot-icons nasa-bot-icon-categories filter-cat-icon-mobile" href="javascript:void(0);" title="<?php echo esc_attr__('Categories', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_cats; ?>
<?php echo esc_html__('Categories', 'elessi-theme'); ?>
</a>
</li>
<?php endif; ?>
<li class="nasa-bot-item nasa-bot-item-acc">
<a class="nasa-bot-icons nasa-bot-icon-acc botbar-mobile-acc nasa-login-register-ajax" data-enable="<?php echo $login_ajax; ?>" href="<?php echo esc_url($links_acc); ?>" title="<?php echo esc_attr__('Account', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_acc; ?>
<?php echo esc_html__('Account', 'elessi-theme'); ?>
</a>
</li>
<?php
/**
* Wishlist bottom bar
*/
$wishlist_icons = elessi_icon_wishlist();
if ($wishlist_icons) :
$icon_botwishlist = apply_filters('nasa_bot_icon_wishlist', '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M21.886 5.115c3.521 0 6.376 2.855 6.376 6.376 0 1.809-0.754 3.439-1.964 4.6l-10.297 10.349-10.484-10.536c-1.1-1.146-1.778-2.699-1.778-4.413 0-3.522 2.855-6.376 6.376-6.376 2.652 0 4.925 1.62 5.886 3.924 0.961-2.304 3.234-3.924 5.886-3.924zM21.886 4.049c-2.345 0-4.499 1.089-5.886 2.884-1.386-1.795-3.54-2.884-5.886-2.884-4.104 0-7.442 3.339-7.442 7.442 0 1.928 0.737 3.758 2.075 5.152l11.253 11.309 11.053-11.108c1.46-1.402 2.275-3.308 2.275-5.352 0-4.104-3.339-7.442-7.442-7.442v0z"/></svg>');
?>
<li class="nasa-bot-item item-other ns-bot-wl hidden-tag">
<a class="nasa-bot-icons nasa-bot-icon-wishlist botbar-wishlist-link" href="javascript:void(0);" title="<?php echo esc_attr__('Wishlist', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_botwishlist; ?>
<?php echo esc_html__('Wishlist', 'elessi-theme'); ?>
</a>
<?php echo $wishlist_icons; ?>
</li>
<?php else:
/**
* Cart bottom bar If Has Not Wishlist Featured
*/
$is_cart = !NASA_WOO_ACTIVED || (isset($nasa_opt['disable-cart']) && $nasa_opt['disable-cart']) ? false : true;
if ($is_cart) :
$icon_cart = elessi_mini_cart_icon();
?>
<li class="nasa-bot-item item-other ns-bot-cart hidden-tag">
<a class="nasa-bot-icons nasa-bot-icon-cart botbar-cart-link" href="javascript:void(0);" title="<?php echo esc_attr__('Cart', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_cart; ?>
<?php echo esc_html__('Cart', 'elessi-theme'); ?>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php
endif;
+113
View File
@@ -0,0 +1,113 @@
<?php
$close = NASA_WOO_ACTIVED ? is_product() || is_checkout() : false;
$is_close = apply_filters('nasa_close_mobile_bottom_bar', $close);
if (!$is_close) :
$is_store = false;
if (NASA_WOO_ACTIVED) :
$is_product_taxonomy = is_product_taxonomy();
$is_shop = is_shop();
$is_store = $is_product_taxonomy || $is_shop ? true : false;
endif;
$shop_link = !$is_store && NASA_WOO_ACTIVED ? wc_get_page_permalink('shop') : home_url('/');
$class_shop = 'nasa-bot-icons';
$class_shop .= !$is_store ? ' nasa-bot-icon-shop' : ' nasa-bot-icon-home';
$svg_shop =
'<svg class="nasa-svg-shop" height="23" width="22" viewBox="0 0 32 32" fill="currentColor">
<g transform="matrix(0.048565, 0, 0, 0.048565, 24.580261, 2.974931)">
<g transform="matrix(1, 0, 0, 1, -518.638794, 10.322351)">
<path d="M 325.775 138.986 L 325.775 3.106 L 226.224 3.106 L 206.439 139.36 C 206.645 170.27 234.133 190.889 268.991 190.889 C 303.978 190.889 325.803 170.085 325.803 139.017 C 325.803 139.007 325.803 138.997 325.803 138.986 L 325.775 138.986 Z M 184.112 137.888 L 203.681 3.106 L 97.891 3.106 L 58.284 139.43 C 58.584 170.266 86.435 190.733 121.233 190.733 C 156.222 190.733 184.07 170.085 184.07 139.017 C 184.07 138.63 184.088 138.254 184.128 137.89 L 184.112 137.888 Z M 594.367 -19.814 C 599.223 -19.831 603.454 -16.894 604.618 -12.712 L 646.637 136.813 C 646.84 137.534 646.943 138.276 646.947 139.019 C 646.947 180.185 613.869 209.926 567.511 209.926 C 531.02 209.926 499.688 193.287 489.208 175.252 C 478.646 193.118 453.202 209.443 416.701 209.443 C 380.201 209.443 352.393 193.307 341.803 175.252 C 331.352 193.145 304.741 212.29 268.25 212.29 C 231.749 212.29 205.105 193.207 194.551 175.252 C 184.058 193.315 157.589 211.144 121.098 211.144 C 74.74 211.144 36.736 180.185 36.736 139.019 C 36.741 138.277 36.843 137.534 37.048 136.813 L 79.14 -12.712 C 80.303 -16.894 84.542 -19.831 89.392 -19.814 L 594.367 -19.814 Z M 348.045 139.207 C 348.045 170.275 381.317 188.935 416.303 188.935 C 450.995 188.935 476.125 170.509 476.599 139.807 L 456.751 3.106 L 348.015 3.295 L 348.015 138.403 C 348.035 138.666 348.045 138.933 348.045 139.207 Z M 499.694 139.017 C 499.694 170.085 533.968 189.636 568.956 189.636 C 603.758 189.636 624.426 170.27 624.721 139.43 L 585.114 3.106 C 587.139 0.878 481.773 1.17 480.014 3.106 L 499.402 136.59 C 499.593 137.337 499.694 138.147 499.694 139.017 Z" style="stroke-width: 0px;" />
<path d="M 84.471 189.481 L 84.471 477.433 C 84.471 477.433 84.553 498.229 93.5 514.914 C 102.449 531.6 120.513 544.603 156.583 544.603 L 527.101 544.603 C 527.101 544.603 555.31 542.288 573.205 533.941 C 591.1 525.599 599.213 510.85 599.213 477.431 L 599.213 189.48 L 577.499 189.098 L 577.499 477.049 C 577.499 501.307 570.068 508.99 557.08 515.043 C 544.094 521.099 527.101 521.66 527.101 521.66 L 156.583 521.66 C 130.839 521.66 118.528 516.699 112.038 504.589 C 105.541 492.481 105.426 477.431 105.426 477.431 L 105.426 189.48 L 84.471 189.481 Z" style="stroke-width: 0px;" />
<path d="M 305.173 310.741 C 271.149 310.741 253.821 328.39 245.355 345.327 C 236.885 362.259 237.011 378.904 237.011 378.904 L 237.011 525.004 L 260 525.004 L 260 378.904 C 260 378.904 260.061 367.149 266.204 354.864 C 272.349 342.576 280.805 333.685 305.338 333.685 L 383.276 333.685 C 383.276 333.685 392.741 333.794 405.026 339.942 C 417.314 346.087 428.659 354.397 428.659 378.907 L 428.663 525.007 L 451.275 525.007 L 451.275 378.907 C 451.275 345.025 433.626 327.554 416.689 319.089 C 399.757 310.619 383.112 310.745 383.112 310.745 L 305.173 310.741 Z" style="stroke-width: 0px;" />
</g>
</g>
</svg>';
$svg_home = '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M16 2.672l-5.331 5.331v-2.133h-4.265v6.398l-3.755 3.755 0.754 0.754 12.597-12.597 12.597 12.597 0.754-0.754-13.351-13.351zM7.47 6.937h2.132v2.132l-2.133 2.133v-4.265z" /><path d="M6.404 16.533v12.795h7.464v-7.464h4.265v7.464h7.464v-12.795l-9.596-9.596-9.596 9.596zM24.53 28.262h-5.331v-7.464h-6.398v7.464h-5.331v-11.287l8.53-8.53 8.53 8.53v11.287z" /></svg>';
$icon_home = apply_filters('nasa_bot_icon_home', (!$is_store ? $svg_shop : $svg_home));
$icon_filter = apply_filters('nasa_bot_icon_filter', '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M19.199 28.262h-6.403v-10.398l-10.661-14.126h27.731l-10.667 14.126v10.398zM13.862 27.196h4.271v-9.688l9.592-12.703h-23.449l9.586 12.703v9.688z"/></svg>');
$icon_cats = apply_filters('nasa_bot_icon_filter_cats', '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor">
<path d="M6.937 21.865c-1.766 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM6.937 27.195c-1.176 0-2.132-0.956-2.132-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" /><path d="M6.937 3.738c-1.766 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM6.937 9.069c-1.176 0-2.132-0.956-2.132-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" /><path d="M6.937 12.779c-1.766 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM6.937 18.11c-1.176 0-2.132-0.957-2.132-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" /><path d="M16 21.865c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM16 27.195c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" /><path d="M16 3.738c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM16 9.069c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" /><path d="M16 12.779c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM16 18.11c-1.176 0-2.133-0.957-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" />
<path d="M25.063 21.865c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM25.063 27.195c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" /><path d="M25.063 10.135c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199zM25.063 4.805c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133c-1.176 0-2.133-0.956-2.133-2.133s0.956-2.132 2.133-2.132z" /><path d="M25.063 12.779c-1.767 0-3.199 1.432-3.199 3.198s1.432 3.199 3.199 3.199c1.766 0 3.199-1.432 3.199-3.199s-1.433-3.198-3.199-3.198zM25.063 18.11c-1.176 0-2.133-0.957-2.133-2.133s0.956-2.132 2.133-2.132c1.176 0 2.133 0.956 2.133 2.132s-0.956 2.133-2.133 2.133z" /></svg>');
$icon_search = apply_filters('nasa_bot_icon_search', '<svg fill="currentColor" viewBox="0 0 80 80" width="23" height="23"><path d="M74.3,72.2L58.7,56.5C69.9,44,69,24.8,56.5,13.5s-31.7-10.3-43,2.2s-10.3,31.7,2.2,43c11.6,10.5,29.3,10.5,40.9,0 l15.7,15.7L74.3,72.2z M36.1,63.5c-15.1,0-27.4-12.3-27.4-27.4C8.7,20.9,21,8.7,36.1,8.7c15.1,0,27.4,12.3,27.4,27.4 C63.5,51.2,51.2,63.5,36.1,63.5z" /><path d="M36.1,12.8v3c11.2,0,20.3,9.1,20.3,20.3h3C59.4,23.2,49,12.8,36.1,12.8z" /></svg>');
?>
<ul class="nasa-bottom-bar-icons nasa-transition">
<li class="nasa-bot-item ns-bot-store">
<a class="<?php echo esc_attr($class_shop); ?>" href="<?php echo esc_url($shop_link); ?>" title="<?php echo !$is_store ? esc_attr__('Shop', 'elessi-theme') : esc_attr__('Home', 'elessi-theme'); ?>">
<?php echo $icon_home; ?>
<?php echo !$is_store ? esc_html__('Shop', 'elessi-theme') : esc_html__('Home', 'elessi-theme'); ?>
</a>
</li>
<li class="nasa-bot-item nasa-bot-item-sidebar hidden-tag">
<a class="nasa-bot-icons nasa-bot-icon-sidebar" href="javascript:void(0);" title="<?php echo esc_attr__('Filters', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_filter; ?>
<?php echo esc_html__('Filters', 'elessi-theme'); ?>
</a>
</li>
<?php if (NASA_WOO_ACTIVED) : ?>
<li class="nasa-bot-item ns-bot-cats">
<a class="nasa-bot-icons nasa-bot-icon-categories filter-cat-icon-mobile" href="javascript:void(0);" title="<?php echo esc_attr__('Categories', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_cats; ?>
<?php echo esc_html__('Categories', 'elessi-theme'); ?>
</a>
</li>
<?php endif; ?>
<li class="nasa-bot-item nasa-bot-item-search hidden-tag">
<a class="nasa-bot-icons nasa-bot-icon-search botbar-mobile-search" href="javascript:void(0);" title="<?php echo esc_attr__('Search', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_search; ?>
<?php echo esc_html__('Search', 'elessi-theme'); ?>
</a>
</li>
<?php
/**
* Wishlist bottom bar
*/
$wishlist_icons = elessi_icon_wishlist();
if ($wishlist_icons) :
$icon_botwishlist = apply_filters('nasa_bot_icon_wishlist', '<svg width="23" height="23" viewBox="0 0 32 32" fill="currentColor"><path d="M21.886 5.115c3.521 0 6.376 2.855 6.376 6.376 0 1.809-0.754 3.439-1.964 4.6l-10.297 10.349-10.484-10.536c-1.1-1.146-1.778-2.699-1.778-4.413 0-3.522 2.855-6.376 6.376-6.376 2.652 0 4.925 1.62 5.886 3.924 0.961-2.304 3.234-3.924 5.886-3.924zM21.886 4.049c-2.345 0-4.499 1.089-5.886 2.884-1.386-1.795-3.54-2.884-5.886-2.884-4.104 0-7.442 3.339-7.442 7.442 0 1.928 0.737 3.758 2.075 5.152l11.253 11.309 11.053-11.108c1.46-1.402 2.275-3.308 2.275-5.352 0-4.104-3.339-7.442-7.442-7.442v0z"/></svg>');
?>
<li class="nasa-bot-item ns-bot-wl">
<a class="nasa-bot-icons nasa-bot-icon-wishlist botbar-wishlist-link" href="javascript:void(0);" title="<?php echo esc_attr__('Wishlist', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_botwishlist; ?>
<?php echo esc_html__('Wishlist', 'elessi-theme'); ?>
</a>
<?php echo $wishlist_icons; ?>
</li>
<?php else:
/**
* Cart bottom bar If Has Not Wishlist Featured
*/
$is_cart = !NASA_WOO_ACTIVED || (isset($nasa_opt['disable-cart']) && $nasa_opt['disable-cart']) ? false : true;
if ($is_cart) :
$icon_cart = elessi_mini_cart_icon();
?>
<li class="nasa-bot-item ns-bot-cart nasa-icon-mini-cart">
<a class="nasa-bot-icons nasa-bot-icon-cart botbar-cart-link" href="javascript:void(0);" title="<?php echo esc_attr__('Cart', 'elessi-theme'); ?>" rel="nofollow">
<?php echo $icon_cart; ?>
<?php echo esc_html__('Cart', 'elessi-theme'); ?>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php
endif;
+29
View File
@@ -0,0 +1,29 @@
<?php
/*
* Product group button
*/
/**
* Before tag wrap
*/
do_action('nasa_before_show_buttons_loop');
/**
* Open tag wrap
*/
echo '<div class="nasa-product-grid nasa-group-btns nasa-btns-product-item">';
/**
* Content tag wrap
*/
do_action('nasa_show_buttons_loop');
/**
* Close tag wrap
*/
echo '</div>';
/**
* After tag wrap
*/
do_action('nasa_after_show_buttons_loop'); // after loop btn
+77
View File
@@ -0,0 +1,77 @@
<?php
$pp_style = isset($nasa_opt['pp_style']) && $nasa_opt['pp_style'] == 'full' ? 'full' : 'simple';
$class_content = 'columns small-12 nasa-pp-right';
$class_content .= $pp_style == 'full' ? ' large-12' : ' medium-6 large-6 right';
// Disable popup on mobile
$disableMobile = (isset($nasa_opt['disable_popup_mobile']) && (int) $nasa_opt['disable_popup_mobile']) ? true : false;
$one_time = isset($nasa_opt['promo_popup_1_time']) && $nasa_opt['promo_popup_1_time'] ? '1' : '0';
$delay = (!isset($nasa_opt['delay_promo_popup']) || (int) $nasa_opt['delay_promo_popup'] <= 0) ? 0 : (int) $nasa_opt['delay_promo_popup'];
$attrwrap = array(
'class="nasa-promo-popup-wrap nasa-transition-400"',
'data-delay="' . $delay . '"',
'data-disable_mobile="' . $disableMobile . '"',
'data-one_time="' . $one_time . '"'
);
if (!isset($nasa_opt['pp_background_image'])) :
$nasa_opt['pp_background_image'] = ELESSI_THEME_URI . '/assets/images/newsletter_bg.jpg';
endif;
$pp_background_image = $nasa_opt['pp_background_image'] ? str_replace(
array(
'[site_url]',
'[site_url_secure]',
), array(
site_url('', 'http'),
site_url('', 'https'),
), $nasa_opt['pp_background_image']
) : false;
if ($pp_background_image) :
$attrwrap[] = 'style="background-image: url(' . esc_url($nasa_opt['pp_background_image']) .');"';
endif;
?>
<div id="nasa-popup" <?php echo implode(' ', $attrwrap); ?>>
<div class="row">
<a class="nasa-popup-close nasa-stclose" href="javascript:void(0);" title="<?php echo esc_attr__('Close (Esc)', 'elessi-theme'); ?>" rel="nofollow"></a>
<?php if ($pp_style == 'simple'): ?>
<div class="columns large-6 medium-6 small-12 nasa-pp-left"></div>
<?php endif; ?>
<div class="<?php echo esc_attr($class_content); ?>">
<div class="nasa-popup-wrap nasa-relative flex-column nasa-flex jbw ">
<div class="nasa-popup-wrap-content">
<?php
/**
* Content description
*/
echo isset($nasa_opt['pp_content']) ? do_shortcode($nasa_opt['pp_content']) : '';
/**
* Content contact form 7
*/
echo isset($nasa_opt['pp_contact_form']) ? elessi_get_newsletter_form((int) $nasa_opt['pp_contact_form']) : '';
?>
</div>
<hr class="nasa-popup-hr" />
<p class="checkbox-label nasa-flex jc">
<input type="checkbox" value="do-not-show" name="showagain" id="showagain" class="showagain" />
<label for="showagain">
<?php esc_html_e("Don't show this popup again", 'elessi-theme'); ?>
</label>
</p>
</div>
</div>
</div>
</div>
+60
View File
@@ -0,0 +1,60 @@
<?php
defined('ABSPATH') || exit;
$current_user = get_current_user_id();
$ip = $_SERVER['REMOTE_ADDR'];
$nasa_review_votes = get_comment_meta($comment->comment_ID, 'nasa_review_votes', true );
$nasa_review_votes = !empty($nasa_review_votes) ?
maybe_unserialize($nasa_review_votes) : array('upvote' => array(), 'downvote' => array());
$like = is_array($nasa_review_votes['upvote']) ? count($nasa_review_votes['upvote']) : 0;
$dislike = is_array($nasa_review_votes['downvote']) ? count($nasa_review_votes['downvote']) : 0;
$is_like = $is_dislike = false;
if (!empty($nasa_review_votes['upvote'])) {
foreach ($nasa_review_votes['upvote'] as $vote) {
if ($current_user <= 0) {
if (isset($vote['ip']) && $vote['ip'] == $ip) {
$is_like = true;
break;
}
} else {
if (isset($vote['id']) && $vote['id'] == $current_user) {
$is_like = true;
break;
}
}
}
}
if (!$is_like && !empty($nasa_review_votes['downvote'])) {
foreach ($nasa_review_votes['downvote'] as $vote) {
if ($current_user <= 0) {
if (isset($vote['ip']) && $vote['ip'] == $ip) {
$is_dislike = true;
break;
}
} else {
if (isset($vote['id']) && $vote['id'] == $current_user) {
$is_dislike = true;
break;
}
}
}
}
?>
<div class="nasa-wrap-review-helpful nasa-flex je" data-id-comment="<?php echo esc_attr($comment->comment_ID); ?>">
<?php echo esc_html__('Helpful?', 'elessi-theme'); ?>
<span class="nasa-flex">
<span data-vote="like" class="ns-vote ns-like nasa-flex jc <?php echo $is_like ? 'ns-active' : '';?>">
<svg viewBox="0 0 512 512" fill="currentColor"><path d="M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16l-97.5 0c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8l97.5 0c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32L0 448c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32l-64 0z"/></svg>
</span>
<span class="ns-like-count"><?php echo $like; ?></span>
</span>
<span class="nasa-flex">
<span data-vote="dislike" class="ns-vote ns-dislike nasa-flex jc <?php echo $is_dislike ? 'ns-active' : ''; ?>">
<svg viewBox="0 0 512 512" fill="currentColor"><path d="M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13L448 288c8.8 0 16-7.2 16-16c0-6.8-4.3-12.7-10.4-15c-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6c0-7.8-5.6-14.3-13-15.7c-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9c0-6.7-4.2-12.6-10.2-14.9c-11.5-4.5-17.7-16.9-14.4-28.8c.4-1.3 .6-2.8 .6-4.3c0-8.8-7.2-16-16-16l-97.5 0c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8L384 32c34.7 0 62.9 27.6 64 62c14.6 11.7 24 29.7 24 50c0 4.5-.5 8.8-1.3 13c15.4 11.7 25.3 30.2 25.3 51c0 6.5-1 12.8-2.8 18.7C504.8 238.3 512 254.3 512 272c0 35.3-28.6 64-64 64l-92.3 0c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89zM32 384c-17.7 0-32-14.3-32-32L0 128c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0z"/></svg>
</span>
<span class="ns-dislike-count"><?php echo $dislike; ?></span>
</span>
</div>
+93
View File
@@ -0,0 +1,93 @@
<?php
defined('ABSPATH') || exit;
$svg_zoom = '<svg fill="currentColor" width="18" height="18" viewBox="0 0 32 32">
<path d="M11.202 4.271v-1.066h-7.997v7.997h1.066v-6.177l7.588 7.588 0.754-0.754-7.588-7.588z"/>
<path d="M20.798 3.205v1.066h6.177l-7.588 7.588 0.754 0.754 7.588-7.588v6.177h1.066v-7.997z"/>
<path d="M11.859 19.387l-7.588 7.588v-6.177h-1.066v7.997h7.997v-1.066h-6.177l7.588-7.588z"/>
<path d="M27.729 26.975l-7.588-7.588-0.754 0.754 7.588 7.588h-6.177v1.066h7.997v-7.997h-1.066z"/>
</svg>';
$svg_img = '<svg width="15" height="15" viewBox="0 0 24 24" fill="none">
<path d="M4.02693 18.329C4.18385 19.277 5.0075 20 6 20H18C19.1046 20 20 19.1046 20 18V14.1901M4.02693 18.329C4.00922 18.222 4 18.1121 4 18V6C4 4.89543 4.89543 4 6 4H18C19.1046 4 20 4.89543 20 6V14.1901M4.02693 18.329L7.84762 14.5083C8.52765 13.9133 9.52219 13.8482 10.274 14.3494L10.7832 14.6888C11.5078 15.1719 12.4619 15.1305 13.142 14.5865L15.7901 12.4679C16.4651 11.9279 17.4053 11.8856 18.1228 12.3484C18.2023 12.3997 18.2731 12.4632 18.34 12.5302L20 14.1901M11 9C11 10.1046 10.1046 11 9 11C7.89543 11 7 10.1046 7 9C7 7.89543 7.89543 7 9 7C10.1046 7 11 7.89543 11 9Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>';
$svg_play = '<svg fill="currentColor" width="25" height="25" viewBox="-2.4 -2.4 64.80 64.80" stroke="currentColor" stroke-width="3">
<path d="M45.563,29.174l-22-15c-0.307-0.208-0.703-0.231-1.031-0.058C22.205,14.289,22,14.629,22,15v30 c0,0.371,0.205,0.711,0.533,0.884C22.679,45.962,22.84,46,23,46c0.197,0,0.394-0.059,0.563-0.174l22-15 C45.836,30.64,46,30.331,46,30S45.836,29.36,45.563,29.174z M24,43.107V16.893L43.225,30L24,43.107z"></path><path d="M30,0C13.458,0,0,13.458,0,30s13.458,30,30,30s30-13.458,30-30S46.542,0,30,0z M30,58C14.561,58,2,45.439,2,30 S14.561,2,30,2s28,12.561,28,28S45.439,58,30,58z"></path>
</svg>';
$svg_plus = '<svg width="8" height="8" stroke-width="2" viewBox="5 5 15 15" fill="currentColor">
<path d="M12 6V18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M6 12H18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>';
$reviews_layout = isset($nasa_opt['single_review_layout']) && $nasa_opt['single_review_layout'] != '' ? $nasa_opt['single_review_layout'] : 'list';
$reviews_layout = isset($_GET['reviews_layout']) && $_GET['reviews_layout'] != '' ? $_GET['reviews_layout'] : $reviews_layout;
$number_img_review = $number_img_review = apply_filters('nasa_number_img_display_review', 3);
$attachment_ids = get_comment_meta($comment->comment_ID, 'nasa_review_images', true);
$urls = [];
if (!empty($attachment_ids)) :
$attachment_ids = array_filter( $attachment_ids, function( $attachment_id ) use ( &$urls ) {
$attachment = get_post( $attachment_id );
if ( $attachment ) {
$urls[] = wp_get_attachment_url( $attachment_id, 'full' );
return true;
}
return false;
});
// $first_attachment_id = reset($attachment_ids);
$first_three_attachments = array_slice($attachment_ids, 0, $number_img_review);
?>
<div class="nasa-wrap-review-thumb nasa-flex"
id="nasa-wrap-review-<?php echo esc_attr($comment->comment_ID); ?>"
data-img-review="<?php echo esc_attr__(json_encode($urls))?>">
<?php
foreach ($first_three_attachments as $key => $id_media) {
$url = wp_get_attachment_url($id_media, 'full');
$type_file = get_post_mime_type($id_media);
$firstmedia_class = $key == 0 ? 'nasa-first-media-review' : '';
$video_play = '';
if($url) {
if (in_array($type_file, array("image/jpg", "image/jpeg", "image/bmp", "image/png", "image/gif", "image/webp"))) {
$media = $firstmedia_class == 'nasa-first-media-review' ? wp_get_attachment_image($id_media, 'full', false, array('class' => 'skip-lazy attachment-full size-full nasa-review-media')) : wp_get_attachment_image($id_media, apply_filters('nasa_reivew_product_thumbnail_size', 'fill'), false, array('class' => 'skip-lazy attachment-thumbnail size-thumbnail nasa-review-media'));
} else {
$media = '<video muted playsinline preload="metadata" class="nasa-review-media" src="' . esc_url($url) . '#t=0.001"><source src="' . esc_url($url) . '" type="'. $type_file .'"></video>';
$video_play = $key <= ( $number_img_review - 1 ) ? '<span class="svg-play">' . $svg_play . '</span>' :'';
$video_play = ($key == ( $number_img_review - 1 ) && count($attachment_ids) > $number_img_review) ? '' : $video_play ;
}
}
?>
<a data-index="<?php echo $key ;?>"
title="<?php echo esc_attr__('Review Product by Images', 'elessi-theme'); ?>"
data-li-id="<?php echo 'li-comment-' . esc_attr( $comment->comment_ID ); ?>"
class="nasa-item-review-thumb crazy-loading <?php echo( $firstmedia_class );?>"
href="<?php echo esc_url( $url ); ?>">
<?php echo apply_filters( 'nasa_reivew_product_thumbnail_html', $media, $id_media ) . $video_play; ?>
<span class="svg-wrap">
<?php echo($svg_zoom);?>
</span>
<?php
if( $key == ($number_img_review -1) && count($attachment_ids) > $number_img_review ) {
echo '<span class="ns-review-img-count">' . $svg_plus . ( count($attachment_ids) - $number_img_review ) . $svg_img . '</span>';
}
if ( $firstmedia_class == 'nasa-first-media-review' ) {
echo '<span class="ns-review-img-count">' . $svg_plus . ( count($attachment_ids) - 1 ) . $svg_img . '</span>';
}
?>
</a>
<?php
}
?>
</div>
<?php
endif;
+73
View File
@@ -0,0 +1,73 @@
<?php
/**
* Sidebar Shop - Side
* Archive Products page
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$sidebar_run = 'shop-sidebar';
if (is_tax('product_cat')) :
global $wp_query;
$query_obj = $wp_query->get_queried_object();
$sidebar_cats = get_option('nasa_sidebars_cats');
if (isset($sidebar_cats[$query_obj->slug])) :
$sidebar_run = $query_obj->slug;
else :
$nasa_root_term_id = elessi_get_root_term_id();
if ($nasa_root_term_id) :
$root_term = get_term_by('term_id', $nasa_root_term_id, 'product_cat');
if ($root_term && isset($sidebar_cats[$root_term->slug])) :
$sidebar_run = $root_term->slug;
endif;
endif;
endif;
endif;
if (is_active_sidebar($sidebar_run)) :
global $nasa_opt;
$archive_sticky_sidebar_classic = isset($nasa_opt['archive_sticky_sidebar_classic']) && $nasa_opt['archive_sticky_sidebar_classic'] ? ' ns-sticky-scroll-sidebar':'';
switch ($nasa_sidebar) :
case 'right' :
$class = 'nasa-side-sidebar nasa-sidebar-right';
break;
case 'left-classic' :
$class = 'large-3 left columns col-sidebar' . $archive_sticky_sidebar_classic;
break;
case 'right-classic' :
$class = 'large-3 right columns col-sidebar' . $archive_sticky_sidebar_classic;
break;
case 'left' :
default:
$class = 'nasa-side-sidebar nasa-sidebar-left';
break;
endswitch;
?>
<div class="<?php echo esc_attr($class); ?>">
<span class="ns-sidebar-heading hidden-tag nasa-bold fs-22">
<?php echo esc_html__('Filters', 'elessi-theme'); ?>
</span>
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar($sidebar_run); ?>
</div>
</div>
<?php
endif;
+68
View File
@@ -0,0 +1,68 @@
<?php
/**
* Sidebar Shop - Top
* Archive Products page
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$type_top = !isset($type) || !$type ? '1' : $type;
$class = 'nasa-relative hidden-tag';
$class .= $type_top == '1' ? ' large-12 columns nasa-top-sidebar' : ' nasa-top-sidebar-' . $type_top;
$attributes = '';
if ($type_top == '2') :
$attributes .= ' data-columns="' . apply_filters('nasa_top_bar_2_cols', '4') . '"';
$attributes .= ' data-columns-small="' . apply_filters('nasa_top_bar_2_cols_small', '2') . '"';
$attributes .= ' data-columns-tablet="' . apply_filters('nasa_top_bar_2_cols_medium', '3') . '"';
$attributes .= ' data-switch-tablet="' . elessi_switch_tablet() . '"';
$attributes .= ' data-switch-desktop="' . elessi_switch_desktop() . '"';
endif;
$sidebar_run = 'shop-sidebar';
if (is_tax('product_cat')) :
global $wp_query;
$query_obj = $wp_query->get_queried_object();
$sidebar_cats = get_option('nasa_sidebars_cats');
if (isset($sidebar_cats[$query_obj->slug])) :
$sidebar_run = $query_obj->slug;
else :
$nasa_root_term_id = elessi_get_root_term_id();
if ($nasa_root_term_id) :
$root_term = get_term_by('term_id', $nasa_root_term_id, 'product_cat');
if ($root_term && isset($sidebar_cats[$root_term->slug])) :
$sidebar_run = $root_term->slug;
endif;
endif;
endif;
endif;
if (is_active_sidebar($sidebar_run)) : ?>
<div class="<?php echo esc_attr($class); ?>"<?php echo $attributes; ?>>
<?php if ($type_top == '1') : ?>
<span class="nasa-close-sidebar-wrap hidden-tag">
<span class="ns-sidebar-heading hidden-tag nasa-bold fs-22">
<svg width="20px" height="20px" viewBox="4 3 16 16" fill="none">
<path d="M18 5H6C5.5286 5 5.29289 5 5.14645 5.14645C5 5.29289 5 5.5286 5 6V7.96482C5 8.2268 5 8.35779 5.05916 8.46834C5.11833 8.57888 5.22732 8.65154 5.4453 8.79687L8.4688 10.8125C9.34073 11.3938 9.7767 11.6845 10.0133 12.1267C10.25 12.5688 10.25 13.0928 10.25 14.1407V19L13.75 17.25V14.1407C13.75 13.0928 13.75 12.5688 13.9867 12.1267C14.2233 11.6845 14.6593 11.3938 15.5312 10.8125L18.5547 8.79687C18.7727 8.65154 18.8817 8.57888 18.9408 8.46834C19 8.35779 19 8.2268 19 7.96482V6C19 5.5286 19 5.29289 18.8536 5.14645C18.7071 5 18.4714 5 18 5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<?php echo esc_html__('Filters', 'elessi-theme'); ?>
</span>
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
</span>
<?php endif; ?>
<?php dynamic_sidebar($sidebar_run); ?>
</div>
<?php
endif;
+19
View File
@@ -0,0 +1,19 @@
<div class="widget_shopping_wishlist_content wishlist_sidebar">
<?php
/**
* Yith WooCommerce Wishlist
*/
if (NASA_WISHLIST_ENABLE) :
echo shortcode_exists('nasa_yith_wcwl_wishlist') ? do_shortcode('[nasa_yith_wcwl_wishlist]') : '<p class="empty">' . esc_html__('Theme has not been installed or enabled Wishlist Feature.', 'elessi-theme') . '</p>';
/**
* Nasa Wishlist Sidebar Content
*/
elseif (function_exists('elessi_woo_wishlist')) :
$nasa_wishlist = elessi_woo_wishlist();
if ($nasa_wishlist) :
$nasa_wishlist->wishlist_html();
endif;
endif;
?>
</div>
+224
View File
@@ -0,0 +1,224 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
global $nasa_opt;
$countItems = count($wishlist_items);
/**
* For Yith WooCommerce Wishlist 2.x or Lower
*/
if (!NASA_WISHLIST_NEW_VER) :
do_action('yith_wcwl_before_wishlist_form', $wishlist_meta); ?>
<form id="yith-wcwl-form" action="<?php echo esc_url(YITH_WCWL()->get_wishlist_url('view' . ($wishlist_meta['is_default'] != 1 ? '/' . $wishlist_meta['wishlist_token'] : ''))); ?>" method="post">
<?php do_action('yith_wcwl_before_wishlist', $wishlist_meta); ?>
<!-- WISHLIST TABLE -->
<table class="shop_table wishlist_table" data-pagination="<?php echo esc_attr($pagination); ?>" data-per-page="<?php echo esc_attr($per_page); ?>" data-page="<?php echo esc_attr($current_page); ?>" data-id="<?php echo $wishlist_id; ?>" data-token="<?php echo $wishlist_token; ?>">
<tbody>
<?php
if ($countItems > 0) :
foreach ($wishlist_items as $item) :
global $product;
$product = wc_get_product($item['prod_id']);
if ($product && $product->exists()) :
$productId = $product->get_id();
$availability = $product->get_availability();
$stock_status = isset($availability['class']) ? $availability['class'] : 'in-stock';
?>
<tr class="nasa-tr-wishlist-item" id="yith-wcwl-row-<?php echo (int) $productId; ?>" data-row-id="<?php echo (int) $productId; ?>">
<td class="product-wishlist-info">
<div class="wishlist-item-warper nasa-relative">
<div class="row wishlist-item">
<div class="image-wishlist large-4 small-4 columns padding-left-0">
<a href="<?php echo esc_url(get_permalink(apply_filters('woocommerce_in_cart_product', $productId))); ?>">
<?php echo ($product->get_image('thumbnail')); ?>
</a>
</div>
<div class="info-wishlist large-8 small-8 columns padding-right-0">
<div class="row">
<div class="large-12 columns nasa-wishlist-title">
<a href="<?php echo esc_url(get_permalink(apply_filters('woocommerce_in_cart_product', $productId))); ?>">
<?php echo apply_filters('woocommerce_in_cartproduct_obj_title', $product->get_name(), $product); ?>
</a>
</div>
<div class="wishlist-price large-12 columns">
<?php if ($show_price) : ?>
<span class="price"><?php echo ($product->get_price_html()); ?></span>
<?php endif; ?>
<?php if ($show_stock_status && !empty($availability['availability'])) :
if ($stock_status == 'out-of-stock') :
echo '<span class="wishlist-out-of-stock"> - ' . $availability['availability'] . '</span>';
else :
echo '<span class="wishlist-in-stock"> &mdash; ' . $availability['availability'] . '</span>';
endif;
endif; ?>
</div>
<?php if (!isset($nasa_opt['disable-cart']) || !$nasa_opt['disable-cart']) : ?>
<div class="add-to-cart-wishlist large-12 columns">
<?php
if ($show_add_to_cart && $stock_status != 'out-of-stock') :
echo elessi_add_to_cart_in_wishlist();
endif;
?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</td>
<?php if ($is_user_owner) : ?>
<td class="product-remove">
<a href="javascript:void(0);" class="remove nasa-remove_from_wishlist nasa-stclose small" title="<?php esc_attr_e('Remove this product', 'elessi-theme'); ?>" data-logined="<?php echo (int) NASA_CORE_USER_LOGGED; ?>" data-prod_id="<?php echo (int) $productId; ?>" rel="nofollow">
<?php esc_html_e('Remove', 'elessi-theme') ?>
</a>
</td>
<?php endif; ?>
</tr>
<?php endif;
endforeach;
else:
$target_shop = apply_filters('nasa_target_return_shop', 'javascript:void(0);');
?>
<tr class="pagination-row">
<td class="wishlist-empty"><p class="empty"><svg class="nasa-icon" width="20" height="20" viewBox="0 0 32 32"><path d="M21.886 5.115c3.521 0 6.376 2.855 6.376 6.376 0 1.809-0.754 3.439-1.964 4.6l-10.297 10.349-10.484-10.536c-1.1-1.146-1.778-2.699-1.778-4.413 0-3.522 2.855-6.376 6.376-6.376 2.652 0 4.925 1.62 5.886 3.924 0.961-2.304 3.234-3.924 5.886-3.924zM21.886 4.049c-2.345 0-4.499 1.089-5.886 2.884-1.386-1.795-3.54-2.884-5.886-2.884-4.104 0-7.442 3.339-7.442 7.442 0 1.928 0.737 3.758 2.075 5.152l11.253 11.309 11.053-11.108c1.46-1.402 2.275-3.308 2.275-5.352 0-4.104-3.339-7.442-7.442-7.442v0z" fill="currentColor" /></svg><?php esc_html_e('No products in the wishlist.', 'elessi-theme'); ?><a href="<?php echo esc_attr($target_shop); ?>" class="button nasa-sidebar-return-shop" rel="nofollow"><?php echo esc_html__('RETURN TO SHOP', 'elessi-theme'); ?></a></p></td>
</tr>
<?php
endif;
if (!empty($page_links)) : ?>
<tr>
<td colspan="6"><?php echo ($page_links); ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php wp_nonce_field('yith_wcwl_edit_wishlist_action', 'yith_wcwl_edit_wishlist'); ?>
<?php if ($wishlist_meta['is_default'] != 1) : ?>
<input type="hidden" value="<?php echo esc_attr($wishlist_meta['wishlist_token']); ?>" name="wishlist_id" id="wishlist_id" />
<?php endif; ?>
<?php do_action('yith_wcwl_after_wishlist', $wishlist_meta); ?>
</form>
<?php do_action('yith_wcwl_after_wishlist_form', $wishlist_meta); ?>
<?php else :
/**
* For Yith WooCommerce Wishlist 3.0 or Higher
*/
?>
<!-- WISHLIST TABLE -->
<table class="shop_table wishlist_table wishlist-fragment" data-pagination="<?php echo esc_attr($pagination); ?>" data-per-page="<?php echo esc_attr($per_page); ?>" data-page="<?php echo esc_attr($current_page); ?>" data-id="<?php echo $wishlist_id; ?>" data-token="<?php echo $wishlist_token; ?>" data-fragment-options="<?php echo esc_attr(json_encode($fragment_options)); ?>">
<tbody>
<?php if ($countItems > 0) :
foreach ($wishlist_items as $item) :
global $product;
$product = $item->get_product();
if ($product && $product->exists()) :
$productId = $product->get_id();
$availability = $product->get_availability();
$stock_status = isset($availability['class']) ? $availability['class'] : 'in-stock';
?>
<tr class="nasa-tr-wishlist-item" id="yith-wcwl-row-<?php echo (int) $productId; ?>" data-row-id="<?php echo (int) $productId; ?>">
<td class="product-wishlist-info">
<div class="wishlist-item-warper nasa-relative">
<div class="row wishlist-item">
<div class="image-wishlist large-4 small-4 columns padding-left-0">
<a href="<?php echo esc_url(get_permalink(apply_filters('woocommerce_in_cart_product', $productId))); ?>">
<?php echo ($product->get_image('thumbnail')); ?>
</a>
</div>
<div class="info-wishlist large-8 small-8 columns padding-right-0">
<div class="row">
<div class="large-12 columns nasa-wishlist-title">
<a href="<?php echo esc_url(get_permalink(apply_filters('woocommerce_in_cart_product', $productId))); ?>">
<?php echo apply_filters('woocommerce_in_cartproduct_obj_title', $product->get_name(), $product); ?>
</a>
</div>
<div class="wishlist-price large-12 columns">
<?php
if ($show_price) :?>
<span class="price"><?php echo ($product->get_price_html()); ?></span>
<?php
endif;
if ($show_stock_status) :
if ($stock_status == 'out-of-stock') :
echo '<span class="wishlist-out-of-stock">' . esc_html__(' - Out of Stock', 'elessi-theme') . '</span>';
else :
echo '<span class="wishlist-in-stock">' . esc_html__(' &mdash; In Stock', 'elessi-theme') . '</span>';
endif;
endif; ?>
</div>
<?php if (!isset($nasa_opt['disable-cart']) || !$nasa_opt['disable-cart']) : ?>
<div class="add-to-cart-wishlist large-12 columns">
<?php
if ($show_add_to_cart && $stock_status != 'out-of-stock') :
echo elessi_add_to_cart_in_wishlist();
endif;
?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</td>
<?php if ($is_user_owner) : ?>
<td class="product-remove">
<a href="javascript:void(0);" class="remove nasa-remove_from_wishlist nasa-stclose small" title="<?php esc_attr_e('Remove this product', 'elessi-theme'); ?>" data-logined="<?php echo (int) NASA_CORE_USER_LOGGED; ?>" data-prod_id="<?php echo (int) $productId; ?>" rel="nofollow">
<?php esc_html_e('Remove', 'elessi-theme'); ?>
</a>
</td>
<?php endif; ?>
</tr>
<?php endif;
endforeach;
$wishlist_page_id = get_option('yith_wcwl_wishlist_page_id');
if ($wishlist_page_id) :
$wishlist_page_id = yith_wcwl_object_id($wishlist_page_id); ?>
<tr>
<td colspan="2">
<a href="<?php echo esc_url(get_permalink($wishlist_page_id)); ?>" class="button nasa-wishlist-page nasa-flex margin-top-20"><?php echo esc_html__('Wishlist Page', 'elessi-theme'); ?></a>
</td>
</tr>
<?php endif;
else:
$target_shop = apply_filters('nasa_target_return_shop', 'javascript:void(0);');
?>
<tr class="pagination-row">
<td class="wishlist-empty">
<p class="empty">
<svg class="nasa-icon" width="20" height="20" viewBox="0 0 32 32"><path d="M21.886 5.115c3.521 0 6.376 2.855 6.376 6.376 0 1.809-0.754 3.439-1.964 4.6l-10.297 10.349-10.484-10.536c-1.1-1.146-1.778-2.699-1.778-4.413 0-3.522 2.855-6.376 6.376-6.376 2.652 0 4.925 1.62 5.886 3.924 0.961-2.304 3.234-3.924 5.886-3.924zM21.886 4.049c-2.345 0-4.499 1.089-5.886 2.884-1.386-1.795-3.54-2.884-5.886-2.884-4.104 0-7.442 3.339-7.442 7.442 0 1.928 0.737 3.758 2.075 5.152l11.253 11.309 11.053-11.108c1.46-1.402 2.275-3.308 2.275-5.352 0-4.104-3.339-7.442-7.442-7.442v0z" fill="currentColor" /></svg>
<?php esc_html_e('No products in the wishlist.', 'elessi-theme'); ?>
<a href="<?php echo esc_attr($target_shop); ?>" class="button nasa-sidebar-return-shop" rel="nofollow"><?php echo esc_html__('RETURN TO SHOP', 'elessi-theme'); ?></a>
</p>
</td>
</tr>
<?php
endif; ?>
</tbody>
</table>
<?php
endif;
+107
View File
@@ -0,0 +1,107 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
$countItems = count($wishlist_items);
?>
<!-- WISHLIST TABLE -->
<table class="shop_table wishlist_table wishlist-fragment">
<tbody>
<?php if ($countItems > 0) :
foreach ($wishlist_items as $item) :
global $product;
$product = wc_get_product($item);
if (empty($product)) :
continue;
endif;
$productId = $product->get_id();
$status = $product->get_status();
$title_product = apply_filters('woocommerce_in_cartproduct_obj_title', $product->get_name(), $product);
if (!$product->is_visible() || $status != 'publish') : ?>
<tr class="nasa-tr-wishlist-item hidden-tag item-invisible" id="nasa-wishlist-row-<?php echo (int) $productId; ?>" data-row-id="<?php echo (int) $productId; ?>">
<td class="product-remove" colspan="2">
<a href="javascript:void(0);" class="remove nasa-remove_from_wishlist btn-wishlist btn-nasa-wishlist nasa-added" title="<?php esc_attr_e('Remove this product', 'elessi-theme'); ?>" data-prod="<?php echo (int) $productId; ?>" rel="nofollow">
<?php esc_html_e('Remove', 'elessi-theme') ?>
</a>
</td>
</tr>
<?php
continue;
endif;
$availability = $product->get_availability();
$stock_status = isset($availability['class']) ? $availability['class'] : 'in-stock';
?>
<tr class="nasa-tr-wishlist-item" id="nasa-wishlist-row-<?php echo (int) $productId; ?>" data-row-id="<?php echo (int) $productId; ?>">
<td class="product-wishlist-info">
<div class="wishlist-item">
<div class="image-wishlist left rtl-right">
<a href="<?php echo esc_url(get_permalink(apply_filters('woocommerce_in_cart_product', $productId))); ?>" title="<?php echo esc_attr($title_product); ?>">
<?php echo $product->get_image('thumbnail'); ?>
</a>
</div>
<div class="info-wishlist left rtl-right padding-left-15 rtl-padding-left-0 rtl-padding-right-15">
<a class="nasa-wishlist-title" href="<?php echo esc_url(get_permalink(apply_filters('woocommerce_in_cart_product', $productId))); ?>" title="<?php echo esc_attr($title_product); ?>">
<?php echo $title_product; ?>
</a>
<div class="wishlist-price">
<span class="price">
<?php echo $product->get_price_html(); ?>
</span>
<?php
if (!empty($availability['availability'])) :
if ($stock_status == 'out-of-stock') :
echo '<span class="wishlist-out-of-stock"> &mdash; ' . $availability['availability'] . '</span>';
else :
echo '<span class="wishlist-in-stock"> &mdash; ' . $availability['availability'] . '</span>';
endif;
endif;
?>
</div>
<?php
if (!isset($nasa_opt['disable-cart']) || !$nasa_opt['disable-cart']) :
if ($stock_status != 'out-of-stock'):
echo '<div class="add-to-cart-wishlist nasa-relative inline-block">';
echo elessi_add_to_cart_in_wishlist();
echo '</div>';
endif;
endif;
?>
</div>
</div>
</td>
<td class="product-remove">
<a href="javascript:void(0);" class="remove nasa-remove_from_wishlist btn-wishlist btn-nasa-wishlist nasa-stclose small nasa-added" title="<?php esc_attr_e('Remove', 'elessi-theme'); ?>" data-prod="<?php echo (int) $productId; ?>" rel="nofollow">
<?php esc_html_e('Remove', 'elessi-theme') ?>
</a>
</td>
</tr>
<?php endforeach;
else:
$target_shop = apply_filters('nasa_target_return_shop', 'javascript:void(0);');
?>
<tr>
<td class="wishlist-empty">
<p class="empty">
<svg class="nasa-icon" width="20" height="20" viewBox="0 0 32 32"><path d="M21.886 5.115c3.521 0 6.376 2.855 6.376 6.376 0 1.809-0.754 3.439-1.964 4.6l-10.297 10.349-10.484-10.536c-1.1-1.146-1.778-2.699-1.778-4.413 0-3.522 2.855-6.376 6.376-6.376 2.652 0 4.925 1.62 5.886 3.924 0.961-2.304 3.234-3.924 5.886-3.924zM21.886 4.049c-2.345 0-4.499 1.089-5.886 2.884-1.386-1.795-3.54-2.884-5.886-2.884-4.104 0-7.442 3.339-7.442 7.442 0 1.928 0.737 3.758 2.075 5.152l11.253 11.309 11.053-11.108c1.46-1.402 2.275-3.308 2.275-5.352 0-4.104-3.339-7.442-7.442-7.442v0z" fill="currentColor" /></svg>
<?php esc_html_e('No products in the wishlist.', 'elessi-theme') ?>
<a href="<?php echo $target_shop; ?>" class="button nasa-sidebar-return-shop" rel="nofollow">
<?php echo esc_html__('RETURN TO SHOP', 'elessi-theme'); ?>
</a>
</p>
</td>
</tr>
<?php
endif; ?>
</tbody>
</table>
+94
View File
@@ -0,0 +1,94 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$slideHoz = false;
if (
isset($nasa_opt['product_thumbs_style']) && $nasa_opt['product_thumbs_style'] === 'hoz'
) :
$slideHoz = true;
endif;
$main_class .= ' classic-layout medium-12';
$class_image = 'large-6 small-12 columns product-gallery rtl-right';
$class_info = 'large-6 small-12 columns product-info summary entry-summary left rtl-left';
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$loop_slide = isset($nasa_opt['product_slide_loop']) && $nasa_opt['product_slide_loop'] ? 'true' : 'false';
$in_mobile = isset($nasa_opt['nasa_in_mobile']) && $nasa_opt['nasa_in_mobile'] ? true : false;
$mobile_app = ($in_mobile && isset($nasa_opt['mobile_layout']) && $nasa_opt['mobile_layout'] == 'app') ? true : false;
$mobile_app_navigation = ($mobile_app && (isset($nasa_opt['single_product_mobile_top_navication']) && $nasa_opt['single_product_mobile_top_navication']))? 'nasa-top-navigaton' : '';
$mobile_app_navigation .= ($mobile_app_navigation !== '' && (isset($nasa_opt['single_product_mobile_top_navication_ctab']) && $nasa_opt['single_product_mobile_top_navication_ctab']))? ' nasa-top-navigaton-ctab' : '';
$widgets_alc = '';
if (!isset($nasa_opt['toggle_widgets']) || $nasa_opt['toggle_widgets']) :
$widgets_alc = isset($nasa_opt['toggle_widgets_Alc']) && $nasa_opt['toggle_widgets_Alc'] ? ' nasa-toggle-widgets-alc' : '';
$widgets_alc = isset($nasa_opt['single_product_sticky_sidebar_classic']) && $nasa_opt['single_product_sticky_sidebar_classic'] ? ' nasa-toggle-widgets-alc' : $widgets_alc;
endif;
if ($slideHoz) :
$class_image = 'large-6 small-12 columns product-gallery rtl-right desktop-padding-right-20 rtl-desktop-padding-right-10 rtl-desktop-padding-left-20';
$class_info = 'large-6 small-12 columns product-info summary entry-summary left rtl-left';
$dots = 'false';
endif;
$main_attrs = apply_filters('nasa_single_product_classic_slide_attrs', array(
'class="' . esc_attr($main_class) . '"',
'data-num_main="1"',
'data-num_thumb="5"',
'data-speed="300"',
'data-dots="' . esc_attr($dots) . '"',
'data-autoplay="' . esc_attr($auto) . '"',
'data-infinite="' . esc_attr($loop_slide) . '"',
));
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="div-toggle-sidebar center">
<a class="toggle-sidebar" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 32 32" width="26" height="24" fill="currentColor"><path d="M 4 7 L 4 9 L 28 9 L 28 7 Z M 4 15 L 4 17 L 28 17 L 28 15 Z M 4 23 L 4 25 L 28 25 L 28 23 Z" /></svg>
</a>
</div>
<?php endif; ?>
<div class="row nasa-product-details-page nasa-layout-classic <?php echo($mobile_app_navigation . $widgets_alc)?>">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="row focus-info">
<div class="<?php echo $class_image; ?>">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
<div class="<?php echo $class_info; ?>">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
+86
View File
@@ -0,0 +1,86 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$num_main = apply_filters('nasa_number_main_single_product_gallery_full', 3);
$half_item = isset($nasa_opt['half_full_slide']) && $nasa_opt['half_full_slide'] ? true : false;
$main_attrs_values = array(
'class="' . esc_attr($main_class) . ' padding-left-0 padding-right-0"',
'data-num_main="' . ((int) $num_main) . '"',
'data-num_thumb="0"',
'data-speed="300"',
'data-dots="' . $dots . '"',
'data-autoplay="' . esc_attr($auto) . '"',
);
if ($half_item) :
$main_attrs_values[] = 'data-padding="10%"';
$main_attrs_values[] = 'data-padding_small="15%"';
endif;
$main_attrs = apply_filters('nasa_single_product_full_slide_attrs', $main_attrs_values);
$info_class = 'large-12 columns summary entry-summary product-info';
if (!isset($nasa_opt['full_info_col']) || $nasa_opt['full_info_col'] != 2) :
$info_class .= ' text-center';
endif;
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><line x1="9" y1="3" x2="9" y2="21" /></svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-product-details-page modern nasa-layout-full padding-top-10">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="nasa-row row-fullwidth">
<div class="large-12 columns product-gallery nasa-gallery-full">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
</div>
<div class="row">
<div class="<?php echo esc_attr($info_class); ?>">
<div class="nasa-product-info-wrap">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
<div class="nasa-clear-both"></div>
</div>
@@ -0,0 +1,48 @@
<?php
if ((isset($imageMain) && $imageMain) || (isset($attachment_ids) && !empty($attachment_ids))) :
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
$loop_slide = isset($nasa_opt['loop_quickview']) && $nasa_opt['loop_quickview'] ? 'true' : 'false';
$attrs_arr = apply_filters('ns_qvsl_gallery_attrs', array(
'class' => 'main-image-slider nasa-slick-slider nasa-slick-nav',
'data-columns' => esc_attr($show_images),
'data-columns-small' => esc_attr($show_images),
'data-columns-tablet' => esc_attr($show_images),
'data-items' => esc_attr($show_images),
'data-autoplay' => 'false',
'data-delay' => '6000',
'data-height-auto' => 'true',
'data-dot' => 'false',
'data-loop' => esc_attr($loop_slide)
));
$attrs_cvt = array();
if (!empty($attrs_arr)) :
foreach ($attrs_arr as $key => $val) :
$attrs_cvt[] = $key . '="' . $val . '"';
endforeach;
endif;
?>
<div<?php echo !empty($attrs_cvt) ? ' ' . implode(' ', $attrs_cvt) : ''; ?>>
<?php
/**
* Main image
*/
echo $imageMain ? $imageMain : '';
/**
* Gallry Images
*/
if (isset($attachment_ids) && !empty($attachment_ids)) :
foreach ($attachment_ids as $attachment_id) :
echo wp_get_attachment_image($attachment_id, apply_filters('woocommerce_gallery_image_size', 'woocommerce_single'));
endforeach;
endif;
?>
</div>
<?php
endif;
+68
View File
@@ -0,0 +1,68 @@
<?php
global $nasa_opt, $product;
$attachment_ids = $product->get_gallery_image_ids();
$style_quickview = isset($style_quickview) ? $style_quickview : 'sidebar';
$class = $style_quickview == 'sidebar' ? 'large-12 columns padding-left-0 padding-right-0' : 'large-6 columns padding-left-0 padding-right-0 rtl-right';
$column_thumbs = isset($nasa_opt['quick_view_item_thumb']) ? (int) $nasa_opt['quick_view_item_thumb'] : 1;
$show_images = ($style_quickview == 'sidebar' && $attachment_ids && count($attachment_ids)) ?
apply_filters('nasa_quickview_number_imgs', $column_thumbs) : 1;
$thumbNailId = get_post_thumbnail_id();
$image_size = apply_filters('woocommerce_gallery_image_size', 'woocommerce_single');
$src_large = wp_get_attachment_image_url($thumbNailId, $image_size);
if (!$src_large) {
$src_large = wc_placeholder_img_src();
}
$imageMain = $product->get_image(
$image_size,
apply_filters('nasa_attrs_main_img_qv', array(
'class' => 'nasa-first attachment-shop_single size-shop_single'
))
);
$link = $product->get_permalink();
$title = $product->get_name();
?>
<div class="row product">
<?php do_action('woocommerce_single_product_lightbox_before'); ?>
<div class="<?php echo esc_attr($class); ?> product-quickview-img">
<div class="product-img nasa-product-gallery-lightbox" data-o_href="<?php echo esc_url($src_large); ?>">
<?php
$file = ELESSI_CHILD_PATH . '/includes/nasa-single-product-lightbox-gallery.php';
include is_file($file) ? $file : ELESSI_THEME_PATH . '/includes/nasa-single-product-lightbox-gallery.php';
?>
</div>
<a class="nasa-quickview-view-detail" href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>">
<?php echo esc_html__('VIEW DETAIL', 'elessi-theme'); ?>
</a>
</div>
<div class="<?php echo esc_attr($class); ?> product-quickview-info">
<div class="product-lightbox-inner product-info summary entry-summary">
<h1 class="product_title entry-title">
<a href="<?php echo esc_url($link); ?>" title="<?php echo esc_attr($title); ?>">
<?php echo $title; ?>
</a>
</h1>
<?php
/**
* Support Yith WooCommerce Product Add-ons in Quick view
*/
do_action('yith_wcqv_product_summary'); ?>
<?php do_action('woocommerce_single_product_lightbox_summary'); ?>
</div>
</div>
<?php do_action('woocommerce_single_product_lightbox_after'); ?>
</div>
+71
View File
@@ -0,0 +1,71 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$loop_slide = isset($nasa_opt['product_slide_loop']) && $nasa_opt['product_slide_loop'] ? 'true' : 'false';
$style_focus = isset($nasa_opt['sp_bgl']) && $nasa_opt['sp_bgl'] ? ' style="background-color: ' . esc_attr($nasa_opt['sp_bgl']) . '"' : '';
$main_attrs = apply_filters('nasa_single_product_modern_1_slide_attrs', array(
'class="' . esc_attr($main_class) . '"',
'data-num_main="1"',
'data-num_thumb="4"',
'data-speed="300"',
'data-dots="' . esc_attr($dots) . '"',
'data-autoplay="' . esc_attr($auto) . '"',
'data-infinite="' . esc_attr($loop_slide) . '"',
));
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop nasa-tip" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><line x1="9" y1="3" x2="9" y2="21" /></svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-row nasa-product-details-page modern nasa-layout-modern-1">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="row focus-info">
<div class="large-4 medium-6 small-12 columns product-gallery rtl-right">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
<div class="large-8 medium-6 small-12 columns product-info summary entry-summary rtl-left desktop-padding-left-20 rtl-desktop-padding-left-10 rtl-desktop-padding-right-20">
<div class="nasa-product-info-wrap">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
+75
View File
@@ -0,0 +1,75 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$loop_slide = isset($nasa_opt['product_slide_loop']) && $nasa_opt['product_slide_loop'] ? 'true' : 'false';
$style_focus = isset($nasa_opt['sp_bgl']) && $nasa_opt['sp_bgl'] ? ' style="background-color: ' . esc_attr($nasa_opt['sp_bgl']) . '"' : '';
$main_attrs = apply_filters('nasa_single_product_modern_2_slide_attrs', array(
'class="' . esc_attr($main_class) . '"',
'data-num_main="1"',
'data-num_thumb="4"',
'data-speed="300"',
'data-dots="' . esc_attr($dots) . '"',
'data-autoplay="' . esc_attr($auto) . '"',
'data-infinite="' . esc_attr($loop_slide) . '"',
));
$slideHoz = isset($nasa_opt['product_thumbs_style']) && $nasa_opt['product_thumbs_style'] === 'hoz' ? true : false;
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop nasa-tip" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><line x1="9" y1="3" x2="9" y2="21" /></svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-row nasa-product-details-page modern nasa-layout-modern-2">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="focus-info"<?php echo $style_focus; ?>>
<div class="row">
<div class="<?php echo $slideHoz ? 'large-6' : 'large-7';?> small-12 columns product-gallery rtl-right padding-right-50 mobile-padding-right-10 rtl-padding-right-10 rtl-padding-left-50 rtl-mobile-padding-left-10">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
<div class="<?php echo $slideHoz ? 'large-6' : 'large-5';?> small-12 columns product-info text-center summary entry-summary rtl-left">
<div class="nasa-product-info-wrap">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
+75
View File
@@ -0,0 +1,75 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$loop_slide = isset($nasa_opt['product_slide_loop']) && $nasa_opt['product_slide_loop'] ? 'true' : 'false';
$style_focus = isset($nasa_opt['sp_bgl']) && $nasa_opt['sp_bgl'] ? ' style="background-color: ' . esc_attr($nasa_opt['sp_bgl']) . '"' : '';
$main_attrs = apply_filters('nasa_single_product_modern_3_slide_attrs', array(
'class="' . esc_attr($main_class) . '"',
'data-num_main="1"',
'data-num_thumb="4"',
'data-speed="300"',
'data-dots="' . esc_attr($dots) . '"',
'data-autoplay="' . esc_attr($auto) . '"',
'data-infinite="' . esc_attr($loop_slide) . '"',
));
$slideHoz = isset($nasa_opt['product_thumbs_style']) && $nasa_opt['product_thumbs_style'] === 'hoz' ? true : false;
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop nasa-tip" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><line x1="9" y1="3" x2="9" y2="21" /></svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-row nasa-product-details-page modern nasa-layout-modern-3">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="focus-info"<?php echo $style_focus; ?>>
<div class="row">
<div class="<?php echo $slideHoz ? 'large-6' : 'large-7';?> small-12 columns product-gallery rtl-right padding-right-50 mobile-padding-right-10 rtl-padding-right-10 rtl-padding-left-50 rtl-mobile-padding-left-10">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
<div class="<?php echo $slideHoz ? 'large-6' : 'large-5';?> small-12 columns product-info summary entry-summary rtl-left">
<div class="nasa-product-info-wrap">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
+89
View File
@@ -0,0 +1,89 @@
<?php
defined('ABSPATH') or die(); // Exit if accessed directly
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$loop_slide = isset($nasa_opt['product_slide_loop']) && $nasa_opt['product_slide_loop'] ? 'true' : 'false';
$style_focus = isset($nasa_opt['sp_bgl']) && $nasa_opt['sp_bgl'] ? ' style="background-color: ' . esc_attr($nasa_opt['sp_bgl']) . '"' : '';
$main_attrs = apply_filters('nasa_single_product_modern_3_slide_attrs', array(
'class="' . esc_attr($main_class) . '"',
'data-num_main="1"',
'data-num_thumb="4"',
'data-speed="300"',
'data-dots="' . esc_attr($dots) . '"',
'data-autoplay="' . esc_attr($auto) . '"',
'data-infinite="' . esc_attr($loop_slide) . '"',
));
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop nasa-tip" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
<line x1="9" y1="3" x2="9" y2="21" />
</svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-row nasa-product-details-page modern nasa-layout-modern-4">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="focus-info" <?php echo $style_focus; ?>>
<div class="row">
<div class="large-8 small-12 columns ns-pos-sticky rtl-right">
<div class="row ns-info-gallery-modern-4 nasa-flex">
<div class="large-4 small-12 columns product-info rtl-right">
<div class="nasa-product-info-wrap-modern-4">
<?php do_action('woocommerce_before_single_product_summary_modern_4'); ?>
<div class="nasa-thumb-wrap nasa-thumbnail-hoz">
<?php do_action('woocommerce_product_thumbnails'); ?>
</div>
</div>
</div>
<div class="large-8 small-12 columns product-gallery rtl-left">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
</div>
</div>
<div class="large-4 small-12 columns product-info ns-pos-sticky summary entry-summary rtl-left">
<div class="nasa-product-info-wrap">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor">
<path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" />
</svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
+53
View File
@@ -0,0 +1,53 @@
<?php
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop nasa-tip" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><line x1="9" y1="3" x2="9" y2="21" /></svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-row nasa-product-details-page modern nasa-layout-new-2">
<div class="<?php echo esc_attr($main_class); ?>">
<div class="row focus-info">
<div class="large-6 small-12 columns product-gallery rtl-right">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
<div class="large-6 small-12 columns product-info summary entry-summary rtl-left">
<div class="nasa-product-info-wrap">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z" /></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
+81
View File
@@ -0,0 +1,81 @@
<?php
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$tab_style = apply_filters('nasa_single_product_tabs_style', '2d-no-border');
$is_tab_small_accordion = $tab_style == 'small-accordion'? ' is-tab-small-accordion': '';
$loop_slide = isset($nasa_opt['product_slide_loop']) && $nasa_opt['product_slide_loop'] ? 'true' : 'false';
add_filter( 'nasa_number_img_display_review', function() {
return 2;
});
$main_attrs = apply_filters('nasa_single_product_new_slide_attrs', array(
'class="' . esc_attr($main_class) . '"',
'data-num_main="2"',
'data-num_thumb="8"',
'data-speed="300"',
'data-dots="' . esc_attr($dots) . '"',
'data-autoplay="' . esc_attr($auto) . '"',
'data-infinite="' . esc_attr($loop_slide) . '"',
));
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop nasa-tip" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><line x1="9" y1="3" x2="9" y2="21" /></svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-row nasa-product-details-page modern nasa-layout-new-3">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="row focus-info">
<div class="large-7 small-12 columns product-gallery rtl-left right desktop-margin-bottom-60 <?php echo $is_tab_small_accordion ; ?>">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
<div class="large-5 small-12 columns product-info summary entry-summary rtl-right left desktop-padding-right-30 rtl-desktop-padding-right-10 rtl-desktop-padding-left-30 tablet-padding-right-10 rtl-tablet-padding-left-10">
<div class="nasa-product-info-wrap">
<div class="nasa-product-info-scroll">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
<div class="large-7 small-12 columns nasa-product-details-wrap rtl-left right margin-bottom-40<?php echo $is_tab_small_accordion ; ?>">
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<div class="large-7 small-12 columns nasa-product-extend-tab-wrap rtl-left right">
<?php do_action('nasa_after_single_product_layout3_summary'); ?>
</div>
</div>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z"/></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
+82
View File
@@ -0,0 +1,82 @@
<?php
if (!isset($nasa_opt)) :
global $nasa_opt;
endif;
global $product;
$columnImage = '6';
$columnInfo = '6';
if ($nasa_opt['product_image_layout'] != 'single') {
if ($nasa_opt['product_image_style'] === 'slide') {
$columnImage = '8';
$columnInfo = '4';
} else {
$columnImage = '7';
$columnInfo = '5';
}
}
$dots = isset($nasa_opt['product_slide_dot']) && $nasa_opt['product_slide_dot'] ? 'true' : 'false';
$auto = isset($nasa_opt['product_slide_auto']) && $nasa_opt['product_slide_auto'] ? 'true' : 'false';
$loop_slide = isset($nasa_opt['product_slide_loop']) && $nasa_opt['product_slide_loop'] ? 'true' : 'false';
$main_attrs = apply_filters('nasa_single_product_new_slide_attrs', array(
'class="' . esc_attr($main_class) . '"',
'data-num_main="' . (($nasa_opt['product_image_layout'] == 'double') ? '2' : '1') . '"',
'data-num_thumb="' . (($nasa_opt['product_image_layout'] == 'double') ? '4' : '6') . '"',
'data-speed="300"',
'data-dots="' . esc_attr($dots) . '"',
'data-autoplay="' . esc_attr($auto) . '"',
'data-infinite="' . esc_attr($loop_slide) . '"',
));
?>
<div id="product-<?php echo (int) $product->get_id(); ?>" <?php post_class(); ?>>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="nasa-toggle-layout-side-sidebar nasa-sidebar-single-product <?php echo esc_attr($nasa_sidebar); ?>">
<div class="li-toggle-sidebar">
<a class="toggle-sidebar-shop nasa-tip" href="javascript:void(0);" rel="nofollow">
<svg viewBox="0 0 24 24" width="28" height="22" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" /><line x1="9" y1="3" x2="9" y2="21" /></svg>
<span class="toggle-sidebar-text"><?php echo esc_attr__('Open Sidebar', 'elessi-theme'); ?></span>
</a>
</div>
</div>
<?php endif; ?>
<div class="nasa-row nasa-product-details-page modern nasa-layout-new">
<div<?php echo !empty($main_attrs) ? ' ' . implode(' ', $main_attrs) : ''; ?>>
<div class="row focus-info">
<div class="large-<?php echo esc_attr($columnImage); ?> small-12 columns product-gallery rtl-right">
<?php do_action('woocommerce_before_single_product_summary'); ?>
</div>
<div class="large-<?php echo esc_attr($columnInfo); ?> small-12 columns product-info summary entry-summary rtl-left">
<div class="nasa-product-info-wrap">
<div class="nasa-product-info-scroll">
<?php do_action('woocommerce_single_product_summary'); ?>
</div>
</div>
</div>
</div>
<?php do_action('woocommerce_after_single_product_summary'); ?>
</div>
<?php if ($nasa_actsidebar && $nasa_sidebar != 'no') : ?>
<div class="<?php echo esc_attr($bar_class); ?>">
<a href="javascript:void(0);" title="<?php echo esc_attr__('Close', 'elessi-theme'); ?>" class="hidden-tag nasa-close-sidebar" rel="nofollow">
<svg class="nasa-rotate-180" width="15" height="15" viewBox="0 0 512 512" fill="currentColor"><path d="M135 512c3 0 4 0 6 0 15-4 26-21 40-33 62-61 122-122 187-183 9-9 27-24 29-33 3-14-8-23-17-32-67-66-135-131-202-198-11-9-24-27-33-29-18-4-28 8-31 21 0 0 0 2 0 2 1 1 1 6 3 10 3 8 18 20 27 28 47 47 95 93 141 139 19 18 39 36 55 55-62 64-134 129-199 193-8 9-24 21-26 32-3 18 8 24 20 28z"/></svg>
</a>
<div class="nasa-sidebar-off-canvas">
<?php dynamic_sidebar('product-sidebar'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
@@ -0,0 +1,38 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$k_acc = 0;
$countTabs = count($tabs);
echo '<div class="row"><div class="large-12 columns">';
foreach ($tabs as $key => $tab) :
if (!isset($tab['title']) || !isset($tab['callback'])) :
continue;
endif;
$class_node = 'nasa-single-product-tab nasa-accordion hidden-tag nasa-accordion-' . $key;
$class_node .= $k_acc == 0 ? ' active first' : '';
$class_node .= $k_acc == $countTabs ? ' last' : '';
$class_panel = 'hidden-tag nasa-panel nasa-content-panel nasa-sp-panel nasa-content-' . $key;
$class_panel .= $k_acc == 0 ? ' active first' : '';
?>
<div class="nasa-accordion-title">
<a class="<?php echo esc_attr($class_node); ?>" href="javascript:void(0);" data-id="accordion-<?php echo esc_attr($key); ?>" rel="nofollow">
<?php echo apply_filters('woocommerce_product_' . $key . '_tab_title', $tab['title'], $key); ?>
<svg class="hidden-tag nasa-transition" width="32" height="32" viewBox="0 0 32 32" fill="currentColor"><path d="M15.233 19.175l0.754 0.754 6.035-6.035-0.754-0.754-5.281 5.281-5.256-5.256-0.754 0.754 3.013 3.013z"/></svg>
</a>
</div>
<div class="<?php echo esc_attr($class_panel); ?>" id="nasa-section-accordion-<?php echo esc_attr($key); ?>">
<?php call_user_func($tab['callback'], $key, $tab); ?>
</div>
<?php
$k_acc++;
endforeach;
echo '</div></div>';
@@ -0,0 +1,38 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$k_acc = 0;
$countTabs = count($tabs);
echo '<div class="nasa-small-accodion">';
foreach ($tabs as $key => $tab) :
if (!isset($tab['title']) || !isset($tab['callback'])) :
continue;
endif;
$class_node = 'nasa-single-product-tab nasa-accordion hidden-tag nasa-accordion-' . $key;
$class_node .= $k_acc == 0 ? ' first' : '';
$class_node .= $k_acc == $countTabs ? ' last' : '';
$class_panel = 'hidden-tag nasa-panel nasa-content-panel nasa-content-' . $key;
$class_panel .= $k_acc == 0 ? ' first' : '';
?>
<div class="nasa-accordion-title">
<a class="<?php echo esc_attr($class_node); ?>" href="javascript:void(0);" data-id="accordion-<?php echo esc_attr($key); ?>" rel="nofollow">
<?php echo apply_filters('woocommerce_product_' . $key . '_tab_title', $tab['title'], $key); ?>
<svg class="hidden-tag nasa-transition" width="28" height="28" viewBox="0 0 32 32" fill="currentColor"><path d="M15.233 19.175l0.754 0.754 6.035-6.035-0.754-0.754-5.281 5.281-5.256-5.256-0.754 0.754 3.013 3.013z"/></svg>
</a>
</div>
<div class="<?php echo esc_attr($class_panel); ?>" id="nasa-section-accordion-<?php echo esc_attr($key); ?>">
<?php call_user_func($tab['callback'], $key, $tab); ?>
</div>
<?php
$k_acc++;
endforeach;
echo '</div>';
@@ -0,0 +1,49 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$wrap_desc = !isset($nasa_opt['desc_product_wrap']) || $nasa_opt['desc_product_wrap'] ? true : false;
$scroll_title_class = 'nasa-scroll-titles';
$scroll_title_class .= isset($nasa_opt['tab_align_info']) ? ' text-' . $nasa_opt['tab_align_info'] : ' text-center';
$tabs_titles = array();
foreach ($tabs as $key => $tab) :
if (!isset($tab['title']) || !isset($tab['callback'])) :
continue;
endif;
$tabs_titles[$key] = apply_filters('woocommerce_product_' . $key . '_tab_title', $tab['title'], $key);
endforeach;
?>
<div class="row nasa-scroll-wrap">
<div class="large-12 columns">
<div class="<?php echo esc_attr($scroll_title_class); ?>">
<?php foreach ($tabs_titles as $k => $title):
$anchor_href = '#nasa-anchor-' . $k;
$anchor_class = 'nasa-anchor nasa-transition nasa-anchor-scroll-item';
?>
<a class="<?php echo esc_attr($anchor_class); ?>" data-target="#nasa-scroll-<?php echo esc_attr($k); ?>" href="#nasa-scroll-<?php echo esc_attr($k); ?>" rel="nofollow">
<?php echo $title; ?>
</a>
<?php endforeach; ?>
</div>
<?php foreach ($tabs as $key => $tab) :
if (!isset($tab['title']) || !isset($tab['callback'])) :
continue;
endif;
?>
<div class="nasa-scroll-item" id="nasa-scroll-<?php echo esc_attr($key); ?>">
<div class="nasa-scroll-content nasa-content-<?php echo esc_attr($key); ?><?php echo $wrap_desc ? ' nasa-desc-wrap' : ' nasa-desc-no-wrap'; ?>">
<?php
echo ($wrap_desc || $key !== 'description') ? '<div class="row"><div class="large-12 columns nasa-content-panel">' : '';
call_user_func($tab['callback'], $key, $tab);
echo ($wrap_desc || $key !== 'description') ? '</div></div>' : '';
?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
@@ -0,0 +1,66 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$wrap_desc = !isset($nasa_opt['desc_product_wrap']) || $nasa_opt['desc_product_wrap'] ? true : false;
$align_tab = isset($nasa_opt['tab_align_info']) ? 'text-' . $nasa_opt['tab_align_info'] : 'text-center';
if (isset($nasa_opt['product_detail_layout']) && $nasa_opt['product_detail_layout'] == 'full') :
$align_tab = 'text-center';
endif;
?>
<div class="row">
<div class="large-12 columns">
<div class="nasa-tab-wrap <?php echo esc_attr($align_tab); ?>">
<ul class="<?php echo esc_attr($class_ul); ?>">
<?php
$k_title = 0;
$countTabs = count($tabs);
foreach ($tabs as $key => $tab) :
if (!isset($tab['title'])) :
continue;
endif;
$class_node = 'nasa-single-product-tab ' . $key . '_tab nasa-tab';
$class_node .= $k_title == 0 ? ' active first' : '';
$class_node .= $k_title == $countTabs-1 ? ' last' : '';
?>
<li class="<?php echo esc_attr($class_node); ?>">
<a href="javascript:void(0);" data-id="#nasa-tab-<?php echo esc_attr($key); ?>" rel="nofollow">
<?php echo apply_filters('woocommerce_product_' . $key . '_tab_title', $tab['title'], $key); ?>
</a>
</li>
<?php
$k_title++;
endforeach;
?>
</ul>
</div>
</div>
</div>
<div class="nasa-panels <?php echo $wrap_desc ? 'nasa-desc-wrap' : 'nasa-desc-no-wrap'; ?>">
<?php
$k_tab = 0;
foreach ($tabs as $key => $tab) :
if (!isset($tab['callback'])) :
continue;
endif;
$class_panel = 'nasa-panel nasa-content-' . $key;
$class_panel .= $k_tab == 0 ? ' active' : '';
?>
<div class="<?php echo esc_attr($class_panel); ?>" id="nasa-tab-<?php echo esc_attr($key); ?>">
<?php
echo ($wrap_desc || $key !== 'description') ? '<div class="row"><div class="large-12 columns nasa-content-panel">' : '';
call_user_func($tab['callback'], $key, $tab);
echo ($wrap_desc || $key !== 'description') ? '</div></div>' : '';
?>
</div>
<?php
$k_tab++;
endforeach;
?>
</div>
@@ -0,0 +1,56 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
?>
<div class="row">
<div class="large-12 columns nasa-v-tabs">
<div class="nasa-tab-wrap">
<ul class="<?php echo esc_attr($class_ul); ?>">
<?php
$k_title = 0;
$countTabs = count($tabs);
foreach ($tabs as $key => $tab) :
if (!isset($tab['title'])) :
continue;
endif;
$class_node = 'nasa-single-product-tab ' . $key . '_tab nasa-tab';
$class_node .= $k_title == 0 ? ' active first' : '';
$class_node .= $k_title == $countTabs-1 ? ' last' : '';
?>
<li class="<?php echo esc_attr($class_node); ?>">
<a href="javascript:void(0);" data-id="#nasa-tab-<?php echo esc_attr($key); ?>" rel="nofollow">
<?php echo apply_filters('woocommerce_product_' . $key . '_tab_title', $tab['title'], $key); ?>
</a>
</li>
<?php
$k_title++;
endforeach;
?>
</ul>
</div>
<div class="nasa-panels">
<?php
$k_tab = 0;
foreach ($tabs as $key => $tab) :
if (!isset($tab['callback'])) :
continue;
endif;
$class_panel = 'nasa-panel nasa-content-' . $key;
$class_panel .= $k_tab == 0 ? ' active' : '';
?>
<div class="<?php echo esc_attr($class_panel); ?>" id="nasa-tab-<?php echo esc_attr($key); ?>">
<?php call_user_func($tab['callback'], $key, $tab); ?>
</div>
<?php
$k_tab++;
endforeach;
?>
</div>
</div>
</div>
@@ -0,0 +1,33 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$class_wrap = 'row';
$class_wrap .= !isset($nasa_opt['ns_rm_sl']) || $nasa_opt['ns_rm_sl'] ? ' ns-tab-item' : ' ns-tab-regular';
foreach ($tabs as $key => $tab) :
if (!isset($tab['title']) || !isset($tab['callback'])) :
continue;
endif;
?>
<div class="<?php echo $class_wrap; ?>">
<div class="large-12 columns">
<div class="nasa-content nasa-content-<?php echo esc_attr($key); ?>" id="nasa-scroll-<?php echo esc_attr($key); ?>">
<h3 class="nasa-title nasa-crazy-box ns-woo-tab-title nasa-bold">
<?php echo apply_filters('woocommerce_product_' . $key . '_tab_title', $tab['title'], $key); ?>
</h3>
<?php
echo '<div class="nasa-content-panel">';
call_user_func($tab['callback'], $key, $tab);
echo '</div>';
?>
</div>
</div>
</div>
<?php
endforeach;
@@ -0,0 +1,19 @@
<?php
/**
* Template field Captcha Register form
*
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
?>
<script type="text/template" id="tmpl-captcha-field-register">
<p class="form-row padding-top-10 nasa-capcha-row">
<img src="?nasa-captcha-register={{key}}" class="nasa-img-captcha" />
<a class="nasa-reload-captcha nasa-iflex" href="javascript:void(0);" title="<?php echo esc_attr__('Reload', 'elessi-theme'); ?>" data-time="0" data-key="{{key}}" rel="nofollow">
<svg class="nasa-flip-vertical" viewBox="0 30 512 512" width="28" height="28" fill="currentColor"><path d="M276 467c0 8 6 21-2 23l-26 0c-128-7-230-143-174-284 5-13 13-23 16-36-18 0-41 23-54 5 5-15 25-18 41-23 15-5 36-7 48-15-2 10 23 95 6 100-21 5-13-39-18-57-8-5-8 8-11 13-71 126 29 297 174 274z m44 13c-8 0-10 5-20 3 0-6-3-13-3-18 5-3 13-3 18-5 2 7 5 15 5 20z m38-18c-5 3-10 8-18 10-2-7-5-12-7-18 5-2 10-7 18-7 2 5 7 7 7 15z m34-31c0-33-18-71-5-99 23 2 12 38 17 58 90-117-7-314-163-289 0-8-3-10-3-20 131-5 233 84 220 225-2 36-20 66-30 92 12 0 51-26 53-2 3 17-82 28-89 35z m-233-325c5-2 13-5 18-10 0 8 5 10 7 18-5 2-10 8-18 8 0-8-7-8-7-16z m38-18c8 0 10-5 21-5 0 5 2 13 2 18-5 3-13 3-18 5 0-5-5-10-5-18z"/></svg>
</a>
<input type="text" name="nasa-input-captcha" class="nasa-text-captcha" value="" placeholder="<?php echo esc_attr__('Captcha Code', 'elessi-theme'); ?>" />
<input type="hidden" name="nasa-captcha-key" value="{{key}}" />
</p>
</script>
+67
View File
@@ -0,0 +1,67 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$image_size = apply_filters('woocommerce_gallery_image_size', 'woocommerce_single');
$image_link = $main_id ? wp_get_attachment_url($main_id) : wc_placeholder_img_src();
$image_large = wp_get_attachment_image_src($main_id, $image_size);
$src_large = $image_link;
$dimention = ' class="attachment-shop_single size-shop_single"';
if (isset($image_large[0])) :
$src_large = $image_large[0];
$dimention .= 'width="' . $image_large[1] . '" height="' . $image_large[2] . '" ';
endif;
?>
<div class="main-images nasa-single-product-main-image nasa-main-image-default">
<div class="item-wrap first">
<div class="nasa-item-main-image-wrap" id="nasa-main-image-0" data-key="0">
<div class="easyzoom first">
<?php echo apply_filters(
'woocommerce_single_product_image_html',
sprintf(
'<a href="%s" class="woocommerce-main-image product-image" ><img src="%s" %s/></a>',
$image_link,
$src_large,
$dimention
),
$productId
); ?>
</div>
</div>
</div>
<?php
$_i = 0;
if ($attachment_count > 0) :
foreach ($gallery_id as $id) :
$_i++;
?>
<div class="item-wrap">
<div class="nasa-item-main-image-wrap" id="nasa-main-image-<?php echo (int) $_i; ?>" data-key="<?php echo (int) $_i; ?>">
<div class="easyzoom">
<?php
$image_link = wp_get_attachment_url($id);
$image = wp_get_attachment_image_src($id, $image_size);
$src_large = $image_link;
$dimention = '';
if (isset($image[0])) {
$src_large = $image[0];
$dimention .= 'width="' . $image[1] . '" height="' . $image[2] . '" ';
}
echo sprintf(
'<a href="%s" class="woocommerce-additional-image product-image"><img src="%s" %s/></a>',
$image_link,
$src_large,
$dimention
);
?>
</div>
</div>
</div>
<?php
endforeach;
endif;
?>
</div>
+61
View File
@@ -0,0 +1,61 @@
<?php
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
endif;
$image_link = $main_id ? wp_get_attachment_url($main_id) : wc_placeholder_img_src();
$image_thumb = wp_get_attachment_image_src($main_id, 'thumbnail');
$src_thumb = $image_link;
$dimention = '';
if (isset($image_thumb[0])) :
$src_thumb = $image_thumb[0];
$dimention .= 'width="' . $image_thumb[1] . '" height="' . $image_thumb[2] . '" ';
endif;
?>
<div class="product-thumbnails images-popups-gallery nasa-single-product-thumbnails nasa-thumbnail-default">
<?php
echo sprintf(
'<div class="nasa-wrap-item-thumb nasa-active" data-key="0" data-thumb_org="%s"><a href="javascript:void(0);" data-current_img="%s" class="active-thumbnail" rel="nofollow"><img src="%s" %s/></a></div>',
$src_thumb,
$image_link,
$src_thumb,
$dimention
);
if (!empty($attachment_count)) :
$loop = 0;
foreach ($gallery_id as $attachment_id) :
$key = $loop + 1;
$classes = array('zoom');
if ($loop == 0) :
$classes[] = 'first';
endif;
if (!$image_link = wp_get_attachment_url($attachment_id)) :
continue;
endif;
$image_class = esc_attr(implode(' ', $classes));
$image = wp_get_attachment_image($attachment_id, apply_filters('single_product_small_thumbnail_size', 'thumbnail'));
echo '<div class="nasa-wrap-item-thumb" data-key="' . (int) $key . '">';
echo apply_filters(
'woocommerce_single_product_image_thumbnail_html',
sprintf('%s', $image),
$attachment_id,
$productId,
$image_class
);
echo '</div>';
$loop++;
endforeach;
endif;
?>
</div>
+129
View File
@@ -0,0 +1,129 @@
<?php
global $product;
$products = $nasa_compare->get_products_list();
$fields = $nasa_compare->fields();
?>
<div class="nasa-wrap-table-compare">
<?php
if ($products) : ?>
<table class="nasa-table-compare">
<?php
foreach ($fields as $field => $name) :
if ($field == 'title') :
continue;
endif;
?>
<tr class="<?php echo esc_attr($field); ?>">
<th>
<?php echo ($field == 'image') ? esc_html__('Product', 'elessi-theme') : $name; ?>
<?php echo ($field == 'image') ? '<div class="fixed-th"></div>' : ''; ?>
</th>
<?php
$index = 0;
foreach ($products as $product_id => $product) :
$product_class = ($index % 2 == 0 ? 'odd' : 'even') . ' nasa-compare-view-product_' . $product_id;
?>
<td class="<?php echo esc_attr($product_class); ?>">
<?php
switch ($field) :
case 'image':
$nasa_title = isset($product->fields['title']) ? $product->fields['title'] : '';
$href = get_permalink($product_id);
echo '<a href="' . esc_url($href) . '" title="' . esc_attr($product->fields['title']) . '">';
echo '<div class="image-wrap">' . $product->get_image(apply_filters('ns_img_size_compare', 'yith-woocompare-image')) . '</div>';
echo ($nasa_title != '') ? '<h5 class="compare-product-title">' . $nasa_title . '</h5>' : '';
echo '</a>';
break;
case 'title':
break;
case 'add-to-cart':
woocommerce_template_loop_add_to_cart();
break;
default:
echo empty($product->fields[$field]) ? '&nbsp;' : $product->fields[$field];
break;
endswitch;
?>
</td>
<?php
++$index;
endforeach;
?>
</tr>
<?php endforeach; ?>
<?php if (get_option('yith_woocompare_price_end') == 'yes' && isset($fields['price'])) : ?>
<tr class="price repeated">
<th><?php echo ($fields['price']); ?></th>
<?php
$index = 0;
foreach ($products as $product_id => $product) :
$product_class = ($index % 2 == 0 ? 'odd' : 'even') . ' nasa-compare-view-product_' . $product_id
?>
<td class="<?php echo esc_attr($product_class); ?>">
<?php echo ($product->fields['price']); ?>
</td>
<?php
++$index;
endforeach;
?>
</tr>
<?php endif; ?>
<?php if (get_option('yith_woocompare_add_to_cart_end') == 'yes' && isset($fields['add-to-cart'])) : ?>
<tr class="add-to-cart repeated">
<th><?php echo ($fields['add-to-cart']); ?></th>
<?php
$index = 0;
foreach ($products as $product_id => $product) :
$product_class = ($index % 2 == 0 ? 'odd' : 'even') . ' nasa-compare-view-product_' . $product_id
?>
<td class="<?php echo ($product_class); ?> nasa-group-btns">
<?php
woocommerce_template_loop_add_to_cart();
?>
</td>
<?php
++$index;
endforeach;
?>
</tr>
<?php endif; ?>
<tr class="remove-item">
<th>&nbsp;</th>
<?php
$index = 0;
foreach ($products as $product_id => $product) :
$product_class = ($index % 2 == 0 ? 'odd' : 'even') . ' nasa-compare-view-product_' . $product_id
?>
<td class="<?php echo esc_attr($product_class); ?>">
<a href="javascript:void(0);" class="nasa-remove-compare" data-prod="<?php echo esc_attr($product_id); ?>" rel="nofollow"><?php echo esc_html__('Remove', 'elessi-theme'); ?></a>
</td>
<?php
++$index;
endforeach;
?>
</tr>
</table>
<?php
else:
echo '<p class="text-center padding-top-30 nasa-flex jc"><svg class="nasa-empty-icon" viewBox="0 0 512 512" with="215" height="215" fill="currentColor"><path d="M500.9,240.5c-6.1,0-11.1,5-11.1,11.1c0,62.3-24.3,120.9-68.3,164.9c-44.1,44-102.6,68.3-164.9,68.3 c-55.1,0-107.3-19-149.1-53.9l40.4-8c6-1.2,9.9-7,8.7-13c-1.2-6-7.1-9.9-13-8.7l-61.8,12.3c-0.7,0.1-1.3,0.4-2,0.6c0,0-0.1,0-0.1,0 c0,0,0,0,0,0c-0.9,0.4-1.7,0.9-2.5,1.5c-0.2,0.1-0.4,0.3-0.5,0.5c-0.7,0.6-1.3,1.3-1.9,2.1c0,0,0,0.1-0.1,0.1 c-0.5,0.8-0.9,1.6-1.2,2.5c-0.1,0.2-0.1,0.4-0.2,0.7c-0.3,0.9-0.4,1.9-0.4,2.9c0,0,0,0,0,0v71.6c0,6.1,5,11.1,11.1,11.1 S95,502,95,495.8v-46.6c45.5,37.3,102,57.7,161.7,57.7c68.2,0,132.3-26.6,180.5-74.8S512,319.8,512,251.6 C512,245.5,507,240.5,500.9,240.5z"/><path d="M478.2,178.4c1.5,4.7,5.9,7.6,10.5,7.6c1.1,0,2.3-0.2,3.5-0.6c5.8-1.9,9-8.2,7-14c-2.9-8.7-6.2-17.3-10-25.6 c-2.5-5.6-9.1-8-14.6-5.5c-5.6,2.5-8,9.1-5.5,14.6C472.5,162.6,475.6,170.5,478.2,178.4z"/><path d="M22.1,261.4c0-62.3,24.3-120.9,68.3-164.9c44.1-44,102.6-68.3,164.9-68.3c55.1,0,107.3,19,149.1,53.9 l-40.4,8.1c-6,1.2-9.9,7-8.7,13c1,5.3,5.7,8.9,10.8,8.9c0.7,0,1.4-0.1,2.2-0.2l61.8-12.3c0.7-0.1,1.3-0.4,2-0.6c0,0,0.1,0,0.1,0 c0,0,0,0,0,0c0.9-0.4,1.7-0.9,2.5-1.5c0.2-0.1,0.4-0.3,0.5-0.5c0.7-0.6,1.3-1.3,1.9-2.1c0,0,0-0.1,0.1-0.1c0.5-0.8,0.9-1.6,1.2-2.5 c0.1-0.2,0.1-0.4,0.2-0.7c0.3-0.9,0.4-1.9,0.4-2.9c0,0,0,0,0,0V17.2c0-6.1-5-11.1-11.1-11.1c-6.1,0-11.1,5-11.1,11.1v46.6 C371.5,26.4,315,6.1,255.3,6.1C187.1,6.1,123,32.7,74.8,80.9S0,193.2,0,261.4c0,6.1,5,11.1,11.1,11.1S22.1,267.6,22.1,261.4z"/><path d="M31,325.4c-1.7-5.9-7.8-9.3-13.7-7.6c-5.9,1.7-9.3,7.8-7.6,13.7c3.4,12.1,7.8,24.1,13,35.6 c1.9,4.1,5.9,6.5,10.1,6.5c1.5,0,3.1-0.3,4.6-1c5.6-2.5,8-9.1,5.5-14.6C38.2,347.4,34.2,336.5,31,325.4z"/></svg></p>';
echo '<h5 class="text-center margin-bottom-30 empty woocommerce-compare__empty-message">' . esc_html__('No product added to compare !', 'elessi-theme') . '</h5>';
echo '<p class="text-center"><a href="' . esc_url(get_permalink(wc_get_page_id('shop'))) . '" class="button nasa-sidebar-return-shop" title="' . esc_attr__('RETURN TO SHOP', 'elessi-theme') . '">' . esc_html__('RETURN TO SHOP', 'elessi-theme') . '</a></p>';
endif;
?>
</div>