Skip to content

Commit 57b1b71

Browse files
authored
Merge pull request #103 from telerik/stoskov/hide-contact-support
Add option to hide support section
2 parents 1993843 + 089e58f commit 57b1b71

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

_layouts/api-index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ <h1>{{ page.title }}</h1>
115115
{% include related-articles.html %}
116116

117117
<div class="support-info-area">
118+
{% unless site.hide_contact_support == true %}
118119
<span class="additional-info-content">Not finding the help you need?</span>
119120
<div>
120121
{% if site.contact_support_url %}
@@ -123,6 +124,7 @@ <h1>{{ page.title }}</h1>
123124
<a class="btn btn-action" href='https://www.telerik.com/account/support-tickets?pid={{ site.data.support_products[site.product] }}' target="_blank" onclick="trackItemFromCurrentPage('docs-contact-support', '{{ site.product }}')">Contact support</a>
124125
{% endif %}
125126
</div>
127+
{% endunless %}
126128
{% if site.edit_repo_url and page.is_search_page != true and page.editable != false %}
127129
<a class="btn-edit-article" href="{{ site.edit_repo_url }}/{{ page.parent_path | replace: '.html','' }}.md" target="_blank">Improve this article</a>
128130
{% endif %}

_layouts/documentation.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ <h1>{{ page.title }}</h1>
101101
{% include related-articles.html %}
102102

103103
<div class="support-info-area">
104+
{% unless site.hide_contact_support == true %}
104105
<span class="additional-info-content">Not finding the help you need?</span>
105106
<div>
106107
{% if site.contact_support_url %}
@@ -109,6 +110,7 @@ <h1>{{ page.title }}</h1>
109110
<a class="btn btn-action" href='https://www.telerik.com/account/support-tickets?pid={{ site.data.support_products[site.product] }}' target="_blank" onclick="trackItemFromCurrentPage('docs-contact-support', '{{ site.product }}')">Contact support</a>
110111
{% endif %}
111112
</div>
113+
{% endunless %}
112114
{% if site.edit_repo_url and page.is_search_page != true and page.editable != false %}
113115
<a class="btn-edit-article" href="{{ site.edit_repo_url }}/{{ page.path | replace: '.md','' }}.md" target="_blank">Improve this article</a>
114116
{% endif %}

0 commit comments

Comments
 (0)