Documentation
/ Models
Model � Partner site integration
A portable partner site needs four modules. MP Backyard Solutions is the reference implementation under app/mpbackyardsolutions/.
Modules
- Config � load env constants for Labored keys/slug/company id
- Lead client � POST JSON to
submit_requestwith partner key - Media client � GET
mediawithlbr_*+company_id - Gallery merge � union local images + Labored portfolio for public UI
Suggested file map
config/env.php # LABORED_* constants
includes/labored_client.php # media + partner request helpers
includes/gallery_merge.php # merge shapes for templates
api/public_gallery.php # JSON for partners / embeds
dashboard/labored.php # operator hub
Display shape (gallery item)
{
"display_type": "single|before_after|three_column",
"label": "Patio rebuild",
"description": "Hingham, MA",
"image_path": "https://labored.net/uploads/portfolio/3/�",
"before_image_path": "https://�",
"after_image_path": "https://�",
"source": "local|labored",
"labored_id": 9
}
Remote absolute URLs reuse the same fields as local relative paths so templates stay unchanged.