Lift & Trail Status

By Medic52

0+ active installationsVersion 1.5.0

Display the status of lifts and trails for your ski resort or adventure park on your website. Great for mountain bike, water, ropes & adventure parks.

Description

This plugin helps you display up to date information about the status of lifts and trails on your website. The data is imported from the MTN.XML standard in XML or JSON format. Any user able to install plugins can set this up and customise it. The default configuration provides HTML & CSS that allows display for lifts and trails within areas.

Installation Via Medic52 Dashboard

As an administrator for your company, login to the Medic52 Dashboard and navigate to Settings > Resort Settings
* Look for the ‘Live Lift / Run status feeds’
* Copy the link titled ‘JSON’
* Paste in to the plugin under Settings ‘Datafeed URL’
* Click Save

Any XML or JSON MTN.XML feed

Find the URL to your MTN.XML feed and copy it
* Paste in to the plugin under Settings ‘Datafeed URL’
* Click Save

Shortcode

Once your feed is configured, you can implement the shortcode on any page. This is displayed on the first Settings page of the plugin. You can click the ‘Create a new page’ button to add a new page with the shortcode installed, or copy it and place it on an existing page if you prefer.

[medic52_lift_trail_status]
[medic52_lift_status]
[medic52_trail_status]

Customisation Trail Ratings

You can customise the Trail Ratings colors and icons as you wish. The plugin comes with a default set that you are free to use, however your circumstances may mean that you already present different icons to your audience.

  • Icons *
    To change an icon
  • click on the existing icon to the right of the color picker
  • upload your new icon to the media library (recommended 24px x 24px)
  • select this icon
  • click save at the bottom

  • Colors *
    Select the color next to the trail rating you wish to change and use the color picker to alter it. Click save at the bottom.

  • Layout *
    The plugin has two layouts currently, you can list your lifts at the top, seperately to the trails, or have lifts and trails combined within each area. Change this with the ‘List Lifts separately’ in the Customisation tab.

Change your Datafeed URL

You can change your data feed URL by clicking the ‘Change URL’ button in the plugin settings and saving a new URL.

FAQ

Can I use my own data feed?

Absolutely. This plugin uses an XML or JSON form of the popular MTN.XML standard. Many ski resorts use this standard and already publish information readily available on the public internet.

Can I use a private data feed?

Your JSON feed must be available with no authentication or authorisation on the public internet.

What can I customise?

In the plugin settings, once you configure your data feed you can then change the color and icon for each trail difficulty.

Screenshots

Changelog

1.5.0

Lifts on hold now show as On hold instead of Closed
Shows why a lift is on hold (wind, lightning, guest incident, mechanical) with an icon, from the Medic52 feed

1.4.9

Tested up to WordPress 7.1
Fix: a lift with no operating hours no longer shows the previous lift’s hours
Fix: column headings were blank on [medic52_lift_status] and with “List Lifts separately” on
Fix: a failed or empty feed fetch no longer replaces the last good data with “Nothing found!”
Fix: “Validate” now checks the URL entered, not data cached from the previous URL
Fix: saving settings before validating a feed no longer causes a fatal error
Fix: clicking a lift or trail no longer collapses its area; only the area header toggles it
Fix: malformed XML feeds are reported as invalid rather than causing a fatal error
Fix: PHP 8.1+ deprecation notice when a list has an even number of lifts or trails
“Last update” time follows the 24 hour / am/pm setting
Stylesheet and script are versioned with the plugin version, so browsers pick up updates
Requires WordPress 5.3 or later

1.4.8

Security: added capability + nonce checks to the feed validator (prevents SSRF and unauthorised access)
Security: nonce verification on settings save
Security: sanitised custom colours and escaped operating-hours output
PHP 8.1+ compatibility fix
Tested up to WordPress 6.8

1.4.7

Display time last updated

1.4.6

Fixed CSS issue

1.4.5

Fixed CSS issue
Updated Groomed status
Added options to modify the icon color and background color

1.4.4

Added separate shortcodes for lifts / trails: [medic52_lift_status] & [medic52_trail_status]

1.4.3

Added time format option for 24hour or am/pm
Updated the ratings

1.4.2

Updated for WordPress 6.7.1
Added sorting options

1.4.1

Updated for WordPress 6.6
Updated difficulty

1.4

Updated for WordPress 6.5
Added: Night operations
Added: Opening Times
Added: Freestyle Terrain

1.3

Updated for WordPress 6.2

1.2

Updated for PHP8

1.1

Fixed typo in shortcode

1.0

Initial version.