{"id":48536158,"url":"https://github.com/ucsc/ucsc-primary-sites","last_synced_at":"2026-04-08T02:01:07.487Z","repository":{"id":349625032,"uuid":"1200666449","full_name":"ucsc/ucsc-primary-sites","owner":"ucsc","description":"Functionality for primary UC Santa Cruz websites","archived":false,"fork":false,"pushed_at":"2026-04-06T19:51:35.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T21:25:34.502Z","etag":null,"topics":["plugin","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ucsc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-03T17:25:54.000Z","updated_at":"2026-04-06T19:53:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ucsc/ucsc-primary-sites","commit_stats":null,"previous_names":["ucsc/ucsc-primary-sites"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ucsc/ucsc-primary-sites","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucsc%2Fucsc-primary-sites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucsc%2Fucsc-primary-sites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucsc%2Fucsc-primary-sites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucsc%2Fucsc-primary-sites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ucsc","download_url":"https://codeload.github.com/ucsc/ucsc-primary-sites/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucsc%2Fucsc-primary-sites/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31536473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["plugin","wordpress"],"created_at":"2026-04-08T02:00:55.870Z","updated_at":"2026-04-08T02:01:07.479Z","avatar_url":"https://github.com/ucsc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UCSC Primary Sites\n\nWordPress plugin that loads site-specific functionality for the primary UC Santa Cruz websites: **www**, **news**, and **events**.\n\n## How it works\n\nThe plugin uses a registry/loader/module architecture:\n\n1. **Site Registry** -- maps named site groups (e.g. `www`, `news`, `events`) to URL patterns and module classes.\n2. **Site Loader** -- resolves the current site URL against the registry and boots matching modules.\n3. **Modules** -- self-contained feature classes that register hooks, post types, blocks, and other WordPress functionality.\n\nSites are matched automatically by URL pattern (e.g. `https://news.ucsc.edu`). An admin settings page under **Settings \u003e UCSC Primary Sites** allows overriding any group to always-on, always-off, or auto (URL-based).\n\n## Site groups\n\n| Group  | Patterns                              | Modules                                    |\n|--------|---------------------------------------|--------------------------------------------|\n| WWW    | `www.ucsc.edu`, `*www-ucsc*`          | Front Page, Dashboard Widgets              |\n| News   | `news.ucsc.edu`, `*news-ucsc*`        | Media Coverage, Dashboard Widgets, Block Variations |\n| Events | `events.ucsc.edu`, `*events-ucsc*`    | Block Bindings, Users Events Column        |\n\n## Adding a new module\n\n1. Create a class in the appropriate `sites/\u003cgroup\u003e/modules/` directory that extends `UCSC\\PrimarySites\\Module`.\n2. Implement `get_name()` and `boot()`. Optionally override `can_load()` to check dependencies.\n3. Add the class to the group's module list in `sites/registry.php`.\n\n## Requirements\n\n- WordPress 6.4+\n- PHP 8.0+\n- [ACF Pro](https://www.advancedcustomfields.com/pro/) (required by the Media Coverage module in `news`; other modules load without it)\n\n## License\n\nThis plugin is licensed under the [GPL-2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucsc%2Fucsc-primary-sites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucsc%2Fucsc-primary-sites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucsc%2Fucsc-primary-sites/lists"}