Skip to content

Plingot/adventer-wp-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adventer Booking Plugin

Adds Adventer booking widgets to WordPress. Provide an Organizer ID in Settings, then use Gutenberg blocks or classic menus to open the event views.

Requirements

  • WordPress 6.0+
  • Gutenberg/block editor for blocks (classic menu supported via custom link)

Install

  1. Upload the plugin folder to wp-content/plugins/ or install via admin.
  2. Activate the plugin.

Configure

  1. Go to Settings → Adventer Booking.
  2. Organizer ID: paste your organizer ID.
  3. Active: enable to inject the widget script and register blocks.
  4. Optional: Button CSS Override to style .adventer-booking-button.

Staging vs Production

  • Toggle the constant at the top of adventer-booking-plugin.php:
    • ADVENTER_BOOKING_USE_STAGING true → stg.adventer.se
    • falseadventer.se

Blocks (when Active is enabled)

  • Adventer - All events (Link)
  • Adventer - All events (Button)
  • Adventer - Single event (Link)
  • Adventer - Single event (Button)

Notes

  • All-events blocks use the Organizer ID from Settings.
  • Single-event blocks require an Event ID attribute.
  • Alignment: use the alignment toolbar to center content.

Classic Menu (Appearance → Menus)

To add a “See all events” link in classic menus:

  1. Add a Custom Link with URL #adventer-all-events and your label.
  2. Save the menu. When Active and Organizer ID are set, the link will open the Adventer “All events” dialog.

Styling

  • Default button class: .adventer-booking-button.
  • Override styles via Settings → Button CSS Override, or theme CSS.

Update to new version

  1. Update version in adventer-booking-plugin.php
  2. Create a new tag and release in github with same version name.

Troubleshooting

  • Link/button does nothing: ensure plugin is Active and Organizer ID is set.
  • Blocks not visible: enable Active in Settings.
  • Wrong domain: set ADVENTER_BOOKING_USE_STAGING accordingly.

Support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published