PATH:
home
/
lab2454c
/
isaaclondston.com
/
wp-content
/
themes
/
divine_saint
/
woocommerce
<?php /** * The template for displaying product content within loops * * This template can be overridden by copying it to yourtheme/woocommerce/content-product.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 3.6.0 */ defined('ABSPATH') || exit; global $product; // Ensure visibility. if (empty($product) || !$product->is_visible()) { return; } ?> <li class="product__item"> <div class="thumb__wrapper"> <a href="<?php the_permalink(); ?>"> <div class="image__box"> <?php if (has_post_thumbnail($product->get_id())) echo get_the_post_thumbnail($product->get_id(), 'shop_catalog'); else echo '<img src="' . woocommerce_placeholder_img_src() . '" alt="Placeholder" />'; ?> </div> </a> <?php $terms = get_the_terms($product->get_id(), 'product_cat'); if (!empty($terms)) { foreach ($terms as $term) { ?> <span class="prod__cat__list"><?php echo $term->name; ?></span> <?php } } ?> <a href="<?php the_permalink(); ?>" class="loop__product__link"> <h3 class="product__title"><?php the_title(); ?></h3> <?php if ($average = $product->get_average_rating()) : ?> <?php echo '<div class="star-rating" title="' . sprintf(__('Rated %s out of 5', 'woocommerce'), $average) . '"><span style="width:' . (($average / 5) * 100) . '%"><strong itemprop="ratingValue" class="rating">' . $average . '</strong> ' . __('out of 5', 'woocommerce') . '</span></div>'; ?> <?php endif; ?> <span class="price"><?php echo $product->get_price_html(); ?></span> </a> </div> <div class="buttons__wrapper"> <a href="<?php the_permalink(); ?>"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 357.4 172.2" style="enable-background:new 0 0 357.4 172.2;" xml:space="preserve"> <path d="M353.8,77.6c-0.1-0.1-0.1-0.1-0.2-0.1c0-0.1-0.1-0.1-0.1-0.2L279.8,3.6c-4.8-4.8-12.6-4.8-17.4,0c-4.8,4.8-4.8,12.6,0,17.4 l52.9,52.9h-303C5.5,73.8,0,79.3,0,86.1v0c0,6.8,5.5,12.3,12.3,12.3h303.3l-52.9,52.9c-4.8,4.8-4.8,12.6,0,17.4 c4.8,4.8,12.6,4.8,17.4,0l73.7-73.7C358.6,90.1,358.6,82.4,353.8,77.6z" /> </svg> </a> </div> </li>
[+]
..
[+]
single-product
[-] archive-product.php
[edit]
[-] content-single-product.php
[edit]
[+]
checkout
[-] content-widget-reviews.php
[edit]
[+]
emails
[+]
auth
[-] product-searchform.php
[edit]
[-] content-widget-product.php
[edit]
[+]
loop
[+]
cart
[+]
global
[+]
myaccount
[-] content-product.php
[edit]
[-] single-product-reviews.php
[edit]
[-] content-widget-price-filter.php
[edit]
[-] content-product-cat.php
[edit]
[-] content-related.php
[edit]
[+]
notices
[+]
order
[-] taxonomy-product-tag.php
[edit]
[-] taxonomy-product-cat.php
[edit]
[-] single-product.php
[edit]