Release of v4.0.13

Add back to Bible button to Open AI page.
This commit is contained in:
Robot 2024-04-29 19:08:20 +02:00
parent 369bbf3772
commit 5e4c90db11
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
13 changed files with 79 additions and 34 deletions

View File

@ -1,3 +1,7 @@
# v4.0.13
- Add back to Bible button to Open AI page.
# v4.0.12
- Add PHP check on installation.
@ -54,7 +58,6 @@
- Moved to Joomla 4
# v3.0.9
# v3.1.1
- Add PHP check on installation.
- Add Database check on installation.
- Add back to Bible button to Open AI page.

View File

@ -795,7 +795,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">
<img src="components/com_getbible/assets/images/vdm-component.jpg"/>
</a>
<h3>Upgrade to Version 4.0.12 Was Successful! Let us know if anything is not working as expected.</h3></div>';
<h3>Upgrade to Version 4.0.13 Was Successful! Let us know if anything is not working as expected.</h3></div>';
// Add/Update component in the action logs extensions table.
$this->setActionLogsExtensions();

View File

@ -1,4 +1,4 @@
# Get Bible (4.0.12)
# Get Bible (4.0.13)
![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)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 27th April, 2024
+ *Version*: 4.0.12
+ *Last Build*: 29th April, 2024
+ *Version*: 4.0.13
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *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**,
> never making one mistake or taking any coffee break.)
+ *Line count*: **210790**
+ *File count*: **1716**
+ *Line count*: **210835**
+ *File count*: **1717**
+ *Folder count*: **174**
**388 Hours** or **48 Eight Hour Days** (the actual time the author spent)

View File

@ -1,4 +1,4 @@
# Get Bible (4.0.12)
# Get Bible (4.0.13)
![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)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 27th April, 2024
+ *Version*: 4.0.12
+ *Last Build*: 29th April, 2024
+ *Version*: 4.0.13
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *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**,
> never making one mistake or taking any coffee break.)
+ *Line count*: **210790**
+ *File count*: **1716**
+ *Line count*: **210835**
+ *File count*: **1717**
+ *Folder count*: **174**
**388 Hours** or **48 Eight Hour Days** (the actual time the author spent)

View File

