Release of v4.0.10

Update getBible loader to version 3.1.0.
This commit is contained in:
Robot 2024-03-20 10:42:55 +02:00
parent cf73a3c71c
commit 11910647cf
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
38 changed files with 130 additions and 47 deletions

View File

@ -1,3 +1,7 @@
# v4.0.10
- Update getBible loader to version 3.1.0
# v4.0.9 # v4.0.9
- Correct the url encoding to json_encode for none Latin languages. - Correct the url encoding to json_encode for none Latin languages.
@ -41,7 +45,6 @@
- Moved to Joomla 4 - Moved to Joomla 4
# v3.0.6 # v3.0.7
- Correct the url encoding to json_encode for none Latin languages. - Update getBible loader to version 3.1.0
- Fix type cast validation on search page.

View File

@ -755,7 +755,7 @@ class Com_GetbibleInstallerScript implements InstallerScriptInterface
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://getbible.net" title="Get Bible"> echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://getbible.net" title="Get Bible">
<img src="components/com_getbible/assets/images/vdm-component.jpg"/> <img src="components/com_getbible/assets/images/vdm-component.jpg"/>
</a> </a>
<h3>Upgrade to Version 4.0.9 Was Successful! Let us know if anything is not working as expected.</h3></div>'; <h3>Upgrade to Version 4.0.10 Was Successful! Let us know if anything is not working as expected.</h3></div>';
// Add/Update component in the action logs extensions table. // Add/Update component in the action logs extensions table.
$this->setActionLogsExtensions(); $this->setActionLogsExtensions();

View File

@ -1,4 +1,4 @@
# Get Bible (4.0.9) # Get Bible (4.0.10)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible") ![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -18,8 +18,8 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net) + *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015 + *First Build*: 3rd December, 2015
+ *Last Build*: 8th March, 2024 + *Last Build*: 20th March, 2024
+ *Version*: 4.0.9 + *Version*: 4.0.10
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -31,8 +31,8 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, > (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.) > never making one mistake or taking any coffee break.)
+ *Line count*: **205330** + *Line count*: **205401**
+ *File count*: **1696** + *File count*: **1697**
+ *Folder count*: **174** + *Folder count*: **174**
**378 Hours** or **47 Eight Hour Days** (the actual time the author spent) **378 Hours** or **47 Eight Hour Days** (the actual time the author spent)
@ -41,7 +41,7 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> **debugging @143hours** = codingtime / 4; > **debugging @143hours** = codingtime / 4;
> **planning @82hours** = codingtime / 7; > **planning @82hours** = codingtime / 7;
> **mapping @57hours** = codingtime / 10; > **mapping @57hours** = codingtime / 10;
> **office @95hours** = codingtime / 6;) > **office @96hours** = codingtime / 6;)
**951 Hours** or **119 Eight Hour Days** **951 Hours** or **119 Eight Hour Days**
(a total of the realistic time frame for this project) (a total of the realistic time frame for this project)

View File

@ -1,4 +1,4 @@
# Get Bible (4.0.9) # Get Bible (4.0.10)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible") ![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -18,8 +18,8 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net) + *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015 + *First Build*: 3rd December, 2015
+ *Last Build*: 8th March, 2024 + *Last Build*: 20th March, 2024
+ *Version*: 4.0.9 + *Version*: 4.0.10
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -31,8 +31,8 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, > (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.) > never making one mistake or taking any coffee break.)
+ *Line count*: **205330** + *Line count*: **205401**
+ *File count*: **1696** + *File count*: **1697**
+ *Folder count*: **174** + *Folder count*: **174**
**378 Hours** or **47 Eight Hour Days** (the actual time the author spent) **378 Hours** or **47 Eight Hour Days** (the actual time the author spent)
@ -41,7 +41,7 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> **debugging @143hours** = codingtime / 4; > **debugging @143hours** = codingtime / 4;
> **planning @82hours** = codingtime / 7; > **planning @82hours** = codingtime / 7;
> **mapping @57hours** = codingtime / 10; > **mapping @57hours** = codingtime / 10;
> **office @95hours** = codingtime / 6;) > **office @96hours** = codingtime / 6;)
**951 Hours** or **119 Eight Hour Days** **951 Hours** or **119 Eight Hour Days**
(a total of the realistic time frame for this project) (a total of the realistic time frame for this project)

