
內容簡介
Upcoming Meetings BMLT 是一個外掛,可以在頁面或小工具中使用 upcoming_meetings shortcode 顯示從當前時間開始的下 N 個會議。
SHORTCODE
Basic: [upcoming_meetings]
屬性: root_server、services、recursive、grace_period、num_results、display_type、timezone、location_text、time_format、weekday_language、custom_query
— Shortcode 參數可以結合使用
用法
最少需要 root_server 和 services 屬性,可以返回下一個 5 個會議,以簡單的方式顯示,容許 15 分鐘寬限期限。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" services="50"]。
加入 recursive 以遞迴服務機構,加入 recursive="1"。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" recursive="1"]
加入多個服務機構,以逗號分隔。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" services="50,37,26"]
加入容許期限來查找會議,以 grace_period="15" 的方式加入 15 分鐘的寬限期。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" grace_period="15"]
加入 num_results 以限制結果數量,例如加入 num_results="5" 即限制結果為 5。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" state="1" num_results="5"]
加入 display_type 以更改顯示方式,包含簡單、表格、方塊三種方式。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" display_type="table"]
使用 WordPress 網站時區設置,預設時間為您的設置,加入 timezone="America/New_York" 以重新設置時區。可在管理設置或短代碼中設置。可以在此鏈接中查找完整的時區列表:http://php.net/manual/en/timezones.php
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" timezone="America/New_York"]
加入 location_text 來顯示地點名稱,使用簡單顯示方式,加入 location_text="1"。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" location_text="1"]
使用 time_format 可以切換 12 或 24 小時制。預設為 12。切換至 24 小時,加入 time_format="24"。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" time_format="24"]
使用 weekday_language 可以更改星期幾的語言。更改語言至 Danish,設置 weekday_language="dk"。目前支援的語言有 Danish 和 English,預設為 English。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" weekday_language="dk"]
使用 custom_query 可以添加來自 semantic api 的自定義查詢以過濾結果,例如按格式 &formats=54。
例如 [upcoming_meetings root_server="https://www.domain.org/main_server" custom_query="&formats=54"]
範例
更多資訊
https://github.com/bmlt-enabled/upcoming-meetings-bmlt
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Upcoming Meetings BMLT is a plugin that displays the next ‘N’ number of meetings from the current time on your page or in a widget using the upcoming_meetings shortcode.
SHORTCODE
Basic: [upcoming_meetings]
Attributes: root_server, services, recursive, grace_period, num_results, display_type, timezone, location_text, time_format, weekday_language, limit_to_today, custom_query
Meeting Formats: [meeting_formats]
Attributes: root_server, display_type, show_description, language
— Shortcode parameters can be combined
Usage
A minimum of root_server, and services attributes are required, which would return the next 5 meetings in simple view with a 15minute grace period.
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50"]
recursive to recurse service bodies add recursive="1"
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" recursive="1"]
services to add multiple service bodies just seperate by a comma.
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50,37,26"]
grace_period To add a grace period to meeting lookup add grace_period="15" this would add a 15 minute grace period.
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" grace_period="15"]
num_results To limit the number of results add num_results="5" this would limit results to 5.
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" state="1" num_results="5"]
display_type To change the display type add display_type="table" there are three different types simple, table, block
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" display_type="table"]
timezone By default we use your WordPress sites timezone setting, this will overwrite that. add timezone="America/New_York" you can set this in the admin setting or short code. A complete list of timezones can be found here http://php.net/manual/en/timezones.php
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" timezone="America/New_York"]
location_text to display the location nam,e using the simple display add location_text="1"
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" location_text="1"]
show_header to display header info for Table/Block display add show_header="1"
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" show_header="1"]
time_format This allows you to be able to switch between 12 and 24 hour. the default is 12. To switch to 24 hour add time_format="24"
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" time_format="24"]
weekday_language This allows you to change the language of the weekday names. To change language to danish set weekday_language="dk". Currently supported languages are da,de,en,es,fa,fr,it,pl,pt,ru,sv, the default is English.
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" weekday_language="dk"]
limit_to_today To limit results to only today’s meetings (will not show tomorrow’s meetings even if there aren’t enough results) add limit_to_today="1"
Ex. [upcoming_meetings root_server="https://www.domain.org/main_server" services="50" limit_to_today="1"]
custom_query You can add a custom query from semantic api to filter results, for ex by format &formats=54.
Ex. [upcoming_meetings root_server=”https://www.domain.org/main_server” custom_query=”&formats=54″]
Meeting Formats Shortcode
The meeting_formats shortcode displays all available meeting formats from a BMLT root server.
Basic: [meeting_formats]
root_server (optional) The BMLT root server URL. Uses plugin settings if not specified.
Ex. [meeting_formats root_server=”https://bmlt.sezf.org/main_server”]
display_type (optional, default: “table”) Options: “table” or “list”
Ex. [meeting_formats display_type=”list”]
show_description (optional, default: “1”) Show format descriptions. Options: “1” or “0”
Ex. [meeting_formats show_description=”0″]
language (optional, default: “en”) Language code for format names (en, es, fr, de, etc.)
Ex. [meeting_formats language=”es”]
EXAMPLES
MORE INFORMATION
https://github.com/bmlt-enabled/upcoming-meetings-bmlt
