mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[PR #1769] [MERGED] Add user custom header/footer functions #1825
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1825
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tzapu/WiFiManager/pull/1769
Author: @dmadison
Created: 10/23/2024
Status: ✅ Merged
Merged: 12/12/2024
Merged by: @tablatronix
Base:
master← Head:header-footer📝 Commits (9)
6e6a8d9Added setCustomTopBodyElement allowing to define custom HTML to be added at the top of the "" tag.5f02005Change custom top body element to 'header'25fbfacMake custom header concat conditional40efe60Create getHTTPEnd function82c074aAdd custom body footer functionalityb253e11Fix close tag on update page5d804f0Add missing HTTP ends to exit and closee2a287fRemove 'immediately' from header/footer desca03f4eeMerge branch 'master' into header-footer📊 Changes
5 files changed (+60 additions, -15 deletions)
View changed files
📝
WiFiManager.cpp(+46 -10)📝
WiFiManager.h(+11 -2)📝
wm_strings_en.h(+1 -1)📝
wm_strings_es.h(+1 -1)📝
wm_strings_fr.h(+1 -1)📄 Description
This PR adds user-facing functions for custom header and footer HTML at the top and bottom of the
<body>:Functions:
Demo:
This also fixes two incidental bugs:
<small>tag for the 'update' page was not closed (missing the slash)"</div></body></html>")The header function was originally implemented by @ab-tools in #1695. This PR extends and supersedes #1695, which should be closed if this is merged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.