View File

@ -8,7 +8,6 @@ COM_GETBIBLE_ARCHIVED="Archived"
COM_GETBIBLE_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS="Are you sure you want to delete? Confirming will permanently delete the selected item(s)!" COM_GETBIBLE_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS="Are you sure you want to delete? Confirming will permanently delete the selected item(s)!"
COM_GETBIBLE_AUTHOR="Author" COM_GETBIBLE_AUTHOR="Author"
COM_GETBIBLE_BACK="Back" COM_GETBIBLE_BACK="Back"
COM_GETBIBLE_BETA_RELEASE="Beta Release"
COM_GETBIBLE_BOOK="Book" COM_GETBIBLE_BOOK="Book"
COM_GETBIBLE_BOOKS="Books" COM_GETBIBLE_BOOKS="Books"
COM_GETBIBLE_BOOKS_ACCESS="Books Access" COM_GETBIBLE_BOOKS_ACCESS="Books Access"
@ -1211,6 +1210,7 @@ COM_GETBIBLE_PASSWORD_TO_SHORT_USE_A_LONGER_PASSWORD="Password to short, use a l
COM_GETBIBLE_PASSWORD_VERSION_DESC="A count of the number of times this Password has been revised." COM_GETBIBLE_PASSWORD_VERSION_DESC="A count of the number of times this Password has been revised."
COM_GETBIBLE_PASSWORD_VERSION_LABEL="Version" COM_GETBIBLE_PASSWORD_VERSION_LABEL="Version"
COM_GETBIBLE_PLEASE_CHECK_AGAIN_LATER="Please check again later" COM_GETBIBLE_PLEASE_CHECK_AGAIN_LATER="Please check again later"
COM_GETBIBLE_PRE_RELEASE="Pre Release"
COM_GETBIBLE_PROMPT="Prompt" COM_GETBIBLE_PROMPT="Prompt"
COM_GETBIBLE_PROMPTS="Prompts" COM_GETBIBLE_PROMPTS="Prompts"
COM_GETBIBLE_PROMPTS_ACCESS="Prompts Access" COM_GETBIBLE_PROMPTS_ACCESS="Prompts Access"

View File

@ -0,0 +1 @@

View File

@ -168,7 +168,7 @@ class AjaxModel extends ListModel
// now check if this version is out dated // now check if this version is out dated
if ($current_version === $local_version) if ($current_version === $local_version)
{ {
return ['notice' => '<small><span style="color:green;"><span class="icon-shield"></span>' . Text::_('COM_GETBIBLE_UP_TO_DATE') . '</span></small>']; return ['notice' => '<small><span style="color:green;"><span class="icon-shield"></span>&nbsp;' . Text::_('COM_GETBIBLE_UP_TO_DATE') . '</span></small>'];
} }
else else
{ {
@ -179,14 +179,14 @@ class AjaxModel extends ListModel
($local_array[0] == $current_array[0] && $local_array[1] > $current_array[1]) || ($local_array[0] == $current_array[0] && $local_array[1] > $current_array[1]) ||
($local_array[0] == $current_array[0] && $local_array[1] == $current_array[1] && $local_array[2] > $current_array[2])) ($local_array[0] == $current_array[0] && $local_array[1] == $current_array[1] && $local_array[2] > $current_array[2]))
{ {
return ['notice' => '<small><span style="color:#F7B033;"><span class="icon-wrench"></span>' . Text::_('COM_GETBIBLE_BETA_RELEASE') . '</span></small>']; return ['notice' => '<small><span style="color:#F7B033;"><span class="icon-wrench"></span>&nbsp;' . Text::_('COM_GETBIBLE_PRE_RELEASE') . '</span></small>'];
} }
else else
{ {
// download link of the latest version // download link of the latest version
$download = "https://git.vdm.dev/api/v1/repos/getBible/joomla-component/archive/" . $tags[0]->name . ".zip"; $download = "https://git.vdm.dev/api/v1/repos/getBible/joomla-component/archive/" . $tags[0]->name . ".zip";
return ['notice' => '<small><span style="color:red;"><span class="icon-warning-circle"></span>' . Text::_('COM_GETBIBLE_OUT_OF_DATE') . '!</span> <a style="color:green;" href="' . return ['notice' => '<small><span style="color:red;"><span class="icon-warning-circle"></span>&nbsp;' . Text::_('COM_GETBIBLE_OUT_OF_DATE') . '!</span> <a style="color:green;" href="' .
$download . '" title="' . Text::_('COM_GETBIBLE_YOU_CAN_DIRECTLY_DOWNLOAD_THE_LATEST_UPDATE_OR_USE_THE_JOOMLA_UPDATE_AREA') . '">' . Text::_('COM_GETBIBLE_DOWNLOAD_UPDATE') . '!</a></small>']; $download . '" title="' . Text::_('COM_GETBIBLE_YOU_CAN_DIRECTLY_DOWNLOAD_THE_LATEST_UPDATE_OR_USE_THE_JOOMLA_UPDATE_AREA') . '">' . Text::_('COM_GETBIBLE_DOWNLOAD_UPDATE') . '!</a></small>'];
} }
} }

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -144,6 +145,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_BOOK_NEW' : 'COM_GETBIBLE_BOOK_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_BOOK_NEW' : 'COM_GETBIBLE_BOOK_EDIT'));
// add styles // add styles

