
內容簡介
Contacts BMLT 是一個外掛,使用 contacts_bmlt 短碼可以顯示關於服務機構的熱線和網站資訊。
短碼
基本:[contacts_bmlt]
屬性: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
— 大部分的短碼屬性可以組合使用
使用說明
必須至少設置 root_server。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server"]
display_type 可以更改顯示類型,加上 display_type="table" 可以選擇 table 或 block 兩種不同的類型。預設為 table。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" display_type="table"]
parent_id 只顯示已設置 parent_id 的服務機構。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" parent_id="22"]
show_description 如果有設置服務機構描述,將在名稱下方顯示服務機構描述。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_description="1"]
show_email 如果有設置服務機構聯繫電子郵件,將在名稱下方顯示服務機構聯繫電子郵件。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_email="1"]
show_url_in_name 會將連結添加到服務機構名稱中,這是默認動作。如果要從服務機構名稱中刪除網址,請添加 show_url_in_name="0"。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_url_in_name="0"]
show_tel_url 會添加一個電話號碼的電話鏈接。預設為不添加。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_tel_url="1"]
show_full_url 會添加一個顯示完整網址的單獨列或區塊。預設為不添加。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_full_url="1"]
show_all_services 會顯示所有服務機構,不論是否填寫了電話或 URL 字段。預設為不顯示。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_all_services="1"]
show_locations 會在服務機構名稱下方顯示位置列表。可接受的值為 location_neighborhood、location_city_subsection、location_municipality、location_sub_province。
例如:[contacts_bmlt root_server="https://www.domain.org/main_server" show_locations="location_municipality"]
範例
https://sca.charlestonna.org/region-contacts/
更多資訊
https://github.com/bmlt-enabled/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
