HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/single-product.tar
meta.php000064400000002272151541622270006213 0ustar00<?php
/**
 * Single Product Meta
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/meta.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     13.0.0
 */

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

global $product;
?>
<div class="product_meta">

	<?php do_action( 'woocommerce_product_meta_start' ); ?>

	<?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) : ?>

		<span class="sku_wrapper"><?php esc_html_e( 'SKU:', 'woocommerce' ); ?> <span class="sku"><?php echo ( $sku = $product->get_sku() ) ? $sku : esc_html__( 'N/A', 'woocommerce' ); ?></span></span>

	<?php endif; ?>

	<?php do_action( 'woocommerce_product_meta_end' ); ?>

</div>
price.php000064400000001641151541622270006366 0ustar00<?php
/**
 * Single Product Price
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/price.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 13.0.0
 */

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

global $product;

?>
<div class="single-fiyat">
	<p class="<?php echo esc_attr( apply_filters( 'woocommerce_product_price_class', 'price' ) ); ?>"><?php echo $product->get_price_html(); ?></p>
</div>
product-image.php000064400000005404151541622270010025 0ustar00<?php
/**
 * Single Product Image
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/product-image.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 13.5.1
 */

defined( 'ABSPATH' ) || exit;

// Note: `wc_get_gallery_image_html` was added in WC 3.3.2 and did not exist prior. This check protects against theme overrides being used on older versions of WC.
if ( ! function_exists( 'wc_get_gallery_image_html' ) ) {
	return;
}

global $product;

$columns           = apply_filters( 'woocommerce_product_thumbnails_columns', 4 );
$post_thumbnail_id = $product->get_image_id();
$wrapper_classes   = apply_filters(
	'woocommerce_single_product_image_gallery_classes',
	array(
		'woocommerce-product-gallery',
		'woocommerce-product-gallery--' . ( $post_thumbnail_id ? 'with-images' : 'without-images' ),
		'woocommerce-product-gallery--columns-' . absint( $columns ),
		'images',
	)
);
?>
<div class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $wrapper_classes ) ) ); ?>" data-columns="<?php echo esc_attr( $columns ); ?>" style="opacity: 0; transition: opacity .25s ease-in-out;">
<?php if(get_post_meta($product->get_id(),'_manage_stock', true) == 'yes' && get_post_meta( $product->get_id(), '_stock', true ) == 0) { ?>
	<div class="tukendi"><?php echo __('TÜKENDİ','temavadisi'); ?></div>
<?php } ?>
<?php 
	if ( get_post_meta($product->get_id(),'product_post_video',true) ) {
		echo '<a href="'.get_post_meta($product->get_id(),'product_post_video',true).'" class="popup-video"><i class="icon-play"></i> '.__('Ürün Videosu','temavadisi').'</a>';
	}
?>
	<figure class="woocommerce-product-gallery__wrapper">
		<?php
		if ( $post_thumbnail_id ) {
			$html = wc_get_gallery_image_html( $post_thumbnail_id, true );
		} else {
			$html  = '<div class="woocommerce-product-gallery__image--placeholder">';
			$html .= sprintf( '<img src="%s" alt="%s" class="wp-post-image" />', esc_url( wc_placeholder_img_src( 'woocommerce_single' ) ), esc_html__( 'Awaiting product image', 'woocommerce' ) );
			$html .= '</div>';
		}

		echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, $post_thumbnail_id ); // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped

		do_action( 'woocommerce_product_thumbnails' );
		?>
	</figure>
</div>
rating.php000064400000004160151541622300006541 0ustar00<?php
/**
 * Single Product Rating
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/rating.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 13.6.0
 */

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

global $product;

if ( ! wc_review_ratings_enabled() ) {
	return;
}

$rating_count = $product->get_rating_count();
$review_count = $product->get_review_count();
$average      = $product->get_average_rating();
?>
<div class="wc-rating d-flex justify-content-start align-items-center w-100 border-m-0 border-bottom border-light-10 py-0 py-lg-3 mb-3">
<?php if ( $rating_count > 0 ) : ?>
	<div class="woocommerce-product-rating w-100">
		<?php echo wc_get_rating_html( $average, $rating_count ); // WPCS: XSS ok. ?>
		<?php if ( comments_open() ) : ?>
			<?php //phpcs:disable ?>
			<a href="#reviews" class="woocommerce-review-link" rel="nofollow">(<?php printf( _n( '%s inceleme', '%s inceleme', $review_count, 'temavadisi' ), '<span class="count">' . esc_html( $review_count ) . '</span>' ); ?>)</a>
			<?php // phpcs:enable ?>
		<?php endif ?>
	</div>
