fixed localisation link display
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -139,11 +139,11 @@ function materiobasetheme_lt_loggedinblock($variables){
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function materiobasetheme_links__locale_block(&$vars) {
 | 
			
		||||
  // global $language;
 | 
			
		||||
  global $language;
 | 
			
		||||
  foreach ($vars['links'] as $lang => $link) {
 | 
			
		||||
    // $vars['links'][$lang]['title'] = $lang;
 | 
			
		||||
    // if($lang == $language->language)
 | 
			
		||||
    //   unset($vars['link'][$lang]);
 | 
			
		||||
    $vars['links'][$lang]['title'] = $lang;
 | 
			
		||||
    if($lang == $language->language)
 | 
			
		||||
      unset($vars['link'][$lang]);
 | 
			
		||||
  }
 | 
			
		||||
  $content = theme_links($vars);
 | 
			
		||||
  return $content;
 | 
			
		||||
 
 | 
			
		||||
@@ -392,6 +392,16 @@ $headerouterheight:$headerheight+$headerpaddingtop+$headerpaddingbottom;
 | 
			
		||||
        &.active{display:none;}
 | 
			
		||||
      }
 | 
			
		||||
      .ie8 &{padding-top:5px;}
 | 
			
		||||
      ul{padding-top:0.155em;}
 | 
			
		||||
      li{
 | 
			
		||||
        font-size: 0.9em;
 | 
			
		||||
        padding:0.33em 0.35em 0.3em;
 | 
			
		||||
        @include rounded(3px);
 | 
			
		||||
        &, >*{color:#fff; text-transform: uppercase;}
 | 
			
		||||
        background-color: #808080;
 | 
			
		||||
        @include transition-simply-prefix(background-color 0.3s ease-out);
 | 
			
		||||
        &:hover{background-color: #1A1A1A;}
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // #block-menu-menu-about{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user