mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #180 from openclassify/base-vedat
move no-image from adv module to base theme
This commit is contained in:
commit
1c9750e276
@ -7,8 +7,8 @@
|
||||
data-thumbheight="48">
|
||||
{% set advPhoto = '' %}
|
||||
{% if count(adv.files) == 0 %}
|
||||
{% set advPhoto = img('visiosoft.module.advs::images/no-image.png').url %}
|
||||
<a href="{{ image }}"><img src="{{ img('visiosoft.module.advs::images/no-image.png').url }}"></a>
|
||||
{% set advPhoto = img('visiosoft.theme.base::images/no-image.png').url %}
|
||||
<a href="{{ image }}"><img src="{{ img('visiosoft.theme.base::images/no-image.png').url }}"></a>
|
||||
{% else %}
|
||||
{% for image in adv.getViewPhotoUrl %}
|
||||
<a href="{{ image }}"><img src="{{ image }}"></a>
|
||||
|
||||
@ -315,7 +315,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
public function AddAdsDefaultCoverImage($ad)
|
||||
{
|
||||
if ($ad->cover_photo == null) {
|
||||
$ad->cover_photo = $this->dispatch(new MakeImageInstance('visiosoft.module.advs::images/no-image.png', 'img'))->url();
|
||||
$ad->cover_photo = $this->dispatch(new MakeImageInstance('visiosoft.theme.base::images/no-image.png', 'img'))->url();
|
||||
} else {
|
||||
$ad->cover_photo = url($ad->cover_photo);
|
||||
}
|
||||
@ -326,7 +326,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
{
|
||||
$adv = $this->find($id);
|
||||
if ($adv == null or $adv->cover_photo == null) {
|
||||
$cover_photo = $this->dispatch(new MakeImageInstance('visiosoft.module.advs::images/no-image.png', 'img'))->url();
|
||||
$cover_photo = $this->dispatch(new MakeImageInstance('visiosoft.theme.base::images/no-image.png', 'img'))->url();
|
||||
} else {
|
||||
$cover_photo = url($adv->cover_photo);
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Loading…
Reference in New Issue
Block a user