-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocumentation-single.html
More file actions
104 lines (82 loc) · 4.44 KB
/
documentation-single.html
File metadata and controls
104 lines (82 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
layout: default
---
{% include home-header.html %}
<div class="single-column">
<div class="maincontent">
<div class="row" style="position: relative;">
<div class="col-xs-12 col-sm-6 col-lg-3 has-bg" id="aside-block">
<div class="wrapper-aside-menu">
<h3 class="menu-header" id="aside-heading">
Products & Docs
<span class="expanded" id="side-menu-btn"></span>
</h3>
{% include pd-side-menu.html %}
</div>
</div>
<div class="col-xs-12 col-sm-12 col-lg-9 page-column " id="main-block">
<div class="content {% if page.categories[1] == 'sdks'%}sdks{% elsif page.categories[1] == 'getting-started' %}getting-started{% endif %}{% if page.categories[2] == 'widget-wordpress'%} widget-wordpress-page{% endif %}" style="display: block;">
{{ content }}
{% if page.categories[1] == 'changelog'%}
{% assign files = site.pages | sort: 'title' , 'last' %}
{% for file in files %}
{% if file.categories[2] == 'releaseNotes'%}
<div class="changelog-section">
{% if thisCategory == file.categories[3]%}{%else%}
<h2 id="{{ file.title | lstrip | downcase | replace: ' ' , '-' | replace: '(' , '-' | replace: ')' , '-' }}">{{ file.title }}</h2>
{%endif%}
<h4>{{ file.release_date | date_to_long_string }}</h4>{{ file.content | markdownify}}</div>
{%assign thisCategory = file.categories[3]%}
{% endif %}
{% endfor %}
{% endif %}
<div class="side-box"></div>
{% if page.categories[1] == 'changelog' or page.categories[1] == 'getting-started' %}
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
if (window.location.hostname != 'developer.ticketmaster.com') {
var pageURL = window.location.href.replace(window.location.host, 'developer.ticketmaster.com');
this.page.url = pageURL || "http://developer.ticketmaster.com/";
}
else this.page.url = document.URL || "http://developer.ticketmaster.com/";
this.page.identifier = "{{page.title}}";
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//ticketmasterapi.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% include home-footer.html %}
<script src="{{"/scripts/vendors/user-scroll-disabler.js" | prepend: site.baseurl }}"></script>
<script src="{{"/scripts/components/pd-side-menu.js" | prepend: site.baseurl }}"></script>
<script src="{{"/scripts/components/menu-highlight.js" | prepend: site.baseurl }}"></script>
{% if page.categories[0] == "documentation" and page.categories[1] == "changelog" %}
<script src="{{"/scripts/vendors/jstree.min.js" | prepend: site.baseurl }}"></script>
<script src="{{"/scripts/components/list-collapse.js" | prepend: site.baseurl }}"></script>
{% endif %}
{% if page.categories contains "replace_apikey" %}
<script src="{{site.baseurl }}/scripts/components/api-key-service.js"></script>
<script>
var userKey = apiKeyService.checkApiKeyCookie();
function replaceText(selector, text, newText, flags) {
var matcher = new RegExp(text, flags);
$(selector).each(function () {
var $this = $(this);
if (!$this.children().length)
$this.text($this.text().replace(matcher, newText));
});
}
if(userKey) {
replaceText('*', '\{apikey\}', "apikey=" + userKey, 'g');
}
</script>
{% endif %}