View File

@ -180,6 +180,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_BOOKS')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_BOOKS'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -144,6 +145,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_CHAPTER_NEW' : 'COM_GETBIBLE_CHAPTER_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_CHAPTER_NEW' : 'COM_GETBIBLE_CHAPTER_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_CHAPTERS')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_CHAPTERS'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -222,6 +223,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_LINKER_NEW' : 'COM_GETBIBLE_LINKER_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_LINKER_NEW' : 'COM_GETBIBLE_LINKER_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_LINKERS')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_LINKERS'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -218,6 +219,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_NOTE_NEW' : 'COM_GETBIBLE_NOTE_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_NOTE_NEW' : 'COM_GETBIBLE_NOTE_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_NOTES')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_NOTES'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -218,6 +219,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_OPEN_AI_MESSAGE_NEW' : 'COM_GETBIBLE_OPEN_AI_MESSAGE_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_OPEN_AI_MESSAGE_NEW' : 'COM_GETBIBLE_OPEN_AI_MESSAGE_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_OPEN_AI_MESSAGES')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_OPEN_AI_MESSAGES'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -221,6 +222,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_OPEN_AI_RESPONSE_NEW' : 'COM_GETBIBLE_OPEN_AI_RESPONSE_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_OPEN_AI_RESPONSE_NEW' : 'COM_GETBIBLE_OPEN_AI_RESPONSE_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_OPEN_AI_RESPONSES')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_OPEN_AI_RESPONSES'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -213,6 +214,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_PASSWORD_NEW' : 'COM_GETBIBLE_PASSWORD_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_PASSWORD_NEW' : 'COM_GETBIBLE_PASSWORD_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_PASSWORDS')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_PASSWORDS'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -218,6 +219,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_PROMPT_NEW' : 'COM_GETBIBLE_PROMPT_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_PROMPT_NEW' : 'COM_GETBIBLE_PROMPT_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_PROMPTS')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_PROMPTS'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -218,6 +219,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_TAG_NEW' : 'COM_GETBIBLE_TAG_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_TAG_NEW' : 'COM_GETBIBLE_TAG_EDIT'));
// add styles // add styles

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -218,6 +219,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_TAGGED_VERSE_NEW' : 'COM_GETBIBLE_TAGGED_VERSE_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_TAGGED_VERSE_NEW' : 'COM_GETBIBLE_TAGGED_VERSE_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_TAGGED_VERSES')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_TAGGED_VERSES'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_TAGS')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_TAGS'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -144,6 +145,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_TRANSLATION_NEW' : 'COM_GETBIBLE_TRANSLATION_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_TRANSLATION_NEW' : 'COM_GETBIBLE_TRANSLATION_EDIT'));
// add styles // add styles

View File

