[WordPress] 外掛分享: Integration for ChurchSuite

首頁外掛目錄 › Integration for ChurchSuite
10+
安裝啟用
尚無評分
15 天前
最後更新
問題解決
WordPress 6.4+ v1.0.8 上架:2025-03-16

內容簡介

### 總結:
ChurchSuite 整合(AKA CS Integration)允許您在 WordPress 網站上顯示來自 ChurchSuite 的某些資料,而不需嵌入 iframes。這個外掛提供了易於放入任何頁面或貼文的短代碼。透過這些短代碼,您可以從您的 ChurchSuite 資料中請求數據,以類似 ChurchSuite 的方式在您的網站原生顯示。此外,這些短代碼還允許您使用各種查詢參數,以便在您的網站的每個部分中顯示您想要的數據。

### 問答:
1. 這個外掛的功能有哪些?
- 使用短代碼將事件顯示為 '卡片',包含事件圖片和詳細資訊
- 使用短代碼按日期將事件顯示為 '列表'
- 使用短代碼返回當前月份或指定日期的完整月份日曆
- 使用短代碼將組織顯示為 '卡片',包含組織圖片和詳細資訊
- 所有 API 請求都經過 4 小時快取以確保快速性能

2. 這個外掛接受哪些查詢參數?
- 對於事件卡片短代碼,可以使用哪些參數?
- 對於事件列表短代碼,可以使用哪些參數?
- 對於日曆短代碼,可以使用哪些參數?
- 對於小組短代碼,可以使用哪些參數?

3. 如何使用此外掛進行事件卡片的設定?
4. 如何使用此外掛進行事件列表的設定?
5. 如何使用此外掛展示日曆?
6. 如何使用此外掛展示小組資訊?

希望上述問答能幫助您更深入了解 ChurchSuite 整合這個外掛。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.8) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Integration for ChurchSuite」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Integration for ChurchSuite (AKA CS Integration) allows you to display certain
data from ChurchSuite on your WordPress website without resorting to embedding
iframes. This plugin provides shortcodes that are easy to drop into any page
or post. Each shortcode will, behind the scenes, request data from your
ChurchSuite feed, and will display the data returned in a similar way to the
usual ChurchSuite iframes, but natively to your website. Many aspects of the
display can be modified in your theme to make the display match your website
theme. The shortcodes allow you to use a range of query parameters so that you
can display just the data you want for each part of your website.
Current features include:

Shortcode to return events as ‘cards’ with the event image and details
Shortcode to return events in a ‘list’ group by date
Shortcode to return a full month calendar, for the current month or a date
Shortcode to return groups as ‘cards’ with the group image and details
All API requests are cached with a 4 hour cache to ensure fast performance

A little Technical information
For the technical among you: This shortcode works on the ‘server side’,
building the response which is delivered to your browser from churchsuite.
Difference between this plugin and cs-js-integration
We also provide the cs-js-integration plugin. That plugin uses the more
recent v3 ChurchSuite API which does not permit such flexibility because it
requires you to create a ChurchSuite ’embed configuration’ to pass in the
shortcode call. It also does all the work on the ‘client side’ so that
the client browser holds the cached data and the client browser creates all
the html for output. That plugin use Javascript to create the response
whereas this plugin uses php. This server-side implementation can be faster
for many repeated requests, and is less speed dependent on the client
provision. However the client-side implementation can be faster for an
individual user. The cs-js-integration plugin uses Alpine.js to output the
HTML, which means an end user could change the output by changing the HTML
files without having to get into the php of the plugin. However, the
Alpine.js code isn’t straightforward and so this is likely to be of little
advantage. Really, it’s simply ‘horses for courses’ – you have the choice
of which to use!
Support
If you have a problem or a feature request, please send a message to the author.
Demo
Currently there is no demo site, but you can view examples on a church website:

the Featured Events,
the Small Groups list,
the Events List,
the Calendar

Contributions
This plugin relies on information provided by ChurchSuite using their ’embed’
JSON feed. Details of this JSON feed can be found here:
https://github.com/ChurchSuite/churchsuite-api/blob/master/modules/embed.md
Usage

For the Event Cards shortcode, place the shortcode into a page or post or
into a shortcode block. The shortcode will be:
[cs-event-cards church_name="mychurch" num_results="3"]

where mychurch is the name of your church and 3 is changed to the
number of future featured events you need in a page or post. Use the
parameter featured="1" to obtain only featured events. Because your
calendar will have many events, make sure you include num_results
to get the number of events you want.
If you want events on a specific day, use the parameters date_start
and date_end. If you want events from a particular Calendar category,
use category=1 where 1 is replaced by the category number for the
Calendar category you want.

For the Event List shortcode, place the shortcode into a page or post
or into a shortcode block. The shortcode will be:
[cs-event-list church_name="mychurch" num_results="10"]

The comments above about parameters also apply to this shortcode. By
default only a maximum of 5 days events are returned, but this can be
overridden by adding the date_end parameter.

For the Calendar shortcode place the shortcode into a page or post or into a
shortcode block. The shortcode will look like:
[cs-calendar church_name="mychurch"]

(where mychurch is the name of your church used to get into your churchsuite).
The only parameter that might be used with this apart from church_name is
date_from which will can be any date which will identify the month to be
displayed – so 2025-01-15 and 2025-01-30 will both display the month
January in 2025.

For the Smallgroups shortcode, place the shortcode into a page or post or into
a shortcode block. The shortcode will be:
[cs-smallgroups church_name="mychurch"]

(where mychurch is the name of your church. The more limited set of
parameters provided by ChurchSuite for small groups can all be used.

See https://github.com/ChurchSuite/churchsuite-api/blob/master/modules/embed.md=calendar-json-feed
for a full list of parameters that can be used.
License
The plugin itself is released under the GNU General Public License. A copy of
this license can be found at the license homepage or in the cs-integration.php
file in the top comment.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon