mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
#587 [sahibinden-module] Getting custom fields dynamically
This commit is contained in:
parent
e61a85733e
commit
08a4f35223
@ -86,6 +86,8 @@ class AdvsController extends AdminController
|
|||||||
'wrapper' => function (EntryInterface $entry, Request $request) {
|
'wrapper' => function (EntryInterface $entry, Request $request) {
|
||||||
if (strpos($entry->cover_photo, 'http') === 0) {
|
if (strpos($entry->cover_photo, 'http') === 0) {
|
||||||
$wrapper = '<img width="64" src="'.$entry->cover_photo.'">';
|
$wrapper = '<img width="64" src="'.$entry->cover_photo.'">';
|
||||||
|
} else if (is_null($entry->cover_photo)) {
|
||||||
|
$wrapper = '<img width="64" src="{{ img(\'visiosoft.theme.base::images/no-image.png\').url }}">';
|
||||||
} else {
|
} else {
|
||||||
$wrapper = '<img width="64" src="'.$request->root().'/'.$entry->cover_photo.'">';
|
$wrapper = '<img width="64" src="'.$request->root().'/'.$entry->cover_photo.'">';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user