Skip to content

Commit

Permalink
feat: hideable footer sub items (#37)
Browse files Browse the repository at this point in the history
* chore: new config variable to set on/off the secondary items on automatic menu items

* fix: new config variable

Co-authored-by: Piero Nicolli <[email protected]>
  • Loading branch information
Wagner3UB and pnicolli authored Dec 30, 2022
1 parent 6e557b1 commit 567a2ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ItaliaTheme/Footer/FooterNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const FooterNavigation = () => {
{item.title}
</Link>
</h4>
{item.items && (
{!config.settings.isFooterCollapsed && item.items && (
<LinkList className="footer-list clearfix" tag="div">
{item.items.map((subitem) => {
return (
Expand Down
1 change: 1 addition & 0 deletions src/config/italiaConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default function applyConfig(voltoConfig) {
// },
}),
isMultilingual: false,
isFooterCollapsed: false, // false(default) -> vedere il footer automatico esploso | true -> implodere il footer menu automatico
supportedLanguages: ['it'],
defaultLanguage: 'it',
verticalFormTabs: true,
Expand Down

0 comments on commit 567a2ed

Please sign in to comment.