mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -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">
|
data-thumbheight="48">
|
||||||
{% set advPhoto = '' %}
|
{% set advPhoto = '' %}
|
||||||
{% if count(adv.files) == 0 %}
|
{% if count(adv.files) == 0 %}
|
||||||
{% set advPhoto = img('visiosoft.module.advs::images/no-image.png').url %}
|
{% set advPhoto = img('visiosoft.theme.base::images/no-image.png').url %}
|
||||||
<a href="{{ image }}"><img src="{{ img('visiosoft.module.advs::images/no-image.png').url }}"></a>
|
<a href="{{ image }}"><img src="{{ img('visiosoft.theme.base::images/no-image.png').url }}"></a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% for image in adv.getViewPhotoUrl %}
|
{% for image in adv.getViewPhotoUrl %}
|
||||||
<a href="{{ image }}"><img src="{{ image }}"></a>
|
<a href="{{ image }}"><img src="{{ image }}"></a>
|
||||||
|
|||||||
@ -315,7 +315,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
public function AddAdsDefaultCoverImage($ad)
|
public function AddAdsDefaultCoverImage($ad)
|
||||||
{
|
{
|
||||||
if ($ad->cover_photo == null) {
|
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 {
|
} else {
|
||||||
$ad->cover_photo = url($ad->cover_photo);
|
$ad->cover_photo = url($ad->cover_photo);
|
||||||
}
|
}
|
||||||
@ -326,7 +326,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
{
|
{
|
||||||
$adv = $this->find($id);
|
$adv = $this->find($id);
|
||||||
if ($adv == null or $adv->cover_photo == null) {
|
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 {
|
} else {
|
||||||
$cover_photo = url($adv->cover_photo);
|
$cover_photo = url($adv->cover_photo);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Loading…
Reference in New Issue
Block a user