{% if sub %}
{% set image=sub.sidebar_url %}
{% else %}
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=45' %}
{% endif %}
{% if request.path != '/sidebar' %}
{% if v and (v.is_banned or v.agendaposter) %}
{% elif not (sub and sub.name == 'chudrama' and v and not v.can_see_chudrama) %}
{% endif %}
{% endif %}