[WordPress] 外掛分享: Shabbos and Yom Tov

首頁外掛目錄 › Shabbos and Yom Tov
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
2691 天前
最後更新
問題解決
WordPress 4.3.0+ PHP 5.2.4+ v1.9 上架:2018-10-09

內容簡介

自動隱藏購物車或其他 Shabbos 和 Yom Tov 上的內容,並向用戶顯示一條消息。您還可以在連絡我們頁面上使用它,在 Yom Tov 上顯示消息。

短代碼應該像 [Shabbos_and_YomTov]平日內容。[/Shabbos_and_YomTov]。請參見下面的屬性和示例。

這個外掛將根據您設置的時區而不是用戶時區工作(例如,非猶太教的客戶可以在他的Shabbos買,如果按照您的時區,那麼還沒有Shabbos)。

此外掛不會在Shabbos上關閉您的網站,僅關閉短代碼中包含的數據。若要在Shabbos上關閉整個網站,請使用像 WP-Shabbat 的插件。但是,使用此插件可以實現此操作,有關詳細信息,請參見 常見問題。

屬性

請參見下面的示例。

請確認設置前三個屬性。

確保使用 testdate 屬性來確保短代碼正確工作。

時區
定義:您所在地區的時區。必須是 http://php.net/manual/en/timezones.php 的時區。
從版本1.8開始,現在可以使用時區縮寫。
默認值:‘America/New_York’

緯度
定義:您所在地的緯度。
默認值:‘40.63’

經度
定義:您所在地的經度。
默認值:‘-73.98’

過越節
定義:您的網站應如何顯示逾越節。
默認值:‘Passover’

修節節
定義:您的網站應如何顯示修節節。
默認值:‘Shavuos’

葡殼節
定義:您的網站應如何顯示葡殼節。
默認值:‘Sukkos’

新年節
定義:您的網站應如何顯示新年節。
默認值:‘Rosh Hashanah’

贖罪日
定義:您的網站應如何顯示贖罪日。
默認值:‘Yom Kippur’

Shabbos 消息
定义:Shabbos 上应显示什么消息。
默认值:‘We’re sorry but we are currently closed due to Shabbos.’

Yom Tov 消息
定义:Yom Tov 上应显示什么消息。(%yomtov% 将被当前 Yom Tov 替换)
默认值:‘We’re sorry but we are currently closed due to %yomtov%.’

Chol Hamoed
定義:使用 ‘open’ 或 ‘closed’。
默認值:‘closed’

點燈
定义:在日落前几分钟点燃蜡烛。
默认值:’15’

黃昏
定义:Shabbos 结束时间,以日落后几分钟为单位。
默认值:’72’


定义:向 Shabbos 和 Yom Tov 消息添加类。
默认值:NULL

单天
定义:如果您在以色列,请将其设置为 ‘yes’。
默认值:‘no’

testdate
定义:使用此属性可以查看在某个日期和时间(例如,‘5/26/18 8:05 pm’)上您的网站外观如何。请务必删除。
默认值:NULL
** 测试完毕后,请务必删除此属性。 **

示例

请参见上面的属性。

基本示例:

[Shabbos_and_YomTov]平日內容。[/S

外掛標籤

開發者團隊

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

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

原文外掛簡介

Automatically hide shopping cart or other content on Shabbos and Yom Tov and disply a message to the user. Alternately you can use it on your contact us page to display a message on Yom Tov.
The shortcode should be like [Shabbos_and_YomTov]Weekday content.[/Shabbos_and_YomTov]. See Attributes and Examples below.
This plugin will work according to your timezone that you set and not according to the users timezone (ie. a non-Jewish costomer can buy when it is Shabbos by him if by you it is not shabbos).
This plugin does not close your site on Shabbos, only the data enclosed in the shortcode. To close tour entire site for Shabbos use a plugin as WP-Shabbat. However it is possible to do so with this plugin see Frequently Asked Questions.
Attributes
See Examples below.
Make sure to set the first 3 attributes.
Make sure to use the testdate attribute to make sure the shortcode works correctly.
timezone
Definition: The timezone of your location. Must be a timezone from http://php.net/manual/en/timezones.php.
From version 1.8 can now use time zone abbreviations.
Default value: ‘America/New_York’
latitude
Definition: The latitude of your location.
Default value: ‘40.63’
longitude
Definition: The longitude of your location.
Default value: ‘-73.98’
passover
Definition: How should your site display Passover.
Default value: ‘Passover’
shavuos
Definition: How should your site display Shavuos.
Default value: ‘Shavuos’
sukkos
Definition: How should your site display Sukkos.
Default value: ‘Sukkos’
rosh_hashanah
Definition: How should your site display Rosh Hashanah.
Default value: ‘Rosh Hashanah’
yom_kippur
Definition: How should your site display Yom Kippur.
Default value: ‘Yom Kippur’
shabbos_msg
Definition: What message should be displayed on Shabbos.
Default value: ‘We’re sorry but we are currently closed due to Shabbos.’
yom_tov_msg
Definition: What message should be displayed on Yom Tov. (%yomtov% will be replaced with the current Yom Tov)
Default value: ‘We’re sorry but we are currently closed due to %yomtov%.’
chol_hamoed
Definition: Use ‘open’ or ‘closed’.
Default value: ‘closed’
candle
Definition: Candle lighting time, in minutes before sunset.
Default value: ’15’
dusk
Definition: Time when Shabbos ends, in minutes after sunset.
Default value: ’72’
class
Definition: To add a class for the Shabbos and Yom Tov message.
Default value: NULL
one-day
Definition: If you are in Israel set to ‘yes’.
Default value: ‘no’
testdate
Definition: Use this attribute to see how your site will look on a certain date and time (eg. ‘5/26/18 8:05 pm’). Make sure to remove.
Default value: NULL
** Make sure to remove this attribute when finished testing. **
Examples
See Attributes above.

Basic example:
[Shabbos_and_YomTov]Weekday content.[/Shabbos_and_YomTov]

Basic example for Baltimore:
[Shabbos_and_YomTov latitude='39.32' longitude='-76.64']Weekday content.[/Shabbos_and_YomTov]

Basic example for Los Angeles:
[Shabbos_and_YomTov latitude='34.05' longitude='-118.43' timezone='America/Los_Angeles']Weekday content.[/Shabbos_and_YomTov]

Basic example for Jerusalem:
[Shabbos_and_YomTov latitude='31.77' longitude='35.23' timezone='Asia/Jerusalem' one-day='yes']Weekday content.[/Shabbos_and_YomTov]

Woocommerce example to use on Checkout page:
[Shabbos_and_YomTov][woocommerce_checkout][/Shabbos_and_YomTov]

Another Woocommerce example to use on Checkout page:
[Shabbos_and_YomTov class="woocommerce-error"][woocommerce_checkout][/Shabbos_and_YomTov]

Example to use on Contact Us page:
[Shabbos_and_YomTov shabbos_msg="" yom_tov_msg="We are closed today due to %yomtov%."][/Shabbos_and_YomTov]

Example to use on Contact Us page to show until midnight:
[Shabbos_and_YomTov shabbos_msg="" yom_tov_msg="We are closed today due to %yomtov%." dusk=360][/Shabbos_and_YomTov]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon