diff options
Diffstat (limited to 'views/default/output/location.php')
-rw-r--r-- | views/default/output/location.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/default/output/location.php b/views/default/output/location.php new file mode 100644 index 000000000..e3619d2e1 --- /dev/null +++ b/views/default/output/location.php @@ -0,0 +1,14 @@ +<?php +/** + * Display a location + * + * @uses $vars['entity'] The ElggEntity that has a location + * @uses $vars['value'] The location string if the entity is not passed + */ + +if (isset($vars['entity'])) { + $vars['value'] = $vars['entity']->location; + unset($vars['entity']); +} + +echo elgg_view('output/tag', $vars); |