mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 01:24:05 +01:00
fix previous commit
This commit is contained in:
parent
14c499f9d1
commit
75cca1ffb2
@ -1074,7 +1074,7 @@
|
|||||||
$config['dir']['home'] = '';
|
$config['dir']['home'] = '';
|
||||||
|
|
||||||
// Location of a blank 1x1 gif file. Only used when country_flags_condensed is enabled
|
// Location of a blank 1x1 gif file. Only used when country_flags_condensed is enabled
|
||||||
$config['uri_blank'] = $config['root'] . 'static/blank.gif';
|
// $config['image_blank'] = 'static/blank.gif';
|
||||||
|
|
||||||
// Static images. These can be URLs OR base64 (data URI scheme). These are only used if
|
// Static images. These can be URLs OR base64 (data URI scheme). These are only used if
|
||||||
// $config['font_awesome'] is false (default).
|
// $config['font_awesome'] is false (default).
|
||||||
|
@ -168,6 +168,9 @@ function loadConfig() {
|
|||||||
if (!isset($config['dir']['static']))
|
if (!isset($config['dir']['static']))
|
||||||
$config['dir']['static'] = $config['root'] . 'static/';
|
$config['dir']['static'] = $config['root'] . 'static/';
|
||||||
|
|
||||||
|
if (!isset($config['image_blank']))
|
||||||
|
$config['image_blank'] = $config['dir']['static'] . 'blank.gif';
|
||||||
|
|
||||||
if (!isset($config['image_sticky']))
|
if (!isset($config['image_sticky']))
|
||||||
$config['image_sticky'] = $config['dir']['static'] . 'sticky.gif';
|
$config['image_sticky'] = $config['dir']['static'] . 'sticky.gif';
|
||||||
if (!isset($config['image_locked']))
|
if (!isset($config['image_locked']))
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
{% if config.display_flags and post.modifiers.flag %}
|
{% if config.display_flags and post.modifiers.flag %}
|
||||||
<img
|
<img
|
||||||
{% if config.country_flags_condensed %}
|
{% if config.country_flags_condensed %}
|
||||||
class="flag flag-{{ post.modifiers.flag }}" src="{{ config.uri_blank }}"
|
class="flag flag-{{ post.modifiers.flag }}" src="{{ config.image_blank }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -83,9 +83,19 @@
|
|||||||
[<a class="ip-link" style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
|
[<a class="ip-link" style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if config.display_flags and post.modifiers.flag %}
|
{% if config.display_flags and post.modifiers.flag %}
|
||||||
<img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
<img
|
||||||
style="{% if post.modifiers['flag style'] %}{{ post.modifiers['flag style'] }}{% else %}{{ config.flag_style }}{% endif %}"
|
{% if config.country_flags_condensed %}
|
||||||
{% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
|
class="flag flag-{{ post.modifiers.flag }}" src="{{ config.image_blank }}"
|
||||||
|
{% else %}
|
||||||
|
class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
||||||
|
{% endif %}
|
||||||
|
style="{% if post.modifiers['flag style'] %}
|
||||||
|
{{ post.modifiers['flag style'] }}
|
||||||
|
{% else %}
|
||||||
|
{{ config.flag_style }}
|
||||||
|
{% endif %}"
|
||||||
|
{% if post.modifiers['flag alt'] %} alt="{{ post.modifiers['flag alt'] | e('html_attr') }}"
|
||||||
|
title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user