change default avatars from config vars to theme files
darcs-hash:20080611190230-84dde-78ff0d6f6c370a33aabc4f0053651b6629f85499.gz
This commit is contained in:
		@@ -49,12 +49,7 @@ $config =
 | 
				
			|||||||
		'license' =>
 | 
							'license' =>
 | 
				
			||||||
		array('url' => 'http://creativecommons.org/licenses/by/3.0/',
 | 
							array('url' => 'http://creativecommons.org/licenses/by/3.0/',
 | 
				
			||||||
			  'title' => 'Creative Commons Attribution 3.0',
 | 
								  'title' => 'Creative Commons Attribution 3.0',
 | 
				
			||||||
			  'image' => 'http://i.creativecommons.org/l/by/3.0/88x31.png'),
 | 
								  'image' => 'http://i.creativecommons.org/l/by/3.0/88x31.png'));
 | 
				
			||||||
		'avatar' =>
 | 
					 | 
				
			||||||
		array('default' => 
 | 
					 | 
				
			||||||
			  array('profile' => 'theme/default/image/default-avatar-profile.png',
 | 
					 | 
				
			||||||
					'stream' => 'theme/default/image/default-avatar-stream.png',
 | 
					 | 
				
			||||||
					'mini' => 'theme/default/image/default-avatar-mini.png')));
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
$config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');
 | 
					$config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -456,9 +456,7 @@ function common_default_avatar($size) {
 | 
				
			|||||||
	static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile',
 | 
						static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile',
 | 
				
			||||||
							  AVATAR_STREAM_SIZE => 'stream',
 | 
												  AVATAR_STREAM_SIZE => 'stream',
 | 
				
			||||||
							  AVATAR_MINI_SIZE => 'mini');
 | 
												  AVATAR_MINI_SIZE => 'mini');
 | 
				
			||||||
	global $config;
 | 
						return theme_path('default-avatar-'.$sizenames[$size].'.png');
 | 
				
			||||||
 | 
					 | 
				
			||||||
	return common_path($config['avatar']['default'][$sizenames[$size]]);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function common_local_url($action, $args=NULL) {
 | 
					function common_local_url($action, $args=NULL) {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								theme/stoica/default-avatar-mini.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								theme/stoica/default-avatar-mini.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 646 B  | 
							
								
								
									
										
											BIN
										
									
								
								theme/stoica/default-avatar-profile.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								theme/stoica/default-avatar-profile.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								theme/stoica/default-avatar-stream.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								theme/stoica/default-avatar-stream.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.5 KiB  | 
		Reference in New Issue
	
	Block a user