Merge pull request #100 from cable6-dev/feature-hide-sage
Added an option to hide sages
This commit is contained in:
commit
d01d892896
@ -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;
|
||||
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user