@ -180,6 +180,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_TRANSLATIONS')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_TRANSLATIONS'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -54,6 +54,7 @@ class HtmlView extends BaseHtmlView
{ {
// set params // set params
$this->params = ComponentHelper::getParams('com_getbible'); $this->params = ComponentHelper::getParams('com_getbible');
$this->useCoreUI = true;
// Assign the variables // Assign the variables
$this->form = $this->get('Form'); $this->form = $this->get('Form');
$this->item = $this->get('Item'); $this->item = $this->get('Item');
@ -144,6 +145,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$isNew = ($this->item->id < 1); $isNew = ($this->item->id < 1);
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_VERSE_NEW' : 'COM_GETBIBLE_VERSE_EDIT')); $this->getDocument()->setTitle(Text::_($isNew ? 'COM_GETBIBLE_VERSE_NEW' : 'COM_GETBIBLE_VERSE_EDIT'));
// add styles // add styles

View File

@ -170,6 +170,8 @@ class HtmlView extends BaseHtmlView
*/ */
protected function _prepareDocument(): void protected function _prepareDocument(): void
{ {
// Load jQuery
Html::_('jquery.framework');
$this->getDocument()->setTitle(Text::_('COM_GETBIBLE_VERSES')); $this->getDocument()->setTitle(Text::_('COM_GETBIBLE_VERSES'));
// add styles // add styles
foreach ($this->styles as $style) foreach ($this->styles as $style)

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4.0" method="upgrade"> <extension type="component" version="4.0" method="upgrade">
<name>COM_GETBIBLE</name> <name>COM_GETBIBLE</name>
<creationDate>8th March, 2024</creationDate> <creationDate>20th March, 2024</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail> <authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://getbible.net</authorUrl> <authorUrl>https://getbible.net</authorUrl>
<copyright>Copyright (C) 2015. All Rights Reserved</copyright> <copyright>Copyright (C) 2015. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license> <license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>4.0.9</version> <version>4.0.10</version>
<description><![CDATA[ <description><![CDATA[
<h1>Get Bible (v.4.0.9)</h1> <h1>Get Bible (v.4.0.10)</h1>
<div style="clear: both;"></div> <div style="clear: both;"></div>
<p>Welcome to the next level of scripture engagement - The Bible for Joomla! Our purpose is to bring the Word of God to every person, in their native language, entirely free. This isn't just a typical extension; it's a groundbreaking tool developed to span language divides and deliver a rich, customizable Bible study experience to users worldwide. <p>Welcome to the next level of scripture engagement - The Bible for Joomla! Our purpose is to bring the Word of God to every person, in their native language, entirely free. This isn't just a typical extension; it's a groundbreaking tool developed to span language divides and deliver a rich, customizable Bible study experience to users worldwide.

View File

@ -75,24 +75,24 @@ abstract class FormHelper
// element was not returned // element was not returned
return; return;
} }
switch (get_class($node))
if ($node instanceof \stdClass)
{ {
case 'stdClass': if (property_exists($node, 'comment'))
if (property_exists($node, 'comment')) {
{ self::comment($xml, $node->comment);
self::comment($xml, $node->comment); }
} if (property_exists($node, 'fieldXML'))
if (property_exists($node, 'fieldXML')) {
{ self::append($xml, $node->fieldXML);
self::append($xml, $node->fieldXML); }
} }
break; elseif ($node instanceof \SimpleXMLElement)
case 'SimpleXMLElement': {
$domXML = \dom_import_simplexml($xml); $domXML = \dom_import_simplexml($xml);
$domNode = \dom_import_simplexml($node); $domNode = \dom_import_simplexml($node);
$domXML->appendChild($domXML->ownerDocument->importNode($domNode, true)); $domXML->appendChild($domXML->ownerDocument->importNode($domNode, true));
$xml = \simplexml_import_dom($domXML); $xml = \simplexml_import_dom($domXML);
break;
} }
} }
@ -127,7 +127,7 @@ abstract class FormHelper
{ {
foreach ($attributes as $key => $value) foreach ($attributes as $key => $value)
{ {
$xml->addAttribute($key, $value); $xml->addAttribute($key, $value ?? '');
} }
} }
@ -145,7 +145,7 @@ abstract class FormHelper
foreach ($options as $key => $value) foreach ($options as $key => $value)
{ {
$addOption = $xml->addChild('option'); $addOption = $xml->addChild('option');
$addOption->addAttribute('value', $key); $addOption->addAttribute('value', $key ?? '');
$addOption[] = $value; $addOption[] = $value;
} }
} }

View File

@ -30,11 +30,12 @@ defined('JPATH_BASE') or die;
$table_id = (isset($displayData['id'])) ? $displayData['id'] : StringHelper::random(7); $table_id = (isset($displayData['id'])) ? $displayData['id'] : StringHelper::random(7);
$name = (isset($displayData['name'])) ? $displayData['name'] : false; $name = (isset($displayData['name'])) ? $displayData['name'] : false;
$table_class = (isset($displayData['table_class'])) ? $displayData['table_class'] : 'uk-table'; $table_class = (isset($displayData['table_class'])) ? $displayData['table_class'] : 'uk-table';
$table_container_class = (isset($displayData['table_container_class'])) ? $displayData['table_container_class'] : 'uk-overflow-auto';
$headers = (isset($displayData['headers'])) ? $displayData['headers'] : [Text::_('COM_GETBIBLE_NO'), Text::_('COM_GETBIBLE_HEADERS'), Text::_('COM_GETBIBLE_FOUND')]; $headers = (isset($displayData['headers'])) ? $displayData['headers'] : [Text::_('COM_GETBIBLE_NO'), Text::_('COM_GETBIBLE_HEADERS'), Text::_('COM_GETBIBLE_FOUND')];
$items = (isset($displayData['items'])) ? $displayData['items'] : 6; $items = (isset($displayData['items'])) ? $displayData['items'] : 6;
?> ?>
<div class="uk-overflow-auto"> <div class="<?php echo $$table_container_class; ?>">
<table id="<?php echo $table_id; ?>" class="<?php echo $table_class; ?>"> <table id="<?php echo $table_id; ?>" class="<?php echo $table_class; ?>">
<thead> <thead>
<?php if (is_array($headers)): ?> <?php if (is_array($headers)): ?>

View File

@ -980,7 +980,7 @@ class HtmlView extends BaseHtmlView
Html::_('script', $script, ['version' => 'auto']); Html::_('script', $script, ['version' => 'auto']);
} }
// Set the Custom JS script to view // Set the Custom JS script to view
$this->document->addScriptDeclaration(" $this->getDocument()->addScriptDeclaration("
const UrlAjax = '$url_ajax'; const UrlAjax = '$url_ajax';
const getShareHisWordUrl = (linker, translation, book, chapter) => { const getShareHisWordUrl = (linker, translation, book, chapter) => {
// build share His Word url // build share His Word url

View File

@ -820,7 +820,7 @@ class HtmlView extends BaseHtmlView
Html::_('script', $script, ['version' => 'auto']); Html::_('script', $script, ['version' => 'auto']);
} }
// Set the Custom JS script to view // Set the Custom JS script to view
$this->document->addScriptDeclaration(" $this->getDocument()->addScriptDeclaration("
const urlSearch = '$url_search'; const urlSearch = '$url_search';
const urlAjax = '$url_ajax'; const urlAjax = '$url_ajax';
const getAppURL = (book, chapter, verse, translation = 'kjv') => { const getAppURL = (book, chapter, verse, translation = 'kjv') => {

View File

@ -5,10 +5,10 @@
<element>pkg_getbible</element> <element>pkg_getbible</element>
<type>package</type> <type>package</type>
<client>site</client> <client>site</client>
<version>3.0.6</version> <version>3.0.7</version>
<infourl title="Get Bible!">https://getbible.net</infourl> <infourl title="Get Bible!">https://getbible.net</infourl>
<downloads> <downloads>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v3.0.6.zip</downloadurl> <downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v3.0.7.zip</downloadurl>
</downloads> </downloads>
<tags> <tags>
<tag>stable</tag> <tag>stable</tag>
@ -197,4 +197,22 @@
<maintainerurl>https://getbible.net</maintainerurl> <maintainerurl>https://getbible.net</maintainerurl>
<targetplatform name="joomla" version="4\.[01234]"/> <targetplatform name="joomla" version="4\.[01234]"/>
</update> </update>
<update>
<name>Get Bible</name>
<description>The Bible for Joomla</description>
<element>pkg_getbible</element>
<type>package</type>
<client>site</client>
<version>4.0.10</version>
<infourl title="Get Bible!">https://getbible.net</infourl>
<downloads>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v4.0.10.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Llewellyn van der Merwe</maintainer>
<maintainerurl>https://getbible.net</maintainerurl>
<targetplatform name="joomla" version="4\.[01234]"/>
</update>
</updates> </updates>