Skip to content

Commit

Permalink
Merge pull request #2029 from CityOfPhiladelphia/service-menu-endpoint
Browse files Browse the repository at this point in the history
mobile menu
  • Loading branch information
m-atia committed Dec 5, 2023
2 parents 4bf2d41 + f107967 commit 85640a5
Showing 1 changed file with 56 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,62 @@ public function get_items( $request ) {
*/
public function get_service_menu( $request ) {

$json_data = build_page_tree();

return $json_data;
$service_list = build_page_tree();

$full_mobile_menu = [
[
"ID" => 7,
"post_title" => "Services",
"post_name" => "services",
"post_link" => "https://www.phila.gov/services/",
"post_parent" => 0,
"post_type" => "page",
"collapsed" => true,
"children" => $service_list
],
[
"ID" => 2,
"post_title" => "Programs",
"post_name" => "programs",
"post_link" => "https://www.phila.gov/programs/",
"post_parent" => 0,
"post_type" => "page"
],
[
"ID" => 3,
"post_title" => "Departments",
"post_name" => "departments",
"post_link" => "https://www.phila.gov/departments/",
"post_parent" => 0,
"post_type" => "page"
],
[
"ID" => 4,
"post_title" => "Tools",
"post_name" => "tools",
"post_link" => "https://www.phila.gov/tools/",
"post_parent" => 0,
"post_type" => "page"
],
[
"ID" => 5,
"post_title" => "Publications",
"post_name" => "publications",
"post_link" => "https://www.phila.gov/documents/",
"post_parent" => 0,
"post_type" => "page"
],
[
"ID" => 6,
"post_title" => "News",
"post_name" => "news",
"post_link" => "https://www.phila.gov/the-latest/",
"post_parent" => 0,
"post_type" => "page"
]
];

return $full_mobile_menu;
}


Expand Down

0 comments on commit 85640a5

Please sign in to comment.