?> </dd> <?php } ?> <?php if ($this->row->country) { ?> <dt class="venue_country"><?php echo JText::_('COM_REDEVENT_COUNTRY') . ':'; ?> </dt> <dd class="venue_country"> <?php echo redEVENTHelperCountries::getCountryFlag($this->row->country); ?> </dd> <?php } ?> </dl> <?php if ($this->row->locdescription) { ?> <h2 class="location_desc"><?php echo JText::_('COM_REDEVENT_DESCRIPTION'); ?> </h2> <div class="description location_desc">
function _getTag_venue_countryflag() { return redEVENTHelperCountries::getCountryFlag($this->getEvent()->getData()->country); }
<?php case 'country': ?> <td class="re_country"><?php echo $row->country ? redEVENTHelperCountries::getShortCountryName($row->country) : ''; ?> </td> <?php break; ?> <?php case 'countryflag': ?> <td class="re_countryflag"><?php echo $row->country ? redEVENTHelperCountries::getCountryFlag($row->country) : ''; ?> </td> <?php break; ?> <?php case 'state': ?> <td class="re_state"><?php echo $row->state ? $this->escape($row->state) : '-'; ?> </td> <?php break;
/** * get venues countries * @return array */ function getCountries() { $venues = $this->getData(); $countries = array(); foreach ((array) $venues as $v) { $countries[] = $v->country; } if (!count($countries)) { return array(); } $countries = array_unique($countries); $countrycoords = redEVENTHelperCountries::getCountrycoordArray(); $res = array(); foreach ($countries as $c) { $country = new stdclass(); $country->name = redEVENTHelperCountries::getCountryName($c); $country->flag = redEVENTHelperCountries::getCountryFlag($c); $country->flagurl = redEVENTHelperCountries::getIsoFlag($c); $country->latitude = redEVENTHelperCountries::getLatitude($c); $country->longitude = redEVENTHelperCountries::getLongitude($c); $res[] = $country; } return $res; }