| | |
| | | jvbRenderSections($this->userLink, 'post', $type); |
| | | } |
| | | |
| | | protected function renderSettings():void |
| | | { |
| | | wp_enqueue_script('jvb-form'); |
| | | wp_enqueue_script( |
| | | 'jvb-bio-manager', |
| | | JVB_URL.'assets/js/min/bioManager.min.js', |
| | | array('jvb-client-queue', 'sortablejs', 'quill-js', 'jvb-taxonomy-selector'), |
| | | '1.0.0', |
| | | true |
| | | ); |
| | | wp_localize_script('jvb-bio-manager', 'bioSettings', [ |
| | | 'type' => 'user_settings', |
| | | ]); |
| | | $content = apply_filters('jvbDashboardSettings', ''); |
| | | if ($content !== '') { |
| | | echo $content; |
| | | } else { |
| | | jvbRenderSections($this->user->ID, 'user', jvbUserRole()); |
| | | } |
| | | |
| | | } |
| | | |
| | | protected function getIntegrationsMenu():string |
| | | { |
| | | $integrations = JVB()->getAvailableServices(false); |