make default profile photo configurable - should be functional but needs admin ui

This commit is contained in:
friendica
2013-12-19 16:33:36 -08:00
parent f8042cc467
commit 7c81889b33
12 changed files with 31 additions and 120 deletions

View File

@@ -1109,3 +1109,24 @@ function get_theme_uid() {
}
return $uid;
}
/**
* @function get_default_profile_photo($size = 175)
* Retrieves the path of the default_profile_photo for this system
* with the specified size.
* @param int $size
* one of (175, 80, 48)
* @returns string
*
*/
function get_default_profile_photo($size = 175) {
$scheme = get_config('system','default_profile_photo');
if(! $scheme)
$scheme = 'rainbow_man';
return 'images/default_profile_photos/' . $scheme . '/' . $size . 'jpg';
}