mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
set background color of category tag
This commit is contained in:
parent
b04b344507
commit
0094095ede
|
@ -3094,7 +3094,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
if($categories = $document->getCategories()) {
|
if($categories = $document->getCategories()) {
|
||||||
$content .= "<br />";
|
$content .= "<br />";
|
||||||
foreach($categories as $category)
|
foreach($categories as $category)
|
||||||
$content .= "<span class=\"badge bg-secondary\">".$category->getName()."</span> ";
|
$content .= "<span class=\"badge bg-secondary\"".($category->getColor() ? ' style="background-color: '.$category->getColor().' !important;"' : '').">".$category->getName()."</span> ";
|
||||||
}
|
}
|
||||||
if(!empty($extracontent['bottom_title']))
|
if(!empty($extracontent['bottom_title']))
|
||||||
$content .= $extracontent['bottom_title'];
|
$content .= $extracontent['bottom_title'];
|
||||||
|
|
|
@ -3039,7 +3039,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
if($categories = $document->getCategories()) {
|
if($categories = $document->getCategories()) {
|
||||||
$content .= "<br />";
|
$content .= "<br />";
|
||||||
foreach($categories as $category)
|
foreach($categories as $category)
|
||||||
$content .= "<span class=\"badge bg-secondary\"".($category->getColor() ? ' style="background-color: #'.$category->getColor().' !important;"' : '').">".$category->getName()."</span> ";
|
$content .= "<span class=\"badge bg-secondary\"".($category->getColor() ? ' style="background-color: '.$category->getColor().' !important;"' : '').">".$category->getName()."</span> ";
|
||||||
}
|
}
|
||||||
if(!empty($extracontent['bottom_title']))
|
if(!empty($extracontent['bottom_title']))
|
||||||
$content .= $extracontent['bottom_title'];
|
$content .= $extracontent['bottom_title'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user