render searchbox relate icon css

This commit is contained in:
xiaomlove
2021-05-28 02:25:08 +08:00
parent 4cde957edb
commit 685a427c13
6 changed files with 38 additions and 10 deletions

View File

@@ -2254,6 +2254,7 @@ function stdhead($title = "", $msgalert = true, $script = "", $place = "")
global $tstart;
global $Cache;
global $Advertisement;
global $browsecatmode;
$Cache->setLanguage($CURLANGDIR);
@@ -2322,10 +2323,13 @@ $cssupdatedate=($cssupdatedate ? "?".htmlspecialchars($cssupdatedate) : "");
<link rel="stylesheet" href="styles/curtain_imageresizer.css<?php echo $cssupdatedate?>" type="text/css" />
<?php
if ($CURUSER){
$caticonrow = get_category_icon_row($CURUSER['caticon']);
if($caticonrow['cssfile']){
// $caticonrow = get_category_icon_row($CURUSER['caticon']);
// if($caticonrow['cssfile']){
$icons = (new \App\Repositories\SearchBoxRepository())->listIcon($browsecatmode);
foreach ($icons as $icon) {
?>
<link rel="stylesheet" href="<?php echo htmlspecialchars($caticonrow['cssfile']).$cssupdatedate?>" type="text/css" />
<link rel="stylesheet" href="<?php echo htmlspecialchars(trim($icon['cssfile'], '/')).$cssupdatedate?>" type="text/css" />
<?php
}
}