Feature: surface support contact, rating and terms on booking page#20
Open
datengraben wants to merge 3 commits into
Open
Feature: surface support contact, rating and terms on booking page#20datengraben wants to merge 3 commits into
datengraben wants to merge 3 commits into
Conversation
Adds five new fields to the General settings tab (phone, email, contact form URL, service rating URL, booking terms URL) and renders them on templates/booking-single.php as three new sections — "Need help?", "Rate our service" and "Booking terms" — between the booking comment and the action buttons. Each section and each row is hidden when its underlying setting is empty, so behaviour is unchanged on upgrade until an operator fills in values. https://claude.ai/code/session_01KtRTPMpZShfNyQxLK73Qeo
Adds two toggleable funding entries to the General settings tab: "Fund the local initiative" and "Fund the plugin development", each with an enable checkbox, customisable label, and URL. The plugin funding URL defaults to the wielebenwir support page already linked from the plugin readme. Links render in a new "Support us" wrapper on the booking confirmation page between the rating and terms sections, and only when the corresponding checkbox is on AND a URL is set. https://claude.ai/code/session_01KtRTPMpZShfNyQxLK73Qeo
Wraps both funding links in .cb-button styling so they read as calls to action rather than inline text. The local-initiative button uses CB blue (--commonsbooking-color-secondary) and the plugin-development button uses CB light green (--commonsbooking-color-primary), matching the existing brand palette in assets/global/sass/partials/_variables. The plugin button also embeds the CommonsBooking logo at the start of the label for clearer attribution. https://claude.ai/code/session_01KtRTPMpZShfNyQxLK73Qeo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds five new fields to the General settings tab (phone, email, contact
form URL, service rating URL, booking terms URL) and renders them on
templates/booking-single.php as three new sections — "Need help?",
"Rate our service" and "Booking terms" — between the booking comment
and the action buttons. Each section and each row is hidden when its
underlying setting is empty, so behaviour is unchanged on upgrade
until an operator fills in values.
https://claude.ai/code/session_01KtRTPMpZShfNyQxLK73Qeo