From 0ad1c03997d43e2473039c3991e74bdd0ad9b5c1 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Fri, 16 Aug 2013 23:12:40 +1000 Subject: [PATCH] Optional "flag style" and "flag alt" modifiers --- inc/config.php | 6 +++--- templates/post_reply.html | 4 +++- templates/post_thread.html | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/inc/config.php b/inc/config.php index 5e215fca..f0e3ea9f 100644 --- a/inc/config.php +++ b/inc/config.php @@ -739,9 +739,9 @@ // Location of post flags/icons (where "%s" is the flag name). Defaults to static/flags/%s.png. // $config['uri_flags'] = 'http://static.example.org/flags/%s.png'; - // Width and height of post flags: - $config['flag_width'] = 16; - $config['flag_height'] = 11; + // Width and height (and more?) of post flags. Can be overridden with the Tinyboard post modifier: + // . + $config['flag_style'] = 'width:16px;height:11px;'; /* * ==================== diff --git a/templates/post_reply.html b/templates/post_reply.html index 3ae60b0d..635709bc 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -29,7 +29,9 @@ [{{ post.ip }}] {% endif %} {% if config.display_flags and post.modifiers.flag %} - + {% endif %} diff --git a/templates/post_thread.html b/templates/post_thread.html index f4ca7e72..4630eb40 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -83,7 +83,9 @@ [{{ post.ip }}] {% endif %} {% if config.display_flags and post.modifiers.flag %} - + {% endif %}