Added many accesskeys ...
This commit is contained in:
		
					parent
					
						
							
								a8a21da6f5
							
						
					
				
			
			
				commit
				
					
						b4d09777b9
					
				
			
		
					 18 changed files with 80 additions and 42 deletions
				
			
		| 
						 | 
				
			
			@ -892,9 +892,9 @@ function item_photo_menu($item){
 | 
			
		|||
	foreach($menu as $k=>$v){
 | 
			
		||||
		if(strpos($v,'javascript:') === 0) {
 | 
			
		||||
			$v = substr($v,11);
 | 
			
		||||
			$o .= "<li><a href=\"#\" onclick=\"$v\">$k</a></li>\n";
 | 
			
		||||
			$o .= "<li role=\"menuitem\"><a href=\"#\" onclick=\"$v\">$k</a></li>\n";
 | 
			
		||||
		}
 | 
			
		||||
		elseif ($v!="") $o .= "<li><a href=\"$v\">$k</a></li>\n";
 | 
			
		||||
		elseif ($v!="") $o .= "<li role=\"menuitem\"><a href=\"$v\">$k</a></li>\n";
 | 
			
		||||
	}
 | 
			
		||||
	return $o;
 | 
			
		||||
}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -634,6 +634,7 @@ if(! function_exists('profile_tabs')){
 | 
			
		|||
				'sel' => ((!isset($tab)&&$a->argv[0]=='profile')?'active':''),
 | 
			
		||||
				'title' => t('Status Messages and Posts'),
 | 
			
		||||
				'id' => 'status-tab',
 | 
			
		||||
				'accesskey' => 'm',
 | 
			
		||||
			),
 | 
			
		||||
			array(
 | 
			
		||||
				'label' => t('Profile'),
 | 
			
		||||
| 
						 | 
				
			
			@ -641,6 +642,7 @@ if(! function_exists('profile_tabs')){
 | 
			
		|||
				'sel'	=> ((isset($tab) && $tab=='profile')?'active':''),
 | 
			
		||||
				'title' => t('Profile Details'),
 | 
			
		||||
				'id' => 'profile-tab',
 | 
			
		||||
				'accesskey' => 'r',
 | 
			
		||||
			),
 | 
			
		||||
			array(
 | 
			
		||||
				'label' => t('Photos'),
 | 
			
		||||
| 
						 | 
				
			
			@ -648,6 +650,7 @@ if(! function_exists('profile_tabs')){
 | 
			
		|||
				'sel'	=> ((!isset($tab)&&$a->argv[0]=='photos')?'active':''),
 | 
			
		||||
				'title' => t('Photo Albums'),
 | 
			
		||||
				'id' => 'photo-tab',
 | 
			
		||||
				'accesskey' => 'h',
 | 
			
		||||
			),
 | 
			
		||||
			array(
 | 
			
		||||
				'label' => t('Videos'),
 | 
			
		||||
| 
						 | 
				
			
			@ -655,6 +658,7 @@ if(! function_exists('profile_tabs')){
 | 
			
		|||
				'sel'	=> ((!isset($tab)&&$a->argv[0]=='videos')?'active':''),
 | 
			
		||||
				'title' => t('Videos'),
 | 
			
		||||
				'id' => 'video-tab',
 | 
			
		||||
				'accesskey' => 'v',
 | 
			
		||||
			),
 | 
			
		||||
		);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -665,6 +669,7 @@ if(! function_exists('profile_tabs')){
 | 
			
		|||
				'sel' 	=>((!isset($tab)&&$a->argv[0]=='events')?'active':''),
 | 
			
		||||
				'title' => t('Events and Calendar'),
 | 
			
		||||
				'id' => 'events-tab',
 | 
			
		||||
				'accesskey' => 'e',
 | 
			
		||||
			);
 | 
			
		||||
			$tabs[] = array(
 | 
			
		||||
				'label' => t('Personal Notes'),
 | 
			
		||||
| 
						 | 
				
			
			@ -672,6 +677,7 @@ if(! function_exists('profile_tabs')){
 | 
			
		|||
				'sel' 	=>((!isset($tab)&&$a->argv[0]=='notes')?'active':''),
 | 
			
		||||
				'title' => t('Only You Can See This'),
 | 
			
		||||
				'id' => 'notes-tab',
 | 
			
		||||
				'accesskey' => 't',
 | 
			
		||||
			);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue