Merge pull request #180 from openclassify/base-vedat

move no-image from adv module to base theme
This commit is contained in:
spektra2147 2019-12-19 12:05:52 +03:00 committed by GitHub
commit 1c9750e276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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