Get Bible (v.3.0.6)
+ Get Bible (v.3.0.7)
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.
diff --git a/libraries/jcb_powers/VDM.Joomla/src/Utilities/FormHelper.php b/libraries/jcb_powers/VDM.Joomla/src/Utilities/FormHelper.php
index a2f48fd..b21d71c 100644
--- a/libraries/jcb_powers/VDM.Joomla/src/Utilities/FormHelper.php
+++ b/libraries/jcb_powers/VDM.Joomla/src/Utilities/FormHelper.php
@@ -75,24 +75,24 @@ abstract class FormHelper
// element was not returned
return;
}
- switch (get_class($node))
+
+ if ($node instanceof \stdClass)
{
- case 'stdClass':
- if (property_exists($node, 'comment'))
- {
- self::comment($xml, $node->comment);
- }
- if (property_exists($node, 'fieldXML'))
- {
- self::append($xml, $node->fieldXML);
- }
- break;
- case 'SimpleXMLElement':
- $domXML = \dom_import_simplexml($xml);
- $domNode = \dom_import_simplexml($node);
- $domXML->appendChild($domXML->ownerDocument->importNode($domNode, true));
- $xml = \simplexml_import_dom($domXML);
- break;
+ if (property_exists($node, 'comment'))
+ {
+ self::comment($xml, $node->comment);
+ }
+ if (property_exists($node, 'fieldXML'))
+ {
+ self::append($xml, $node->fieldXML);
+ }
+ }
+ elseif ($node instanceof \SimpleXMLElement)
+ {
+ $domXML = \dom_import_simplexml($xml);
+ $domNode = \dom_import_simplexml($node);
+ $domXML->appendChild($domXML->ownerDocument->importNode($domNode, true));
+ $xml = \simplexml_import_dom($domXML);
}
}
@@ -127,7 +127,7 @@ abstract class FormHelper
{
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)
{
$addOption = $xml->addChild('option');
- $addOption->addAttribute('value', $key);
+ $addOption->addAttribute('value', $key ?? '');
$addOption[] = $value;
}
}
diff --git a/script.php b/script.php
index fcbb6ee..90d771d 100644
--- a/script.php
+++ b/script.php
@@ -1546,7 +1546,7 @@ class Com_GetbibleInstallerScript
echo '
-
Upgrade to Version 3.0.6 Was Successful! Let us know if anything is not working as expected.
';
+ Upgrade to Version 3.0.7 Was Successful! Let us know if anything is not working as expected.
';
// Set db if not set already.
if (!isset($db))
diff --git a/site/layouts/table.php b/site/layouts/table.php
index a29db07..baff627 100644
--- a/site/layouts/table.php
+++ b/site/layouts/table.php
@@ -27,11 +27,12 @@ use VDM\Joomla\Utilities\StringHelper;
$table_id = (isset($displayData['id'])) ? $displayData['id'] : StringHelper::random(7);
$name = (isset($displayData['name'])) ? $displayData['name'] : false;
$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')];
$items = (isset($displayData['items'])) ? $displayData['items'] : 6;
?>
-
+
diff --git a/site/views/app/view.html.php b/site/views/app/view.html.php
index 9ce8eba..d5f4871 100644
--- a/site/views/app/view.html.php
+++ b/site/views/app/view.html.php
@@ -954,7 +954,7 @@ class GetbibleViewApp extends HtmlView
}
");
// Set the Custom JS script to view
- $this->document->addScriptDeclaration("
+ $this->getDocument()->addScriptDeclaration("
const UrlAjax = '$url_ajax';
const getShareHisWordUrl = (linker, translation, book, chapter) => {
// build share His Word url
diff --git a/site/views/search/view.html.php b/site/views/search/view.html.php
index 8f4842c..191cf93 100644
--- a/site/views/search/view.html.php
+++ b/site/views/search/view.html.php
@@ -794,7 +794,7 @@ class GetbibleViewSearch extends HtmlView
}
");
// Set the Custom JS script to view
- $this->document->addScriptDeclaration("
+ $this->getDocument()->addScriptDeclaration("
const urlSearch = '$url_search';
const urlAjax = '$url_ajax';
const getAppURL = (book, chapter, verse, translation = 'kjv') => {
diff --git a/update_server.xml b/update_server.xml
index 0d6ae4a..8f2d2f3 100644
--- a/update_server.xml
+++ b/update_server.xml
@@ -665,4 +665,22 @@
https://getbible.net
+
+ Get Bible
+ The Bible for Joomla
+ pkg_getbible
+ package
+ site
+ 3.0.7
+ https://getbible.net
+
+ https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v3.0.7.zip
+
+
+ stable
+
+ Llewellyn van der Merwe
+ https://getbible.net
+
+
\ No newline at end of file