@ -0,0 +1 @@

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4.0" method="upgrade">
<name>COM_GETBIBLE</name>
<creationDate>27th April, 2024</creationDate>
<creationDate>29th April, 2024</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://getbible.net</authorUrl>
<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>
<version>4.0.12</version>
<version>4.0.13</version>
<description><![CDATA[
<h1>Get Bible (v.4.0.12)</h1>
<h1>Get Bible (v.4.0.13)</h1>
<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.

View File

@ -206,6 +206,7 @@ COM_GETBIBLE_THE_NAME_COULD_NOT_BE_UPDATED="The name could not be updated."
COM_GETBIBLE_THE_NAME_HAS_BEEN_UPDATED="The name has been updated."
COM_GETBIBLE_THE_NOTE_WAS_SUCCESSFULLY_CREATED="The note was successfully created."
COM_GETBIBLE_THE_NOTE_WAS_SUCCESSFULLY_UPDATED="The note was successfully updated."
COM_GETBIBLE_THE_OPEN_AI_FEATURE_HAS_NOT_BEEN_ACTIVATED_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR_OF_THIS_WEBSITE_TO_RESOLVE_THIS="The Open AI feature has not been activated. Please contact the system administrator of this website to resolve this."
COM_GETBIBLE_THE_PERSISTENT_SESSION_KEY_ALLOWS_VIEWING_WHILE_EDITING_IS_ONLY_POSSIBLE_WHEN_THE_CORRECT_FAVOURITE_VERSE_IS_PROVIDED="The persistent session key allows viewing, while editing is only possible when the correct favourite verse is provided."
COM_GETBIBLE_THE_SCRIPTURE_WAS_COPIED_TO_YOUR_CLIPBOARD="The scripture was copied to your clipboard!"
COM_GETBIBLE_THE_SEARCH_FEATURE_HAS_NOT_BEEN_ACTIVATED_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR_OF_THIS_WEBSITE_TO_RESOLVE_THIS="The search feature has not been activated. Please contact the system administrator of this website to resolve this."

View File

@ -524,11 +524,15 @@ class AjaxModel extends ListModel
{
if ($abbreviation === 'all' || $abbreviation === $translation)
{
// set the return UR
$return = urlencode(base64_encode((string) Route::_('index.php?option=com_getbible&view=app&t=' . $translation . '&Itemid=' . $this->app_params->get('app_menu', 0) . '&book=' . $book . '&chapter=' . $chapter)));
// set the return URL
$return = '';
if ($book > 0 && $chapter > 0)
{
$return = '&bibleurl=' . urlencode(base64_encode(trim(Uri::base(), '/') . Route::_('index.php?option=com_getbible&view=app&t=' . $translation . '&Itemid=' . $this->app_params->get('app_menu', 0) . '&book=' . $book . '&chapter=' . $chapter)));
}
// we return the AI url
return ['url' => trim(trim(Uri::base(), '/') . Route::_('index.php?option=com_getbible&view=openai&t=' . $translation . '&Itemid=' . $this->app_params->get('app_menu', 0) . '&bibleurl=' . $return . '&guid=' . $guid . '&book=' . $book . '&chapter=' . $chapter . '&verse=' . $verse . '&words=' . $words))];
return ['url' => trim(trim(Uri::base(), '/') . Route::_('index.php?option=com_getbible&view=openai&t=' . $translation . '&Itemid=' . $this->app_params->get('app_menu', 0) . $return . '&guid=' . $guid . '&book=' . $book . '&chapter=' . $chapter . '&verse=' . $verse . '&words=' . $words))];
}
return ['error' => 'There was an error please try again.'];

View File

@ -30,6 +30,7 @@ use TrueChristianChurch\Component\Getbible\Site\Helper\HeaderCheck;
use TrueChristianChurch\Component\Getbible\Site\Helper\GetbibleHelper;
use TrueChristianChurch\Component\Getbible\Site\Helper\RouteHelper;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Router\Router;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Helper\ModuleHelper;
@ -70,8 +71,18 @@ class HtmlView extends BaseHtmlView
// remove from page (in case debug mode is on)
$this->params->set('openai_token', null);
$this->params->set('gitea_token', null);
// set the input object
$this->input = $this->app->input;
// is the area active
if ($this->params->get('enable_open_ai') == 1)
{
// set the page direction globally
$this->getDocument()->setDirection($this->translation->direction);
// set the global language declaration
// $this->getDocument()->setLanguage($this->translation->joomla); (soon ;)
// set meta
$this->setMetaData();
}
// Set the toolbar
$this->addToolBar();

View File

@ -27,17 +27,23 @@ defined('_JEXEC') or die;
?>
<?php if ($this->item): ?>
<?php if ($this->params->get('enable_open_ai') == 1): ?>
<?php if ($this->item): ?>
<?php echo $this->loadTemplate('getbibleai'); ?>
<?php if (count($this->item) > 1) : ?>
<?php echo $this->loadTemplate('getbibleaifilter'); ?>
<?php endif; ?>
<?php else: ?>
<?php else: ?>
<div uk-alert>
<h3><?php echo Text::_('COM_GETBIBLE_THERE_HAS_BEEN_AN_ERROR'); ?></h3>
<p><?php echo Text::_('COM_GETBIBLE_FOR_SOME_REASON_YOUR_REQUEST_COULD_NOT_BE_PROCESSED_AT_THIS_TIME'); ?></p>
</div>
<?php endif; ?>
<?php if ($this->params->get('debug') == 1): ?>
<?php endif; ?>
<?php if ($this->params->get('debug') == 1): ?>
<?php echo $this->loadTemplate('getbibleaidebug'); ?>
<?php endif; ?>
<?php else: ?>
<div class="uk-alert-danger" uk-alert>
<p><?php echo Text::_("COM_GETBIBLE_THE_OPEN_AI_FEATURE_HAS_NOT_BEEN_ACTIVATED_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR_OF_THIS_WEBSITE_TO_RESOLVE_THIS"); ?></p>
</div>
<?php endif; ?>

View File

@ -27,6 +27,7 @@ defined('_JEXEC') or die;
<div class="uk-container">
<div class="tm-grid-expand uk-child-width-1-1 uk-grid-margin uk-grid uk-grid-stack" uk-grid>
<div class="uk-first-column">
<a class="uk-button uk-button-small uk-width-1-1" href="<?php echo $this->getBibleUrl(); ?>"><?php echo Text::_('COM_GETBIBLE_BIBLE'); ?></a>
<h2 class="uk-heading-small uk-heading-line uk-text-center"><?php echo Text::_('COM_GETBIBLE_OPEN_AI_RESPONSE'); ?></h2>
<div class="uk-margin">
<?php if ($this->params->get('show_top_menu') == 1): ?>

View File

@ -5,10 +5,10 @@
<element>pkg_getbible</element>
<type>package</type>
<client>site</client>
<version>3.0.9</version>
<version>3.1.1</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/v3.0.9.zip</downloadurl>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v3.1.1.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
@ -251,4 +251,22 @@
<maintainerurl>https://getbible.net</maintainerurl>
<targetplatform name="joomla" version="4\.[01234]"/>
</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.13</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.13.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>