{"id":18603792,"url":"https://github.com/phpwine/winewpmenuwalker","last_synced_at":"2026-04-26T22:31:17.699Z","repository":{"id":208953975,"uuid":"722884261","full_name":"PHPWine/WineWPMenuWalker","owner":"PHPWine","description":"WineWPMenuWalker Class","archived":false,"fork":false,"pushed_at":"2023-11-24T13:01:55.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-21T13:48:23.599Z","etag":null,"topics":["menu","plugins","theme","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PHPWine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-24T07:20:00.000Z","updated_at":"2023-11-24T08:51:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"f967ae98-f88b-4b6c-a780-818d5c99d0df","html_url":"https://github.com/PHPWine/WineWPMenuWalker","commit_stats":null,"previous_names":["phpwine/winewpmenuwalker"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/PHPWine/WineWPMenuWalker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPWine%2FWineWPMenuWalker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPWine%2FWineWPMenuWalker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPWine%2FWineWPMenuWalker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPWine%2FWineWPMenuWalker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPWine","download_url":"https://codeload.github.com/PHPWine/WineWPMenuWalker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPWine%2FWineWPMenuWalker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["menu","plugins","theme","wordpress"],"created_at":"2024-11-07T02:15:33.475Z","updated_at":"2026-04-26T22:31:17.683Z","avatar_url":"https://github.com/PHPWine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WineWPMenuWalker\n\n```PHP\n /* Installation */\n composer require phpwine/wpmenuwalker v1.4.1\n\n /* required version *v2.0 */\n composer require phpwine/optimizedhtml v2.0\n```\n\n```PHP\n \u003c?php \n \n // functions.php \n if ( ! defined( 'WPINC' ) ) { die; }\n\n // file on the very top \n use \\PHPWineOptimizedHtml\\OptimizedHtml;\n\n /** PHPWine **/\n require_once get_template_directory() . '/vendor/autoload.php';\n\n $wine = new OptimizedHtml;\n ...\n\n```\n\n```PHP\n\n  // Register custom navigation menu\n  add_action( 'init', 'nielsoffice_nav_menus' );\n  function nielsoffice_nav_menus() {\n\n   $locations = array(\n    'main-menu' =\u003e __( 'Primary menu', 'nielsoffice' )\n   );\n   register_nav_menus( $locations );\n }\n\n```\n\n```PHP\n// namespace\n use \\PHPWineWPWalker\\WineWPMenuWalker;\n\n// init custom menu \n wp_nav_menu( array(\n   'theme_location'  =\u003e 'main-menu',\n   'menu_id'         =\u003e 'primary-menu',\n\n  'container' \t    =\u003e 'nav',\n  'container_class' =\u003e 'menu-wine',   // %1$s\n  'menu_class' \t    =\u003e 'wine', // %2$s .... %3$s = list items.\n  'add_li_class'    =\u003e 'pwine',\n  'items_wrap' \t    =\u003e '\u003cul class=\"p-wine %2$s\" id=\"%1$s\"\u003e%3$s\u003c/ul\u003e',\n  'walker' =\u003e new WineWPMenuWalker()\n  )\n);\n\n\n```\n\n```HTML\n\n\u003cnav class=\"menu-wine\"\u003e\n    \u003cul class=\"p-wine wine\" id=\"primary-menu\"\u003e\n        \u003cli id=\"item_25\" class=\"item-25\"\u003e\u003ca href=\"#\" class=\"link-25\"\u003eHome\u003c/a\u003e\u003c/li\u003e\n        \u003cli id=\"item_24\" class=\"course-title-class\"\u003e\n            \u003ca href=\"#\" class=\"link-24\"\u003eCourses\u003c/a\u003e\n            \u003cul class=\"sub_menu\"\u003e \u003c!-- first child --\u003e\n                \u003cli id=\"item_27\" class=\"item-27\"\u003e\n                    \u003ca href=\"#\" class=\"link-27\"\u003eEnglish\u003c/a\u003e\n                    \u003cul class=\"sub_menu t_child\"\u003e \u003c!-- second child --\u003e\n                        \u003cli id=\"item_26\" class=\"item-26\"\u003e\u003ca href=\"#\" class=\"link-26\"\u003eSubmit a bug\u003c/a\u003e\u003c/li\u003e\n                    \u003c/ul\u003e\n                \u003c/li\u003e\n                \u003cli id=\"item_28\" class=\"item-28\"\u003e\u003c/li\u003e\n            \u003c/ul\u003e\n        \u003c/li\u003e\n        \u003cli id=\"item_23\" class=\"item-23\"\u003e\u003ca href=\"#\" class=\"link-23\"\u003eShowcase\u003c/a\u003e\u003c/li\u003e\n        \u003cli id=\"item_22\" class=\"item-22\"\u003e\u003ca href=\"#\" class=\"link-22\"\u003eBlog\u003c/a\u003e\u003c/li\u003e\n        \u003cli id=\"item_21\" class=\"item-21\"\u003e\u003ca href=\"#\" class=\"link-21\"\u003eBuy me coffee?\u003c/a\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n\u003c/nav\u003e\n\n```\n\n```PHP\n // Hooks sub-menu child parent [ assigned to depth]\n function one_sub_menut_child( $depth, $args ) { /***/ }\n\n // Hooks Replace Content menu specific item link\n function Courses( $item, $depth, $args, $id ) { /***/ }\n\n // Hooks Replace Content menu specific item no-link\n function item_24Courses( $item, $depth, $args, $id ) { /***/ }\n  \n // Hooks insert element top and bottom from item\n function top_Courses( $item, $depth, $args, $id ) { /***/ }\n function bottom_Courses( $item, $depth, $args, $id ) { /***/ }\n\n```\n\n```PHP\n// replace link || no-link\nfunction item_27English() {\n  return [\n   child=\u003e [ \n     [h1, value=\u003e[\"Hello Wolrd\"]]\t\n   ]\t\n ];\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpwine%2Fwinewpmenuwalker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpwine%2Fwinewpmenuwalker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpwine%2Fwinewpmenuwalker/lists"}