<?php 
    }
    ?>
					</ul>
				</div>							
			</div>
		</div>
		<?php 
    if ($show) {
        echo ob_get_clean();
    } else {
        ob_end_clean();
    }
    $shop = ThemexUser::getShop($post->post_author);
    if (!empty($shop)) {
        ThemexShop::refresh($shop);
        get_template_part('module', 'shop');
    }
    ThemexSidebar::renderSidebar('product');
    ?>
	</aside>
	<div class="item-full column eightcol last">
		<?php 
    do_action('woocommerce_single_product_summary');
    ?>
	</div>
	<div class="clear"></div>
	<?php 
    do_action('woocommerce_after_single_product_summary');
    ?>
	<meta itemprop="url" content="<?php 
Пример #2
0
<?php

ThemexShop::refresh($post->ID);
$owner = ThemexUser::getUser(ThemexShop::$data['author']);
?>
<div class="shop-preview">
	<div class="shop-images clearfix">
		<?php 
for ($index = 0; $index < 4; $index++) {
    ?>
		<div class="item-image">
			<div class="image-wrap">
				<?php 
    if (isset(ThemexShop::$data['products'][$index])) {
        ?>
				<a href="<?php 
        echo get_permalink(ThemexShop::$data['products'][$index]);
        ?>
" title="<?php 
        echo get_the_title(ThemexShop::$data['products'][$index]);
        ?>
">
					<?php 
        echo ThemexCore::getImage(ThemexShop::$data['products'][$index], 200, THEME_URI . 'images/product.png');
        ?>
				</a>
				<?php 
    } else {
        ?>
				<a href="<?php 
        the_permalink();
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('profile-earnings');
?>
	<?php 
if (ThemexCore::checkOption('shop_multiple') && ThemexCore::checkOption('shop_referrals')) {
    ?>
	<span class="secondary"><?php 
    _e('This page does not exist.', 'makery');
    ?>
</span>
	<?php 
} else {
    ThemexShop::refresh(ThemexUser::$data['current']['shop'], true);
    $withdrawals = ThemexShop::$data['withdrawals'];
    if (empty(ThemexUser::$data['current']['shop'])) {
        $withdrawals = ThemexShop::getWithdrawals(ThemexUser::$data['current']['ID']);
    }
    if (!empty($withdrawals)) {
        ?>
	<table class="profile-table">
		<thead>
			<tr>				
				<th><?php 
        _e('Date', 'makery');
        ?>
</th>
				<th><?php 
        _e('Method', 'makery');
Пример #4
0
<aside class="column fourcol last">	
	<?php 
ThemexShop::refresh(ThemexUser::$data['active']['shop'], true);
if (!ThemexCore::checkOption('shop_multiple') && ThemexShop::$data['status'] == 'publish') {
    get_template_part('module', 'shop');
}
if (!empty(ThemexShop::$data['reviews'])) {
    get_template_part('module', 'reviews');
}
if (!ThemexCore::checkOption('product_favorites')) {
    get_template_part('module', 'favorites');
}
if (ThemexUser::isProfile() && !ThemexCore::checkOption('shop_favorites')) {
    get_template_part('module', 'updates');
}
if (!ThemexCore::checkOption('shop_multiple') && ThemexShop::$data['status'] != 'publish') {
    get_template_part('module', 'shop');
}
ThemexSidebar::renderSidebar('profile');
?>
</aside>