Contacts BMLT

Description

Contacts BMLT is a plugin that displays helpline and website information about service bodies using the contacts_bmlt shortcode.

SHORTCODE
Basic: [contacts_bmlt]
Attributes: root_server, display_type, parent_id, show_description, show_email, show_url_in_name, show_tel_url, show_full_url, show_all_services, show_locations

— Most Shortcode parameters can be combined

Usage

A minimum of root_server needs to be set.

Ex. [contacts_bmlt root_server="https://www.domain.org/main_server"]

display_type To change the display type add display_type="table" there are two different types table, block the default is table.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" display_type="table"]

parent_id This will only display service bodies who has set parent_id.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" parent_id="22"]

show_description This will display the service bodies description underneath the name if set.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_description="1"]

show_email This will display the service bodies contact email underneath the name if set.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_email="1"]

show_url_in_name This will add a link to the service body name, this is the default action. To remove the url from the service body name add show_url_in_name="0quot;.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_url_in_name="0"]

show_tel_url This will add a tel link to the telephone number. Default is to not add it.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_tel_url="1"]

show_full_url This will add a separate column or div with the full url displayed. Default is to not add it.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_full_url="1"]

show_all_services This will display all service bodies regardless of whether they have their phone or URL field filled out. The default is not to display them.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_all_services="1"]

show_locations This will display a list of locations below the service body name. Accepted values are location_neighborhood, location_city_subsection, location_municipality, location_sub_province.
Ex. [contacts_bmlt root_server="https://www.domain.org/main_server" show_locations="location_municipality"]

EXAMPLES

https://sca.charlestonna.org/region-contacts/

MORE INFORMATION

https://github.com/bmlt-enabled/contacts-bmlt

Screenshots

  • screenshot-1.png
  • screenshot-2.png

Installation

This section describes how to install the plugin and get it working.

  1. Download and install the plugin from WordPress dashboard. You can also upload the entire Contacts BMLT Plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Add [contacts_bmlt] shortcode to your WordPress page/post.
  4. At a minimum assign root_server.

Contributors & Developers

“Contacts BMLT” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Contacts BMLT” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.2

  • Fix for unneeded escaping of quotes.

1.1.1

  • Fix casing for location info.

1.1.0

  • Added option to show all service bodies regardless of if they have any contact info.
  • Simplified some code with checking the service bodies.
  • Added ability to show service body locations under service body name.

1.0.0

  • Initial WordPress submission.