Skip to content

Commit

Permalink
Merge pull request openedx#321 from jauzzz/i18n
Browse files Browse the repository at this point in the history
Add baidu bridge
  • Loading branch information
liuxing3169 authored Mar 5, 2019
2 parents b364217 + 5a19bfc commit 4b4a61c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lms/envs/eliteu.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@

# App Version
MOBILE_APP_USER_AGENT_REGEXES = ENV_TOKENS.get('MOBILE_APP_USER_AGENT_REGEXES', None)

# Baidu Bridge
BAIDU_BRIDGE_URL = ENV_TOKENS.get('BAIDU_BRIDGE_URL', '')
10 changes: 10 additions & 0 deletions themes/normal-theme/lms/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<%
binding = remind_users_to_bind_phones(request)
%>

<div class="my-footer">
<div class="footer-content clearfix">
<div class="footer-app">
Expand Down Expand Up @@ -141,4 +142,13 @@ <h3>${_(u"Elite MBA")}</h3>
}
}
}
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "${settings.BAIDU_BRIDGE_URL}";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>

0 comments on commit 4b4a61c

Please sign in to comment.