mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge pull request #140 from openclassify/dia
#137 Show ad cover photo (cover photo included)
This commit is contained in:
commit
767dc128fe
@ -82,6 +82,9 @@ return [
|
|||||||
'finish_at' => [
|
'finish_at' => [
|
||||||
'name' => 'Finish At'
|
'name' => 'Finish At'
|
||||||
],
|
],
|
||||||
|
'cover_photo' => [
|
||||||
|
'name' => 'Cover Photo'
|
||||||
|
],
|
||||||
'favs_adv' => [
|
'favs_adv' => [
|
||||||
'name' => 'Fav Ads'
|
'name' => 'Fav Ads'
|
||||||
],
|
],
|
||||||
|
|||||||
@ -82,11 +82,11 @@ class AdvsController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$table->setColumns([
|
$table->setColumns([
|
||||||
'id' => [
|
'cover_photo' => [
|
||||||
'value' => function (EntryInterface $entry) {
|
'wrapper' => '<img width="64" src="{value.cover_photo}">',
|
||||||
return $entry->id;
|
'value' => ['cover_photo' => 'entry.cover_photo']
|
||||||
}
|
|
||||||
],
|
],
|
||||||
|
'entry.id',
|
||||||
'name' => [
|
'name' => [
|
||||||
'class' => 'advs-name',
|
'class' => 'advs-name',
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user