Post by Brian on May 21, 2015 20:23:09 GMT 1
Structure > Headers & Footers > Global Header
<script type="text/javascript">
// Non-condensed Navigation Tree
$(document).ready(function(){
if($('#nav-tree-branch-1 > div > a > span').html() == "... "){
$('#nav-tree-branch-1 > div > a > span').html($('#nav-tree-branch-1 > div > a').attr('title'));
$('#nav-tree-branch-1 > div > a').removeAttr('title');
} else if(!$('#nav-tree-branch-1 > div > a > span').length){
$('.popup_html > #nav-tree-menu-0').find('.state-selected').each(function(i){
if(pb.data('route').name == "board")
var l = 3;
else
var l = 2;
if(i+l <= $('.popup_html > #nav-tree-menu-0').find('.state-selected').length)
$('#nav-tree-branch-1').before('<li class="nav-tree-branch ui-helper-clearfix"><div itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope"><a itemprop="url" href="'+$(this).find('a').first().attr('href')+'"><span itemprop="title">'+$(this).find('a').first().html()+'</span></a></div><span class="menu_arrow"><span></span></span></li>');
});
$('#nav-tree-branch-1').hide();
}
if($('.container.posts').length){
if($('#nav-tree-branch-1 > div > a > span').html() != pb.data('page').category.name)
$('#nav-tree-branch-1').before('<li class="nav-tree-branch ui-helper-clearfix"><div itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope"><a itemprop="url" href="'+$('.popup_html > #nav-tree-menu-0').find('.state-selected').find('a').first().attr('href')+'"><span itemprop="title">'+$('.popup_html > #nav-tree-menu-0').find('.state-selected').find('a').first().html()+'</span></a></div><span class="menu_arrow"><span></span></span></li>');
}
});
</script>
// Non-condensed Navigation Tree
$(document).ready(function(){
if($('#nav-tree-branch-1 > div > a > span').html() == "... "){
$('#nav-tree-branch-1 > div > a > span').html($('#nav-tree-branch-1 > div > a').attr('title'));
$('#nav-tree-branch-1 > div > a').removeAttr('title');
} else if(!$('#nav-tree-branch-1 > div > a > span').length){
$('.popup_html > #nav-tree-menu-0').find('.state-selected').each(function(i){
if(pb.data('route').name == "board")
var l = 3;
else
var l = 2;
if(i+l <= $('.popup_html > #nav-tree-menu-0').find('.state-selected').length)
$('#nav-tree-branch-1').before('<li class="nav-tree-branch ui-helper-clearfix"><div itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope"><a itemprop="url" href="'+$(this).find('a').first().attr('href')+'"><span itemprop="title">'+$(this).find('a').first().html()+'</span></a></div><span class="menu_arrow"><span></span></span></li>');
});
$('#nav-tree-branch-1').hide();
}
if($('.container.posts').length){
if($('#nav-tree-branch-1 > div > a > span').html() != pb.data('page').category.name)
$('#nav-tree-branch-1').before('<li class="nav-tree-branch ui-helper-clearfix"><div itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope"><a itemprop="url" href="'+$('.popup_html > #nav-tree-menu-0').find('.state-selected').find('a').first().attr('href')+'"><span itemprop="title">'+$('.popup_html > #nav-tree-menu-0').find('.state-selected').find('a').first().html()+'</span></a></div><span class="menu_arrow"><span></span></span></li>');
}
});
</script>