aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-19 16:33:36 -0800
committerfriendica <info@friendica.com>2013-12-19 16:33:36 -0800
commit7c81889b3397f09dfba4f17bba99f6d1dad9d0b2 (patch)
tree9f8b091fcc204f8bbb5036ffbc1eca82c51f07d3 /include/identity.php
parentf8042cc4677227aca8999c875c4f6d4c7acef96c (diff)
downloadvolse-hubzilla-7c81889b3397f09dfba4f17bba99f6d1dad9d0b2.tar.gz
volse-hubzilla-7c81889b3397f09dfba4f17bba99f6d1dad9d0b2.tar.bz2
volse-hubzilla-7c81889b3397f09dfba4f17bba99f6d1dad9d0b2.zip
make default profile photo configurable - should be functional but needs admin ui
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 6bbf193c1..4d38b2828 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -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';
+}
+
+
+
+ \ No newline at end of file