diff --git a/Controller.php b/Controller.php index c7bf9e6..24b0c0a 100644 --- a/Controller.php +++ b/Controller.php @@ -32,7 +32,7 @@ use phpOMS\Asset\AssetType; * @link http://website.orange-management.de * @since 1.0.0 */ -class Controller extends ModuleAbstract implements WebInterface +final class Controller extends ModuleAbstract implements WebInterface { /** @@ -169,6 +169,9 @@ class Controller extends ModuleAbstract implements WebInterface $view->setData('account', ProfileMapper::getFor((int) $request->getData('id'), 'account')); + $accGrpSelector = new \Modules\Profile\Theme\Backend\Components\AccountGroupSelector\BaseView($this->app, $request, $response); + $view->addData('accGrpSelector', $accGrpSelector); + return $view; } } diff --git a/Models/NullProfile.php b/Models/NullProfile.php index e5349be..444215c 100644 --- a/Models/NullProfile.php +++ b/Models/NullProfile.php @@ -22,6 +22,6 @@ namespace Modules\Profile\Models; * @link http://website.orange-management.de * @since 1.0.0 */ -class NullProfile extends Profile +final class NullProfile extends Profile { } diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index a85b271..9bebcd1 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -24,10 +24,11 @@ return ['Profile' => [ 'ON' => 'ON', 'Phone' => 'Phone', 'Profile' => 'Profile', - 'ProfileImage' => 'Profile Image', + 'ProfileImage' => 'Profile Image', 'Profiles' => 'Profiles', 'Ranks' => 'Ranks', 'Registered' => 'Registered', 'Skype' => 'Skype', 'Status' => 'Status', + 'Visibility' => 'Visibility', ]]; diff --git a/Theme/Backend/profile-single.tpl.php b/Theme/Backend/profile-single.tpl.php index 8b24417..e7a73fa 100644 --- a/Theme/Backend/profile-single.tpl.php +++ b/Theme/Backend/profile-single.tpl.php @@ -26,14 +26,14 @@ $footerView->setResults(1); echo $this->getData('nav')->render(); ?>
| = $this->getHtml('Occupation') ?> | Sailor
@@ -82,7 +82,17 @@ echo $this->getData('nav')->render();
-
+
+
+
+ = $this->getHtml('Visibility') ?>
+
+ Define which users and user groups can see your profile + = $this->getData('accGrpSelector')->render('iVisibility', true); ?> +
= $this->getData('medialist')->render([]); ?>
|
|---|
-