本文整理汇总了PHP中Countries::convertAddressString方法的典型用法代码示例。如果您正苦于以下问题:PHP Countries::convertAddressString方法的具体用法?PHP Countries::convertAddressString怎么用?PHP Countries::convertAddressString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Countries
的用法示例。
在下文中一共展示了Countries::convertAddressString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
</div>
<?php
if ($this->config['show_club_info'] || $this->config['show_team_info']) {
?>
<div class="right-column">
<?php
if ($this->config['show_club_info']) {
if ($this->club->address || $this->club->zipcode) {
?>
<div class="jl_parentContainer">
<span class="clubinfo_listing_item"><?php
echo JText::_('COM_JOOMLEAGUE_TEAMINFO_CLUB_ADDRESS');
?>
</span>
<?php
$dummy = Countries::convertAddressString($this->club->name, $this->club->address, $this->club->state, $this->club->zipcode, $this->club->location, $this->club->country, 'COM_JOOMLEAGUE_TEAMINFO_CLUB_ADDRESS_FORM');
$dummy = explode('<br />', $dummy);
for ($i = 0; $i < count($dummy); $i++) {
if ($i > 0) {
echo '<span class="clubinfo_listing_item"> </span>';
}
echo '<span class="clubinfo_listing_value">' . $dummy[$i] . '</span>';
}
echo '</div>';
}
if ($this->club->phone) {
?>
<div class="jl_parentContainer">
<span class="clubinfo_listing_item"> <?php
echo JText::_('COM_JOOMLEAGUE_TEAMINFO_CLUB_PHONE');
?>
示例2:
$deathdateStr = JHtml::date($this->person->deathday . ' UTC', JText::_('COM_JOOMLEAGUE_GLOBAL_DEATHDATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
echo '† ' . $deathdateStr;
?>
</td>
</tr>
<?php
}
if ($this->person->address != "" && $this->config['show_person_address'] == 1 && $this->isContactDataVisible) {
?>
<tr>
<td class=""><span class="label"><?php
echo JText::_('COM_JOOMLEAGUE_PERSON_ADDRESS');
?>
</span></td>
<td class="data"><?php
echo Countries::convertAddressString('', $this->person->address, $this->person->state, $this->person->zipcode, $this->person->location, $this->person->address_country, 'COM_JOOMLEAGUE_PERSON_ADDRESS_FORM');
?>
</td>
</tr>
<?php
}
if ($this->person->phone != "" && $this->config['show_person_phone'] == 1 && $this->isContactDataVisible) {
?>
<tr>
<td class=""><span class="label"><?php
echo JText::_('COM_JOOMLEAGUE_PERSON_PHONE');
?>
</span></td>
<td class="data"><?php
echo $this->person->phone;
?>
示例3: foreach
<?php
foreach ($club->teams as $team) {
//dynamic object property string
$pic = $this->config['show_picture'];
echo JoomleagueHelper::getPictureThumb($team->{$pic}, $team->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
$teaminfo_link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $team->team_slug);
echo JHtml::link($teaminfo_link, $team->name);
echo '<br />';
}
?>
</td>
<?php
}
?>
<?php
if ($this->config['show_address']) {
?>
<td>
<?php
echo Countries::convertAddressString($club->name, $club->address, $club->state, $club->zipcode, $club->location, $club->country, 'COM_JOOMLEAGUE_CLUBS_ADDRESS_FORM');
?>
</td>
<?php
}
?>
</tr>
<?php
$k = 1 - $k;
}
?>
</table>
示例4:
} else {
?>
<td class="club_logo"></td>
<?php
}
if ($this->config['show_club_number']) {
?>
<td class="club_logo"><?php
echo $team->unique_id;
?>
</td>
<?php
} else {
?>
<td class="club_logo"></td>
<?php
}
?>
<td class="club_address">
<?php
echo Countries::convertAddressString($team->club_name, $team->club_address, $team->club_state, $team->club_zipcode, $team->club_location, $team->club_country, 'COM_JOOMLEAGUE_TEAMS_ADDRESS_FORM');
?>
</td>
</tr>
<?php
$k = 1 - $k;
}
?>
</table>
示例5:
</tr>
<?php
}
?>
<?php
if ($this->playground->address || $this->playground->zipcode) {
?>
<tr>
<th class="td_r_t" width='30%'><?php
echo JText::_('COM_JOOMLEAGUE_PLAYGROUND_ADDRESS');
?>
</th>
<td width='70%'>
<?php
echo Countries::convertAddressString('', $this->playground->address, '', $this->playground->zipcode, $this->playground->city, $this->playground->country, 'COM_JOOMLEAGUE_PLAYGROUND_ADDRESS_FORM');
?>
</td>
</tr>
<?php
}
?>
<?php
if ($this->playground->website) {
?>
<tr>
<th class="td_r" width="30%">
<?php
echo JText::_('COM_JOOMLEAGUE_PLAYGROUND_WEBSITE');
?>