diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index d3de736..2dfbd48 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -17,6 +17,7 @@ return ['Profile' => [ 'Account/Group' => 'Account/Group', 'Activity' => 'Activity', 'Address' => 'Address', + 'Amount' => '{Amount}', 'Area' => 'Area', 'Birthday' => 'Birthday', 'City' => 'City', @@ -26,8 +27,10 @@ return ['Profile' => [ 'Country' => 'Country', 'CreateProfile' => 'Create Profile', 'Currency' => 'Currency', + 'Currencyformat' => 'Currencyformat', 'Customized' => 'Customized', 'DecimalPoint' => 'Decimal Point', + 'DateDelim' => 'Date Separator', 'Defaults' => 'Defaults', 'Email' => 'Email', 'Fast' => 'Fast', @@ -39,6 +42,7 @@ return ['Profile' => [ 'LastLogin' => 'Last Login', 'Length' => 'Length', 'Light' => 'Light', + 'Load' => 'Load', 'Localization' => 'Localization', 'Long' => 'Long', 'Medium' => 'Medium', @@ -65,6 +69,9 @@ return ['Profile' => [ 'Teaspoon' => 'Teaspoon', 'Temperature' => 'Temperature', 'ThousandsSeparator' => 'Thousands Separator', + 'Time' => 'Time', + 'TimeDelim' => 'Time Separator', + 'Timeformat' => 'Timeformat', 'Timezone' => 'Timezone', 'VeryFast' => 'Very Fast', 'VeryHeavy' => 'Very Heavy', diff --git a/Theme/Backend/profile-single.tpl.php b/Theme/Backend/profile-single.tpl.php index 240ec4d..7a2562a 100644 --- a/Theme/Backend/profile-single.tpl.php +++ b/Theme/Backend/profile-single.tpl.php @@ -17,11 +17,12 @@ use phpOMS\Uri\UriFactory; /** * @var \phpOMS\Views\View $this - * @var \Modules\Profile\Models\Profile $account + * @var \Modules\Profile\Models\Profile $profile */ -$account = $this->getData('account'); +$profile = $this->getData('account'); $settings = $this->getData('settings') ?? []; +$countryCodes = \phpOMS\Localization\ISO3166TwoEnum::getConstants(); $countries = \phpOMS\Localization\ISO3166NameEnum::getConstants(); $timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants(); $timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants(); @@ -36,6 +37,9 @@ $lengths = \phpOMS\Utils\Converter\LengthType::getConstants(); $volumes = \phpOMS\Utils\Converter\VolumeType::getConstants(); $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants(); +$account = $profile->getAccount(); +$l11n = $account->getL11n(); + echo $this->getData('nav')->render(); ?>
@@ -53,12 +57,12 @@ echo $this->getData('nav')->render();

- getAccount()->getName3()) || !empty($account->getAccount()->getName2())) : ?> + getName3()) || !empty($account->getName2())) : ?> - printHtml(empty($account->getAccount()->getName3()) ? $account->getAccount()->getName2() : $account->getAccount()->getName3()); ?>, + printHtml(empty($account->getName3()) ? $account->getName2() : $account->getName3()); ?>, - printHtml($account->getAccount()->getName1()); ?> + printHtml($account->getName1()); ?>

@@ -69,9 +73,9 @@ echo $this->getData('nav')->render(); alt="getHtml('ProfileImage'); ?>" itemprop="logo" data-lazyload="getImage() instanceof NullMedia ? + $profile->getImage() instanceof NullMedia ? UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : - UriFactory::build('{/prefix}' . $account->getImage()->getPath()); ?>" + UriFactory::build('{/prefix}' . $profile->getImage()->getPath()); ?>" > @@ -80,15 +84,15 @@ echo $this->getData('nav')->render(); @@ -104,7 +108,7 @@ echo $this->getData('nav')->render(); @@ -118,13 +122,13 @@ echo $this->getData('nav')->render();
Sailor
getHtml('Birthday') ?> - getBirthday()->format('Y-m-d'); ?> + getBirthday()->format('Y-m-d'); ?>
getHtml('Email') ?> - printHtml($account->getAccount()->getEmail()); ?> + printHtml($account->getEmail()); ?>
getHtml('Address') ?> getLocation(); + $locations = $profile->getLocation(); if (empty($locations)) : ?>
getHtml('Contact') ?> getContactElements(); + $contacts = $profile->getContactElements(); if (empty($contacts)) : ?>
getHtml('Registered') ?> - printHtml($account->getAccount()->getCreatedAt()->format('Y-m-d')); ?> + printHtml($account->getCreatedAt()->format('Y-m-d')); ?>
getHtml('LastLogin') ?> - printHtml($account->getAccount()->getLastActive()->format('Y-m-d')); ?> + printHtml($account->getLastActive()->format('Y-m-d')); ?>
getHtml('Status') ?> - getHtml(':s' . $account->getAccount()->getStatus(), 'Admin'); ?> + getHtml(':s' . $account->getStatus(), 'Admin'); ?>
@@ -177,29 +181,22 @@ echo $this->getData('nav')->render(); - - - @@ -209,30 +206,72 @@ echo $this->getData('nav')->render(); +
+
+

getHtml('Time'); ?>

+
+
+ + +
+
+ +

getHtml('Timeformat'); ?>

+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

getHtml('Numeric'); ?>

- +
+
+
+

getHtml('Numberformat'); ?>

-
- +
+
+

getHtml('Weight'); ?>

@@ -244,35 +283,35 @@ echo $this->getData('nav')->render(); @@ -280,9 +319,7 @@ echo $this->getData('nav')->render();
- -

getHtml('Speed'); ?>

@@ -294,42 +331,42 @@ echo $this->getData('nav')->render(); @@ -349,42 +386,42 @@ echo $this->getData('nav')->render(); @@ -404,35 +441,35 @@ echo $this->getData('nav')->render(); @@ -440,9 +477,7 @@ echo $this->getData('nav')->render();
- -

getHtml('Volume'); ?>

@@ -454,56 +489,56 @@ echo $this->getData('nav')->render(); @@ -511,7 +546,6 @@ echo $this->getData('nav')->render();
-