?> " alt="<?php echo $view['title']; ?> " border="0"></a> </div> <div class="taken location"> <?php $coordinates = null; if ($GLOBALS['midcom_config']['positioning_enable'] && class_exists('org_routamc_positioning_object') && $data['photo']->photographer) { $position_object = new org_routamc_positioning_object($data['photo']); $coordinates = $position_object->get_coordinates($data['photo']->photographer, $data['photo']->taken); } if ($coordinates && $coordinates['latitude'] && $coordinates['longitude']) { echo sprintf($data['l10n']->get('taken on %s in %s'), strftime('%d.%m.%Y %H:%M', $data['photo']->taken), org_routamc_positioning_utils::pretty_print_location($coordinates['latitude'], $coordinates['longitude'])); } else { echo sprintf('Otettu %s', strftime('%d.%m.%Y %H:%M', $data['photo']->taken)); } ?> </div> <?php if ($data['topic']->component == 'org.routamc.gallery') { if ($data['topic']->component == 'org.routamc.gallery') { $photostream_topic = midcom_helper_find_node_by_component('org.routamc.photostream'); if ($photostream_topic) { $photostream_prefix = $photostream_topic['18']; } } if (!isset($photostream_prefix)) { $photostream_prefix = str_replace($data['topic']->name . '/', '', $prefix);
function get_city_string() { return org_routamc_positioning_utils::pretty_print_location($this->latitude, $this->longitude); }