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

前言介紹

  • 這款 WordPress 外掛「Shabbos and Yom Tov」是 2018-10-09 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2018-11-30,距離現在已有 2347 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.3.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

shabboscommerce |

外掛標籤

Shabbat | checkout | close cart | woocommerce | jewish holiday |

內容簡介

自動隱藏購物車或其他 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

原文外掛簡介

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]

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Shabbos and Yom Tov」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.6 | 1.7 | 1.8 | 1.9 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon