Compare commits

..

24 Commits
3.x ... 5.x

Author SHA1 Message Date
68cd37f0bd
Release of v5.0.15-alpha4
Improve the PHP environment setup validation. Add option to pass shared session via tag share.
2024-07-29 18:14:59 +02:00
fca31eaf74
Release of v5.0.15-alpha3
Fix update error of undefined folder method (exists).
2024-07-15 17:51:35 +02:00
46dcc38ea7
Release of v5.0.15-alpha2
Fix display error with correct component namespace update form JCB.
2024-07-15 17:37:50 +02:00
26f893f4ff
Release of v5.0.15-alpha1
Fix install issue with missing method removeFolder.
2024-07-15 17:13:51 +02:00
831530ff6b
Release of v5.0.14
Refactored the API classes. Add table schema checker.
2024-07-15 09:58:20 +02:00
1c1f4601a3
Release of v5.0.13
Add back to Bible button to Open AI page.
2024-04-29 19:09:44 +02:00
83ef4080db
Release of v5.0.12
Add PHP check on installation. Add Database check on installation.
2024-04-27 22:51:22 +02:00
4f4c13d13c
Release of v5.0.11
Moved all library classes away from default Namespace and Folder path to avoid collusion on outdated classes.
2024-04-06 15:20:14 +02:00
b61c1b2190
Release of v5.0.10
Update getBible loader to version 3.1.0.
2024-03-20 10:40:24 +02:00
23380eda79
Stable release of v5.0.9
Correct the url encoding to json_encode for none Latin languages. Fix type cast validation on search page.
2024-03-08 10:08:03 +02:00
3d8e16b84b
Stable release of v5.0.8
Fix wrong class naming.
2024-03-07 18:40:43 +02:00
02ec6142d7
Update on v5.0.7 (beta for next version)
Here's an update on the current version, which includes changes towards the next release still in beta.
2024-03-07 18:25:42 +02:00
db9339b641
Stable release of v5.0.7
Fix missing token variable in ajax call.
2024-03-04 10:00:15 +02:00
9a8c235755
Update on v5.0.6 (beta for next version)
Here's an update on the current version, which includes changes towards the next release still in beta.
2024-03-01 22:26:09 +02:00
379f76f497
Update on v5.0.6 (beta for next version)
Here's an update on the current version, which includes changes towards the next release still in beta.
2024-02-28 12:25:36 +02:00
338b14c0bd
Stable release of v5.0.6
Fix an Ajax input typo.
2024-02-19 00:26:05 +02:00
01f3548e69
Stable release of v5.0.5
Add option to target MySQL 8+ with the search regex.
2024-02-19 00:01:37 +02:00
41d1564412
Stable release of v5.0.4
Fix the spl_autoload_register function to load all the needed namespace. That was remove in the last update (sorry).
2024-02-10 11:01:50 +02:00
6acc130732
Stable release of v5.0.3
Fix canDelete to correctly use published. Add default 1 to version field to make sure the versioning feature works as expected.
2024-02-10 10:50:40 +02:00
9cc2d88f9e
Stable release of v5.0.2
Fix Daily Light Deprecated code. Fix Daily Scripture Deprecated code.
2024-01-29 10:41:32 +02:00
136fcd0fc2
Stable release of v5.0.1
First stable back-end and front-end release towards Joomla 4 and 5.
2024-01-29 09:31:35 +02:00
ea867eba76
Update the octojpack config. 2024-01-23 19:22:09 +02:00
415b8a2e46
Stable release of v5.0.0
Moved to Joomla 4 and 5.
2024-01-23 19:16:25 +02:00
8d583feb3f
Stable release of v2.1.0
Move all JText to use the namespaced class Text directly. Move all JHtml to use the namespaced class Html directly. Move all JFactory to use the namespaced class Factory directly. Move all JRoute to use the namespaced class Route directly. Move all JFormHelper to use the namespaced class FormHelper directly. Move all JLayout to use the namespaced class FileLayout directly. Move all JLanguageMultilang to use the namespaced class Multilanguage directly. Move all JComponentHelper to use the namespaced class ComponentHelper directly. Move all JCategoryNode to use the namespaced class CategoryNode directly. Move all JComponentHelper to use the namespaced class ComponentHelper directly. Move all JToolbar to use the namespaced class Toolbar directly. Move all JToolbarHelper to use the namespaced class ToolbarHelper directly. Convert all addStyleSheet to make use of Html class instead. Convert all addScript to make use of Html class instead.
2023-12-23 18:05:05 +02:00
631 changed files with 17560 additions and 14131 deletions

View File

