Contacts BMLT

外掛說明

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

螢幕擷圖

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

安裝方式

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.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Contacts BMLT〉的開發相關工作。

參與者

將〈Contacts BMLT〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.5

  • Bump version, minor changes.

1.1.4

  • Open links in new window.

1.1.3

  • Fix to better comply with WordPress best practices.

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.