Lueira Embed

Plugin Banner

Lueira Embed

by maladeta

Download
Description

Lueira Embed adds a shortcode that renders a configurable button. The button opens an accessible modal showing an iframe with a Lueira marketplace activity. Administrators can configure the base host URL from the WordPress settings screen.

Usage

Basic Shortcode

[lueira id=”cd2j3bkk7mdnur3r857g” module=”school” product_type=”private”]

Shortcode Parameters

Parameter
Required
Default
Description

id
Yes

The activity ID to embed

module
Yes

The module type (e.g., “school”, “rent”)

product_type
No

Optional product type (e.g., “private”, “group-package”) included when available

lang
No
“es”
Language code for localized content, default is “es”

button_text
No
“View activity”
Text displayed on the button

class
No

Additional CSS classes for the button

Examples

  • School Activity (Private): [lueira id="456" module="school" product_type="private" button_text="View Activity"]
  • School Group Package in English: [lueira id="789" module="school" product_type="group-package" lang="en" class="btn-primary" button_text="Join Group Package"]
  • Rent Bundle with Custom Styling: [lueira id="101" module="rent" product_type="bundle" lang="es" button_text="Ver Actividad" class="lueira-embed__trigger--accent"]
  1. Upload the plugin files to /wp-content/plugins/lueira/ or install via the WordPress admin.
  2. Activate through the “Plugins” screen.
  3. Visit Settings > Lueira Embed to confirm the marketplace host URL.
How do I embed an activity?

Use [lueira id="123" module="school" product_type="private"] in any post or page.

Can I localize the embed?

Yes. Pass the lang attribute (for example lang="es") to load the appropriate localized content.

1.0.2

  • Allow shortcode usage without product_type and adjust the embed URL accordingly.

1.0.0

  • Initial release with shortcode, modal UI, and admin configuration page.
Back to top