Skip to content

Commit

Permalink
Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Serov-RA committed Oct 31, 2019
1 parent cd8f4c9 commit 2309bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/manage/views/market/labels/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
'attribute' => 'label',
'content' => function($data) {
return '<span style="display: inline-block; padding: 2px 15px; color: '.$data->font_color.'; background: '.$data->bg_color.'">'
.($data->status == $data::STATUS_ACTIVE && ($data->link || $data->widget) ? Html::a(Html::encode($data->label), $data->link ? $data->link : '/shop/search?tag='.$data->widget, ['target' => '_blank']) : Html::encode($data->label))
.($data->status == $data::STATUS_ACTIVE && ($data->link || $data->widget) ? Html::a(Html::encode($data->label), $data->link ? $data->link : '/shop/'.$data->widget, ['target' => '_blank']) : Html::encode($data->label))
.'</span>';
}
],
Expand Down

0 comments on commit 2309bc9

Please sign in to comment.