diff --git a/src/footer.html b/src/footer.html index 0aa38ed5..947cbd0c 100644 --- a/src/footer.html +++ b/src/footer.html @@ -3,12 +3,12 @@ @@ -161,7 +161,7 @@

Comment Examples

$scope.main = {}; $scope.main.menuVisible = false; vm.isAuth = false; - + if (app.isLoggedIn()) { vm.isAuth = true; app.getHandle(function(handle) { @@ -182,7 +182,7 @@

Comment Examples

$('.profile-link').attr('href', '/members/' + handle); }); } - + vm.menuHeaders = [ 'compete', 'learn', 'community' ]; vm.menuLinks = { @@ -207,38 +207,38 @@

Comment Examples

{ 'href': '/blog/', 'text': 'BLOG', 'icon': '/mf/i/nav/blog.svg' } ] }; - + vm.userMenu = [ { 'href': '/my-dashboard', 'text': 'DASHBOARD', 'icon': '/mf/i/nav/dashboard.svg' }, { 'href': '/profile', 'text': 'MY PROFILE', 'icon': '/mf/i/nav/badge.svg', 'class': 'profile-link' }, { 'href': 'https:' + tcconfig.communityURL + '/PactsMemberServlet?module=PaymentHistory&full_list=false', 'text': 'PAYMENTS', 'icon': '/mf/i/nav/money-bag.svg', 'target': '_blank' }, { 'href': '/settings/profile', 'text': 'SETTINGS', 'icon': '/mf/i/nav/gear.svg' }, ]; - + vm.checkSubmit = function(ev) { if (ev.keyCode === 13) window.location.replace(tcconfig.mainURL + '/search?s=' + vm.searchTerm + '&scope=member'); } - + vm.isActive = function(href) { if (window.location.pathname == href) return true; return false; } - + vm.login = function() { window.location.href = "/login?next=" + encodeURIComponent(window.location.href); } - + vm.logout = function() { document.cookie = 'tcsso=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); - document.cookie = 'tcjwt=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); + document.cookie = 'tcjwt=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); main.menuVisible = vm.isAuth = false; } } }; }); - + angular.bootstrap($('.ng-header-bootstrap'), ['tc.header']); })(); diff --git a/wp/wp-content/themes/tcs-responsive/footer.php b/wp/wp-content/themes/tcs-responsive/footer.php index 0f219a45..7a236454 100644 --- a/wp/wp-content/themes/tcs-responsive/footer.php +++ b/wp/wp-content/themes/tcs-responsive/footer.php @@ -21,12 +21,12 @@ @@ -243,7 +243,7 @@ function _kms(u){ $scope.main = {}; $scope.main.menuVisible = false; vm.isAuth = false; - + if (app.isLoggedIn()) { vm.isAuth = true; app.getHandle(function(handle) { @@ -264,7 +264,7 @@ function _kms(u){ $('.profile-link').attr('href', '/members/' + handle); }); } - + vm.menuHeaders = [ 'compete', 'learn', 'community' ]; vm.menuLinks = { @@ -289,14 +289,14 @@ function _kms(u){ { 'href': '/blog/', 'text': 'BLOG', 'icon': '/mf/i/nav/blog.svg' } ] }; - + vm.userMenu = [ { 'href': '/my-dashboard', 'text': 'DASHBOARD', 'icon': '/mf/i/nav/dashboard.svg' }, { 'href': '/profile', 'text': 'MY PROFILE', 'icon': '/mf/i/nav/badge.svg', 'class': 'profile-link' }, { 'href': 'https:' + tcconfig.communityURL + '/PactsMemberServlet?module=PaymentHistory&full_list=false', 'text': 'PAYMENTS', 'icon': '/mf/i/nav/money-bag.svg', 'target': '_blank' }, { 'href': '/settings/profile', 'text': 'SETTINGS', 'icon': '/mf/i/nav/gear.svg' }, ]; - + vm.checkSubmit = function(ev) { if (ev.keyCode === 13) window.location.replace(tcconfig.mainURL + '/search?s=' + vm.searchTerm + '&scope=member'); @@ -311,16 +311,16 @@ function _kms(u){ vm.login = function() { window.location.href = "/login?next=" + encodeURIComponent(window.location.href); } - + vm.logout = function() { document.cookie = 'tcsso=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); - document.cookie = 'tcjwt=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); + document.cookie = 'tcjwt=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); main.menuVisible = vm.isAuth = false; } } }; }); - + angular.bootstrap($('.ng-header-bootstrap'), ['tc.header']); })();