make avatar bigger on single notice pages
This commit is contained in:
		
				
					committed by
					
						 Robin Millette
						Robin Millette
					
				
			
			
				
	
			
			
			
						parent
						
							488bf16bc8
						
					
				
				
					commit
					597245ffc3
				
			| @@ -274,14 +274,19 @@ class NoticeListItem extends Widget | |||||||
|  |  | ||||||
|     function showAvatar() |     function showAvatar() | ||||||
|     { |     { | ||||||
|         $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE); |         if ('shownotice' === $this->out->trimmed('action')) { | ||||||
|  |             $avatar_size = AVATAR_PROFILE_SIZE; | ||||||
|  |         } else { | ||||||
|  |             $avatar_size = AVATAR_STREAM_SIZE; | ||||||
|  |         } | ||||||
|  |         $avatar = $this->profile->getAvatar($avatar_size); | ||||||
|  |  | ||||||
|         $this->out->element('img', array('src' => ($avatar) ? |         $this->out->element('img', array('src' => ($avatar) ? | ||||||
|                                          common_avatar_display_url($avatar) : |                                          common_avatar_display_url($avatar) : | ||||||
|                                          common_default_avatar(AVATAR_STREAM_SIZE), |                                          common_default_avatar($avatar_size), | ||||||
|                                          'class' => 'avatar photo', |                                          'class' => 'avatar photo', | ||||||
|                                          'width' => AVATAR_STREAM_SIZE, |                                          'width' => $avatar_size, | ||||||
|                                          'height' => AVATAR_STREAM_SIZE, |                                          'height' => $avatar_size, | ||||||
|                                          'alt' => |                                          'alt' => | ||||||
|                                          ($this->profile->fullname) ? |                                          ($this->profile->fullname) ? | ||||||
|                                          $this->profile->fullname : |                                          $this->profile->fullname : | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user