diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 8ddfcbf436..1eda19764f 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -241,6 +241,10 @@ aside .badge { opacity: 0.7; } +/* disabled elements */ +.community-content-wrapper > h3, .network-content-wrapper > .section-title-wrapper { + display:none; +} header #site-location { display: none; @@ -724,7 +728,20 @@ nav.navbar a { margin: 0; font-weight: 400 } - +#topbar-second #nav-short-info .heading { + margin-left: -14px; + overflow: hidden; + white-space: nowrap; + padding-right: 20px; + text-overflow: ellipsis; +} +#topbar-second #tabmenu .heading { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + color: $link_color; + text-align: center; +} /* Dropdown Menus */ .nav-pills .dropdown-menu, diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index f2537f4872..296c4667d3 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -179,6 +179,33 @@ $(document).ready(function(){ // there are two elements with this class but we don't want the js template $(".network-content-wrapper > #viewcontact_wrapper-network .contact-wrapper").first().appendTo("#nav-short-info"); } + + // move heading from network stream to the second navbar nav-short-info section + if( $(".network-content-wrapper > .section-title-wrapper").length) { + // get the heading element + var heading = $(".network-content-wrapper > .section-title-wrapper > h2"); + // get the text of the heading + var headingContent = heading.text(); + // create a new element with the content of the heading + var newText = '

'+headingContent+'

'; + // remove the old heading element + heading.remove(), + // put the new element to the second nav bar + $("#topbar-second #nav-short-info").append(newText); + } + + if( $(".community-content-wrapper").length) { + // get the heading element + var heading = $(".community-content-wrapper > h3").first(); + // get the text of the heading + var headingContent = heading.text(); + // create a new element with the content of the heading + var newText = '

'+headingContent+'

'; + // remove the old heading element + heading.remove(), + // put the new element to the second nav bar + $("#topbar-second > .container > #tabmenu").append(newText); + } }); //function commentOpenUI(obj, id) { // $(document).unbind( "click.commentOpen", handler );