# anamfathonaya/plstn-u architecture

> Architecture diagram of the GitHub repository anamfathonaya/plstn-u, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anamfathonaya/plstn-u
- Repository: https://github.com/anamfathonaya/plstn-u

## Overview

Plstn-U is a WordPress news theme with separate must-use plugins for editorial content types and RSS feeds. The main reader workflow is WordPress routing a request to a view composer, which prepares query-backed data for Blade templates to render as news pages and shared interface components. Composer modules also cover article, archive, trending, and page states. The README documents these responsibilities; unsampled template wiring is represented only where documented, and optional integrations remain separate.

Main entry points: [`theme/app/View/Composers/FrontPage.php`](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/FrontPage.php) (Front-page data), [`theme/app/View/Composers/Single.php`](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Single.php) (Article data), [`theme/resources/views/components`](https://github.com/anamfathonaya/plstn-u/tree/main/theme/resources/views/components) (Shared Blade interface), [`theme/app/View/Composers/Trending.php`](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Trending.php) (Trending data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["WordPress integration"]
  node_theme_boot["Theme bootstrap<br/>[functions.php]"]
  node_theme_setup["Theme setup<br/>[setup.php]"]
  node_theme_provider["Sage provider"]
end

subgraph group_content["Editorial content"]
  node_content_types["Editorial post types"]
  node_feeds["RSS feeds<br/>[pu-feeds.php]"]
end

subgraph group_composition["View composition"]
  node_frontpage["Front-page data<br/>[FrontPage.php]"]
  node_single["Article data<br/>[Single.php]"]
  node_archive["Archive and search data<br/>[Archive.php]"]
  node_trending["Trending data<br/>[Trending.php]"]
  node_app_data["Shared site data<br/>[App.php]"]
  node_news_index["News index URL<br/>[NewsIndex.php]"]
  node_other_composers["Page composers"]
end

subgraph group_presentation["Reader experience"]
  node_home_template["Home templates"]
  node_single_template["Article templates<br/>[single.blade.php]"]
  node_archive_templates["Archive templates"]
  node_specialty_templates["Video and infographic views"]
  node_shared_views["Shared Blade interface"]
  node_layout["Application layout<br/>[app.blade.php]"]
  node_client_js["Browser interactions<br/>[app.js]"]
end

node_wordpress(("WordPress"))
node_views_counter["Post Views Counter"]

node_wordpress -->|"loads theme"| node_theme_boot
node_theme_boot -->|"boots provider"| node_theme_provider
node_theme_boot -->|"loads setup"| node_theme_setup
node_wordpress -->|"loads plugin"| node_content_types
node_wordpress -->|"loads plugin"| node_feeds
node_wordpress -.->|"routes request"| node_frontpage
node_wordpress -.->|"routes request"| node_single
node_wordpress -.->|"routes request"| node_archive
node_frontpage -->|"provides data"| node_home_template
node_single -->|"provides data"| node_single_template
node_archive -->|"provides data"| node_archive_templates
node_archive -->|"serves archive views"| node_specialty_templates
node_frontpage -->|"uses URL"| node_news_index
node_single -->|"uses URL"| node_news_index
node_frontpage -->|"queries posts"| node_wordpress
node_single -->|"queries posts"| node_wordpress
node_trending -->|"queries posts"| node_wordpress
node_trending -.->|"orders by views"| node_views_counter
node_app_data -->|"supplies shared data"| node_shared_views
node_trending -->|"supplies trending list"| node_shared_views
node_layout -.->|"renders components"| node_shared_views
node_client_js -.->|"supports interactions"| node_shared_views
node_other_composers -->|"prepares page data"| node_wordpress

click node_theme_boot "https://github.com/anamfathonaya/plstn-u/blob/main/theme/functions.php"
click node_theme_setup "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/setup.php"
click node_theme_provider "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/Providers/ThemeServiceProvider.php"
click node_content_types "https://github.com/anamfathonaya/plstn-u/blob/main/mu-plugins/pu-content-types.php"
click node_feeds "https://github.com/anamfathonaya/plstn-u/blob/main/mu-plugins/pu-feeds.php"
click node_frontpage "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/FrontPage.php"
click node_single "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Single.php"
click node_archive "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Archive.php"
click node_trending "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Trending.php"
click node_app_data "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/App.php"
click node_news_index "https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/Support/NewsIndex.php"
click node_other_composers "https://github.com/anamfathonaya/plstn-u/tree/main/theme/app/View/Composers"
click node_home_template "https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/views/front-page.blade.php"
click node_single_template "https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/views/single.blade.php"
click node_archive_templates "https://github.com/anamfathonaya/plstn-u/tree/main/theme/resources/views"
click node_specialty_templates "https://github.com/anamfathonaya/plstn-u/tree/main/theme/resources/views"
click node_shared_views "https://github.com/anamfathonaya/plstn-u/tree/main/theme/resources/views/components"
click node_layout "https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/views/layouts/app.blade.php"
click node_client_js "https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/js/app.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_theme_boot,node_theme_setup,node_theme_provider,node_views_counter toneBlue
class node_content_types,node_feeds toneAmber
class node_frontpage,node_single,node_archive,node_trending,node_app_data,node_news_index,node_other_composers toneMint
class node_home_template,node_single_template,node_archive_templates,node_specialty_templates,node_shared_views,node_layout,node_client_js toneRose
class node_wordpress toneIndigo
```

## Components

### WordPress integration

- [Theme bootstrap](https://github.com/anamfathonaya/plstn-u/blob/main/theme/functions.php): `theme/functions.php`
- [Theme setup](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/setup.php): `theme/app/setup.php`
- [Sage provider](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/Providers/ThemeServiceProvider.php): `theme/app/Providers/ThemeServiceProvider.php`

### Editorial content

- [Editorial post types](https://github.com/anamfathonaya/plstn-u/blob/main/mu-plugins/pu-content-types.php): `mu-plugins/pu-content-types.php`
- [RSS feeds](https://github.com/anamfathonaya/plstn-u/blob/main/mu-plugins/pu-feeds.php): `mu-plugins/pu-feeds.php`

### View composition

- [Front-page data](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/FrontPage.php): `theme/app/View/Composers/FrontPage.php`
- [Article data](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Single.php): `theme/app/View/Composers/Single.php`
- [Archive and search data](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Archive.php): `theme/app/View/Composers/Archive.php`
- [Trending data](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/Trending.php): `theme/app/View/Composers/Trending.php`
- [Shared site data](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/View/Composers/App.php): `theme/app/View/Composers/App.php`
- [News index URL](https://github.com/anamfathonaya/plstn-u/blob/main/theme/app/Support/NewsIndex.php): `theme/app/Support/NewsIndex.php`
- [Page composers](https://github.com/anamfathonaya/plstn-u/tree/main/theme/app/View/Composers): `theme/app/View/Composers`

### Reader experience

- [Home templates](https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/views/front-page.blade.php): `theme/resources/views/front-page.blade.php`
- [Article templates](https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/views/single.blade.php): `theme/resources/views/single.blade.php`
- [Archive templates](https://github.com/anamfathonaya/plstn-u/tree/main/theme/resources/views): `theme/resources/views`
- [Video and infographic views](https://github.com/anamfathonaya/plstn-u/tree/main/theme/resources/views): `theme/resources/views`
- [Shared Blade interface](https://github.com/anamfathonaya/plstn-u/tree/main/theme/resources/views/components): `theme/resources/views/components`
- [Application layout](https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/views/layouts/app.blade.php): `theme/resources/views/layouts/app.blade.php`
- [Browser interactions](https://github.com/anamfathonaya/plstn-u/blob/main/theme/resources/js/app.js): `theme/resources/js/app.js`

### Other components

- **WordPress**
- **Post Views Counter**

## Connections

- WordPress → Theme bootstrap: loads theme (evidence: `theme/functions.php`)
- Theme bootstrap → Sage provider: boots provider (evidence: `theme/functions.php`)
- Theme bootstrap → Theme setup: loads setup (evidence: `theme/functions.php`)
- WordPress → Editorial post types: loads plugin (evidence: `mu-plugins/pu-content-types.php`)
- WordPress → RSS feeds: loads plugin (evidence: `mu-plugins/pu-feeds.php`)
- WordPress → Front-page data: routes request
- WordPress → Article data: routes request
- WordPress → Archive and search data: routes request
- Front-page data → Home templates: provides data
- Article data → Article templates: provides data
- Archive and search data → Archive templates: provides data (evidence: `theme/app/View/Composers/Archive.php`)
- Archive and search data → Video and infographic views: serves archive views (evidence: `theme/app/View/Composers/Archive.php`)
- Front-page data → News index URL: uses URL (evidence: `theme/app/View/Composers/FrontPage.php`)
- Article data → News index URL: uses URL (evidence: `theme/app/View/Composers/Single.php`)
- Front-page data → WordPress: queries posts (evidence: `theme/app/View/Composers/FrontPage.php`)
- Article data → WordPress: queries posts (evidence: `theme/app/View/Composers/Single.php`)
- Trending data → WordPress: queries posts (evidence: `theme/app/View/Composers/Trending.php`)
- Trending data → Post Views Counter: orders by views (evidence: `theme/app/View/Composers/Trending.php`)
- Shared site data → Shared Blade interface: supplies shared data
- Trending data → Shared Blade interface: supplies trending list (evidence: `theme/app/View/Composers/Trending.php`)
- Application layout → Shared Blade interface: renders components
- Browser interactions → Shared Blade interface: supports interactions
- Page composers → WordPress: prepares page data
