summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-02-24 00:06:01 +0100
committerczaks <marcin@6irc.net>2014-02-24 00:06:01 +0100
commit14c499f9d114d924ffa5564f732db66516480f1e (patch)
tree93678845503ab26bac4caade8678f556639a2495 /templates
parentd274180f81d50fbb378ada700b1814d6ed163ed6 (diff)
Condense flags into one file. Heads-up for people having custom flags, disable $config['country_flags_condensed'] !!!
Diffstat (limited to 'templates')
-rw-r--r--templates/header.html3
-rw-r--r--templates/post_reply.html16
2 files changed, 15 insertions, 4 deletions
diff --git a/templates/header.html b/templates/header.html
index c4861d98..dd15eeb8 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -4,7 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
{% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %}
{% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %}
- {% if config.font_awesome %}<link rel="stylesheet" media="screen" href="{{ config.root }}{{ config.font_awesome_css }}">{% endif %}
+ {% if config.font_awesome %}<link rel="stylesheet" href="{{ config.root }}{{ config.font_awesome_css }}">{% endif %}
+ {% if config.country_flags_condensed %}<link rel="stylesheet" href="{{ config.root }}{{ config.country_flags_condensed_css }}">{% endif %}
<script type="text/javascript">
var configRoot="{{ config.root }}";
var inMod = {% if mod %}true{% else %}false{% endif %};
diff --git a/templates/post_reply.html b/templates/post_reply.html
index 4fe98ded..fb240511 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -29,9 +29,19 @@
[<a class="ip-link" style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
{% endif %}
{% if config.display_flags and post.modifiers.flag %}
- <img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
- 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 %}>
+ <img
+ {% if config.country_flags_condensed %}
+ class="flag flag-{{ post.modifiers.flag }}" src="{{ config.uri_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 %}
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
</label>