{% macro cf_2fa_verify() %} {% if SITE == 'rdrama.net' %} {% elif SITE == 'watchpeopledie.tv' %} {% elif SITE == 'pcmemes.net' %} {% endif %} {% endmacro %} {% macro javascript() %} {% endmacro %} {% macro page_meta(title=none) %} {% if 'post/' in request.path and p %} {% if not v_forbid_deleted -%} {% set image = p.thumb_url if p.has_thumb %} {% set image = p.realurl(v) if p.is_image %} {% set video = p.realurl(v) if p.is_video %} {% set audio = p.realurl(v) if p.is_audio %} {% endif %} {% if comment_info and not comment_info.is_banned and not comment_info.deleted_utc %} {% set p, title = comment_info, ['@', comment_info.author_name, ' comments on ', '"', title, '"'] | join %} {% endif %} {% set author, description, a_author, published, modified, url = '@'+p.author_name, p.plainbody(v), '@'+p.author_name, p.created_datetime, p.edited_string, p.permalink %} {% elif '@' in request.path and u %} {% set author, a_author, published, url, title, image, section = '@'+u.username, '@'+u.username, u.created_date, u.url, u.username + "'s profile", u.banner_url, u.username + "'s profile" %} {% set description %} {{u.coins}} coins - Joined {{u.created_date}} - {%- if u.stored_subscriber_count >=1 and not u.is_private -%} {{u.stored_subscriber_count}} Followers - {%- endif -%} {%- if not u.is_private -%} {{0 if u.shadowbanned else u.post_count}} Posts - {{0 if u.shadowbanned else u.comment_count}} Comments {%- endif -%} {% if u.bio %} - {{u.bio}} {% endif %} {% endset %} {% elif sub %} {% set title, description = '/h/'+sub.name, sub.sidebar if sub.sidebar %} {% endif %} {% if not comment_info %} {% if video %}{% endif %} {% if audio %}{% endif %} {% endif %} {% endmacro %} {% macro stylesheets(include_user_css) %} {% if v %} {% if v.agendaposter %} {% endif %} {% if include_user_css %} {% if v.css and not request.path.startswith('/settings/css') %} {% endif %} {% if v.themecolor == '30409f' %} {% endif %} {% else %} {{default_theme()}} {% endif %} {% else %} {{default_theme()}} {% endif %} {% if sub and sub.css and not request.path.endswith('settings') and not request.values.get('nocss') %} {% endif %} {% if SITE_NAME == 'rDrama' %} {% endif %} {% if EVENT_STYLES %} {% endif %} {% if request.path == '/chat' %} {% if IS_LOCALHOST %} {% else %} {% endif %} {% endif %} {% endmacro %} {% macro stylesheets_lower() %} {% if SITE_NAME == 'rDrama' and (not v or v.is_banned or v.agendaposter) %} {% set background = 'glitter/1' %} {% elif v and v.background %} {% set background = v.background %} {% endif %} {% if background %} {% endif %} {% endmacro %} {% macro default_theme() %} {% endmacro %} {% macro seo() %} {% for size in ('320x480', '640x960', '640x1136', '750x1334', '768x1004', '828x1792', '1024x748', '1024x768', '1125x2436', '1242x2208', '1356x2048', '1668x2224', '1792x828', '2048x1496', '2048x2732', '2208x1242', '2224x1668', '2436x1125', '2668x1242', '2737x2048') %} {% endfor %} {% endmacro %}