From 3d6158a5e6bcb8780b555a4375831ac2e3860f2b Mon Sep 17 00:00:00 2001 From: Ilya Shunko Date: Sun, 12 Feb 2023 04:42:52 -0800 Subject: [PATCH] Restore deleted view code --- .../site/views/groups/tmpl/view.php | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) diff --git a/core/components/com_groups/site/views/groups/tmpl/view.php b/core/components/com_groups/site/views/groups/tmpl/view.php index e69de29bb2d..6c376254767 100644 --- a/core/components/com_groups/site/views/groups/tmpl/view.php +++ b/core/components/com_groups/site/views/groups/tmpl/view.php @@ -0,0 +1,139 @@ +css() + ->js(); + +//get no_html request var +$no_html = Request::getInt( 'no_html', 0 ); +?> + + + group); ?> + +
+
+
+ option . '&cn=' . $this->group->get('cn')); + ?> +
+ + <?php echo Lang::txt('COM_GROUPS_OVERVIEW_LOGO', $this->group->get('description')); ?> + +
+ + group); + + // output group menu + echo \Components\Groups\Helpers\View::displaySections($this->group); + ?> + +
+ group->get('join_policy')) + { + case 3: + $policy = Lang::txt('COM_GROUPS_MEMBERSHIP_SETTINGS_CLOSED_SETTING'); + break; + case 2: + $policy = Lang::txt('COM_GROUPS_MEMBERSHIP_SETTINGS_INVITE_SETTING'); + break; + case 1: + $policy = Lang::txt('COM_GROUPS_MEMBERSHIP_SETTINGS_RESTRICTED_SETTING'); + break; + case 0: + default: + $policy = Lang::txt('COM_GROUPS_MEMBERSHIP_SETTINGS_OPEN_SETTING'); + break; + } + + // Determine the discoverability + switch ($this->group->get('discoverability')) + { + case 1: + $discoverability = Lang::txt('COM_GROUPS_DISCOVERABILITY_SETTINGS_HIDDEN_SETTING'); + break; + case 0: + default: + $discoverability = Lang::txt('COM_GROUPS_DISCOVERABILITY_SETTINGS_VISIBLE_SETTING'); + break; + } + + // use created date + $created = Date::of($this->group->get('created'))->toLocal(Lang::txt('DATE_FORMAT_HZ1')); + ?> +
+
    +
  • + + +
  • +
  • + + +
  • + +
  • + + +
  • + +
+
+
+
+ +
+ +
+ notifications) > 0) + { + foreach ($this->notifications as $notification) + { + echo "

{$notification['message']}

"; + } + } + ?> +
+ +
+ + +content; +?> + + +
+
+
+
+
+