Oddly behaves plugin. On the main page, the image hit.png is loaded from the folder selected theme, and the rest of the folder from the default theme.
http://demo.getsimplethemes.ru/shop-ru/?...Cart-green
http://demo.getsimplethemes.ru/shop-ru/m...Cart-green
http://demo.getsimplethemes.ru/shop-ru/p...Cart-green
Code is the same everywhere.
http://demo.getsimplethemes.ru/shop-ru/?...Cart-green
http://demo.getsimplethemes.ru/shop-ru/m...Cart-green
http://demo.getsimplethemes.ru/shop-ru/p...Cart-green
Code is the same everywhere.
Code:
<img class="hit" src="<?php get_theme_url(); ?>/images/hit-<?php get_setting('site_settings','select_color'); ?>.png" alt="Хит продаж" />
Code:
<?php if ( return_page_slug() == 'index' ) { ?>
<div class="item excerpt">
<div class="thumbnail-cart-item thumbnail text-center">
<?php if (return_special_field('hit')=='on') { ?>
<img class="hit" src="<?php get_theme_url(); ?>/images/hit-<?php get_setting('site_settings','select_color'); ?>.png" alt="Хит продаж" />
<?php } ?>
<figure class="view view-tenth" itemscope itemtype="http://schema.org/ImageObject">
<?php get_special_field_image('image','' . return_special_field('title') . '', '480', '' . return_setting('shopping_cart','cart_height') . ''); ?>
<figcaption class="mask bg-color-second" itemprop="caption">
<a class="litebox info" data-litebox-group="group-your-gallery" data-litebox-text="<?php get_special_field('title','',false); ?>" href="<?php get_special_field('image','',false); ?>" itemprop="contentUrl"><i class="<?php get_setting('shopping_cart','search_class'); ?>"></i></a>
</figcaption>
</figure>
<h3 class="<?php if (return_setting('shopping_cart','cart_height_h3')) { ?>cart-title-height-2 <?php } ?>cart-title font-size-<?php get_setting('shopping_cart','cart_fontsizer'); ?>" itemprop="name"><a href="<?php get_special_field('link','',false); ?>"><?php get_special_field('shorter','',true); ?></a></h3>
<?php if (return_special_field('text')) { ?>
<p itemprop="cart-description"><?php get_special_field('text','',false); ?></p>
<?php } ?>
<?php if (return_special_field('discount')) { ?>
<p class="cart-price"><span class="title-price"><?php get_setting('shopping_cart','name_price'); ?></span><br><span class="strikeout"> <?php echo number_format(return_special_field('price','',false),0,'',' '); ?> <?php get_setting('shopping_cart','currency'); ?></span><br><span class="price"> <?php echo number_format((return_special_field('price','',false) - return_special_field('discount','',false)),0,'',' '); ?> <?php get_setting('shopping_cart','currency'); ?></span></p>
<p class="cart-discount"><?php get_setting('shopping_cart','name_discount'); ?><span><?php echo number_format(return_special_field('discount','',false),0,'',' '); ?> <?php get_setting('shopping_cart','currency'); ?></span></p>
<?php } else { ?>
<p class="cart-price"><span class="title-price"><?php get_setting('shopping_cart','name_price'); ?></span><span class="price"> <?php echo number_format(return_special_field('price','',false), 0,'', ' '); ?> <?php get_setting('shopping_cart','currency'); ?></span></p>
<?php } ?>
<?php if (return_setting('shopping_cart','use_cart_setting')) { ?>
<form action="<?php echo $_SERVER['REQUEST_URI']?>" method="POST" class="form-inline add-form">
<input type="hidden" name="id" value="<?php get_special_field('id','',false); ?>" />
<input type="hidden" name="link" value="<?php get_special_field('link','',false); ?>" />
<input type="hidden" name="name" value="<?php get_special_field('title','',false); ?>" />
<?php if (return_special_field('discount')){ ?>
<input type="hidden" name="price" value="<?php echo return_special_field('price','',false) - return_special_field('discount','',false)?>" />
<?php } else { ?>
<input type="hidden" name="price" value="<?php get_special_field('price','',false); ?>" />
<?php } ?>
<?php if (return_special_field('image')) { ?>
<input type="hidden" name="image" value="<?php get_special_field('image','',false); ?>" />
<?php } ?>
<?php if (return_setting('shopping_cart','use_cart_number')) { ?>
<div class="form-group">
<input class="form-control cart-number" type="number" min="1" max="50" name="quantity" value="1" />
</div>
<?php } else { ?>
<input type="hidden" name="quantity" value="1" />
<?php } ?>
<button class="btn btn-cart bg-color-first" type="submit" name="add_item" value="<?php get_setting('shopping_cart','add_cart'); ?>" title="<?php get_setting('shopping_cart','add_cart'); ?>"><i class="<?php get_setting('shopping_cart','font_class'); ?>"></i><span> <?php get_setting('shopping_cart','add_cart'); ?></span></button>
<?php if (return_setting('shopping_cart','use_cart_number')=='0') { ?>
<a class="btn btn-cart bg-color-first ml-5" href="<?php get_special_field('link','',false); ?>" title="<?php get_setting('shopping_cart','link_cart'); ?>"><i class="<?php get_setting('shopping_cart','link_class'); ?>"></i></a>
<?php } ?>
<a class="btn btn-cart bg-color-first ml-5" href="<?php get_site_url(); ?>basket/?cart=Y" title="<?php get_setting('shopping_cart','money_cart'); ?>"><i class="<?php get_setting('shopping_cart','money_class'); ?>"></i></a>
</form>
<?php } ?>
</div>
</div>
<?php } else { ?>
<div class="excerpt<?php if (returnPageField(return_page_slug(),'full')=='on') { ?> col-xs-6 col-sm-4 col-md-3<?php } else { ?> col-xs-6 col-sm-6 col-md-4<?php } ?>">
<div class="thumbnail-cart-item thumbnail text-center">
<?php if (return_special_field('hit')=='on') { ?>
<img class="hit" src="<?php get_theme_url(); ?>/images/hit-<?php get_setting('site_settings','select_color'); ?>.png" alt="Хит продаж" />
<?php } ?>
<figure class="view view-tenth" itemscope itemtype="http://schema.org/ImageObject">
<?php get_special_field_image('image','' . return_special_field('title') . '', '480', '' . return_setting('shopping_cart','cart_height') . ''); ?>
<figcaption class="mask bg-color-second" itemprop="caption">
<a class="litebox info" data-litebox-group="group-your-gallery" data-litebox-text="<?php get_special_field('title','',false); ?>" href="<?php get_special_field('image','',false); ?>" itemprop="contentUrl"><i class="<?php get_setting('shopping_cart','search_class'); ?>"></i></a>
</figcaption>
</figure>
<h3 class="<?php if (return_setting('shopping_cart','cart_height_h3')) { ?>cart-title-height-2 <?php } ?>cart-title font-size-<?php get_setting('shopping_cart','cart_fontsizer'); ?>" itemprop="name"><a href="<?php get_special_field('link','',false); ?>"><?php get_special_field('shorter','',true); ?></a></h3>
<?php if (return_special_field('text')) { ?>
<p itemprop="cart-description"><?php get_special_field('text','',false); ?></p>
<?php } ?>
<?php if (return_special_field('discount')) { ?>
<p class="cart-price"><span class="title-price"><?php get_setting('shopping_cart','name_price'); ?></span><br><span class="strikeout"> <?php echo number_format(return_special_field('price','',false),0,'',' '); ?> <?php get_setting('shopping_cart','currency'); ?></span><br><span class="price"> <?php echo number_format((return_special_field('price','',false) - return_special_field('discount','',false)),0,'',' '); ?> <?php get_setting('shopping_cart','currency'); ?></span></p>
<p class="cart-discount"><?php get_setting('shopping_cart','name_discount'); ?><span><?php echo number_format(return_special_field('discount','',false),0,'',' '); ?> <?php get_setting('shopping_cart','currency'); ?></span></p>
<?php } else { ?>
<p class="cart-price"><span class="title-price"><?php get_setting('shopping_cart','name_price'); ?></span><span class="price"> <?php echo number_format(return_special_field('price','',false),0,'',' '); ?> <?php get_setting('shopping_cart','currency'); ?></span></p>
<?php } ?>
<?php if (return_setting('shopping_cart','use_cart_setting')) { ?>
<form action="<?php echo $_SERVER['REQUEST_URI']?>" method="POST" class="form-inline add-form">
<input type="hidden" name="id" value="<?php get_special_field('id','',false); ?>" />
<input type="hidden" name="link" value="<?php get_special_field('link','',false); ?>" />
<input type="hidden" name="name" value="<?php get_special_field('title','',false); ?>" />
<?php if (return_special_field('discount')){ ?>
<input type="hidden" name="price" value="<?php echo return_special_field('price','',false) - return_special_field('discount','',false)?>" />
<?php } else { ?>
<input type="hidden" name="price" value="<?php get_special_field('price','',false); ?>" />
<?php } ?>
<?php if (return_special_field('image')) { ?>
<input type="hidden" name="image" value="<?php get_special_field('image','',false); ?>" />
<?php } ?>
<?php if (return_setting('shopping_cart','use_cart_number')) { ?>
<div class="form-group">
<input class="form-control cart-number" type="number" min="1" max="50" name="quantity" value="1" />
</div>
<?php } else { ?>
<input type="hidden" name="quantity" value="1" />
<?php } ?>
<button class="btn btn-cart bg-color-first" type="submit" name="add_item" value="<?php get_setting('shopping_cart','add_cart'); ?>" title="<?php get_setting('shopping_cart','add_cart'); ?>"><i class="<?php get_setting('shopping_cart','font_class'); ?>"></i><span> <?php get_setting('shopping_cart','add_cart'); ?></span></button>
<?php if (return_setting('shopping_cart','use_cart_number')=='0') { ?>
<a class="btn btn-cart bg-color-first ml-5" href="<?php get_special_field('link','',false); ?>" title="<?php get_setting('shopping_cart','link_cart'); ?>"><i class="<?php get_setting('shopping_cart','link_class'); ?>"></i></a>
<?php } ?>
<a class="btn btn-cart bg-color-first ml-5" href="<?php get_site_url(); ?>basket/?cart=Y" title="<?php get_setting('shopping_cart','money_cart'); ?>"><i class="<?php get_setting('shopping_cart','money_class'); ?>"></i></a>
</form>
<?php } ?>
</div>
</div>
<?php } ?>