register_contents(); $this->register_styles(); } protected function register_contents(): void { $this->start_controls_section( 'sec_general', [ 'label' => __( 'General', 'addonskit-for-elementor' ), ] ); $this->add_control( 'sec_heading', [ 'label' => __( 'This is directorist Dashboard widget. It has no additional elementor settings.', 'addonskit-for-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->end_controls_section(); } protected function register_styles(): void { $this->register_container_style_controls( __( 'Sidebar: Container', 'addonskit-for-elementor' ), 'dashboard_sidebar_container', '.directorist-user-dashboard__nav' ); $this->register_dashboard_sidebar(); $this->register_container_style_controls( __( 'Listings: Header Container', 'addonskit-for-elementor' ), 'my_listing_top_container', '.directorist-user-dashboard-tab__nav' ); $this->register_my_listing_top_menu_items(); $this->register_my_listing_top_search(); $this->register_my_listing_content_area(); $this->register_text_controls( __( 'Listings: Statusbar', 'addonskit-for-elementor' ), 'my_listing_label', '.directorist-table thead tr th' ); $this->register_text_controls( __( 'Listings: Title', 'addonskit-for-elementor' ), 'my_listing_title', '.directorist-dashboard-listings-tbody .directorist-title a' ); $this->register_my_listing_content_info(); $this->register_dashboard_pagination(); } protected function render(): void { Helper::run_shortcode( 'directorist_user_dashboard' ); } }