Jump to content


Photo
- - - - -

Вывод названия цвета для jbcolors

рецепт jbcolor

1 reply to this topic

#1 isay777

isay777
  • JBZoo User (rus)
  • User rate: 113.4
  • posts: 1878
  • topics: 232

Posted 25 July 2014 - 11:25

Рецепт добавления названия цвета под самим цветом. 

 

Идем в файл jbuniversal/framework/helpers/jbhtml.php

 

строка 220 

$html[] = '<div ' . $this->_buildAttrs($divAttribs) . '></div>';

меняем на 

 $html[] = '<div ' . $this->_buildAttrs($divAttribs) . '></div>';
 $html[] = '<div class="tit">' . $key . '</div>';

Идем в ваш файл css или дописываем в jbzoo.css 

.jbzoo .jbcolor-label div.tit {color:#666; text-align:center}

Соответственно можно указать свой цвет и параметры. 

 

результат 

 

jym15xemy4zc.png

 


  • 3
ХОСТИНГ для сайтов jbzoo (все попугаи)

#2 LeMax

LeMax
  • JBZoo User (rus)
  • User rate: 8.6
  • posts: 308
  • topics: 27

Posted 25 February 2016 - 10:42

в версии 2.2.х

 

между строчек 425 - 426

$html[] = '<div ' . $this->_buildAttrs($attr) . '></div>';
$html[] = ($isFile ? '</div>' : '') . '</label>';

 

 

ставим строчку

$html[] = '<div class="tit">' . $value . '</div>';  

  • 2





Also tagged with one or more of these keywords: рецепт, jbcolor

Click to return to top of page in style!