diff options
| author | kaf <admin@cable6.net> | 2014-10-01 10:40:51 +0000 |
|---|---|---|
| committer | kaf <admin@cable6.net> | 2014-10-05 15:29:37 +0000 |
| commit | 296e4fd5fa2510623a9680df4fa37ddf0bd6485a (patch) | |
| tree | cbc83e3ccfb3326cb1bb77f521f5fbe69f645350 | |
| parent | cb7b7d070cad4286c998579d4cd263b9979535ef (diff) | |
Added an option to hide sages
| -rw-r--r-- | inc/config.php | 3 | ||||
| -rw-r--r-- | templates/post/name.html | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index e2cc2ebd..93fc7687 100644 --- a/inc/config.php +++ b/inc/config.php @@ -529,6 +529,9 @@ // When true, users are instead presented a selectbox for email. Contains, blank, noko and sage. $config['field_email_selectbox'] = false; + // When true, the sage won't be displayed + $config['hide_sage'] = false; + // Attach country flags to posts. $config['country_flags'] = false; diff --git a/templates/post/name.html b/templates/post/name.html index 009b234d..13c676c7 100644 --- a/templates/post/name.html +++ b/templates/post/name.html @@ -1,5 +1,5 @@ {% set capcode = post.capcode|capcode %} -{% if post.email|length > 0 %} +{% if post.email|length > 0 and (config.hide_sage!=true or post.email!='sage') %} {# start email #} <a class="email" href="mailto:{{ post.email }}"> {% endif %} |
