sitemap을 위하여 메뉴를 php에서 직접 출력하도록 변경

This commit is contained in:
2018-09-12 00:12:32 +09:00
parent 26f3f320b8
commit 0ac08df532
8 changed files with 36 additions and 31 deletions
-15
View File
@@ -1,15 +0,0 @@
jQuery(function($){
$.each(window.sammo_menu, function(idx){
var href = this[0];
var name = this[1];
var target = (this.length > 2)?this[2]:null;
var $a = $('<a class="nav-link" href="{0}">{1}</a>'.format(href, name));
if(target){
$a.attr('target', target);
}
var $li = $('<li class="nav-item"></li>').append($a);
$('#navbarNav .navbar-nav').append($li);
console.log(this);
});
});