23 lines
455 B
PHP
23 lines
455 B
PHP
<?php
|
|
/**
|
|
* @var Language $language
|
|
*/
|
|
|
|
if ($type == 'edit')
|
|
{
|
|
echo st_countries_select_tag('language[country_id]', $language->getCountryId(), array('include_custom' => __('Domyślny')));
|
|
}
|
|
else
|
|
{
|
|
if ($language->getCountryId())
|
|
{
|
|
$country = CountriesPeer::retrieveById($language->getCountryId());
|
|
$countryName = $country->getName();
|
|
}
|
|
else
|
|
{
|
|
$countryName = __('Domyślny');
|
|
}
|
|
|
|
echo $countryName;
|
|
} |