File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/woocommerce.php.tar
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/woocommerce/woocommerce.php 0000644 00000003467 15153425534 0026062 0 ustar 00 <?php
/**
* Plugin Name: WooCommerce
* Plugin URI: https://woocommerce.com/
* Description: An eCommerce toolkit that helps you sell anything. Beautifully.
* Version: 118.2.0
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woocommerce
* Domain Path: /i18n/languages/
* Requires at least: 6.2
* Requires PHP: 7.4
*
* @package WooCommerce
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'WC_PLUGIN_FILE' ) ) {
define( 'WC_PLUGIN_FILE', __FILE__ );
}
// Load core packages and the autoloader.
require __DIR__ . '/src/Autoloader.php';
require __DIR__ . '/src/Packages.php';
if ( ! \Automattic\WooCommerce\Autoloader::init() ) {
return;
}
\Automattic\WooCommerce\Packages::init();
// Include the main WooCommerce class.
if ( ! class_exists( 'WooCommerce', false ) ) {
include_once dirname( WC_PLUGIN_FILE ) . '/includes/class-woocommerce.php';
}
// Initialize dependency injection.
$GLOBALS['wc_container'] = new Automattic\WooCommerce\Container();
/**
* Returns the main instance of WC.
*
* @since 2.1
* @return WooCommerce
*/
function WC() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
return WooCommerce::instance();
}
/**
* Returns the WooCommerce object container.
* Code in the `includes` directory should use the container to get instances of classes in the `src` directory.
*
* @since 4.4.0
* @return \Automattic\WooCommerce\Container The WooCommerce object container.
*/
function wc_get_container() {
return $GLOBALS['wc_container'];
}
// Global for backwards compatibility.
$GLOBALS['woocommerce'] = WC();
// Jetpack's Rest_Authentication needs to be initialized even before plugins_loaded.
if ( class_exists( \Automattic\Jetpack\Connection\Rest_Authentication::class ) ) {
\Automattic\Jetpack\Connection\Rest_Authentication::init();
}
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/themes/vadimarketv4/woocommerce.php 0000644 00000004063 15153567734 0025752 0 ustar 00 <?php
get_header();
if(is_product_category() ) {
$bg = ' class="bg2"';
} else {
$bg = '';
}
?>
<div id="woopage"<?php echo $bg; ?>>
<?php
if(is_singular('product')) {
$bitis_zamani = get_post_meta( wc_get_product()->id, '_sale_price_dates_to', true );
if($bitis_zamani != '') {
$suanki_tarih = current_time( 'Y-m-d H:i:s', false );
$suanki_zaman = strtotime( $suanki_tarih );
$zaman_farki = ( $bitis_zamani - $suanki_zaman );
?>
<div class="indirim-geri-sayim-single py-3 py-sm-3 mb-0 mb-md-3 mb-lg-0">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-between">
<div class="col-sm-3 col-md-3 col-lg-3 col-xl-3 col-12">
<div class="sh2"><?php echo __('Bu Fırsat Kaçmaz','temavadisi'); ?></div>
</div>
<div class="indirim-wrap d-flex justify-content-end">
<div class="sh2 align-items-center"><?php echo __('Kalan Süre','temavadisi'); ?></div>
<div class="geri-sayim-single pr-0 col-sm-9 col-md-9 col-lg-9 col-xl-9 col-12">
<?php if( $zaman_farki > 0 ) : ?>
<span class="indirim-zaman-farki" style="display:none;"><?php echo apply_filters( 'tv_indirim_gerisayim_zaman_farki', $zaman_farki ); ?></span>
<div class="geri-sayim gerisay"></div>
<?php else: ?>
<div class="geri-sayim-bitti">
<?php echo __('Süre Sona Erdi', 'temavadisi'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php } } ?>
<div class="woo_navi">
<div class="container">
<?php woocommerce_breadcrumb(); ?>
</div>
</div>
<div class="woo_content mt30">
<div class="container">
<div class="row">
<?php
if ( is_shop() || is_product_tag() || is_product_category() ) {
get_sidebar('wc');
}
?>
<?php if(is_shop() || is_product_tag() || is_product_category()) { ?>
<div class="wcpage col-lg-9">
<?php } else { ?>
<div class="wcpage col-lg-12">
<?php
}
if(have_posts()):
woocommerce_content();
endif;
?>
</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<?php get_footer(); ?>