$settingContent) { $navLinks[] = h($settingTitle); $tabContents[] = $this->element('Settings/category', [ 'settings' => $settingContent, 'includeScrollspy' => false, ]); } $navLinks[] = __('Bookmarks'); $tabContents[] = $this->element('UserSettings/saved-bookmarks', [ 'bookmarks' => !empty($user->user_settings_by_name['ui.bookmarks']['value']) ? json_decode($user->user_settings_by_name['ui.bookmarks']['value'], true) : [] ]); $tabsOptions = [ 'vertical' => true, 'vertical-size' => 2, 'card' => true, 'pills' => true, 'justify' => 'center', 'nav-class' => ['settings-tabs'], 'data' => [ 'navs' => $navLinks, 'content' => $tabContents ] ]; $tabs = $this->Bootstrap->tabs($tabsOptions); echo $this->Html->script('settings'); ?>