# thakurgit/engagifii architecture

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

- Interactive diagram: https://gitdiagram.com/thakurgit/engagifii
- Repository: https://github.com/thakurgit/engagifii

## Overview

Engagifii is a WordPress plugin that retrieves Engagifii platform content and presents it through shortcodes and public-facing views. The principal workflow is a WordPress visitor embedding or viewing a module, followed by plugin handling and rendered domain content; administrators configure credentials and display options separately. The README documents the major content areas, but sampled source does not show the runtime request-to-view call chain, so those internal links are omitted rather than inferred.

Main entry points: [`engagifii.php`](https://github.com/thakurgit/engagifii/blob/master/engagifii.php) (Plugin Bootstrap), [`includes/admin/admin-config-area.php`](https://github.com/thakurgit/engagifii/blob/master/includes/admin/admin-config-area.php) (Admin Configuration), [`includes/admin/view/admin-settings-form.php`](https://github.com/thakurgit/engagifii/blob/master/includes/admin/view/admin-settings-form.php) (Settings Form), [`includes/public/model/class-engagifii-shortcodes.php`](https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-shortcodes.php) (Shortcode Handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Plugin Runtime"]
  node_plugin["Plugin Bootstrap<br/>[engagifii.php]"]
  node_shortcodes["Shortcode Handler"]
  node_api["Engagifii API Client"]
  node_model["Content Model"]
  node_modelv2["Content Model V2"]
end

subgraph group_admin["Administration"]
  node_adminconfig["Admin Configuration"]
  node_settings["Plugin Settings"]
  node_settingsform["Settings Form"]
  node_columns["Display Options"]
end

subgraph group_content["Public Content"]
  node_legislation["Bills &amp; Legislation<br/>[grid-listing.php]"]
  node_officials["Public Officials"]
  node_events["Events Calendar"]
  node_training["Training Calendar"]
  node_classes["Classes Directory"]
  node_courses["Courses Directory"]
  node_organizations["Organizations<br/>[organizations.php]"]
end

subgraph group_dashboard["Member Dashboard"]
  node_profile["Member Dashboard"]
end

node_editor(("WordPress Visitor"))
node_platform{{"Engagifii Platform"}}

node_editor -->|"uses plugin"| node_plugin
node_plugin -->|"initializes"| node_shortcodes
node_plugin -->|"initializes admin"| node_settings
node_plugin -->|"loads"| node_api
node_plugin -->|"loads"| node_model
node_plugin -->|"loads"| node_modelv2
node_plugin -->|"loads"| node_adminconfig
node_plugin -->|"integrates API"| node_platform
node_editor -->|"embeds bills"| node_legislation
node_editor -->|"views directory"| node_officials
node_editor -->|"views calendar"| node_events
node_editor -->|"views calendar"| node_training
node_editor -->|"embeds classes"| node_classes
node_editor -->|"embeds courses"| node_courses
node_editor -->|"views profiles"| node_organizations
node_editor -.->|"uses dashboard"| node_profile
node_adminconfig -->|"renders form"| node_settingsform
node_settingsform -->|"includes options"| node_columns

click node_plugin "https://github.com/thakurgit/engagifii/blob/master/engagifii.php"
click node_shortcodes "https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-shortcodes.php"
click node_api "https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-api.php"
click node_model "https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-model.php"
click node_modelv2 "https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-model-v2.php"
click node_legislation "https://github.com/thakurgit/engagifii/blob/master/includes/public/views/legislation/grid-listing.php"
click node_officials "https://github.com/thakurgit/engagifii/tree/master/includes/public/views/public_official"
click node_events "https://github.com/thakurgit/engagifii/tree/master/includes/public/views/events"
click node_training "https://github.com/thakurgit/engagifii/tree/master/includes/public/views/trainingcalendar"
click node_classes "https://github.com/thakurgit/engagifii/tree/master/includes/public/views/classes"
click node_courses "https://github.com/thakurgit/engagifii/tree/master/includes/public/views/courses"
click node_organizations "https://github.com/thakurgit/engagifii/blob/master/includes/public/views/organizations/organizations.php"
click node_adminconfig "https://github.com/thakurgit/engagifii/blob/master/includes/admin/admin-config-area.php"
click node_settings "https://github.com/thakurgit/engagifii/blob/master/includes/admin/class-engagifii-settings.php"
click node_settingsform "https://github.com/thakurgit/engagifii/blob/master/includes/admin/view/admin-settings-form.php"
click node_columns "https://github.com/thakurgit/engagifii/blob/master/includes/admin/view/legislation/admin-column-list.php"
click node_profile "https://github.com/thakurgit/engagifii/blob/master/includes/public/views/dashboard/engagifii-profile.php"

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_plugin,node_shortcodes,node_api,node_model,node_modelv2 toneBlue
class node_adminconfig,node_settings,node_settingsform,node_columns toneAmber
class node_legislation,node_officials,node_events,node_training,node_classes,node_courses,node_organizations toneMint
class node_profile toneRose
class node_editor,node_platform toneIndigo
```

## Components

### Plugin Runtime

- [Plugin Bootstrap](https://github.com/thakurgit/engagifii/blob/master/engagifii.php): `engagifii.php`
- [Shortcode Handler](https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-shortcodes.php): `includes/public/model/class-engagifii-shortcodes.php`
- [Engagifii API Client](https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-api.php): `includes/public/model/class-engagifii-api.php`
- [Content Model](https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-model.php): `includes/public/model/class-engagifii-model.php`
- [Content Model V2](https://github.com/thakurgit/engagifii/blob/master/includes/public/model/class-engagifii-model-v2.php): `includes/public/model/class-engagifii-model-v2.php`

### Administration

- [Admin Configuration](https://github.com/thakurgit/engagifii/blob/master/includes/admin/admin-config-area.php): `includes/admin/admin-config-area.php`
- [Plugin Settings](https://github.com/thakurgit/engagifii/blob/master/includes/admin/class-engagifii-settings.php): `includes/admin/class-engagifii-settings.php`
- [Settings Form](https://github.com/thakurgit/engagifii/blob/master/includes/admin/view/admin-settings-form.php): `includes/admin/view/admin-settings-form.php`
- [Display Options](https://github.com/thakurgit/engagifii/blob/master/includes/admin/view/legislation/admin-column-list.php): `includes/admin/view/legislation/admin-column-list.php`

### Public Content

- [Bills & Legislation](https://github.com/thakurgit/engagifii/blob/master/includes/public/views/legislation/grid-listing.php): `includes/public/views/legislation/grid-listing.php`
- [Public Officials](https://github.com/thakurgit/engagifii/tree/master/includes/public/views/public_official): `includes/public/views/public_official`
- [Events Calendar](https://github.com/thakurgit/engagifii/tree/master/includes/public/views/events): `includes/public/views/events`
- [Training Calendar](https://github.com/thakurgit/engagifii/tree/master/includes/public/views/trainingcalendar): `includes/public/views/trainingcalendar`
- [Classes Directory](https://github.com/thakurgit/engagifii/tree/master/includes/public/views/classes): `includes/public/views/classes`
- [Courses Directory](https://github.com/thakurgit/engagifii/tree/master/includes/public/views/courses): `includes/public/views/courses`
- [Organizations](https://github.com/thakurgit/engagifii/blob/master/includes/public/views/organizations/organizations.php): `includes/public/views/organizations/organizations.php`

### Member Dashboard

- [Member Dashboard](https://github.com/thakurgit/engagifii/blob/master/includes/public/views/dashboard/engagifii-profile.php): `includes/public/views/dashboard/engagifii-profile.php`

### Other components

- **WordPress Visitor**
- **Engagifii Platform**

## Connections

- WordPress Visitor → Plugin Bootstrap: uses plugin
- Plugin Bootstrap → Shortcode Handler: initializes (evidence: `engagifii.php`)
- Plugin Bootstrap → Plugin Settings: initializes admin (evidence: `engagifii.php`)
- Plugin Bootstrap → Engagifii API Client: loads (evidence: `engagifii.php`)
- Plugin Bootstrap → Content Model: loads (evidence: `engagifii.php`)
- Plugin Bootstrap → Content Model V2: loads (evidence: `engagifii.php`)
- Plugin Bootstrap → Admin Configuration: loads (evidence: `engagifii.php`)
- Plugin Bootstrap → Engagifii Platform: integrates API
- WordPress Visitor → Bills & Legislation: embeds bills
- WordPress Visitor → Public Officials: views directory
- WordPress Visitor → Events Calendar: views calendar
- WordPress Visitor → Training Calendar: views calendar
- WordPress Visitor → Classes Directory: embeds classes
- WordPress Visitor → Courses Directory: embeds courses
- WordPress Visitor → Organizations: views profiles
- WordPress Visitor → Member Dashboard: uses dashboard
- Admin Configuration → Settings Form: renders form (evidence: `includes/admin/admin-config-area.php`)
- Settings Form → Display Options: includes options (evidence: `includes/admin/view/admin-settings-form.php`)
