diff --git a/Controller.php b/Controller.php index b490b1a..eb17503 100644 --- a/Controller.php +++ b/Controller.php @@ -156,6 +156,18 @@ final class Controller extends ModuleAbstract implements WebInterface $accGrpSelector = new \Modules\Profile\Theme\Backend\Components\AccountGroupSelector\BaseView($this->app, $request, $response); $view->addData('accGrpSelector', $accGrpSelector); + $settings = $this->app->appSettings->get([ + 1000000001, 1000000002, 1000000003, 1000000004, 1000000005, 1000000006, 1000000007, 1000000008, 1000000009, + 1000000010, 1000000011, 1000000012, 1000000013, 1000000014, 1000000015, 1000000016, 1000000017, 1000000018, 1000000019, + 1000000020, 1000000021, 1000000022, 1000000023, 1000000024, 1000000025, 1000000026, 1000000027, 1000000028, 1000000029, + 1000001001, 1000001002, 1000001003, 1000001004, 1000001005, + 1000002001, 1000002002, 1000002003, 1000002004, 1000002005, 1000002006, + 1000003001, 1000003002, 1000003003, 1000003004, 1000003005, 1000003006, + 1000004001, 1000004002, 1000004003, 1000004004, 1000004005, + 1000005001, 1000005002, 1000005003, 1000005004, 1000005005, 1000005006, 1000005007, 1000005008, + ]); + $view->setData('settings', $settings); + return $view; } } diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 9bebcd1..8ef91a8 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -13,12 +13,31 @@ return ['Profile' => [ 'Account/Group' => 'Account/Group', 'Activity' => 'Activity', + 'Area' => 'Area', 'Birthday' => 'Birthday', 'ContactInformation' => 'Contact Information', 'Community' => 'Community', + 'Country' => 'Country', + 'Currency' => 'Currency', + 'Customized' => 'Customized', + 'DecimalPoint' => 'Decimal Point', + 'Defaults' => 'Defaults', 'Email' => 'Email', + 'Fast' => 'Fast', + 'General' => 'General', + 'Glass' => 'Glass', + 'Heavy' => 'Heavy', 'LastLogin' => 'Last Login', + 'Language' => 'Language', + 'Large' => 'Large', + 'Length' => 'Length', + 'Light' => 'Light', + 'Localization' => 'Localization', + 'Long' => 'Long', + 'Medium' => 'Medium', 'Name' => 'Name', + 'Numberformat' => 'Numberformat', + 'Numeric' => 'Numeric', 'Occupation' => 'Occupation', 'OFF' => 'OFF', 'ON' => 'ON', @@ -28,7 +47,27 @@ return ['Profile' => [ 'Profiles' => 'Profiles', 'Ranks' => 'Ranks', 'Registered' => 'Registered', + 'Short' => 'Short', + 'Sea' => 'Sea', 'Skype' => 'Skype', + 'Slow' => 'Slow', + 'Small' => 'Small', + 'Speed' => 'Speed', 'Status' => 'Status', + 'Tablespoon' => 'Tablespoon', + 'Teaspoon' => 'Teaspoon', + 'Temperature' => 'Temperature', + 'ThousandsSeparator' => 'Thousands Separator', + 'Timezone' => 'Timezone', 'Visibility' => 'Visibility', + 'VeryFast' => 'Very Fast', + 'VeryHeavy' => 'Very Heavy', + 'VeryLarge' => 'Very Large', + 'VeryLight' => 'Very Light', + 'VeryLong' => 'Very Long', + 'VerySlow' => 'Very Slow', + 'VeryShort' => 'Very Short', + 'VerySmall' => 'Very Small', + 'Volume' => 'Volume', + 'Weight' => 'Weight', ]]; diff --git a/Theme/Backend/profile-single.tpl.php b/Theme/Backend/profile-single.tpl.php index 3d6e61b..c3f7181 100644 --- a/Theme/Backend/profile-single.tpl.php +++ b/Theme/Backend/profile-single.tpl.php @@ -15,89 +15,472 @@ */ $account = $this->getData('account'); -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); +$settings = $this->getData('settings') ?? []; -$footerView->setPages(1 / 25); -$footerView->setPage(1); -$footerView->setResults(1); +$countries = \phpOMS\Localization\ISO3166NameEnum::getConstants(); +$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants(); +$timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants(); +$languages = \phpOMS\Localization\ISO639Enum::getConstants(); +$currencies = \phpOMS\Localization\ISO4217Enum::getConstants(); +$l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../../../phpOMS/Localization/Defaults/Definitions'); + +$weights = \phpOMS\Utils\Converter\WeightType::getConstants(); +$speeds = \phpOMS\Utils\Converter\SpeedType::getConstants(); +$areas = \phpOMS\Utils\Converter\AreaType::getConstants(); +$lengths = \phpOMS\Utils\Converter\LengthType::getConstants(); +$volumes = \phpOMS\Utils\Converter\VolumeType::getConstants(); +$temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants(); echo $this->getData('nav')->render(); ?> -
-
-
-

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

-
- - <?= $this->getHtml('ProfileImage'); ?> - - - - - - - - - - - - - - - - -
getHtml('Occupation') ?> - Sailor -
getHtml('Birthday') ?> - 06.09.1934 -
getHtml('Ranks') ?> - Gosling -
getHtml('Email') ?> - printHtml($account->getAccount()->getEmail()); ?> -
Address - -
Private - SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA -
Work - SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA -
getHtml('Phone') ?> - -
Private - +01 12345-4567 -
Mobile - +01 12345-4567 -
Work - +01 12345-4567 -
getHtml('Registered') ?> - printHtml($account->getAccount()->getCreatedAt()->format('Y-m-d')); ?> -
getHtml('LastLogin') ?> - printHtml($account->getAccount()->getLastActive()->format('Y-m-d')); ?> -
getHtml('Status') ?> - printHtml($account->getAccount()->getStatus()); ?> -
- -
-
+
+
+
+
+ +
+
+
+
+

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

+
+ + <?= $this->getHtml('ProfileImage'); ?> + + + + + + + + + + + + + + + + +
getHtml('Occupation') ?> + Sailor +
getHtml('Birthday') ?> + 06.09.1934 +
getHtml('Ranks') ?> + Gosling +
getHtml('Email') ?> + printHtml($account->getAccount()->getEmail()); ?> +
Address + +
Private + SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA +
Work + SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA +
getHtml('Phone') ?> + +
Private + +01 12345-4567 +
Mobile + +01 12345-4567 +
Work + +01 12345-4567 +
getHtml('Registered') ?> + printHtml($account->getAccount()->getCreatedAt()->format('Y-m-d')); ?> +
getHtml('LastLogin') ?> + printHtml($account->getAccount()->getLastActive()->format('Y-m-d')); ?> +
getHtml('Status') ?> + printHtml($account->getAccount()->getStatus()); ?> +
+ +
+
+
-
-
-

getHtml('Visibility') ?>

-
-

Define which users and user groups can see your profile

- getData('accGrpSelector')->render('iVisibility', true); ?> +
+
+

getHtml('Visibility') ?>

+
+

Define which users and user groups can see your profile

+ getData('accGrpSelector')->render('iVisibility', true); ?> +
+
+
+ +
+ getData('medialist')->render([]); ?> +
-
-
-
- getData('medialist')->render([]); ?> +
+
+ getData('calendar')->render($account->getCalendar()); ?> +
+
+
+ +
+
+
+
+

getHtml('Localization'); ?>

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

getHtml('Numeric'); ?>

+
+
+ +
+
+ +

getHtml('Numberformat'); ?>

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

getHtml('Weight'); ?>

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

getHtml('Speed'); ?>

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

getHtml('Length'); ?>

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

getHtml('Area'); ?>

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

getHtml('Volume'); ?>

+
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
- -
-
- getData('calendar')->render($account->getCalendar()); ?> -
-
\ No newline at end of file