Arlo

Event template related shortcodes

The following shortcodes can be used in the Arlo plugin.

[arlo_event_template_list_item][/arlo_event_template_list_item]

The shortcode represents an event template

Attributes

  • category (string): A category "slug" (which is usually the url of the category) can be passed to the shortcode and will be used as a base/root category.
  • limit (int): The default item per page can be overridden with this attribute. The default value is inherited from the WordPress "Posts per page" setting.
  • show_only_at_bottom (bool): If set to "true", the event templates list will only be shown at the bottom/leaf category.
  • show_child_elements (bool): If set to "true", all the templates will be shown from all the categories under the base/root category.
  • group (string): If the attribute is set, the [arlo_group_divider] shortcode can be used within the shortcode
    • "category": The templates list will be grouped by category.
    • "alpha": the templates list will be grouped by the templates' first (alphanumerical) character.

If the attributes are used in the [arlo_event_template_list_item] shortcode, it's necessary to add those with the same value to the [arlo_event_template_list_pagination] for the correct count of the items.

Must be used in the "Catalogue" template.

[arlo_event_template_list_pagination]

The shortcode will be replaced to a pager related to the template list. It uses the default paging function of the WordPress site.

Attributes

  • category (string): A category "slug" (which is usually the url of the category) can be passed to the shortcode and will be used as a base/root category.
  • limit (int): The default item per page can be overridden with this attribute. The default value is inherited from the WordPress "Posts per page" setting.
  • show_only_at_bottom (bool): If set to "true", the event templates list will only be shown at the bottom/leaf category.
  • show_child_elements (bool): If set to "true", all the templates will be shown from all the categories under the base/root category.

If the attributes are used in the [arlo_event_template_list_item] shortcode, it's necessary to add those with the same value to the [arlo_event_template_list_pagination] for the correct count of the items.

Must be used in the "Catalogue" template.

[arlo_event_template_code]

Represents the template's code.

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] or the [arlo_suggest_templates] shortcodes or in the "Event" template.

[arlo_event_template_name]

Represents the template's name.

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] or the [arlo_suggest_templates] shortcodes or in the "Event" template.

Represents the URL of the template within the WordPress instance.

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] or the [arlo_event_template_list_item] or the [arlo_suggest_templates] shortcodes or in the "Event" template.

Represents the URL of the template in Arlo. For more information, please view the ViewUri section at the documentation of the PUB API

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] or the [arlo_suggest_templates] shortcodes or in the "Event" template.

[arlo_event_template_advertised_duration]From: v2.4

Represents the given advertised duration of the template in Arlo. For more information, please view the AdvertisedDuration section at the documentation of the PUB API

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] shortcodes or in the "Event" template.

[arlo_event_template_summary]

Represents the template's summary field.

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] shortcodes or in the "Event" template.

[arlo_content_field_item][/arlo_content_field_item]

Represents the template's "Website page content" fields like "Description", "Outcomes", "Prerequisites" etc.

Attributes

  • fields (string): Can be used to define which content field will be shown. It is a comma separated list of the exact match of the name of the content field.

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] shortcodes and in the "Event" template.

Example

[arlo_content_field_item fields="Prerequisites"]
    [arlo_content_field_name wrap="<h5>%s</h5>"]
    [arlo_content_field_text]
[/arlo_content_field_item]

It will output the following HTML code

                <h5>Prerequisites</h5>
                The given rich text under "Prerequisites".
            

[arlo_content_field_name]

Represents the name of the content field.

Must be used within the [arlo_content_field_item] shortcode.

[arlo_content_field_text]

Represents the value of the content field.

Must be used within the [arlo_content_field_item] shortcode.

[arlo_event_template_filters]

Creates different dropdowns to filter the templates list.

Attributes

  • filters (string): Can be used to define which filter dropdown will be shown. It is a comma separated list with the following items:
    • "category": a dropdown with all the available categories (nested).
    • "location": a dropdown with all the available locations.
    • "delivery": a dropdown to filter the events by its delivery, with the following options:
      • "Online (Webinar)": Online events
      • "Workshop": Offline events
  • resettext (string): The displayed text of the reset button.
  • buttonclass (string): a CSS class name for the reset button.

Must be used in the "Catalogue" template.

[arlo_event_template_tags]From: v2.1.6

Creates a list of tags which are associated to the template

  • layout (string): Defines the layout of the output
    • "list": Outputs an HTML list
    • "class": Outputs a space separated list of sanitized tags (can be used as an HTML "class" attribute)
      From: v2.2
    Default: Outputs a comma separated list
  • prefix: Can be used in conjuction with the class layout to prefix the class names to avoid css conflicts
    Default: "arlo-"
    From: v2.2

Example

[arlo_event_list]
    [arlo_event_list_item]
        [arlo_event_tags layout="class" prefix="asd-" wrap='<li class="arlo-cf %s">']
        [arlo_event_name]
        </li>
    [/arlo_event_list_item]
[/arlo_event_list]

It will output the following HTML code for every event

                <li class="arlo-cf asd-tag1 asd-tag2">Event name</li>
            

Must be used within the [arlo_event_template_list_item] or the [arlo_upcoming_list_item] shortcodes or in the "Event" template.

[arlo_template_region_selector] From: v2.3

Creates a select drop down with the available regions. If there is no region specified, it returns nothing.

Must be used within the [arlo_event_template_list] shortcode or in the "Event" template.

[arlo_template_search_region_selector] From: v2.3

Creates a select drop down with the available regions. If there is no region specified, it returns nothing.

Must be used within the [arlo_event_template_search_list] shortcode.