开发者 | Lwangaman |
---|---|
更新时间 | 2024年2月26日 10:48 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.4 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Bible quote
block in the widgets section of the block editor.
Also available is a shortcode [bibleget]
that you can use to insert Bible quotes in articles or pages from different versions of the Bible in different languages.
The text of the Bible quotes is retrieved from the BibleGet API https://query.bibleget.io.
Sample usage of the shortcode:
[bibleget query="Exodus 19:5-6,8;20:1-17" version="CEI2008"]
[bibleget query="Matthew 1:1-10,12-15" versions="NVBSE,NABRE"]
[bibleget version="NABRE"]John 3:16;1 John 4:7-8[/bibleget]
version
or versions
parameter every time.
After you have made your choices in the settings area, remember to click on “Save”!
Once the preferred version is set you can simply use:
[bibleget query="1 Cor 13"]
popup
: can have a value of true
or false
. Will determine whether the text of the Bible quote will show in a full block, or instead in a popup window upon clicking the Bible quote. Example: [bibleget query="Romans 8:28" popup="true"]
preferorigin
: can have a value of GREEK
or HEBREW
, useful in those cases where there are multiple texts for the same book, chapter or verse in the same Bible edition, such as in the Book of Esther where both versions are included, one based on the original Greek text, and the other based on the original Hebrew text. Example: [bibleget query="Esther 1:1" preferorigin="HEBREW"]
layoutprefs_showbibleversion
: can have a value of true
or false
. Example: [bibleget query="Ezekiel 25:17" layoutprefs_showbibleversion="false"]
layoutprefs_bibleversionalignment
: can have a value of LEFT
, CENTER
, RIGHT
or JUSTIFY
. Example: [bibleget query="Psalm 149:3" layoutprefs_bibleversionalignment="LEFT"]
layoutprefs_bibleversionposition
: can have a value of TOP
, BOTTOM
or BOTTOMINLINE
. Example: [bibleget query="2 Samuel 6:14" layoutprefs_bibleversionposition="BOTTOM"]
layoutprefs_bibleversionwrap
: can have a value of NONE
, PARENTHESES
or BRACKETS
. Example: [bibleget query="Ecclesiastes 3:1-4" layoutprefs_bibleversionwrap="BRACKETS"]
layoutprefs_bookchapteralignment
: can have a value of LEFT
, CENTER
, RIGHT
or JUSTIFY
. Example: [bibleget query="Galatians 5:7-10" layoutprefs_bookchapteralignment="RIGHT"]
layoutprefs_bookchapterposition
: can have a value of TOP
, BOTTOM
or BOTTOMINLINE
. Example: [bibleget query="Mark 13:35-37" layoutprefs_bookchapterposition="BOTTOMINLINE"]
layoutprefs_bookchapterwrap
: can have a value of NONE
, PARENTHESES
or BRACKETS
. Example: [bibleget query="John 8:12" layoutprefs_bookchapterwrap="PARENTHESES"]
layoutprefs_bookchapterformat
: can have a value of USERLANG
, BIBLELANG
, USERLANGABBREV
or BIBLELANGABBREV
. Example: [bibleget query="Psalms 144:1-2" layoutprefs_bookchapterformat="USERLANGABBREV"]
layoutprefs_bookchapterfullquery
: can have a value of true
or false
. Example: [bibleget query="Isaiah 6:8" layoutprefs_bookchapterfullquery="true"]
layoutprefs_showversenumbers
: can have a value of true
or false
. Example: [bibleget query="1 John 2:15-17" layoutprefs_showversenumbers="false"]
Administration Area -> Plugins -> Add new
and search for bibleget
, click on Install Now
Activate
the plugin once installation is completeAdministration Area -> Settings -> BibleGet I/O
WordPress Customizer -> BibleGet I/O
or when you add a Bible quote
block in the block editorBible quote
block or with the [bibleget]
shortcodeThe query
parameter must contain a Bible reference formulated according to the standard notation for Bible citations (see Bible citation on Wikipedia).
Two different notations can be used, the English (Chicago Manual of Style) notation and the International style notation.
ENGLISH NOTATION:
If you are using a version of the Bible that is covered by copyright, you will not be able to quote more than 30 verses at once. So if you request for example “Gen1” using the NABRE version, you might expect to get back Gen1:1-31 but instead you will only get back Gen1:1-30. This is a limit imposed by the legal agreements for usage of these versions, it's not a bug, it's by design. If you need more than 30 verses when requesting a version covered by copyright, formulate the request as multiple quotes split up into no more than 30 verses each, for example “Gen1:1-30;1:31”.
If you add a Google Fonts API key, the BibleGet plugin will immediately test it's validity. If valid, it will remember that you have a key and that it's valid for 3 months. Every three months starting from this moment the BibleGet plugin will talk with the Google Fonts API to get the latest list of available Google Fonts, and will download to the plugin folders a local compressed copy of each of those fonts for the purpose of previewing them in the customizer interface.\ You will need to be a bit patient the first time as it will take a couple minutes to complete the download process. A progress bar will let you know how the download is progressing. If you have a slow connection, the progress might stall for a few seconds every now an then (around 25%, 50%, and 75%), just be patient and it should continue to progress to the end. In the future, whenever the plugin talks with the Google Fonts API, the process should go a lot faster as it will only need to download new fonts. It will also generate a css file that will load the preview of the fonts when you open the customizer interface. This does have a bit of a performance impact, and especially the first time you open the customizer it might take a minute to load. After this it should go a little faster as the fonts previews should be cached by the browser. If you are not happy with the performance impact, I would suggest to delete the Google Fonts API key.
The BibleGet plugin will remember that your key is valid for 3 months. This means that it will not fetch the list of fonts from the Google Fonts API until the relative transient expires. If a new font has come out that you would like to see and use in the customizer interface for the BibleGet plugin, and you don't want to have to wait until the transient expires in that 3 month time slot, then you can click on the "force refresh" option below your API key.
If you receive a 504 http status error it means that the connection with the Google Fonts API timed out for some reason. The BibleGet plugin tries to handle this situation by forcing the process to start again, but if instead the process comes to a halt please let the plugin author know at admin@bibleget.io in order to look further into the handling of this situation. In any case you can reload the page and use the "force refresh" option below your API key and the process will pick up where it left off.
In order to allow for new layout options, the BibleGet I/O API itself was slightly updated, and there is a little more information in the response from the server. However Bible quotes are cached by the BibleGet plugin for a seven day period, which means that from the time of the update until about a week later the cached Bible quotes will not have the necessary information for them to work with the 'Bible quote' block. If you do not want to wait seven days or until the cache expires, there is a new option in the BibleGet Settings page since version 5.7 which allows to flush the cache. A word of caution however: the more recent updates to the BibleGet service endpoint have started imposing hard limits on the number of requests that can be issued from any given domain, IP address or referer. No more than 30 requests for one same Bible quote can be issued in a two day period, and no more than 100 requests for different Bible quotes can be issued in a two day period. If you have many Bible quotes on your website and you risk hitting the limit, it may be best not to flush the cache all at once but rather wait out the seven days until the cache expires.
There was recently an update to the BibleGet I/O API which slightly changed the structure of the html that comprises the Bible quotes. It is necessary to update the plugin to v5.9 in order to be compatible with these changes.
preferorigin
not working correctly for the shortcodeGFonts
for null value (like when Google Fonts previews are not installed or updated)multiple
attribute or not, needed to override it for select[multiple]
until it's fixed in the Gutenberg repomultiple
attribute or not, needed to override it for select[multiple]
until it's fixed in the Gutenberg repoPOST
requests for the ServerSideRender component if available (Gutenberg 8.8 plugin required)