Skip to content

Commit

Permalink
feat: Add Space Public Site Template - MEED-7537 - Meeds-io/MIPs#151 (#…
Browse files Browse the repository at this point in the history
…2439)

This change will introduce the space public site template.
  • Loading branch information
boubaker authored and rdenarie committed Oct 7, 2024
1 parent 2b8c463 commit 6adad0b
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association [email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_11 http://www.gatein.org/xml/ns/gatein_objects_1_11"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_11">
<priority>3</priority>
<page-nodes>
<node>
<name>home</name>
<label>Home</label>
<icon>fas fa-home</icon>
<page-reference>portal::@owner@::home</page-reference>
</node>
</page-nodes>
</node-navigation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association [email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<page-set
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_11 http://www.gatein.org/xml/ns/gatein_objects_1_11"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_11">
<page>
<name>home</name>
<title>Home</title>
<access-permissions>Everyone</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
<section-columns>
<column col-span="12">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>Image</portlet-ref>
</portlet>
</portlet-application>
</column>
</section-columns>
<section-columns>
<column col-span="8">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceWidgetDescription</portlet-ref>
</portlet>
</portlet-application>
</column>
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceWidgetManagers</portlet-ref>
</portlet>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceWidgetMembers</portlet-ref>
</portlet>
</portlet-application>
</column>
</section-columns>
</container>
</page>
</page-set>
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association [email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<portal-config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_11 http://www.gatein.org/xml/ns/gatein_objects_1_11"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_11">
<portal-name>@owner@</portal-name>
<displayed>false</displayed>
<locale>en</locale>
<portal-layout>
<container id="UITopBarContainer" template="system:/groovy/portal/webui/container/UITopBarContainer.gtmpl">
<access-permissions>Everyone</access-permissions>
<container template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>Everyone</access-permissions>
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>TopBarLogo</portlet-ref>
</portlet>
<title>Space Logo</title>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
<show-application-state>false</show-application-state>
</portlet-application>
</container>
<container template="system:/groovy/portal/webui/container/UIContainer.gtmpl" profiles="layout">
<access-permissions>*:/platform/administrators</access-permissions>
<portlet-application>
<portlet>
<application-ref>layout</application-ref>
<portlet-ref>SiteNavigation</portlet-ref>
</portlet>
<title>Site navigation</title>
</portlet-application>
</container>
<container id="MiddleToolBar" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>MiddleToolBar</name>
<access-permissions>Everyone</access-permissions>
<factory-id>addonContainer</factory-id>
</container>
<container template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>Everyone</access-permissions>
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>TopBarLogin</portlet-ref>
</portlet>
<title>Login Button</title>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
<show-application-state>false</show-application-state>
</portlet-application>
</container>
<container id="TopbarLoadingContainer" template="system:/groovy/portal/webui/container/UITopbarLoadingContainer.gtmpl">
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
</container>
</container>
<page-body />
<container id="bottom-all-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>bottom-all-container</name>
<factory-id>addonContainer</factory-id>
</container>
</portal-layout>
</portal-config>
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<value>
<string>navigationWebsite</string>
</value>
<value>
<string>spacePublic</string>
</value>
</collection>
</field>
</object>
Expand Down

0 comments on commit 6adad0b

Please sign in to comment.