mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
show store section for all users in the store
This commit is contained in:
parent
adb9c53c2d
commit
bbd8a718e3
@ -1,5 +1,9 @@
|
|||||||
{% if app.request.get('user') != null or app.request.get('user') != "" %}
|
{% if app.request.get('user') != null or app.request.get('user') != "" %}
|
||||||
{% set store = entries('store','store').where('user_id', user.id).first() %}
|
{% set store = entries('store','store').where('user_id', user.id).first() %}
|
||||||
|
{% if store is null %}
|
||||||
|
{% set user = entries('store','user').where('user_id', user.id).first() %}
|
||||||
|
{% set store = user.store %}
|
||||||
|
{% endif %}
|
||||||
{% if store is not null %}
|
{% if store is not null %}
|
||||||
{% if store.store_banner is null %}
|
{% if store.store_banner is null %}
|
||||||
{% set background_image = img('visiosoft.module.advs::images/user_section_back.png').url %}
|
{% set background_image = img('visiosoft.module.advs::images/user_section_back.png').url %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user