在侧边栏数据中添加color字段
Code Review Ry Rock Zhang
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -168,6 +168,9 @@ class SideModel | @@ -168,6 +168,9 @@ class SideModel | ||
168 | $result['styleClass'] = strtolower($data['sort_name_en']); | 168 | $result['styleClass'] = strtolower($data['sort_name_en']); |
169 | $result['url'] = Helpers::getFilterUrl($data['sort_url']); | 169 | $result['url'] = Helpers::getFilterUrl($data['sort_url']); |
170 | $result['img'] = Helpers::getImageUrl($data['sort_ico'], 60, 60, 1); | 170 | $result['img'] = Helpers::getImageUrl($data['sort_ico'], 60, 60, 1); |
171 | + if (isset($data['sort_name_color'])) { | ||
172 | + $result['color'] = $data['sort_name_color']; | ||
173 | + } | ||
171 | 174 | ||
172 | return $result; | 175 | return $result; |
173 | } | 176 | } |
-
Please register or login to post a comment