current_section = $current_section; $this->init_menu_items(); } private function init_menu_items(): void { $this->menu_items = array( 'apps' => array( 'title' => __( 'Tools', '1platform-content-ai' ), 'icon' => 'dashicons-list-view', 'home' => true, ), 'toc' => array( 'title' => __( 'Table of Contents', '1platform-content-ai' ), 'icon' => 'dashicons-list-view', 'home' => false, ), 'internal-links' => array( 'title' => __( 'Internal Links', '1platform-content-ai' ), 'icon' => 'dashicons-admin-links', 'home' => false, ), 'search-console' => array( 'title' => __( 'Search Console', '1platform-content-ai' ), 'icon' => 'dashicons-cloud', 'home' => false, ), 'publisuites' => array( 'title' => __( 'Publisuites', '1platform-content-ai' ), 'icon' => 'dashicons-money-alt', 'home' => false, ), 'ads-manager' => array( 'title' => __( 'Ads Manager', '1platform-content-ai' ), 'icon' => 'dashicons-megaphone', 'home' => false, ), 'analytics' => array( 'title' => __( 'Google Analytics', '1platform-content-ai' ), 'icon' => 'dashicons-chart-area', 'home' => false, ), ); } public function render(): void { ?> current_section === $slug; $item_class = $is_active ? 'is-active' : ''; $parameters = ! $item['home'] ? array( 'section' => $slug ) : array(); $url = add_query_arg( $parameters, admin_url( 'admin.php?page=contai-apps' ) ); ?>