The Word Widget

The Word Widget Install Statistics

11
100%
Today: 11 Yesterday: 0 All-time: 5,757 downloads
The Word Widget Icon

Try plugin: The Word Widget

We'll create fresh WordPress site with The Word Widget installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About The Word Widget

Shows two Bible verses per day: "The Word" by project Bible 2.0, available in more than 20 languages, got remotely for each day

1


0


0


0


0

updated: 7 months ago
since: 10 years ago
author: Helmut Steeb

Description

The plugin provides a widget which you can place into one of the widget areas provided by your theme (in the WordPress admin area: Appearance | Widgets).

The widget configuration retrieves the list of available Bible editions of the current year remotely from https://bible2.net and lets you select one Bible edition. On each day, the widget retrieves the two verses for the day from bible2.net and displays them.

Project Bible 2.0

Project Bible 2.0 collects cross-references between selected Bible verses, formats the verses nicely and publishes two cross-referenced verses for each day of the year in more than 20 languages, available for free download and as a remote service.

Bible Editions Available

Dated 2023-03-25 – for latest information, see https://bible2.net/download/bible-editions-available/.

For 2023, The Word is available in the following Bible editions and languages:

  • af Bybel in Afrikaans (1983-vertaling)
  • ar كتاب الحياة : الترجمة العربية الجديدة (Holy Bible, New Arabic Version, Ketab El Hayat)
  • cim Zimbrisch (German Cimbrian dialect), see https://bible2.net/cim
  • da Bibelen (Danish)
  • de Hoffnung für Alle (German)
  • de Leonberger Bibel (German)
  • de Neue Evangelistische Übersetzung (German)
  • de Schlachter 2000 (German)
  • en English Standard Version
  • en Free Bible Version (new 2023!)
  • es Reina-Valera 1995 (Spanish)
  • fr Segond 21 (French)
  • ga An Bíobla Naofa 1981 (Gaelic)
  • he ספר הבריתות 2004 (Hebrew)
  • hu Karoli 1990 (Hungarian)
  • it Nuova Riveduta 1994 (Italian)
  • pfl-x-suedsaar Südsaarländisch (Southern Saarlandian, a kind of Pfälzisch = Palatinate), see https://bible2.net/pfl-x-suedsaar
  • pl Biblia Tysiąclecia (Polski Polish)
  • pt Bíblia Livre em português (Portuguese)
  • ro Cornilescu 2014 (Romanian), see https://bible2.net/ro
  • ru Юбилейная Библия Jubiläums-Bibel (русский Russian)
  • swg Bibel für Schwoba (Schwäbisch Swabian swg), see https://bible2.net/swg
  • th สมาคมพระคริสตธรรมไทย 1971 (Thai Holy Bible 1971)
  • tr Kutsal Kitap 2001
  • ur کِتابِ مُقادّس (Urdu Revised Version)
  • uz-Cyrl Ўзбек тилидаги Муқаддас Китоб 2012
  • uz-Latn O‘zbek tilidagi Muqaddas Kitob 2012
  • vi Vietnamese Bible (1934)
  • zh-Hans 中文标准译本(简化字) (Simplified Chinese)
  • zh-Hant 中文标准译本(繁體字) (Traditional Chinese)

As of 2023-03-25, no more available are:

System Requirements

  • PHP: tested with 8.2.
  • SimpleXML: the widget needs the “SimpleXML” PHP library. If it is not available, the widget configuration (see “Appearance | Widgets” in the Installation chapter) will show an error message.

Adapting the Layout

The widget output uses the following CSS classes which you may adapt in your stylesheet (CSS):

  • TheWord
  • TL
  • Parol
  • IL
  • L
  • SL

An example CSS file is included in the plugin zip file. It includes CSS to either show the verses with line breaks (on a wider display) or without the line breaks (on a smaller display). You may need to adapt the rules, depending on the actual width of your widget area.

Workaround: Adapt your Theme Stylesheet