<?php else: ?>
	<div class="woocommerce-product-rating w-100">
		<div class="star-rating" role="img"><span style="width:0"></span></div>
	</div>
<?php endif; ?>
	<a class="yorumlink px-1 px-lg-3 woocommerce-review-link" href="#reviews"><i class="icon-commenting-o"></i> <?php echo __('Yorum Yap','temavadisi'); ?></a>
	<a class="yorumlink px-1 px-lg-3 woocommerce-review-link"  href="#respond"><i class="icon-comment-empty"></i> <?php printf( _n( 'Yorumlar (%s)', 'Yorumlar (%s)', $review_count, 'temavadisi' ), esc_html( $review_count ) ); ?></a>
</div>related.php000064400000006054151541622300006701 0ustar00<?php
/**
 * Related Products
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/related.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     13.9.0
 */

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

if ( $related_products ) : ?>

	<section class="related products">

		<?php
		$heading = apply_filters( 'woocommerce_product_related_products_heading', __( 'Related products', 'woocommerce' ) );

		if ( $heading ) :
			?>
			<div class="rehe2">
				<h2><?php echo esc_html( $heading ); ?></h2>
			</div>
		<?php endif; ?>
		
		<div class="benzer-urunler wslide">

			<?php foreach ( $related_products as $related_product ) : ?>

					<?php
					$post_object = get_post( $related_product->get_id() );

					setup_postdata( $GLOBALS['post'] =& $post_object ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited, Squiz.PHP.DisallowMultipleAssignments.Found
					?>
<div class="urun_wrap type2">
	<div class="h-100">
		<div class="urun-cont">
		<a class="d-flex justify-content-center w-100 mb-3" href="<?php echo get_permalink($post_object->ID); ?>">
		<?php if(get_post_meta($post_object->ID,'_manage_stock', true) == 'yes' && get_post_meta( get_the_ID(), '_stock', true ) == 0) { ?>
			<div class="tukendi"><?php echo __('TÜKENDİ','temavadisi'); ?></div>
		<?php } ?>
			<?php echo TemaVadisi_onresim('img208', 208, 208, 'urun-image'); ?>
		</a>
		<a class="urun-title" href="<?php echo get_permalink($post_object->ID); ?>">
			<span><?php the_title($product->ID); ?></span>
		</a>
		<div class="hover-bottom">
			<div class="urun-bottom">
				<?php do_action('wc_star_product'); ?>
				<div class="mt-3 d-inline-flex justify-content-between align-items-end w-100">
					<div class="urun-fiyat"><?php woocommerce_template_loop_price(); ?></div>
				<?php if(get_post_meta($post_object->ID, 'kargo')) { ?>
					<div class="ucretsiz_kargo d-flex justify-content-center align-items-center py-2 px-2">
						<?php  echo __('Ücretsiz Kargo','temavadisi'); ?>
					</div>
				<?php } ?>
				</div>
			</div>
			<div class="ekle-wrap d-flex justify-content-center align-items-center flex-column mt-2">
				<div class="bottom-price posrL d-flex flex-column justify-content-center align-items-center mb-2"><?php $product = wc_get_product($post_object->ID); echo number_format($product->get_price(), 2, ',', '.').get_woocommerce_currency_symbol(); ?></div>
				<?php do_action('woocommerce_after_shop_loop_item'); ?>
			</div>
		</div>
		</div>
	</div>
</div>
			<?php endforeach; ?>

		</div>

	</section>
	<?php
endif;

wp_reset_postdata();
stock.php000064400000001271151541622300006400 0ustar00<?php
/**
 * Single Product stock.
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/stock.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 13.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
block.json000064400000001150151545023260006531 0ustar00{
	"name": "woocommerce/single-product",
	"version": "1.0.0",
	"icon": "info",
	"title": "Single Product",
	"description": "Display a single product.",
	"category": "woocommerce",
	"keywords": [ "WooCommerce" ],
	"supports": {
		"align": [ "wide", "full" ]
	},
	"attributes": {
		"isPreview": {
		   "type": "boolean",
		   "default": false
		},
		"productId": {
		   "type": "number"
		}
	 },
	 "example": {
		"attributes": {
		  "isPreview": true
		}
	  },
	"usesContext": [ "postId", "postType", "queryId" ],
	"textdomain": "woocommerce",
	"apiVersion": 2,
	"$schema": "https://schemas.wp.org/trunk/block.json"
}