A Magento2 module that provides dynamic Torah verse/quote sliders for both the backend (by default) and the frontend. Whether you're a store admin or a customer, you can enjoy these engaging, responsive sliders.
The module calculates the available space and adjusts the number of words per line to optimize the display. If the text exceeds the configured row limit, the verse scrolls vertically, creating a seamless user experience. This ensures that the widget is Responsive Web Designed and works beautifully on all devices.
One of the most exciting aspects of this module is that it leverages the Torah library, a powerful API client with built-in caching (via SQLite). This PHP library pulls text from the Bible Info service, offering up to 21 different translations. For more details, feel free to check out the repository.
If you're excited about this project and want to support its ongoing development, consider buying me a coffee! Your support means a lot and helps keep this project alive.
This UI component allows you to select any Bible verse from any translation, with a preview available in both the frontend and backend. Simply click the verse to navigate to the full passage on the Bible service.
Choose any Bible verse you like:
Easily edit the Bible verse reference directly in the form (just click back button):
Search feature helps you find what you are looking for in the Bible. There are several options for searching available. The results are presented with pagination. You may choose the page (next, previous) and set amount data visible on a single page.
Note: Before using the search feature, you need to index your preferred Bible translations by running the following command: console command for f.e bt:
bin/magento torah:cache:flush bt && bin/magento torah:cache:warm bt
- Search: Enter the text you're looking for.
- Search in results: Narrow down results with additional conditions.
- Search parts: Filter by specific sections of the Torah (e.g., Tanakh, Nevi'im ketuvim, Brit Hadasha or Old Testamet, New Testament)
- Case-sensitive search: Enable or disable case sensitivity.
- Verse context: Choose to display surrounding verses for context.
- Translation: Select one of 21 available translations.
This feature allows you to display a specific quote on a given day of the year—perfect for creating a daily inspiration widget! You can set up 366 quotes, one for each day of the year.
To create an annual quote:
- Create a quote and fill in the required fields.
- Assign it to an annual group.
- Name (field 'Code') the quote using a special code that includes the date (last 4 characters represent the month and day, e.g., 'quote1024' for October 24th).
You can find the module on Packagist. To install:
cd YourProject
composer require jaroslawzielinski/torahverse-m2
To uninstall the module and revert all database changes, run the following command:
bin/magento torahverse:module:uninstall
The backend slider is visible only to Magento 2 users and supporters—customers won’t see this.
For the frontend, you can choose between two slider types:
-
Homepage Slider: Display the slider on the homepage in 5 different placements:
- After the header:
top.container
- At the top of the content:
content.top
- At the bottom of the content:
content.bottom
- Before the footer:
page.bottom
- Inside the footer:
footer
,footer-container
- After the header:
-
Custom Sliders: These can be placed anywhere on your site. Just create a slider and add it to any page, block, or widget using the Admin Panel.
After defining custom slider with code f.e. 'annual_quotes' (see Slider Configurations) you can use it within CMS Block/CMS Page:
or create a CMS Widget:
Displays verses in a random order, continuously looping.
Displays verses in the order they appear in the admin panel.
Displays one random verse per page load.
Hover over the slider to pause the animation.
Display group names and colors for easy organization.
Possible operations: Add New Group, Delete, Edit
Notice: You can not modify/delete Default Group.
Possible operations: Add New Verse, Delete, Group Assign, Edit
Possible operations: Add New Quote, Delete, Group Assign, Edit
The module offers extensive customization options, from verse text colors to slide timing. Easily tweak your sliders to match your site’s style and layout.
Enable module / Disable module and disable menu.
Enables/disables menu in the left bar (and access to the grids)
This option allows to link to bible service on click (default is on)
Time value in milliseconds between slides (horizontal swipe)
Enables feature for vertical scroll (it is triggered when text exceeds 'Number of shown rows')
Time value in milliseconds between changing current shown row (during vertical scroll)
Enables box with group title and group colour
Provides html template for user tweaks. Available keys are listed in comment.
- {url} - link for bible.info.pl service (target is "_blank")
- {textColour} - colour for verse text
- {colour} - colour for group border/group label background
- {groupName} - name of a group
- {antiColour} - contrast colour to group border/group label background
- {content} - verse content
- {description} - verse description
Provides html template for user tweaks. Available keys are listed in comment.
- {textColour} - colour for quote text
- {colour} - colour for group border/group label background
- {groupName} - name of a group
- {antiColour} - contrast colour to group border/group label background
- {content} - quote content
- {author} - quote author
- {description} - quote description
Provides html template for user tweaks. Available keys are listed in comment.
- {textColour} - colour for quote text
- {colour} - colour for group border/group label background
- {groupName} - name of a group
- {antiColour} - contrast colour to group border/group label background
- {name} - quote name
- {content} - quote content
- {author} - quote author
- {description} - quote description
- {description2} - quote description2
- {description3} - quote description3
Enables numbering for verses or plain text mode.
Colour for text of sliders
Background colour when slider is being hovered/paused
Three modes for sliders are available:
- 'randomautoplayinf' - Randomized Auto play infinity loop
- 'autoplayinf' - Ordered Auto play infinity loop
- 'random' - Random view - static
Number of shown rows (when 3 - default, please clear 'Custom Styles')
Provides custom css styles (enables user tweaks (colour change, background, remove cursor etc.))
enables/disables the feature.
You may override following settings (from General Settings):
- Sweep time
- Is vertical sweep possible
- Vertical Sweep time
- Is group colours enable
- Verses ordered
- Text Colour
- Mode of slider
In this multi select you may choose groups that you would like to display.
enables/disables the feature.
You may override following settings (from General Settings):
- Sweep time
- Is vertical sweep possible
- Vertical Sweep time
- Is group colours enable
- Verses ordered
- Text Colour
- Mode of slider
There are 5 available placements (Magento2 container name in layout):
- 'top.container' - After page header top
- 'content.top' - Main content top
- 'content.bottom' - Main content bottom
- 'page.bottom' - Before page footer
- 'footer' - Page footer',
- 'footer-container' - Page Footer Container
In this multi select you may choose groups that you would like to display.
enables/disables the feature.
You may override following settings (from General Settings):
- Sweep time
- Is vertical sweep possible
- Vertical Sweep time
- Is group colours enable
- Verses ordered
- Text Colour
- Mode of slider
Array for sliders (code, slider configuration). You may add/edit/delete as many configurations as you want.
You have two available languages: English and Polish. This settings changes the language of description in Torah siglum.
You may also update Groups/Verses/Quotes Presets in given language version. Remember to Save before clicking the button unless you prefer the language written in button's label.
You may choose division of books in Torah Input (e.g. Old Testament\New Testament). Default value is Tanakh/Nevi'im ketuvim/Brithadasha. This feature will be used in the future.
Default value is No. If set to Yes it appears in menu in Bible Tools group as Verse Config where Verse Pick and Verse Search are presented. In the future the input will be customized (you will choose all the options by just clicking it, without typing anything). The Torah input is also used in Admin Panel in Verse Grid (Add New Verse/Edit action)
after clicking, it will be opened in new tab (notice little square put next to the link) as a front page:
Default Option for Verse Search form.
Default Option for Verse Search form.
Default Option for Verse Search form.
This option enables/disable API caching for Bible Service. Down bellow there are serveral indicators for Bible Translations Cache state.
100% means the cache is warmed and all of the bible verses are stored in local DB (sqllite). Verse Search will be possible for cached Translation.
0% means the cache is not ready. You can not use the Verse Search for the translation then.
Notice: You can configure it in Background Hover Colour, Custom Styles configuration options.
- Truthunedited - presenting Torah verses
Explore these features, play with the settings, and see how this module can elevate your Magento2 site! And if you find value in this, I'd greatly appreciate your support on Buy Me a Coffee — it helps keep projects like this alive.