mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #1162 from openclassify/dia
#4418 [translation] Instruction is wrong
This commit is contained in:
commit
cc9f6c343b
@ -16,8 +16,4 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<span class="font-weight-light small text-black-50 {{ not setting_value('visiosoft.module.advs::show_input_flag') ? 'd-none' }}">
|
||||
***{{ trans('visiosoft.module.advs::field.select_lang_ads') }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
@ -555,4 +555,11 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
->where('slug', '!=', '')
|
||||
->orderBy('publish_at', 'desc');
|
||||
}
|
||||
|
||||
public function findByCFJSON($key, $value)
|
||||
{
|
||||
return $this->currentAds()
|
||||
->whereJsonContains('cf_json', [$key => $value])
|
||||
->first();
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,4 +56,6 @@ interface AdvRepositoryInterface extends EntryRepositoryInterface
|
||||
public function getUserAds($userID = null, $status = "approved");
|
||||
|
||||
public function currentAds();
|
||||
|
||||
public function findByCFJSON($key, $value);
|
||||
}
|
||||
|
||||
@ -17,6 +17,8 @@ return [
|
||||
|
||||
'name' => env('APP_NAME', 'My Application'),
|
||||
|
||||
'application_domain' => env('APPLICATION_DOMAIN', null),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Environment
|
||||
|
||||
Loading…
Reference in New Issue
Block a user