aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-27 21:47:12 -0400
committercash <cash.costello@gmail.com>2011-10-27 21:47:12 -0400
commit5c0b61d35597677ddce30c99eccd765b8b9e1da1 (patch)
treedf275d04be46b88e7c6aa40b54d38c21f2b09035 /engine/lib/views.php
parentf126deebed40cf175a5b0ef2744737189429a5ca (diff)
downloadelgg-5c0b61d35597677ddce30c99eccd765b8b9e1da1.tar.gz
elgg-5c0b61d35597677ddce30c99eccd765b8b9e1da1.tar.bz2
Fixes #4011 icon sizes are configurable now
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r--engine/lib/views.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 070b59e37..e8cb20232 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1617,6 +1617,19 @@ function elgg_views_boot() {
elgg_register_viewtype($view);
}
}
+
+ // set default icon sizes - can be overridden in settings.php or with plugin
+ if (!elgg_get_config('icon_sizes')) {
+ $icon_sizes = array(
+ 'topbar' => array('w'=>16, 'h'=>16, 'square'=>TRUE, 'upscale'=>TRUE),
+ 'tiny' => array('w'=>25, 'h'=>25, 'square'=>TRUE, 'upscale'=>TRUE),
+ 'small' => array('w'=>40, 'h'=>40, 'square'=>TRUE, 'upscale'=>TRUE),
+ 'medium' => array('w'=>100, 'h'=>100, 'square'=>TRUE, 'upscale'=>TRUE),
+ 'large' => array('w'=>200, 'h'=>200, 'square'=>FALSE, 'upscale'=>FALSE),
+ 'master' => array('w'=>550, 'h'=>550, 'square'=>FALSE, 'upscale'=>FALSE),
+ );
+ elgg_set_config('icon_sizes', $icon_sizes);
+ }
}
elgg_register_event_handler('boot', 'system', 'elgg_views_boot', 1000);