forked from overhangio/tutor-indigo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.html
131 lines (124 loc) · 4.89 KB
/
footer.html
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<%page expression_filter="h"/>
<%!
from django.urls import reverse
from django.utils.translation import gettext as _
from lms.djangoapps.branding.api import get_footer
from openedx.core.djangoapps.lang_pref.api import footer_language_selector_is_enabled
%>
<% footer = get_footer(is_secure=is_secure) %>
<% icp_license_info = getattr(settings, 'ICP_LICENSE_INFO', {}) %>
<%namespace name='static' file='static_content.html'/>
<!-- NEW IN INDIGO update footer -->
% if uses_bootstrap:
<div class="wrapper wrapper-footer">
<footer id="footer" class="tutor-container"
% if bidi:
## When rendering the footer through the branding API,
## the direction may not be set on the parent element,
## so we set it here.
dir=${bidi}
% endif
>
<div class="footer-top">
<div class="powered-area">
% if not hide_openedx_link:
<!-- Please leave this link and use one of the logos provided -->
<!-- The OpenEdX link may be hidden when this view is served -->
<!-- through an API to partner sites (such as marketing sites or blogs), -->
<!-- which are not technically powered by OpenEdX. -->
<ul class="logo-list">
<li>Powered by:</li>
<li>
<a href="https://netizen.xecure.world" rel="noopener" target="_blank">
<img src="${static.url('images/tutor-logo.png')}" alt="Runs on Tutor" width="57" />
</a>
</li>
<li>
<a href="$https://xecureit.id" rel="noopener" target="_blank">
<img src="${static.url('images/openedx-logo.png')}" alt="xecureit" width="79" />
</a>
</li>
</ul>
% endif
</div>
<div class="colophon">
% if context.get('include_language_selector', footer_language_selector_is_enabled()):
<%include file="${static.get_template_path('widgets/footer-language-selector.html')}"/>
% endif
<!-- Site operators: Please do not remove this paragraph! -->
<!-- This attributes back to edX and makes your acknowledgment of edX's trademarks clear. -->
<p class="copyright">${footer['copyright']}
% if icp_license_info.get('icp_license'):
${u" | {text}".format(text=icp_license_info.get('text'))}
<a href="${icp_license_info.get('icp_license_link', '#')}">
${u" {icp}".format(icp=icp_license_info.get('icp_license'))}
</a>
% endif
</p>
</div>
</div>
</footer>
</div>
% else:
<!-- NEW IN INDIGO update footer -->
<div class="wrapper wrapper-footer">
<footer id="footer" class="tutor-container"
% if bidi:
## When rendering the footer through the branding API,
## the direction may not be set on the parent element,
## so we set it here.
dir=${bidi}
% endif
>
<div class="footer-top">
<div class="powered-area">
% if not hide_openedx_link:
<!-- Please leave this link and use one of the logos provided -->
<!-- The OpenEdX link may be hidden when this view is served -->
<!-- through an API to partner sites (such as marketing sites or blogs), -->
<!-- which are not technically powered by OpenEdX. -->
<ul class="logo-list">
<li>Powered by:</li>
<li>
<a href="https://netizen.xecure.world" rel="noopener" target="_blank">
<img src="${static.url('images/tutor-logo.png')}" alt="Runs on Tutor" width="57" />
</a>
</li>
<li>
<a href="${footer['openedx_link']['url']}" rel="noopener" target="_blank">
<img src="${static.url('images/openedx-logo.png')}" alt="xecureit" width="79" />
</a>
</li>
</ul>
% endif
</div>
<div class="colophon">
% if context.get('include_language_selector', footer_language_selector_is_enabled()):
<%include file="${static.get_template_path('widgets/footer-language-selector.html')}"/>
% endif
<!-- Site operators: Please do not remove this paragraph! -->
<!-- This attributes back to edX and makes your acknowledgment of edX's trademarks clear. -->
<p class="copyright">${footer['copyright']}
% if icp_license_info.get('icp_license'):
${u" | {text}".format(text=icp_license_info.get('text'))}
<a href="${icp_license_info.get('icp_license_link', '#')}">
${u" {icp}".format(icp=icp_license_info.get('icp_license'))}
</a>
% endif
</p>
</div>
</div>
</footer>
</div>
% endif
% if include_dependencies:
<%static:js group='base_vendor'/>
<%static:css group='style-vendor'/>
<%include file="widgets/segment-io.html" />
<%include file="widgets/segment-io-footer.html" />
% endif
% if footer_css_urls:
% for url in footer_css_urls:
<link rel="stylesheet" type="text/css" href="${url}"></link>
% endfor
% endif