@ -9,8 +9,8 @@
"name": "PKG_GETBIBLE", "name": "PKG_GETBIBLE",
"code_name": "getbible", "code_name": "getbible",
"package_name": "pkg_getbible", "package_name": "pkg_getbible",
"min_joomla_version": "3.8", "min_joomla_version": "4.3",
"max_joomla_version": "3.10", "max_joomla_version": "5.1",
"copyright": "Copyright (C) 2015 Llewellyn van der Merwe. All rights reserved.", "copyright": "Copyright (C) 2015 Llewellyn van der Merwe. All rights reserved.",
"copyright_year": "2015", "copyright_year": "2015",
"license": "GNU General Public License version 2; see LICENSE", "license": "GNU General Public License version 2; see LICENSE",
@ -18,14 +18,14 @@
"author": "Llewellyn van der Merwe", "author": "Llewellyn van der Merwe",
"author_email": "joomla@vdm.io", "author_email": "joomla@vdm.io",
"author_url": "https://io.vdm.dev/", "author_url": "https://io.vdm.dev/",
"description": "The Get Bible for Joomla 3.", "description": "The Get Bible for Joomla 4 and 5.",
"version_id": "com_getbible", "version_id": "com_getbible",
"update_servers": "https://git.vdm.dev/getBible/joomla-component/raw/branch/3.10/update_server.xml" "update_servers": "https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/update_server.xml"
}, },
"repository": { "repository": {
"owner": "getBible", "owner": "getBible",
"repo": "joomla-pkg", "repo": "joomla-pkg",
"branch": "3.10" "branch": "5.0"
}, },
"files": [ "files": [
{ {
@ -33,7 +33,7 @@
"repo": "joomla-component", "repo": "joomla-component",
"id": "com_getbible", "id": "com_getbible",
"type": "component", "type": "component",
"mode": "3.10" "mode": "5.0"
}, },
{ {
"owner": "getBible", "owner": "getBible",

View File

@ -1,229 +1,80 @@
# v3.1.3-alpha2 # v5.0.15-alpha4
- Improve the PHP environment setup validation - Improve the PHP environment setup validation
- Add option to pass shared session via tag share - Add option to pass shared session via tag share
# v3.1.3-alpha # v5.0.15-alpha
- Refactored the API classes - Refactored the API classes
- Add table schema checker - Add table schema checker
- Improve the removeFolder method in the install script - Fix install issue with missing method removeFolder
- Fix display error with correct component namespace update form JCB
- Fix update error of undefined folder method (exists)
# v3.1.1 # v5.0.13
- Add back to Bible button to Open AI page. - Add back to Bible button to Open AI page.
# v3.1.0 # v5.0.12
- Fix missing Joomla__aeb8e463_291f_4445_9ac4_34b637c12dbd__Power.
# v3.0.9
- Add PHP check on installation. - Add PHP check on installation.
- Add Database check on installation. - Add Database check on installation.
# v3.0.8 # v5.0.11
- Moved all library classes away from default Namespace and Folder path to avoid collusion on outdated classes. - Moved all library classes away from default Namespace and Folder path to avoid collusion on outdated classes.
# v3.0.7 # v5.0.10
- Update getBible loader to version 3.1.0 - Update getBible loader to version 3.1.0
# v3.0.6 # v5.0.9
- Correct the url encoding to json_encode for none Latin languages. - Correct the url encoding to json_encode for none Latin languages.
- Fix type cast validation on search page. - Fix type cast validation on search page.
# v3.0.5 # v5.0.8
- Fix wrong class naming.
# v5.0.7
- Fix missing token variable in ajax call - Fix missing token variable in ajax call
# v3.0.4 # v5.0.6
- Fix an Ajax input typo. - Fix an Ajax input typo.
# v3.0.3 # v5.0.5
- Add option to target mysql 8+ with the search regex. - Add option to target MySQL 8+ with the search regex.
# v3.0.2 # v5.0.4
- More namespace updates. - Fix the spl_autoload_register function to load all the needed namespace. That was remove in the last update (sorry).
# v3.0.1 # v5.0.3
- Fix missing use statement in app model. - Fix canDelete to correctly use published.
- Add default 1 to version field to make sure the versioning feature works as expected.
# v3.0.0 # v5.0.2
- Move all JText to use the namespaced class Text directly. - Fix Daily Light Deprecated code.
- Move all JHtml to use the namespaced class Html directly. - Fix Daily Scripture Deprecated code.
- Move all JFactory to use the namespaced class Factory directly.
- Move all JRoute to use the namespaced class Route directly.
- Move all JFormHelper to use the namespaced class FormHelper directly.
- Move all JLayout to use the namespaced class FileLayout directly.
- Move all JLanguageMultilang to use the namespaced class Multilanguage directly.
- Move all JComponentHelper to use the namespaced class ComponentHelper directly.
- Move all JCategoryNode to use the namespaced class CategoryNode directly.
- Move all JComponentHelper to use the namespaced class ComponentHelper directly.
- Move all JToolbar to use the namespaced class Toolbar directly.
- Move all JToolbarHelper to use the namespaced class ToolbarHelper directly.
- Convert all addStyleSheet to make use of Html class instead.
- Convert all addScript to make use of Html class instead.
# v2.0.32 # v5.0.1
- Fixed other search related issues. - First stable back-end and front-end release towards Joomla 4 and 5
# v2.0.31 # v5.0.0
- Fixed #10 so that exact search results now work correctly. - Moved to Joomla 4 and 5
- Update scripture loader to version 3.0.3
# v2.0.30 # v4.0.13
- Update scripture loader to version 3.0.2 - Add back to Bible button to Open AI page.
# v2.0.29 # v3.1.1
- Update scripture loader to version 3.0.1 - Add back to Bible button to Open AI page.
# v2.0.28
- Small xml fix
# v2.0.27
- Improved the load scripture plugin.
# v2.0.26
- Adds few try catch blocks in the API.
- Adds local link to daily scripture module.
# v2.0.25
- Adds getBible Loader Plugin
# v2.0.23
- Refactored all core helper functions to make use of New classes
- Adds open ai meta data to page
- Other JCB fixes
# v2.0.22
- Fixed search redirect bug
# v2.0.21
- Adds Tags meta data to tag pages
- Adds option to share a tag
- Improve the URL creation, and return URL feature for search and tag pages
# v2.0.20
- First step to resolve getBible/support#8 so that the selection works on mobile browsers.
- Fixed the scrolling for mobiles.
# v2.0.19
- Adds metadata to each Bible page to resolve getBible/support#6
- Adds option to force chapter hash checking.
# v2.0.18
- Adds bottom module position on tag, search, ai and app pages.
- Fixed JavaScript Database Manager some more.
# v2.0.17
- Adds brut-force protection
# v2.0.16
- Fixed JavaScript Database Manager
# v2.0.15
- Adds new session option
- Adds make public switches to back-end
# v2.0.14
- Adds install mysql commands for faster queries on large systems.
- Fixes mobile layout on settings active session tab.
- Making correction to tag descriptions.
# v2.0.13
- Fix tag issues
- Adds Footable to back-end
- Fix chapter issue of app page
- Moves translations tab
# v2.0.12
- Fixes Links to Translations (to use their own book names)
# v2.0.11
- Adds better translation selection by Language
# v2.0.9
- Adds create tags on front-end.
- Adds update tags on front-end.
- Adds delete of tags on front-end.
- Improves verse view in note, and tag modal.
- Other bug fixes.
# v2.0.8
- Adds easy option to update book names in the back-end.
- Adds easy option to sync translations details in the back-end.
# v2.0.7
- Adds force update option
- Improves the book name display on Bible page
# v2.0.6
- Adds updating watchers for book names, and translation details.
- Adds edit option to owned tags
- Better session management that allows sharing sessions.
- Few bug fixes
# v2.0.5
- Adds list of default system tags
- Adds linker session manager
- Adds option to share sessions
# v2.0.4
- Added the option to set the default Translation.
- Fixed sharing of a verse, so its auto selected when verse number is clicked.
# v2.0.3
- Fixed getBible/support#2 so that the view value does not result into Undefined.
- Fixed getBible/support#3 so that empty translations and translations without the selected books better manage the mismatching query.
# v2.0.2
- Adds missing Marked JS file
# v2.0.1
- New System Architecture as to how Scripture is added
- New Application Page (Bible Page)
- New Linker (anonymous users) system
- SEO for each chapter of the Bible
- New Easy Sharing System
- New Tagging system
- New Notes system
- New Search system
- Integration with OpenAI

1966
GetbibleInstallerScript.php Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
# Get Bible (3.1.3-alpha2) # Get Bible (5.0.15-alpha4)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/master/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")
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. 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.
@ -19,37 +19,37 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Name*: [Get Bible](https://getbible.net) + *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015 + *First Build*: 3rd December, 2015
+ *Last Build*: 29th July, 2024 + *Last Build*: 29th July, 2024
+ *Version*: 3.1.3-alpha2 + *Version*: 5.0.15-alpha4
+ *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
## Build Time ## Build Time
**648 Hours** or **81 Eight Hour Days** (actual time the author saved - **670 Hours** or **84 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com)) 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*: **232257** + *Line count*: **240201**
+ *File count*: **1944** + *File count*: **1953**
+ *Folder count*: **156** + *Folder count*: **195**
**427 Hours** or **53 Eight Hour Days** (the actual time the author spent) **442 Hours** or **55 Eight Hour Days** (the actual time the author spent)
> (with the following break down: > (with the following break down:
> **debugging @162hours** = codingtime / 4; > **debugging @168hours** = codingtime / 4;
> **planning @93hours** = codingtime / 7; > **planning @96hours** = codingtime / 7;
> **mapping @65hours** = codingtime / 10; > **mapping @67hours** = codingtime / 10;
> **office @108hours** = codingtime / 6;) > **office @112hours** = codingtime / 6;)
**1075 Hours** or **134 Eight Hour Days** **1112 Hours** or **139 Eight Hour Days**
(a total of the realistic time frame for this project) (a total of the realistic time frame for this project)
> (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**,
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.) > with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
Project duration: **26.8 weeks** or **5.6 months** Project duration: **27.8 weeks** or **5.8 months**
> This **component** was build with a Joomla [Automated Component Builder](https://www.joomlacomponentbuilder.com). > This **component** was build with a Joomla [Automated Component Builder](https://www.joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)

View File

@ -1,6 +1,6 @@
# Get Bible (3.1.3-alpha2) # Get Bible (5.0.15-alpha4)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/master/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")
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. 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.
@ -19,37 +19,37 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Name*: [Get Bible](https://getbible.net) + *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015 + *First Build*: 3rd December, 2015
+ *Last Build*: 29th July, 2024 + *Last Build*: 29th July, 2024
+ *Version*: 3.1.3-alpha2 + *Version*: 5.0.15-alpha4
+ *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
## Build Time ## Build Time
**648 Hours** or **81 Eight Hour Days** (actual time the author saved - **670 Hours** or **84 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com)) 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*: **232257** + *Line count*: **240201**
+ *File count*: **1944** + *File count*: **1953**
+ *Folder count*: **156** + *Folder count*: **195**
**427 Hours** or **53 Eight Hour Days** (the actual time the author spent) **442 Hours** or **55 Eight Hour Days** (the actual time the author spent)
> (with the following break down: > (with the following break down:
> **debugging @162hours** = codingtime / 4; > **debugging @168hours** = codingtime / 4;
> **planning @93hours** = codingtime / 7; > **planning @96hours** = codingtime / 7;
> **mapping @65hours** = codingtime / 10; > **mapping @67hours** = codingtime / 10;
> **office @108hours** = codingtime / 6;) > **office @112hours** = codingtime / 6;)
**1075 Hours** or **134 Eight Hour Days** **1112 Hours** or **139 Eight Hour Days**
(a total of the realistic time frame for this project) (a total of the realistic time frame for this project)
> (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**,
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.) > with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
Project duration: **26.8 weeks** or **5.6 months** Project duration: **27.8 weeks** or **5.8 months**
> This **component** was build with a Joomla [Automated Component Builder](https://www.joomlacomponentbuilder.com). > This **component** was build with a Joomla [Automated Component Builder](https://www.joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io) > Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<config> <config>
<fieldset <fieldset
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\Getbible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\Getbible\Administrator\Field"
name="global_config" name="global_config"
label="COM_GETBIBLE_CONFIG_GLOBAL_LABEL" label="COM_GETBIBLE_CONFIG_GLOBAL_LABEL"
description="COM_GETBIBLE_CONFIG_GLOBAL_DESC"> description="COM_GETBIBLE_CONFIG_GLOBAL_DESC">

View File

@ -1,134 +0,0 @@
<?php
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
@package getBible.net
@created 3rd December, 2015
@author Llewellyn van der Merwe <https://getbible.net>
@git Get Bible <https://git.vdm.dev/getBible>
@github Get Bible <https://github.com/getBible>
@support Get Bible <https://git.vdm.dev/getBible/support>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use TrueChristianBible\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
use TrueChristianBible\Joomla\Utilities\StringHelper;
/**
* General Controller of Getbible component
*/
class GetbibleController extends BaseController
{
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* Recognized key values include 'name', 'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive).
*
* @since 3.0
*/
public function __construct($config = [])
{
// set the default view
$config['default_view'] = 'getbible';
parent::__construct($config);
}
/**
* display task
*
* @return void
*/
function display($cachable = false, $urlparams = false)
{
// set default view if not set
$view = $this->input->getCmd('view', 'getbible');
$data = $this->getViewRelation($view);
$layout = $this->input->get('layout', null, 'WORD');
$id = $this->input->getInt('id');
// Check for edit form.
if(UtilitiesArrayHelper::check($data))
{
if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_getbible.edit.'.$data['view'], $id))
{
// Somehow the person just went to the form - we don't allow that.
$this->setError(Text::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
$this->setMessage($this->getError(), 'error');
// check if item was opend from other then its own list view
$ref = $this->input->getCmd('ref', 0);
$refid = $this->input->getInt('refid', 0);
// set redirect
if ($refid > 0 && StringHelper::check($ref))
{
// redirect to item of ref
$this->setRedirect(Route::_('index.php?option=com_getbible&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false));
}
elseif (StringHelper::check($ref))
{
// redirect to ref
$this->setRedirect(Route::_('index.php?option=com_getbible&view='.(string)$ref, false));
}
else
{
// normal redirect back to the list view
$this->setRedirect(Route::_('index.php?option=com_getbible&view='.$data['views'], false));
}
return false;
}
}
return parent::display($cachable, $urlparams);
}
protected function getViewRelation($view)
{
// check the we have a value
if (StringHelper::check($view))
{
// the view relationships
$views = array(
'linker' => 'linkers',
'note' => 'notes',
'tagged_verse' => 'tagged_verses',
'prompt' => 'prompts',
'open_ai_response' => 'open_ai_responses',
'open_ai_message' => 'open_ai_messages',
'password' => 'passwords',
'tag' => 'tags',
'translation' => 'translations',
'book' => 'books',
'chapter' => 'chapters',
'verse' => 'verses'
);
// check if this is a list view
if (in_array($view, $views))
{
// this is a list view
return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
}
// check if it is an edit view
elseif (array_key_exists($view, $views))
{
// this is a edit view
return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
}
}
return false;
}
}

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,40 +17,41 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_BOOKS" description="COM_GETBIBLE_FILTER_PUBLISHED_BOOKS"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="booksfiltername" type="booksfiltername"
name="name" name="name"
label="COM_GETBIBLE_BOOK_NAME_LABEL" label="COM_GETBIBLE_BOOK_NAME_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="translations" type="translations"
name="abbreviation" name="abbreviation"
label="COM_GETBIBLE_BOOK_ABBREVIATION_LABEL" label="COM_GETBIBLE_BOOK_ABBREVIATION_LABEL"
class="multipleTranslations" layout="joomla.form.field.list-fancy-select"
multiple="true" multiple="true"
onchange="this.form.submit();" hint="COM_GETBIBLE_FILTER_SELECT_TRANSLATION"
class="js-select-submit-on-change"
/> />
<field <field
type="booksfilternr" type="booksfilternr"
name="nr" name="nr"
label="COM_GETBIBLE_BOOK_NR_LABEL" label="COM_GETBIBLE_BOOK_NR_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -59,9 +60,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="g.translation asc" default="g.translation asc"
validate="options" validate="options"
> >
@ -83,11 +83,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,41 +17,43 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_CHAPTERS" description="COM_GETBIBLE_FILTER_PUBLISHED_CHAPTERS"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="chaptersfilterchapter" type="chaptersfilterchapter"
name="chapter" name="chapter"
label="COM_GETBIBLE_CHAPTER_CHAPTER_LABEL" label="COM_GETBIBLE_CHAPTER_CHAPTER_LABEL"
class="multipleChaptersfilterchapter" layout="joomla.form.field.list-fancy-select"
multiple="true" multiple="true"
onchange="this.form.submit();" hint="COM_GETBIBLE_FILTER_SELECT_CHAPTER"
class="js-select-submit-on-change"
/> />
<field <field
type="chaptersfilterbooknr" type="chaptersfilterbooknr"
name="book_nr" name="book_nr"
label="COM_GETBIBLE_CHAPTER_BOOK_NR_LABEL" label="COM_GETBIBLE_CHAPTER_BOOK_NR_LABEL"
class="multipleChaptersfilterbooknr" layout="joomla.form.field.list-fancy-select"
multiple="true" multiple="true"
onchange="this.form.submit();" hint="COM_GETBIBLE_FILTER_SELECT_BOOK_NUMBER"
class="js-select-submit-on-change"
/> />
<field <field
type="translations" type="translations"
name="abbreviation" name="abbreviation"
label="COM_GETBIBLE_CHAPTER_ABBREVIATION_LABEL" label="COM_GETBIBLE_CHAPTER_ABBREVIATION_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -60,9 +62,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="g.translation asc" default="g.translation asc"
validate="options" validate="options"
> >
@ -86,11 +87,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,39 +17,39 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_LINKERS" description="COM_GETBIBLE_FILTER_PUBLISHED_LINKERS"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="linkersfiltername" type="linkersfiltername"
name="name" name="name"
label="COM_GETBIBLE_LINKER_NAME_LABEL" label="COM_GETBIBLE_LINKER_NAME_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="linkersfilterpublictaggedverses" type="linkersfilterpublictaggedverses"
name="public_tagged_verses" name="public_tagged_verses"
label="COM_GETBIBLE_LINKER_PUBLIC_TAGGED_VERSES_LABEL" label="COM_GETBIBLE_LINKER_PUBLIC_TAGGED_VERSES_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="linkersfilterpublicnotes" type="linkersfilterpublicnotes"
name="public_notes" name="public_notes"
label="COM_GETBIBLE_LINKER_PUBLIC_NOTES_LABEL" label="COM_GETBIBLE_LINKER_PUBLIC_NOTES_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -58,9 +58,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id DESC" default="a.id DESC"
validate="options" validate="options"
> >
@ -82,11 +81,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,7 +17,7 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_NOTES" description="COM_GETBIBLE_FILTER_PUBLISHED_NOTES"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
@ -26,35 +26,35 @@
name="book_nr" name="book_nr"
label="COM_GETBIBLE_NOTE_BOOK_NR_LABEL" label="COM_GETBIBLE_NOTE_BOOK_NR_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="linkers" type="linkers"
name="linker" name="linker"
label="COM_GETBIBLE_NOTE_LINKER_LABEL" label="COM_GETBIBLE_NOTE_LINKER_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="notesfilteraccess" type="notesfilteraccess"
name="access" name="access"
label="COM_GETBIBLE_NOTE_ACCESS_LABEL" label="COM_GETBIBLE_NOTE_ACCESS_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="notesfilterverse" type="notesfilterverse"
name="verse" name="verse"
label="COM_GETBIBLE_NOTE_VERSE_LABEL" label="COM_GETBIBLE_NOTE_VERSE_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="notesfilterchapter" type="notesfilterchapter"
name="chapter" name="chapter"
label="COM_GETBIBLE_NOTE_CHAPTER_LABEL" label="COM_GETBIBLE_NOTE_CHAPTER_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -63,9 +63,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id DESC" default="a.id DESC"
validate="options" validate="options"
> >
@ -87,11 +86,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,46 +17,46 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_OPEN_AI_MESSAGES" description="COM_GETBIBLE_FILTER_PUBLISHED_OPEN_AI_MESSAGES"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="openaimessagesfilterrole" type="openaimessagesfilterrole"
name="role" name="role"
label="COM_GETBIBLE_OPEN_AI_MESSAGE_ROLE_LABEL" label="COM_GETBIBLE_OPEN_AI_MESSAGE_ROLE_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="openairesponses" type="openairesponses"
name="open_ai_response" name="open_ai_response"
label="COM_GETBIBLE_OPEN_AI_MESSAGE_OPEN_AI_RESPONSE_LABEL" label="COM_GETBIBLE_OPEN_AI_MESSAGE_OPEN_AI_RESPONSE_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="prompts" type="prompts"
name="prompt" name="prompt"
label="COM_GETBIBLE_OPEN_AI_MESSAGE_PROMPT_LABEL" label="COM_GETBIBLE_OPEN_AI_MESSAGE_PROMPT_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="openaimessagesfiltersource" type="openaimessagesfiltersource"
name="source" name="source"
label="COM_GETBIBLE_OPEN_AI_MESSAGE_SOURCE_LABEL" label="COM_GETBIBLE_OPEN_AI_MESSAGE_SOURCE_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -65,9 +65,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id desc" default="a.id desc"
validate="options" validate="options"
> >
@ -91,11 +90,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,39 +17,39 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_OPEN_AI_RESPONSES" description="COM_GETBIBLE_FILTER_PUBLISHED_OPEN_AI_RESPONSES"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="openairesponsesfilterresponseid" type="openairesponsesfilterresponseid"
name="response_id" name="response_id"
label="COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_ID_LABEL" label="COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_ID_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="prompts" type="prompts"
name="prompt" name="prompt"
label="COM_GETBIBLE_OPEN_AI_RESPONSE_PROMPT_LABEL" label="COM_GETBIBLE_OPEN_AI_RESPONSE_PROMPT_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="openairesponsesfilterresponsemodel" type="openairesponsesfilterresponsemodel"
name="response_model" name="response_model"
label="COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_MODEL_LABEL" label="COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_MODEL_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -58,9 +58,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id desc" default="a.id desc"
validate="options" validate="options"
> >
@ -86,11 +85,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,32 +17,32 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_PASSWORDS" description="COM_GETBIBLE_FILTER_PUBLISHED_PASSWORDS"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="passwordsfiltername" type="passwordsfiltername"
name="name" name="name"
label="COM_GETBIBLE_PASSWORD_NAME_LABEL" label="COM_GETBIBLE_PASSWORD_NAME_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="linkers" type="linkers"
name="linker" name="linker"
label="COM_GETBIBLE_PASSWORD_LINKER_LABEL" label="COM_GETBIBLE_PASSWORD_LINKER_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -51,9 +51,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id DESC" default="a.id DESC"
validate="options" validate="options"
> >
@ -73,11 +72,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,46 +17,46 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_PROMPTS" description="COM_GETBIBLE_FILTER_PUBLISHED_PROMPTS"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="promptsfiltername" type="promptsfiltername"
name="name" name="name"
label="COM_GETBIBLE_PROMPT_NAME_LABEL" label="COM_GETBIBLE_PROMPT_NAME_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="promptsfiltercachebehaviour" type="promptsfiltercachebehaviour"
name="cache_behaviour" name="cache_behaviour"
label="COM_GETBIBLE_PROMPT_CACHE_BEHAVIOUR_LABEL" label="COM_GETBIBLE_PROMPT_CACHE_BEHAVIOUR_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="targettranslations" type="targettranslations"
name="abbreviation" name="abbreviation"
label="COM_GETBIBLE_PROMPT_ABBREVIATION_LABEL" label="COM_GETBIBLE_PROMPT_ABBREVIATION_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="promptsfiltermodel" type="promptsfiltermodel"
name="model" name="model"
label="COM_GETBIBLE_PROMPT_MODEL_LABEL" label="COM_GETBIBLE_PROMPT_MODEL_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -65,9 +65,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id desc" default="a.id desc"
validate="options" validate="options"
> >
@ -91,11 +90,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,7 +17,7 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_TAGGED_VERSES" description="COM_GETBIBLE_FILTER_PUBLISHED_TAGGED_VERSES"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
@ -25,54 +25,58 @@
type="taggedversesfilterbooknr" type="taggedversesfilterbooknr"
name="book_nr" name="book_nr"
label="COM_GETBIBLE_TAGGED_VERSE_BOOK_NR_LABEL" label="COM_GETBIBLE_TAGGED_VERSE_BOOK_NR_LABEL"
class="multipleTaggedversesfilterbooknr" layout="joomla.form.field.list-fancy-select"
multiple="true" multiple="true"
onchange="this.form.submit();" hint="COM_GETBIBLE_FILTER_SELECT_BOOK_NUMBER"
class="js-select-submit-on-change"
/> />
<field <field
type="translations" type="translations"
name="abbreviation" name="abbreviation"
label="COM_GETBIBLE_TAGGED_VERSE_ABBREVIATION_LABEL" label="COM_GETBIBLE_TAGGED_VERSE_ABBREVIATION_LABEL"
class="multipleTranslations" layout="joomla.form.field.list-fancy-select"
multiple="true" multiple="true"
onchange="this.form.submit();" hint="COM_GETBIBLE_FILTER_SELECT_TRANSLATION"
class="js-select-submit-on-change"
/> />
<field <field
type="taggedversesfilteraccess" type="taggedversesfilteraccess"
name="access" name="access"
label="COM_GETBIBLE_TAGGED_VERSE_ACCESS_LABEL" label="COM_GETBIBLE_TAGGED_VERSE_ACCESS_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="linkers" type="linkers"
name="linker" name="linker"
label="COM_GETBIBLE_TAGGED_VERSE_LINKER_LABEL" label="COM_GETBIBLE_TAGGED_VERSE_LINKER_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="tagers" type="tagers"
name="tag" name="tag"
label="COM_GETBIBLE_TAGGED_VERSE_TAG_LABEL" label="COM_GETBIBLE_TAGGED_VERSE_TAG_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="taggedversesfilterverse" type="taggedversesfilterverse"
name="verse" name="verse"
label="COM_GETBIBLE_TAGGED_VERSE_VERSE_LABEL" label="COM_GETBIBLE_TAGGED_VERSE_VERSE_LABEL"
class="multipleTaggedversesfilterverse" layout="joomla.form.field.list-fancy-select"
multiple="true" multiple="true"
onchange="this.form.submit();" hint="COM_GETBIBLE_FILTER_SELECT_VERSE"
class="js-select-submit-on-change"
/> />
<field <field
type="taggedversesfilterchapter" type="taggedversesfilterchapter"
name="chapter" name="chapter"
label="COM_GETBIBLE_TAGGED_VERSE_CHAPTER_LABEL" label="COM_GETBIBLE_TAGGED_VERSE_CHAPTER_LABEL"
class="multipleTaggedversesfilterchapter" layout="joomla.form.field.list-fancy-select"
multiple="true" multiple="true"
onchange="this.form.submit();" hint="COM_GETBIBLE_FILTER_SELECT_CHAPTER"
class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -81,9 +85,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id DESC" default="a.id DESC"
validate="options" validate="options"
> >
@ -109,11 +112,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,7 +17,7 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_TAGS" description="COM_GETBIBLE_FILTER_PUBLISHED_TAGS"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
@ -26,14 +26,14 @@
name="linker" name="linker"
label="COM_GETBIBLE_TAG_LINKER_LABEL" label="COM_GETBIBLE_TAG_LINKER_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="tagsfilteraccess" type="tagsfilteraccess"
name="access" name="access"
label="COM_GETBIBLE_TAG_ACCESS_LABEL" label="COM_GETBIBLE_TAG_ACCESS_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -42,9 +42,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.id DESC" default="a.id DESC"
validate="options" validate="options"
> >
@ -66,11 +65,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,25 +17,25 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_TRANSLATIONS" description="COM_GETBIBLE_FILTER_PUBLISHED_TRANSLATIONS"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="translationsfilterdirection" type="translationsfilterdirection"
name="direction" name="direction"
label="COM_GETBIBLE_TRANSLATION_DIRECTION_LABEL" label="COM_GETBIBLE_TRANSLATION_DIRECTION_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -44,9 +44,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="a.language asc" default="a.language asc"
validate="options" validate="options"
> >
@ -70,11 +69,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<fields name="filter"> <fields name="filter">
<field <field
@ -17,46 +17,46 @@
name="published" name="published"
label="COM_GETBIBLE_FILTER_PUBLISHED" label="COM_GETBIBLE_FILTER_PUBLISHED"
description="COM_GETBIBLE_FILTER_PUBLISHED_VERSES" description="COM_GETBIBLE_FILTER_PUBLISHED_VERSES"
onchange="this.form.submit();" class="js-select-submit-on-change"
> >
<option value="">JOPTION_SELECT_PUBLISHED</option> <option value="">JOPTION_SELECT_PUBLISHED</option>
</field> </field>
<field <field
type="accesslevel" type="accesslevel"
name="access" name="access"
label="JFIELD_ACCESS_LABEL" label="JGRID_HEADING_ACCESS"
description="JFIELD_ACCESS_DESC" hint="JOPTION_SELECT_ACCESS"
multiple="true" multiple="true"
class="multipleAccessLevels" class="js-select-submit-on-change"
onchange="this.form.submit();" layout="joomla.form.field.list-fancy-select"
/> />
<field <field
type="versesfilterbooknr" type="versesfilterbooknr"
name="book_nr" name="book_nr"
label="COM_GETBIBLE_VERSE_BOOK_NR_LABEL" label="COM_GETBIBLE_VERSE_BOOK_NR_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="versesfilterchapter" type="versesfilterchapter"
name="chapter" name="chapter"
label="COM_GETBIBLE_VERSE_CHAPTER_LABEL" label="COM_GETBIBLE_VERSE_CHAPTER_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="versesfilterverse" type="versesfilterverse"
name="verse" name="verse"
label="COM_GETBIBLE_VERSE_VERSE_LABEL" label="COM_GETBIBLE_VERSE_VERSE_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<field <field
type="translations" type="translations"
name="abbreviation" name="abbreviation"
label="COM_GETBIBLE_VERSE_ABBREVIATION_LABEL" label="COM_GETBIBLE_VERSE_ABBREVIATION_LABEL"
multiple="false" multiple="false"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
<input type="hidden" name="form_submited" value="1"/> <input type="hidden" name="form_submited" value="1"/>
</fields> </fields>
@ -65,9 +65,8 @@
<field <field
name="fullordering" name="fullordering"
type="list" type="list"
label="COM_CONTENT_LIST_FULL_ORDERING" label="JGLOBAL_SORT_BY"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC" class="js-select-submit-on-change"
onchange="this.form.submit();"
default="g.translation asc" default="g.translation asc"
validate="options" validate="options"
> >
@ -91,11 +90,9 @@
<field <field
name="limit" name="limit"
type="limitbox" type="limitbox"
label="COM_CONTENT_LIST_LIMIT" label="JGLOBAL_LIST_LIMIT"
description="COM_CONTENT_LIST_LIMIT_DESC"
class="input-mini"
default="25" default="25"
onchange="this.form.submit();" class="js-select-submit-on-change"
/> />
</fields> </fields>
</form> </form>

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<form <form
addrulepath="/administrator/components/com_getbible/models/rules" addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
addfieldpath="/administrator/components/com_getbible/models/fields" addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
> >
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details"> <fieldset name="details">
<!-- Default Fields. --> <!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) --> <!-- Id Field. Type: Text (joomla) -->

View File

@ -1,55 +0,0 @@
<?php
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
@package getBible.net
@created 3rd December, 2015
@author Llewellyn van der Merwe <https://getbible.net>
@git Get Bible <https://git.vdm.dev/getBible>
@github Get Bible <https://github.com/getBible>
@support Get Bible <https://git.vdm.dev/getBible/support>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// The power autoloader for this project (JPATH_ADMINISTRATOR) area.
$power_autoloader = JPATH_ADMINISTRATOR . '/components/com_getbible/helpers/powerloader.php';
if (file_exists($power_autoloader))
{
require_once $power_autoloader;
}
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\MVC\Controller\BaseController;
// Access check.
if (!Factory::getUser()->authorise('core.manage', 'com_getbible'))
{
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
// Add CSS file for all pages
Html::_('stylesheet', 'components/com_getbible/assets/css/admin.css', ['version' => 'auto']);
Html::_('script', 'components/com_getbible/assets/js/admin.js', ['version' => 'auto']);
// require helper files
JLoader::register('GetbibleHelper', __DIR__ . '/helpers/getbible.php');
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');
// Get an instance of the controller prefixed by Getbible
$controller = BaseController::getInstance('Getbible');
// Perform the Request task
$controller->execute(Factory::getApplication()->input->get('task'));
// Redirect if set by the controller
$controller->redirect();

View File

@ -1,95 +0,0 @@
<?php
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
@package getBible.net
@created 3rd December, 2015
@author Llewellyn van der Merwe <https://getbible.net>
@git Get Bible <https://git.vdm.dev/getBible>
@github Get Bible <https://github.com/getBible>
@support Get Bible <https://git.vdm.dev/getBible/support>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory;
class getbibleHeaderCheck
{
protected $document = null;
protected $app = null;
function js_loaded($script_name)
{
// UIkit check point
if (strpos($script_name,'uikit') !== false)
{
if (!$this->app)
{
$this->app = Factory::getApplication();
}
$getTemplateName = $this->app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false)
{
return true;
}
}
if (!$this->document)
{
$this->document = Factory::getDocument();
}
$head_data = $this->document->getHeadData();
foreach (array_keys($head_data['scripts']) as $script)
{
if (stristr($script, $script_name))
{
return true;
}
}
return false;
}
function css_loaded($script_name)
{
// UIkit check point
if (strpos($script_name,'uikit') !== false)
{
if (!$this->app)
{
$this->app = Factory::getApplication();
}
$getTemplateName = $this->app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false)
{
return true;
}
}
if (!$this->document)
{
$this->document = Factory::getDocument();
}
$head_data = $this->document->getHeadData();
foreach (array_keys($head_data['styleSheets']) as $script)
{
if (stristr($script, $script_name))
{
return true;
}
}
return false;
}
}

View File

@ -1,84 +0,0 @@
<?php
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
@package getBible.net
@created 3rd December, 2015
@author Llewellyn van der Merwe <https://getbible.net>
@git Get Bible <https://git.vdm.dev/getBible>
@github Get Bible <https://github.com/getBible>
@support Get Bible <https://git.vdm.dev/getBible/support>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_PLATFORM') or die;
/**
* Utility class to render a list view batch selection options
*
* @since 3.0
*/
abstract class JHtmlBatch_
{
/**
* ListSelection
*
* @var array
* @since 3.0
*/
protected static $ListSelection = [];
/**
* Render the batch selection options.
*
* @return string The necessary HTML to display the batch selection options
*
* @since 3.0
*/
public static function render()
{
// Collect display data
$data = new stdClass;
$data->ListSelection = static::getListSelection();
// Create a layout object and ask it to render the batch selection options
$layout = new JLayoutFile('batchselection');
$batchHtml = $layout->render($data);
return $batchHtml;
}
/**
* Method to add a list selection to the batch modal
*
* @param string $label Label for the menu item.
* @param string $name Name for the filter. Also used as id.
* @param string $options Options for the select field.
* @param bool $noDefault Don't the label as the empty option
*
* @return void
*
* @since 3.0
*/
public static function addListSelection($label, $name, $options, $noDefault = false)
{
array_push(static::$ListSelection, array('label' => $label, 'name' => $name, 'options' => $options, 'noDefault' => $noDefault));
}
/**
* Returns an array of all ListSelection
*
* @return array
*
* @since 3.0
*/
public static function getListSelection()
{
return static::$ListSelection;
}
}

View File

@ -40,6 +40,9 @@ COM_GETBIBLE_BOOKS_EDIT_SHA="Books Edit Sha"
COM_GETBIBLE_BOOKS_EDIT_SHA_DESC="Allows the users in this group to edit sha of book" COM_GETBIBLE_BOOKS_EDIT_SHA_DESC="Allows the users in this group to edit sha of book"
COM_GETBIBLE_BOOKS_EDIT_STATE="Books Edit State" COM_GETBIBLE_BOOKS_EDIT_STATE="Books Edit State"
COM_GETBIBLE_BOOKS_EDIT_STATE_DESC="Allows the users in this group to update the state of the book" COM_GETBIBLE_BOOKS_EDIT_STATE_DESC="Allows the users in this group to update the state of the book"
COM_GETBIBLE_BOOKS_EMPTYSTATE_BUTTON_ADD="Add your first book"
COM_GETBIBLE_BOOKS_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_BOOKS_EMPTYSTATE_TITLE="No books have been created yet."
COM_GETBIBLE_BOOKS_N_ITEMS_ARCHIVED="%s Books archived." COM_GETBIBLE_BOOKS_N_ITEMS_ARCHIVED="%s Books archived."
COM_GETBIBLE_BOOKS_N_ITEMS_ARCHIVED_1="%s Book archived." COM_GETBIBLE_BOOKS_N_ITEMS_ARCHIVED_1="%s Book archived."
COM_GETBIBLE_BOOKS_N_ITEMS_CHECKED_IN_0="No Book successfully checked in." COM_GETBIBLE_BOOKS_N_ITEMS_CHECKED_IN_0="No Book successfully checked in."
@ -130,6 +133,9 @@ COM_GETBIBLE_CHAPTERS_EDIT_SHA="Chapters Edit Sha"
COM_GETBIBLE_CHAPTERS_EDIT_SHA_DESC="Allows the users in this group to edit sha of chapter" COM_GETBIBLE_CHAPTERS_EDIT_SHA_DESC="Allows the users in this group to edit sha of chapter"
COM_GETBIBLE_CHAPTERS_EDIT_STATE="Chapters Edit State" COM_GETBIBLE_CHAPTERS_EDIT_STATE="Chapters Edit State"
COM_GETBIBLE_CHAPTERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the chapter" COM_GETBIBLE_CHAPTERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the chapter"
COM_GETBIBLE_CHAPTERS_EMPTYSTATE_BUTTON_ADD="Add your first chapter"
COM_GETBIBLE_CHAPTERS_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_CHAPTERS_EMPTYSTATE_TITLE="No chapters have been created yet."
COM_GETBIBLE_CHAPTERS_N_ITEMS_ARCHIVED="%s Chapters archived." COM_GETBIBLE_CHAPTERS_N_ITEMS_ARCHIVED="%s Chapters archived."
COM_GETBIBLE_CHAPTERS_N_ITEMS_ARCHIVED_1="%s Chapter archived." COM_GETBIBLE_CHAPTERS_N_ITEMS_ARCHIVED_1="%s Chapter archived."
COM_GETBIBLE_CHAPTERS_N_ITEMS_CHECKED_IN_0="No Chapter successfully checked in." COM_GETBIBLE_CHAPTERS_N_ITEMS_CHECKED_IN_0="No Chapter successfully checked in."
@ -657,6 +663,9 @@ COM_GETBIBLE_LINKERS_EDIT_PUBLIC_TAGGED_VERSES="Linkers Edit Public Tagged Verse
COM_GETBIBLE_LINKERS_EDIT_PUBLIC_TAGGED_VERSES_DESC="Allows the users in this group to edit public tagged verses of linker" COM_GETBIBLE_LINKERS_EDIT_PUBLIC_TAGGED_VERSES_DESC="Allows the users in this group to edit public tagged verses of linker"
COM_GETBIBLE_LINKERS_EDIT_STATE="Linkers Edit State" COM_GETBIBLE_LINKERS_EDIT_STATE="Linkers Edit State"
COM_GETBIBLE_LINKERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the linker" COM_GETBIBLE_LINKERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the linker"
COM_GETBIBLE_LINKERS_EMPTYSTATE_BUTTON_ADD="Add your first linker"
COM_GETBIBLE_LINKERS_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_LINKERS_EMPTYSTATE_TITLE="No linkers have been created yet."
COM_GETBIBLE_LINKERS_N_ITEMS_ARCHIVED="%s Linkers archived." COM_GETBIBLE_LINKERS_N_ITEMS_ARCHIVED="%s Linkers archived."
COM_GETBIBLE_LINKERS_N_ITEMS_ARCHIVED_1="%s Linker archived." COM_GETBIBLE_LINKERS_N_ITEMS_ARCHIVED_1="%s Linker archived."
COM_GETBIBLE_LINKERS_N_ITEMS_CHECKED_IN_0="No Linker successfully checked in." COM_GETBIBLE_LINKERS_N_ITEMS_CHECKED_IN_0="No Linker successfully checked in."
@ -755,6 +764,9 @@ COM_GETBIBLE_NOTES_EDIT_VERSE="Notes Edit Verse"
COM_GETBIBLE_NOTES_EDIT_VERSE_DESC="Allows the users in this group to edit verse of note" COM_GETBIBLE_NOTES_EDIT_VERSE_DESC="Allows the users in this group to edit verse of note"
COM_GETBIBLE_NOTES_EDIT_VERSION="Notes Edit Version" COM_GETBIBLE_NOTES_EDIT_VERSION="Notes Edit Version"
COM_GETBIBLE_NOTES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version notes" COM_GETBIBLE_NOTES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version notes"
COM_GETBIBLE_NOTES_EMPTYSTATE_BUTTON_ADD="Add your first note"
COM_GETBIBLE_NOTES_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_NOTES_EMPTYSTATE_TITLE="No notes have been created yet."
COM_GETBIBLE_NOTES_N_ITEMS_ARCHIVED="%s Notes archived." COM_GETBIBLE_NOTES_N_ITEMS_ARCHIVED="%s Notes archived."
COM_GETBIBLE_NOTES_N_ITEMS_ARCHIVED_1="%s Note archived." COM_GETBIBLE_NOTES_N_ITEMS_ARCHIVED_1="%s Note archived."
COM_GETBIBLE_NOTES_N_ITEMS_CHECKED_IN_0="No Note successfully checked in." COM_GETBIBLE_NOTES_N_ITEMS_CHECKED_IN_0="No Note successfully checked in."
@ -859,6 +871,9 @@ COM_GETBIBLE_OPEN_AI_MESSAGES_EDIT_STATE="Open Ai Messages Edit State"
COM_GETBIBLE_OPEN_AI_MESSAGES_EDIT_STATE_DESC="Allows the users in this group to update the state of the open ai message" COM_GETBIBLE_OPEN_AI_MESSAGES_EDIT_STATE_DESC="Allows the users in this group to update the state of the open ai message"
COM_GETBIBLE_OPEN_AI_MESSAGES_EDIT_VERSION="Open Ai Messages Edit Version" COM_GETBIBLE_OPEN_AI_MESSAGES_EDIT_VERSION="Open Ai Messages Edit Version"
COM_GETBIBLE_OPEN_AI_MESSAGES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version open ai messages" COM_GETBIBLE_OPEN_AI_MESSAGES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version open ai messages"
COM_GETBIBLE_OPEN_AI_MESSAGES_EMPTYSTATE_BUTTON_ADD="Add your first open ai message"
COM_GETBIBLE_OPEN_AI_MESSAGES_EMPTYSTATE_CONTENT="Open AI Messages Received"
COM_GETBIBLE_OPEN_AI_MESSAGES_EMPTYSTATE_TITLE="No open ai messages have been created yet."
COM_GETBIBLE_OPEN_AI_MESSAGES_N_ITEMS_ARCHIVED="%s Open AI Messages archived." COM_GETBIBLE_OPEN_AI_MESSAGES_N_ITEMS_ARCHIVED="%s Open AI Messages archived."
COM_GETBIBLE_OPEN_AI_MESSAGES_N_ITEMS_ARCHIVED_1="%s Open AI Message archived." COM_GETBIBLE_OPEN_AI_MESSAGES_N_ITEMS_ARCHIVED_1="%s Open AI Message archived."
COM_GETBIBLE_OPEN_AI_MESSAGES_N_ITEMS_CHECKED_IN_0="No Open AI Message successfully checked in." COM_GETBIBLE_OPEN_AI_MESSAGES_N_ITEMS_CHECKED_IN_0="No Open AI Message successfully checked in."
@ -990,6 +1005,9 @@ COM_GETBIBLE_OPEN_AI_RESPONSES_EDIT_VERSION="Open Ai Responses Edit Version"
COM_GETBIBLE_OPEN_AI_RESPONSES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version open ai responses" COM_GETBIBLE_OPEN_AI_RESPONSES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version open ai responses"
COM_GETBIBLE_OPEN_AI_RESPONSES_EDIT_WORD="Open Ai Responses Edit Word" COM_GETBIBLE_OPEN_AI_RESPONSES_EDIT_WORD="Open Ai Responses Edit Word"
COM_GETBIBLE_OPEN_AI_RESPONSES_EDIT_WORD_DESC="Allows the users in this group to edit word of open ai response" COM_GETBIBLE_OPEN_AI_RESPONSES_EDIT_WORD_DESC="Allows the users in this group to edit word of open ai response"
COM_GETBIBLE_OPEN_AI_RESPONSES_EMPTYSTATE_BUTTON_ADD="Add your first open ai response"
COM_GETBIBLE_OPEN_AI_RESPONSES_EMPTYSTATE_CONTENT="Open AI Response Received"
COM_GETBIBLE_OPEN_AI_RESPONSES_EMPTYSTATE_TITLE="No open ai responses have been created yet."
COM_GETBIBLE_OPEN_AI_RESPONSES_N_ITEMS_ARCHIVED="%s Open AI Responses archived." COM_GETBIBLE_OPEN_AI_RESPONSES_N_ITEMS_ARCHIVED="%s Open AI Responses archived."
COM_GETBIBLE_OPEN_AI_RESPONSES_N_ITEMS_ARCHIVED_1="%s Open AI Response archived." COM_GETBIBLE_OPEN_AI_RESPONSES_N_ITEMS_ARCHIVED_1="%s Open AI Response archived."
COM_GETBIBLE_OPEN_AI_RESPONSES_N_ITEMS_CHECKED_IN_0="No Open AI Response successfully checked in." COM_GETBIBLE_OPEN_AI_RESPONSES_N_ITEMS_CHECKED_IN_0="No Open AI Response successfully checked in."
@ -1134,6 +1152,9 @@ COM_GETBIBLE_PASSWORDS_EDIT_PASSWORD="Passwords Edit Password"
COM_GETBIBLE_PASSWORDS_EDIT_PASSWORD_DESC="Allows the users in this group to edit password of password" COM_GETBIBLE_PASSWORDS_EDIT_PASSWORD_DESC="Allows the users in this group to edit password of password"
COM_GETBIBLE_PASSWORDS_EDIT_STATE="Passwords Edit State" COM_GETBIBLE_PASSWORDS_EDIT_STATE="Passwords Edit State"
COM_GETBIBLE_PASSWORDS_EDIT_STATE_DESC="Allows the users in this group to update the state of the password" COM_GETBIBLE_PASSWORDS_EDIT_STATE_DESC="Allows the users in this group to update the state of the password"
COM_GETBIBLE_PASSWORDS_EMPTYSTATE_BUTTON_ADD="Add your first password"
COM_GETBIBLE_PASSWORDS_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_PASSWORDS_EMPTYSTATE_TITLE="No passwords have been created yet."
COM_GETBIBLE_PASSWORDS_N_ITEMS_ARCHIVED="%s Passwords archived." COM_GETBIBLE_PASSWORDS_N_ITEMS_ARCHIVED="%s Passwords archived."
COM_GETBIBLE_PASSWORDS_N_ITEMS_ARCHIVED_1="%s Password archived." COM_GETBIBLE_PASSWORDS_N_ITEMS_ARCHIVED_1="%s Password archived."
COM_GETBIBLE_PASSWORDS_N_ITEMS_CHECKED_IN_0="No Password successfully checked in." COM_GETBIBLE_PASSWORDS_N_ITEMS_CHECKED_IN_0="No Password successfully checked in."
@ -1264,6 +1285,9 @@ COM_GETBIBLE_PROMPTS_EDIT_TOP_P_OVERRIDE="Prompts Edit Top P Override"
COM_GETBIBLE_PROMPTS_EDIT_TOP_P_OVERRIDE_DESC="Allows the users in this group to edit top p override of prompt" COM_GETBIBLE_PROMPTS_EDIT_TOP_P_OVERRIDE_DESC="Allows the users in this group to edit top p override of prompt"
COM_GETBIBLE_PROMPTS_EDIT_VERSION="Prompts Edit Version" COM_GETBIBLE_PROMPTS_EDIT_VERSION="Prompts Edit Version"
COM_GETBIBLE_PROMPTS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version prompts" COM_GETBIBLE_PROMPTS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version prompts"
COM_GETBIBLE_PROMPTS_EMPTYSTATE_BUTTON_ADD="Add your first prompt"
COM_GETBIBLE_PROMPTS_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_PROMPTS_EMPTYSTATE_TITLE="No prompts have been created yet."
COM_GETBIBLE_PROMPTS_N_ITEMS_ARCHIVED="%s Prompts archived." COM_GETBIBLE_PROMPTS_N_ITEMS_ARCHIVED="%s Prompts archived."
COM_GETBIBLE_PROMPTS_N_ITEMS_ARCHIVED_1="%s Prompt archived." COM_GETBIBLE_PROMPTS_N_ITEMS_ARCHIVED_1="%s Prompt archived."
COM_GETBIBLE_PROMPTS_N_ITEMS_CHECKED_IN_0="No Prompt successfully checked in." COM_GETBIBLE_PROMPTS_N_ITEMS_CHECKED_IN_0="No Prompt successfully checked in."
@ -1482,6 +1506,9 @@ COM_GETBIBLE_TAGGED_VERSES_EDIT_VERSE="Tagged Verses Edit Verse"
COM_GETBIBLE_TAGGED_VERSES_EDIT_VERSE_DESC="Allows the users in this group to edit verse of tagged verse" COM_GETBIBLE_TAGGED_VERSES_EDIT_VERSE_DESC="Allows the users in this group to edit verse of tagged verse"
COM_GETBIBLE_TAGGED_VERSES_EDIT_VERSION="Tagged Verses Edit Version" COM_GETBIBLE_TAGGED_VERSES_EDIT_VERSION="Tagged Verses Edit Version"
COM_GETBIBLE_TAGGED_VERSES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version tagged verses" COM_GETBIBLE_TAGGED_VERSES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version tagged verses"
COM_GETBIBLE_TAGGED_VERSES_EMPTYSTATE_BUTTON_ADD="Add your first tagged verse"
COM_GETBIBLE_TAGGED_VERSES_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_TAGGED_VERSES_EMPTYSTATE_TITLE="No tagged verses have been created yet."
COM_GETBIBLE_TAGGED_VERSES_N_ITEMS_ARCHIVED="%s Tagged Verses archived." COM_GETBIBLE_TAGGED_VERSES_N_ITEMS_ARCHIVED="%s Tagged Verses archived."
COM_GETBIBLE_TAGGED_VERSES_N_ITEMS_ARCHIVED_1="%s Tagged Verse archived." COM_GETBIBLE_TAGGED_VERSES_N_ITEMS_ARCHIVED_1="%s Tagged Verse archived."
COM_GETBIBLE_TAGGED_VERSES_N_ITEMS_CHECKED_IN_0="No Tagged Verse successfully checked in." COM_GETBIBLE_TAGGED_VERSES_N_ITEMS_CHECKED_IN_0="No Tagged Verse successfully checked in."
@ -1578,6 +1605,9 @@ COM_GETBIBLE_TAGS_EDIT_STATE="Tags Edit State"
COM_GETBIBLE_TAGS_EDIT_STATE_DESC="Allows the users in this group to update the state of the tag" COM_GETBIBLE_TAGS_EDIT_STATE_DESC="Allows the users in this group to update the state of the tag"
COM_GETBIBLE_TAGS_EDIT_VERSION="Tags Edit Version" COM_GETBIBLE_TAGS_EDIT_VERSION="Tags Edit Version"
COM_GETBIBLE_TAGS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version tags" COM_GETBIBLE_TAGS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version tags"
COM_GETBIBLE_TAGS_EMPTYSTATE_BUTTON_ADD="Add your first tag"
COM_GETBIBLE_TAGS_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_TAGS_EMPTYSTATE_TITLE="No tags have been created yet."
COM_GETBIBLE_TAGS_N_ITEMS_ARCHIVED="%s Tags archived." COM_GETBIBLE_TAGS_N_ITEMS_ARCHIVED="%s Tags archived."
COM_GETBIBLE_TAGS_N_ITEMS_ARCHIVED_1="%s Tag archived." COM_GETBIBLE_TAGS_N_ITEMS_ARCHIVED_1="%s Tag archived."
COM_GETBIBLE_TAGS_N_ITEMS_CHECKED_IN_0="No Tag successfully checked in." COM_GETBIBLE_TAGS_N_ITEMS_CHECKED_IN_0="No Tag successfully checked in."
@ -1719,6 +1749,9 @@ COM_GETBIBLE_TRANSLATIONS_EDIT_STATE="Translations Edit State"
COM_GETBIBLE_TRANSLATIONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the translation" COM_GETBIBLE_TRANSLATIONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the translation"
COM_GETBIBLE_TRANSLATIONS_EDIT_TRANSLATION="Translations Edit Translation" COM_GETBIBLE_TRANSLATIONS_EDIT_TRANSLATION="Translations Edit Translation"
COM_GETBIBLE_TRANSLATIONS_EDIT_TRANSLATION_DESC="Allows the users in this group to edit translation of translation" COM_GETBIBLE_TRANSLATIONS_EDIT_TRANSLATION_DESC="Allows the users in this group to edit translation of translation"
COM_GETBIBLE_TRANSLATIONS_EMPTYSTATE_BUTTON_ADD="Add your first translation"
COM_GETBIBLE_TRANSLATIONS_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_TRANSLATIONS_EMPTYSTATE_TITLE="No translations have been created yet."
COM_GETBIBLE_TRANSLATIONS_N_ITEMS_ARCHIVED="%s Translations archived." COM_GETBIBLE_TRANSLATIONS_N_ITEMS_ARCHIVED="%s Translations archived."
COM_GETBIBLE_TRANSLATIONS_N_ITEMS_ARCHIVED_1="%s Translation archived." COM_GETBIBLE_TRANSLATIONS_N_ITEMS_ARCHIVED_1="%s Translation archived."
COM_GETBIBLE_TRANSLATIONS_N_ITEMS_CHECKED_IN_0="No Translation successfully checked in." COM_GETBIBLE_TRANSLATIONS_N_ITEMS_CHECKED_IN_0="No Translation successfully checked in."
@ -1887,6 +1920,9 @@ COM_GETBIBLE_VERSES_EDIT_TEXT="Verses Edit Text"
COM_GETBIBLE_VERSES_EDIT_TEXT_DESC="Allows the users in this group to edit text of verse" COM_GETBIBLE_VERSES_EDIT_TEXT_DESC="Allows the users in this group to edit text of verse"
COM_GETBIBLE_VERSES_EDIT_VERSE="Verses Edit Verse" COM_GETBIBLE_VERSES_EDIT_VERSE="Verses Edit Verse"
COM_GETBIBLE_VERSES_EDIT_VERSE_DESC="Allows the users in this group to edit verse of verse" COM_GETBIBLE_VERSES_EDIT_VERSE_DESC="Allows the users in this group to edit verse of verse"
COM_GETBIBLE_VERSES_EMPTYSTATE_BUTTON_ADD="Add your first verse"
COM_GETBIBLE_VERSES_EMPTYSTATE_CONTENT=""
COM_GETBIBLE_VERSES_EMPTYSTATE_TITLE="No verses have been created yet."
COM_GETBIBLE_VERSES_N_ITEMS_ARCHIVED="%s Verses archived." COM_GETBIBLE_VERSES_N_ITEMS_ARCHIVED="%s Verses archived."
COM_GETBIBLE_VERSES_N_ITEMS_ARCHIVED_1="%s Verse archived." COM_GETBIBLE_VERSES_N_ITEMS_ARCHIVED_1="%s Verse archived."
COM_GETBIBLE_VERSES_N_ITEMS_CHECKED_IN_0="No Verse successfully checked in." COM_GETBIBLE_VERSES_N_ITEMS_CHECKED_IN_0="No Verse successfully checked in."

View File

@ -108,6 +108,7 @@ COM_GETBIBLE_MENU_APP_OPTION="App"
COM_GETBIBLE_MENU_APP_TITLE="App" COM_GETBIBLE_MENU_APP_TITLE="App"
COM_GETBIBLE_MENU_BOOKS="Books" COM_GETBIBLE_MENU_BOOKS="Books"
COM_GETBIBLE_MENU_CHAPTERS="Chapters" COM_GETBIBLE_MENU_CHAPTERS="Chapters"
COM_GETBIBLE_MENU_DASHBOARD="Dashboard"
COM_GETBIBLE_MENU_LINKERS="Linkers" COM_GETBIBLE_MENU_LINKERS="Linkers"
COM_GETBIBLE_MENU_NOTES="Notes" COM_GETBIBLE_MENU_NOTES="Notes"
COM_GETBIBLE_MENU_OPEN_AI_RESPONSES="Open AI Responses" COM_GETBIBLE_MENU_OPEN_AI_RESPONSES="Open AI Responses"

View File

@ -1,55 +0,0 @@
<?php
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
@package getBible.net
@created 3rd December, 2015
@author Llewellyn van der Merwe <https://getbible.net>
@git Get Bible <https://git.vdm.dev/getBible>
@github Get Bible <https://github.com/getBible>
@support Get Bible <https://git.vdm.dev/getBible/support>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die;
use Joomla\CMS\Language\Text;
JHtmlBehavior::core();
$divWrapper = range(1,120,2);
$counter = 0;
?>
<?php if ($displayData->ListSelection) : ?>
<div class="row-fluid">
<?php foreach ($displayData->ListSelection as $ListSelection) : ?>
<div class="control-group span6">
<div class="controls">
<label for="<?php echo $ListSelection['name']; ?>" class="element-invisible"><?php echo $ListSelection['label']; ?></label>
<select name="<?php echo $ListSelection['name']; ?>" id="<?php echo $ListSelection['name']; ?>" class="span12 small">
<?php if (!$ListSelection['noDefault']) : ?>
<option value=""><?php echo $ListSelection['label']; ?></option>
<?php endif; ?>
<?php echo $ListSelection['options']; ?>
</select>
</div>
</div>
<?php if (in_array($counter,$divWrapper)) : ?>
</div>
<div class="row-fluid">
<?php endif; ?>
<?php $counter++; ?>
<?php endforeach; ?>
</div>
<div class="control-group radio" id="batch-move-copy">
<div class="controls">
<label class="radio" id="batch[move_copy]c-lbl" for="batch[move_copy]c">
<input type="radio" value="c" id="batch[move_copy]c" name="batch[move_copy]"><?php echo Text::_('Copy'); ?></label>
<label class="radio" id="batch[move_copy]m-lbl" for="batch[move_copy]m">
<input type="radio" checked="checked" value="m" id="batch[move_copy]m" name="batch[move_copy]"><?php echo Text::_('Update'); ?></label>
</div>
</div>
<?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'name', 'name',
'nr' 'nr'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,22 +31,30 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'name', 'name',
'chapter', 'chapter',
'book_nr' 'book_nr'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,20 +31,28 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'name' 'name'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -15,18 +15,19 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory; use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
use TrueChristianBible\Joomla\Utilities\StringHelper; use TrueChristianBible\Joomla\Utilities\StringHelper;
use TrueChristianBible\Joomla\Utilities\ArrayHelper; use TrueChristianBible\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults // set the defaults
$items = $displayData->vvwnotes; $items = $displayData->vvwnotes;
$user = Factory::getUser(); $user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_getbible&view=notes&task=note.edit"; $edit = "index.php?option=com_getbible&view=notes&task=note.edit";
@ -88,7 +89,9 @@ $can = GetbibleHelper::getActions('note');
<?php foreach ($items as $i => $item): ?> <?php foreach ($items as $i => $item): ?>
<?php <?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = Factory::getUser($item->checked_out); $userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
$canDo = GetbibleHelper::getActions('note',$item,'notes'); $canDo = GetbibleHelper::getActions('note',$item,'notes');
?> ?>
<tr> <tr>

View File

@ -15,18 +15,19 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory; use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
use TrueChristianBible\Joomla\Utilities\StringHelper; use TrueChristianBible\Joomla\Utilities\StringHelper;
use TrueChristianBible\Joomla\Utilities\ArrayHelper; use TrueChristianBible\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults // set the defaults
$items = $displayData->vvxpasswords; $items = $displayData->vvxpasswords;
$user = Factory::getUser(); $user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_getbible&view=passwords&task=password.edit"; $edit = "index.php?option=com_getbible&view=passwords&task=password.edit";
@ -88,7 +89,9 @@ $can = GetbibleHelper::getActions('password');
<?php foreach ($items as $i => $item): ?> <?php foreach ($items as $i => $item): ?>
<?php <?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = Factory::getUser($item->checked_out); $userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
$canDo = GetbibleHelper::getActions('password',$item,'passwords'); $canDo = GetbibleHelper::getActions('password',$item,'passwords');
?> ?>
<tr> <tr>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -15,18 +15,19 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory; use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
use TrueChristianBible\Joomla\Utilities\StringHelper; use TrueChristianBible\Joomla\Utilities\StringHelper;
use TrueChristianBible\Joomla\Utilities\ArrayHelper; use TrueChristianBible\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults // set the defaults
$items = $displayData->vvvtags; $items = $displayData->vvvtags;
$user = Factory::getUser(); $user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_getbible&view=tagged_verses&task=tagged_verse.edit"; $edit = "index.php?option=com_getbible&view=tagged_verses&task=tagged_verse.edit";
@ -94,7 +95,9 @@ $can = GetbibleHelper::getActions('tagged_verse');
<?php foreach ($items as $i => $item): ?> <?php foreach ($items as $i => $item): ?>
<?php <?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = Factory::getUser($item->checked_out); $userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
$canDo = GetbibleHelper::getActions('tagged_verse',$item,'tagged_verses'); $canDo = GetbibleHelper::getActions('tagged_verse',$item,'tagged_verses');
?> ?>
<tr> <tr>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'access', 'access',
'linker' 'linker'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,22 +31,30 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'role', 'role',
'open_ai_response', 'open_ai_response',
'prompt' 'prompt'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'response_id', 'response_id',
'prompt' 'prompt'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -15,18 +15,19 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory; use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
use TrueChristianBible\Joomla\Utilities\StringHelper; use TrueChristianBible\Joomla\Utilities\StringHelper;
use TrueChristianBible\Joomla\Utilities\ArrayHelper; use TrueChristianBible\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die;
// set the defaults // set the defaults
$items = $displayData->vvymessage; $items = $displayData->vvymessage;
$user = Factory::getUser(); $user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL
$edit = "index.php?option=com_getbible&view=open_ai_messages&task=open_ai_message.edit"; $edit = "index.php?option=com_getbible&view=open_ai_messages&task=open_ai_message.edit";
@ -79,7 +80,9 @@ else
<?php foreach ($items as $i => $item): ?> <?php foreach ($items as $i => $item): ?>
<?php <?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = Factory::getUser($item->checked_out); $userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
$canDo = GetbibleHelper::getActions('open_ai_message',$item,'open_ai_messages'); $canDo = GetbibleHelper::getActions('open_ai_message',$item,'open_ai_messages');
?> ?>
<tr> <tr>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,20 +31,28 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'linker' 'linker'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -15,15 +15,18 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die('Restricted access');
use Joomla\CMS\Factory; use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Layout\LayoutHelper;
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
use TrueChristianBible\Joomla\Utilities\Component\Helper; use TrueChristianBible\Joomla\Utilities\Component\Helper;
// No direct access to this file
defined('JPATH_BASE') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -15,15 +15,18 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('JPATH_BASE') or die('Restricted access');
use Joomla\CMS\Factory; use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html; use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Layout\LayoutHelper;
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
use TrueChristianBible\Joomla\Utilities\Component\Helper; use TrueChristianBible\Joomla\Utilities\Component\Helper;
// No direct access to this file
defined('JPATH_BASE') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'name', 'name',
'abbreviation' 'abbreviation'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'access', 'access',
'linker' 'linker'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();
@ -31,22 +31,30 @@ $layout_path_array = explode('.', $this->getLayoutId());
$fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields // get the fields
$fields = $displayData->get($fields_tab_layout) ?: array( $fields = $displayData->get($fields_tab_layout) ?: [
'tag', 'tag',
'access', 'access',
'linker' 'linker'
); ];
// Ensure $fields is treated as an array and count its size.
$size = count((array) $fields);
// Use a ternary operator to determine the class.
// If there are 1 to 4 fields, set the class to divide the 12-grid column equally among the fields.
// For more than 4 fields, default to four columns (3-grid each) for medium and larger screens.
$css_class = ($size > 0 && $size <= 4) ? 'col-12 col-md-' . round(12 / $size) : 'col-12 col-md-3';
$hiddenFields = $displayData->get('hidden_fields') ?: []; $hiddenFields = $displayData->get('hidden_fields') ?: [];
?> ?>
<?php if ($fields && count((array) $fields)) :?> <?php if ($fields && count((array) $fields)) :?>
<div class="form-inline form-inline-header"> <div class="row title-alias form-vertical mb-3">
<?php foreach($fields as $field): ?> <?php foreach($fields as $field): ?>
<?php if (in_array($field, $hiddenFields)) : ?> <?php if (in_array($field, $hiddenFields)) : ?>
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?> <?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
<?php endif; ?> <?php endif; ?>
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> <?php echo $form->renderField($field, null, null, ['class' => $css_class . ' control-wrapper-' . $field]); ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

View File

@ -16,7 +16,7 @@
/------------------------------------------------------------------------------------------------------*/ /------------------------------------------------------------------------------------------------------*/
// No direct access to this file // No direct access to this file
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die;
// get the form // get the form
$form = $displayData->getForm(); $form = $displayData->getForm();

Some files were not shown because too many files have changed in this diff Show More