helsingborg-stad / api-event-manager-integration
Import and display events from Event Manager API.
Installs: 17 551
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 12
Forks: 4
Open Issues: 12
Type:wordpress-plugin
Requires
- php: ^8.0
- helsingborg-stad/acf-export-manager: >=1.0.0
- justinrainbow/json-schema: ^5.2
Requires (Dev)
- 10up/wp_mock: ^0.5.0
- lucatume/function-mocker: ^1.3
- dev-main
- dev-master
- dev-3.0/develop
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.15.13
- 0.15.12
- 0.15.11
- 0.15.10
- 0.15.9
- 0.15.8
- 0.15.7
- 0.15.6
- 0.15.5
- 0.15.4
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.0
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.0
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.13
- 0.6.12
- 0.6.11
- 0.6.10
- 0.6.9
- 0.6.8
- 0.6.7
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.1
- 0.4.0
- 0.3.14
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.81
- 0.1.80
- 0.1.79
- 0.1.78
- 0.1.77
- 0.1.76
- 0.1.75
- 0.1.74
- 0.1.73
- 0.1.72
- 0.1.71
- 0.1.70
- 0.1.69
- 0.1.68
- 0.1.67
- 0.1.66
- 0.1.65
- 0.1.64
- 0.1.63
- 0.1.61
- 0.1.60
- 0.1.59
- 0.1.58
- 0.1.57
- 0.1.56
- 0.1.55
- 0.1.54
- 0.1.53
- 0.1.52
- 0.1.51
- 0.1.50
- 0.1.49
- 0.1.48
- 0.1.47
- 0.1.46
- 0.1.45
- 0.1.44
- 0.1.43
- 0.1.42
- 0.1.41
- 0.1.40
- 0.1.39
- 0.1.38
- 0.1.37
- 0.1.36
- 0.1.34
- 0.1.33
- 0.1.32
- 0.1.31
- 0.1.30
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.2
- 0.1.1
- dev-fix/change-html-structure-event-index-cards
- dev-feat/install-npm
- dev-fix/archive-get-date
- dev-fix/allowing-more-categories-and-terms-than-default
- dev-fix/adding-translation-label-for-pagination-item
- dev-fix/adding-labels-for-pagination
- dev-fix/deprecated-municipio-function
- dev-fix/organizer-text-error
- dev-fix/view-additional-ticket-types-causes-fatal-error
- dev-fix/replace-global-blade-service
- dev-fix/event-classes-space
- dev-fix/changing-pagination-param
- dev-php-8.3
- dev-fix/undefined-id
- dev-fix/unknown-module-id
- dev-revert-225-feature/require-image
- dev-feature/require-image
- dev-fix/xl-modifier-added
- dev-fix/events-not-getting-images
- dev-feature/required-fields-event-form
- dev-3.0/fix/event-form-not-sending-without-img
- dev-3.0/fix/form-notices
- dev-3.0/feat/form-submission-notices
- dev-3.0/fix/correct-js-loading
- dev-3.0/fix/select-fetched-options-not-showing
- dev-3.0/fix/warning-notices-single-event
- dev-feature/Kategorifilter-p-event-frsvinner-nr-en-eller-flera-kategorier-r-valt-CU-865cnw3d5
- dev-3.0/fix/image-names-urlencode
- dev-feature/Alla-objekt-som-skapas-i-samband-med-ett-inskickat-eventformulr-ska-f-samma-grupptillhrighet-som-formulret-det-skickas-in-frn-CU-865ck4wbk
- dev-3.0/fix/show-map-aria-label
- dev-3.0/feature/data-js-attributes
- dev-feature/transient-event-query-storage
- dev-3.0/fix/datebadge-z-index
- dev-3.0/feature/event-single-title-margin
- dev-feature/replace-general-booking-link-with-occasion-booking-link-if-exists
- dev-dependabot/npm_and_yarn/qs-and-browser-sync-6.11.1
- dev-dependabot/npm_and_yarn/ua-parser-js-and-browser-sync-1.0.34
- dev-dependabot/npm_and_yarn/engine.io-6.2.1
- dev-3.0/feature/styling-context
- dev-fix/show-map-translations
- dev-3.0/fix/form-notice
- dev-3.o/access/single-event-lists
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-feature/accessibility-improvements
- dev-feature/Lgg-till-mailto-p-eventsidorna-CU-3xcr37k
- dev-3.0/feature/error-msg
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-3.0/access/eventform-labels-etc
- dev-3.0/fix/attributes-fix
- dev-3.0/validation-refactoring
- dev-dependabot/npm_and_yarn/engine.io-and-browser-sync-6.2.1
- dev-3.0/duration-formatting
- dev-dependabot/npm_and_yarn/minimatch-and-rev-del-3.0.8
- dev-3.0/fix/form-bug
- dev-3.0/feature/events-image-ratio
- dev-3.0/feature/event-calendar-age-filters
- dev-3.0/feature/import-correct-events
- dev-3.0/feature/flat-card-styling
- dev-3.0/fix/age-filter-doesnt-list-event-without-age
- dev-3.0/fix/no-event-image
- dev-3.0/feature/replace-age-range
- dev-3.0/feature/update-age-filter-sql-query-2
- dev-3.0/fix/search-icon
- dev-3.0/feature/refine-age-filter-refresh-min-max
- dev-3.0/feature/min-max-parameters
- dev-3.0/fix/always-display-events-with-no-age
- dev-3.0/fix/refine-age-filter
- dev-3.0/fix/crashing-age-filter-fix
- dev-3.0/feat-php-update
- dev-3.0/filter-layout
- dev-3.0/fix/update-hbg-react
- dev-3.0/fix/age-range-bug
- dev-3.0/feature/reset-filters
- dev-3.0/feature/button-reset-filter
- dev-3.0/feature/categories-dropdown-styling
- dev-3.0/feature/date-badge-added
- dev-3.0/feature/filter-design
- dev-3.0/fix/layout-grid-fix
- dev-3.0/feature/accessibility-labels-translations
- dev-3.0/feature/reset-filters-button
- dev-3.0/date-badge-added
- dev-3.0/bug/filters-noshow
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-3.0/feature/event-design-options
- dev-feature/remove-location-info
- dev-ci/builder
- dev-dependabot/npm_and_yarn/shell-quote-1.7.3
- dev-feature/pagination-fix
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-3.0/fix/remove-history-function-when-translating
- dev-wip/event-fields
- dev-3.0/fix/remove-api-nonce-validation
- dev-3.0/feature/refactor-archive-template-partials
- dev-3.0/feature/single-layout-work
- dev-develop
This package is auto-updated.
Last update: 2024-11-11 09:17:08 UTC
README
Import and display events from Event Manager API.
Download plugin.
To download a complete out of the box working plugin without the need to compile or fetch dependencies.
Go here and download the full-release.zip
from the latest version.
Getting started
- Download & activate plugin
- Navigate to Events -> Options (from Wordpress Dashboard)
- Fill in 'API url' with your Wordpress API rest URL eg. 'https://your-wordpress-url.com/json/wp/v2/'
- Add additional configuration (optional) and save options
- Navigate to Events & start import
Shortcodes
event_submit_form
Displays a form to post events directly to Event Manager API.
It requires that the client is authorized to submit events.
Parameters:
user_groups Comma separated string with group IDs. Sets default user groups for all submited events.
Example:
[event_submit_form user_groups="1337"]
single_event_accordion
Shortcode to display event information as accordion.
Add the shortcode to your single event template file.
Example:
[single_event_accordion]
single_event_information
Shortcode to display event information as list element.
Add the shortcode to your single event template file.
Example:
[single_event_information]
gallery
Gallery images is stored as attached images.
Therefore you can use WordPress built in shortcode to display the images.
Add the shortcode to your single event template file.
Example:
[gallery]
JavaScript widgets
Event List code example
Here is a code example to display a list of events.
Use the attributes listed below to set API-url and different filters.
Data attributes:
data-apiurl Url to Event manager API root.
group-id Add one or many(separated with comma) group ID to get events from specific groups.
category-id Add one or many(separated with comma) category ID to get events from specific categories.
latlng Enter latitude and longotide(separated with comma) to get events occurring at a certain location.
distance Used with `latlng` attribute to get events within a given radius. Enter value in kilometers.
Example:
<div class="box box-panel box-primary"> <h4 class="box-title">Evenemang</h4> <ul class="event-api" data-apiurl="http://api.helsingborg.se/event/json/wp/v2" group-id="" category-id="" latlng="56.0464674,12.694512099999997" distance="1"> <li class="event-loading-template"><i class="loading-dots" style="margin: 10px auto;"></i></li> <div class="template hidden"> <li> <div class="grid"> <div class="grid-xs-1 text-center text-sm"> {event-occasion} </div> <div class="grid-xs-11"> <a class="modal-event" data-event-id="{event-id}" href="#modal-event">{event-title}</a> </div> </div> </li> </div> <div class="modal-template hidden"> <div id="modal-event" class="modal modal-backdrop-1 modal-medium" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="modal-body"> <div class="grid"> <div class="grid-md-4"> <div class="gutter gutter-vertical gutter-margin"> {event-modal-image} </div> <div class="accordion accordion-icon accordion-list gutter gutter-vertical gutter-margin"> {event-modal-occations} {event-modal-location} {event-modal-booking} </div> </div> <div class="grid-md-8"> <article> <h2 class="modal-title">{event-modal-title}</h2> {event-modal-content} {event-modal-link} </article> </div> </div> </div> </div><!-- /.modal-content --> <a href="#close" class="backdrop"></a> </div><!-- /.modal --> </div> <div class="error-template hidden"> <li class="notice warning"> <i class="fa fa-warning"></i> Whoopsie! We could not load the event's for today. Please try again later. </li> </div> </ul> </div>