If you have no idea how to adapt your stylesheet, the following workaround may help:

  • open your published WordPress page in a browser
  • inspect the page sources (via right mouse, menu item like “View page source”)
  • search for wp-content/themes, you should find it in a href attribute of an HTML element link
  • the href attribute value is an URL path to a stylesheet file of your WordPress theme
    • typically, the URL path ends like .css?ver=1.2.3
  • on your web server, open the file located at that path (omit the trailing ?ver=1.2.3)
    • typically, the file does not contain line-breaks
  • just navigate to the end of the file, add a line-break, then enter the desired styles (you may start with the contents of the above mentioned example CSS file).
  • save the file and reload the page in your browser.
    • Now you should see the effect of the modified stylesheet.

Note: keep a backup of the inserted styles – WordPress will likely overwrite the file when you update your WordPress version or the theme, so you’ll have to apply the changes again.

Workaround: Adapt the Plugin Output

Example: you want the Bible 2.0 logo to open the bible2.net page not in the same but in a new browser Tab.

Precondition: you have access to the installed plugin files on your webserver. (If available, you better test this on a WordPress instance on a local computer first.)

Steps (based on plugin version 0.9):

  • locate the file wp-content/plugins/the-word-widget/the-word-widget.php
  • for backup, copy the file to another place
  • locate the line
    • # $theWord truthy
  • after that line, insert the following line (modifying the HTML link “target” to “_blank”):
    • $theWord = str_replace('target="_top" class="b2-twd-start"', 'target="_blank" class="b2-twd-start"', $theWord);
  • save the file
  • in the browser, refresh your web page that displays The Word
  • click on the Bible 2.0 logo. This should now open the page in a new browser Tab.

By inspecting the page source in your browser, you may come up with other adaptations – like adding a specific CSS class or style.
Ensure you’re using correct PHP syntax, e.g. don’t use the outer single quotes unmasked within your replacement text.

Note: keep a backup of your change – WordPress will likely overwrite the file when you update your WordPress version or the theme, so you’ll have to apply the changes again.

Further Examples

  • Make the title line “The Word for…” a H2 instead of a P element:
    • $theWord = preg_replace("/<p\sclass='TL'>(.*?)<\/p>/s", "<h2 class='TL'>$1</h2>", $theWord);
  • Avoid the line-breaks in the verses (override CSS white-space to normal):
    • $theWord = preg_replace("/(<p\sclass='L')>/", "$1 style='white-space: normal'>", $theWord);
  • Show the verse text in black color:
    • $theWord = preg_replace("/(<p\sclass='L')>/", "$1 style='color: black'>", $theWord);
  • Show the Bible reference text in black color:
    • $theWord = preg_replace("/(<p\sclass='SL')>/", "$1 style='color: black'>", $theWord);

For WordPress Developers

If you’re expert in the hottest WordPress development stuff like the “Block editor”, and you could imagine to maintain this plugin – you’re welcome!

I don’t follow new WordPress trends any more (I moved sites from WordPress to Symfony resp. Hugo).

So as of 2023-03, the WordPress admin dashboard supports configuring the plugin in “legacy” mode only. Maybe sometime they even obsolete this?

Plugin License

The WordPress plugin is licensed under GPLv2 or later.

License for Bible Texts (got remotely per day)

The license conditions for the Bible texts (verses) are defined by the publisher of the respective Bible edition. They are contained in the .twd XML files, and are also shown in https://bible2.net/copyright/.

License for Related Bible References (got remotely per day)

The project Bible 2.0 provides pairs of related Bible references.

The Word associates one pair of Bible references with a certain day, respectively.

The association of Bible references into pairs and of such pairs to days of a certain year is subject to

License “Creative Commons 4.0”
<https://creativecommons.org/licenses/by-sa/4.0/>
(Attribution, ShareAlike)

With each publication, the following statement with a link to https://bible2.net must be available for the user (e.g. by adding a link to the copyright page):

Association of Bible references by project Bible 2.0