Jump to content


Photo
- - - - -

Небольшая правка teaser (2 цены рядом) ?


Best Answer ripcord , 05 April 2014 - 00:22

можно в конец jbzoo.css добавить

.jbzoo-item-teaser .jbprice-price
{
	float: left;
}
.jbzoo-item-teaser .jbprice-buttons
{
	position: absolute;
	margin-top: 45px;
}
.jbzoo-item-teaser .wrapper-jbcompare
{
	margin-top: 35px;
}
.jbzoo-item-teaser .jbprice-price:last-child
{
	padding: 3px;
}
.jbzoo-item-teaser .jbprice-price:last-child SPAN:before
{
	content: "(";
}
.jbzoo-item-teaser .jbprice-price:last-child SPAN:after
{
	content: ")";
}

станет так:

 

1396653607-9ed3816779074ed69d1d4cadc6191

 

Решение хорошо для Вашего текущего дизайна, если поменяете тему, может понадобиться подгонка.

Go to the full post


  • This topic is locked This topic is locked
6 replies to this topic

#1 Sport-man

Sport-man
  • JBZoo User (rus)
  • User rate: 0
  • posts: 137
  • topics: 31

Posted 04 April 2014 - 16:01

нужна помощь чтобы разметить 2 цены рядом (100 бел.руб. а в скобка (10$) )и убрать флажки 

 

http://prntscr.com/36x4ie


  • 0

#2 Sport-man

Sport-man
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 137
  • topics: 31

Posted 04 April 2014 - 19:41

какой файл править, какой стиль чтобы в тизере вторую цену поставить рядом? 

 

s14.png

 

вот мой теазер: 

<?php
/**
 * JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
 *
 * @package     jbzoo
 * @version     2.x Pro
 * @author      JBZoo App http://jbzoo.com
 * @copyright   Copyright (C) JBZoo.com,  All rights reserved.
 * @license     http://jbzoo.com/license-pro.php JBZoo Licence
 * @coder       Denis Smetannikov <denis@jbzoo.com>
 */

// no direct access
defined('_JEXEC') or die('Restricted access');


$align = $this->app->jbitem->getMediaAlign($item, $layout);
?>
<?php if ($this->checkPosition('title')) : ?>
    <h5 class="item-title"><?php echo $this->renderPosition('title'); ?></h5>
<?php endif; ?>
<?php echo $this->renderPosition('rating', array('style' => 'block')); ?>

<?php if ($this->checkPosition('image')) : ?>
    <div class="span3 item-image align-<?php echo $align; ?>">
        <?php echo $this->renderPosition('image'); ?>
    </div>
<?php endif; ?>

<div class="product-props">

    <p><i><?php echo $this->renderPosition('subtitle', array('style' => 'block')); ?></i></p>

    <?php if ($this->checkPosition('properties')) : ?>
        <ul style="font-size: 11px;">
            <?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
        </ul>
    <?php endif; ?>
    <?php if ($this->checkPosition('favourite')) : ?>
        <?php echo $this->renderPosition('favourite'); ?>
    <?php endif; ?>
</div>
<div class="clear clr"></div>

<div class="product-buttons span12 price-value-position">
    <?php echo $this->renderPosition('price-value'); ?> 
</div>

<?php if ($this->checkPosition('price')) : ?>
    <div class="product-buttons span12">
        <?php echo $this->renderPosition('price'); ?>
    </div>
<?php endif; ?>

<?php if ($this->checkPosition('links')) : ?>
    <div class="clear clr"></div>
    <?php echo $this->renderPosition('links', array('style' => 'pipe')); ?>
<?php endif; ?>

<div class="clear clr"></div>

s15.png

 

пробовал править класс  <div class="product-buttons span12"> ничего. что имено нужно изменить 

читал http://forum.jbzoo.c...h-ispolzovanie/  - не помогло 


Edited by Sport-man, 04 April 2014 - 21:41.

  • 0

#3 ripcord

ripcord
  • JBZoo User (rus)
  • User rate: 20.5
  • posts: 208
  • topics: 5

Posted 04 April 2014 - 22:07

Можете дать ссылку на ресурс?


  • 0
Абгемахт, славяне!

#4 Sport-man

Sport-man
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 137
  • topics: 31

Posted 04 April 2014 - 22:48

http://sportarena.by/index.php/catalog


  • 0

#5 ripcord

ripcord
  • JBZoo User (rus)
  • User rate: 20.5
  • posts: 208
  • topics: 5

Posted 05 April 2014 - 00:22   Best Answer

можно в конец jbzoo.css добавить

.jbzoo-item-teaser .jbprice-price
{
	float: left;
}
.jbzoo-item-teaser .jbprice-buttons
{
	position: absolute;
	margin-top: 45px;
}
.jbzoo-item-teaser .wrapper-jbcompare
{
	margin-top: 35px;
}
.jbzoo-item-teaser .jbprice-price:last-child
{
	padding: 3px;
}
.jbzoo-item-teaser .jbprice-price:last-child SPAN:before
{
	content: "(";
}
.jbzoo-item-teaser .jbprice-price:last-child SPAN:after
{
	content: ")";
}

станет так:

 

1396653607-9ed3816779074ed69d1d4cadc6191

 

Решение хорошо для Вашего текущего дизайна, если поменяете тему, может понадобиться подгонка.


  • 1
Абгемахт, славяне!

#6 Sport-man

Sport-man
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 137
  • topics: 31

Posted 05 April 2014 - 09:56

Огромное спасибо! только подправил  на padding: 1px; потому что в одну строчку не влезало! до такого класса я не видел ниразу .jbprice-price:last-child SPAN:before сам бы не допер!

 

Вот только сейчас мне нужно Full верстать, неужели такими же сложными класами, может как то div можно и новым, ручным-приземленным классом выводить


  • 0

#7 ripcord

ripcord
  • JBZoo User (rus)
  • User rate: 20.5
  • posts: 208
  • topics: 5

Posted 05 April 2014 - 10:10

На здоровье (-:

Опишите как бы Вам хотелось видеть Full, все решаемо


  • 0
Абгемахт, славяне!




Click to return to top of page in style!