Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
68cd37f0bd | |||
fca31eaf74 | |||
46dcc38ea7 | |||
26f893f4ff | |||
831530ff6b | |||
1c1f4601a3 | |||
83ef4080db | |||
4f4c13d13c | |||
b61c1b2190 | |||
23380eda79 | |||
3d8e16b84b | |||
02ec6142d7 | |||
db9339b641 | |||
9a8c235755 | |||
379f76f497 | |||
338b14c0bd | |||
01f3548e69 | |||
41d1564412 | |||
6acc130732 | |||
9cc2d88f9e | |||
136fcd0fc2 | |||
ea867eba76 | |||
415b8a2e46 | |||
8d583feb3f |
12
.octojpack
12
.octojpack
@ -9,8 +9,8 @@
|
||||
"name": "PKG_GETBIBLE",
|
||||
"code_name": "getbible",
|
||||
"package_name": "pkg_getbible",
|
||||
"min_joomla_version": "3.8",
|
||||
"max_joomla_version": "3.10",
|
||||
"min_joomla_version": "4.3",
|
||||
"max_joomla_version": "5.1",
|
||||
"copyright": "Copyright (C) 2015 Llewellyn van der Merwe. All rights reserved.",
|
||||
"copyright_year": "2015",
|
||||
"license": "GNU General Public License version 2; see LICENSE",
|
||||
@ -18,14 +18,14 @@
|
||||
"author": "Llewellyn van der Merwe",
|
||||
"author_email": "joomla@vdm.io",
|
||||
"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",
|
||||
"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": {
|
||||
"owner": "getBible",
|
||||
"repo": "joomla-pkg",
|
||||
"branch": "3.10"
|
||||
"branch": "5.0"
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
@ -33,7 +33,7 @@
|
||||
"repo": "joomla-component",
|
||||
"id": "com_getbible",
|
||||
"type": "component",
|
||||
"mode": "3.10"
|
||||
"mode": "5.0"
|
||||
},
|
||||
{
|
||||
"owner": "getBible",
|
||||
|
219
CHANGELOG.md
219
CHANGELOG.md
@ -1,229 +1,80 @@
|
||||
# v3.1.3-alpha2
|
||||
# v5.0.15-alpha4
|
||||
|
||||
- Improve the PHP environment setup validation
|
||||
- Add option to pass shared session via tag share
|
||||
|
||||
# v3.1.3-alpha
|
||||
# v5.0.15-alpha
|
||||
|
||||
- Refactored the API classes
|
||||
- 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.
|
||||
|
||||
# v3.1.0
|
||||
|
||||
- Fix missing Joomla__aeb8e463_291f_4445_9ac4_34b637c12dbd__Power.
|
||||
|
||||
# v3.0.9
|
||||
# v5.0.12
|
||||
|
||||
- Add PHP 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.
|
||||
|
||||
# v3.0.7
|
||||
# v5.0.10
|
||||
|
||||
- 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.
|
||||
- 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
|
||||
|
||||
# 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.
|
||||
- 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.
|
||||
- Fix Daily Light Deprecated code.
|
||||
- Fix Daily Scripture Deprecated code.
|
||||
|
||||
# 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.
|
||||
- Update scripture loader to version 3.0.3
|
||||
- Moved to Joomla 4 and 5
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
- Add back to Bible button to Open AI page.
|
1966
GetbibleInstallerScript.php
Normal file
1966
GetbibleInstallerScript.php
Normal file
File diff suppressed because it is too large
Load Diff
28
README.md
28
README.md
@ -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.
|
||||
|
||||
@ -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)
|
||||
+ *First Build*: 3rd December, 2015
|
||||
+ *Last Build*: 29th July, 2024
|
||||
+ *Version*: 3.1.3-alpha2
|
||||
+ *Version*: 5.0.15-alpha4
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
## 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))
|
||||
|
||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||
> never making one mistake or taking any coffee break.)
|
||||
|
||||
+ *Line count*: **232257**
|
||||
+ *File count*: **1944**
|
||||
+ *Folder count*: **156**
|
||||
+ *Line count*: **240201**
|
||||
+ *File count*: **1953**
|
||||
+ *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:
|
||||
> **debugging @162hours** = codingtime / 4;
|
||||
> **planning @93hours** = codingtime / 7;
|
||||
> **mapping @65hours** = codingtime / 10;
|
||||
> **office @108hours** = codingtime / 6;)
|
||||
> **debugging @168hours** = codingtime / 4;
|
||||
> **planning @96hours** = codingtime / 7;
|
||||
> **mapping @67hours** = codingtime / 10;
|
||||
> **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)
|
||||
|
||||
> (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.)
|
||||
|
||||
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).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
@ -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.
|
||||
|
||||
@ -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)
|
||||
+ *First Build*: 3rd December, 2015
|
||||
+ *Last Build*: 29th July, 2024
|
||||
+ *Version*: 3.1.3-alpha2
|
||||
+ *Version*: 5.0.15-alpha4
|
||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
## 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))
|
||||
|
||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||
> never making one mistake or taking any coffee break.)
|
||||
|
||||
+ *Line count*: **232257**
|
||||
+ *File count*: **1944**
|
||||
+ *Folder count*: **156**
|
||||
+ *Line count*: **240201**
|
||||
+ *File count*: **1953**
|
||||
+ *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:
|
||||
> **debugging @162hours** = codingtime / 4;
|
||||
> **planning @93hours** = codingtime / 7;
|
||||
> **mapping @65hours** = codingtime / 10;
|
||||
> **office @108hours** = codingtime / 6;)
|
||||
> **debugging @168hours** = codingtime / 4;
|
||||
> **planning @96hours** = codingtime / 7;
|
||||
> **mapping @67hours** = codingtime / 10;
|
||||
> **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)
|
||||
|
||||
> (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.)
|
||||
|
||||
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).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<config>
|
||||
<fieldset
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\Getbible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\Getbible\Administrator\Field"
|
||||
name="global_config"
|
||||
label="COM_GETBIBLE_CONFIG_GLOBAL_LABEL"
|
||||
description="COM_GETBIBLE_CONFIG_GLOBAL_DESC">
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,40 +17,41 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_BOOKS"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="booksfiltername"
|
||||
name="name"
|
||||
label="COM_GETBIBLE_BOOK_NAME_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="translations"
|
||||
name="abbreviation"
|
||||
label="COM_GETBIBLE_BOOK_ABBREVIATION_LABEL"
|
||||
class="multipleTranslations"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="true"
|
||||
onchange="this.form.submit();"
|
||||
hint="COM_GETBIBLE_FILTER_SELECT_TRANSLATION"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="booksfilternr"
|
||||
name="nr"
|
||||
label="COM_GETBIBLE_BOOK_NR_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -59,9 +60,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="g.translation asc"
|
||||
validate="options"
|
||||
>
|
||||
@ -83,11 +83,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,41 +17,43 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_CHAPTERS"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="chaptersfilterchapter"
|
||||
name="chapter"
|
||||
label="COM_GETBIBLE_CHAPTER_CHAPTER_LABEL"
|
||||
class="multipleChaptersfilterchapter"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="true"
|
||||
onchange="this.form.submit();"
|
||||
hint="COM_GETBIBLE_FILTER_SELECT_CHAPTER"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="chaptersfilterbooknr"
|
||||
name="book_nr"
|
||||
label="COM_GETBIBLE_CHAPTER_BOOK_NR_LABEL"
|
||||
class="multipleChaptersfilterbooknr"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="true"
|
||||
onchange="this.form.submit();"
|
||||
hint="COM_GETBIBLE_FILTER_SELECT_BOOK_NUMBER"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="translations"
|
||||
name="abbreviation"
|
||||
label="COM_GETBIBLE_CHAPTER_ABBREVIATION_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -60,9 +62,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="g.translation asc"
|
||||
validate="options"
|
||||
>
|
||||
@ -86,11 +87,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,39 +17,39 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_LINKERS"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="linkersfiltername"
|
||||
name="name"
|
||||
label="COM_GETBIBLE_LINKER_NAME_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="linkersfilterpublictaggedverses"
|
||||
name="public_tagged_verses"
|
||||
label="COM_GETBIBLE_LINKER_PUBLIC_TAGGED_VERSES_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="linkersfilterpublicnotes"
|
||||
name="public_notes"
|
||||
label="COM_GETBIBLE_LINKER_PUBLIC_NOTES_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -58,9 +58,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id DESC"
|
||||
validate="options"
|
||||
>
|
||||
@ -82,11 +81,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,7 +17,7 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_NOTES"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
@ -26,35 +26,35 @@
|
||||
name="book_nr"
|
||||
label="COM_GETBIBLE_NOTE_BOOK_NR_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="linkers"
|
||||
name="linker"
|
||||
label="COM_GETBIBLE_NOTE_LINKER_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="notesfilteraccess"
|
||||
name="access"
|
||||
label="COM_GETBIBLE_NOTE_ACCESS_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="notesfilterverse"
|
||||
name="verse"
|
||||
label="COM_GETBIBLE_NOTE_VERSE_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="notesfilterchapter"
|
||||
name="chapter"
|
||||
label="COM_GETBIBLE_NOTE_CHAPTER_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -63,9 +63,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id DESC"
|
||||
validate="options"
|
||||
>
|
||||
@ -87,11 +86,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,46 +17,46 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_OPEN_AI_MESSAGES"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="openaimessagesfilterrole"
|
||||
name="role"
|
||||
label="COM_GETBIBLE_OPEN_AI_MESSAGE_ROLE_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="openairesponses"
|
||||
name="open_ai_response"
|
||||
label="COM_GETBIBLE_OPEN_AI_MESSAGE_OPEN_AI_RESPONSE_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="prompts"
|
||||
name="prompt"
|
||||
label="COM_GETBIBLE_OPEN_AI_MESSAGE_PROMPT_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="openaimessagesfiltersource"
|
||||
name="source"
|
||||
label="COM_GETBIBLE_OPEN_AI_MESSAGE_SOURCE_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -65,9 +65,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id desc"
|
||||
validate="options"
|
||||
>
|
||||
@ -91,11 +90,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,39 +17,39 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_OPEN_AI_RESPONSES"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="openairesponsesfilterresponseid"
|
||||
name="response_id"
|
||||
label="COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_ID_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="prompts"
|
||||
name="prompt"
|
||||
label="COM_GETBIBLE_OPEN_AI_RESPONSE_PROMPT_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="openairesponsesfilterresponsemodel"
|
||||
name="response_model"
|
||||
label="COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_MODEL_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -58,9 +58,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id desc"
|
||||
validate="options"
|
||||
>
|
||||
@ -86,11 +85,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,32 +17,32 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_PASSWORDS"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="passwordsfiltername"
|
||||
name="name"
|
||||
label="COM_GETBIBLE_PASSWORD_NAME_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="linkers"
|
||||
name="linker"
|
||||
label="COM_GETBIBLE_PASSWORD_LINKER_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -51,9 +51,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id DESC"
|
||||
validate="options"
|
||||
>
|
||||
@ -73,11 +72,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,46 +17,46 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_PROMPTS"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="promptsfiltername"
|
||||
name="name"
|
||||
label="COM_GETBIBLE_PROMPT_NAME_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="promptsfiltercachebehaviour"
|
||||
name="cache_behaviour"
|
||||
label="COM_GETBIBLE_PROMPT_CACHE_BEHAVIOUR_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="targettranslations"
|
||||
name="abbreviation"
|
||||
label="COM_GETBIBLE_PROMPT_ABBREVIATION_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="promptsfiltermodel"
|
||||
name="model"
|
||||
label="COM_GETBIBLE_PROMPT_MODEL_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -65,9 +65,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id desc"
|
||||
validate="options"
|
||||
>
|
||||
@ -91,11 +90,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,7 +17,7 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_TAGGED_VERSES"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
@ -25,54 +25,58 @@
|
||||
type="taggedversesfilterbooknr"
|
||||
name="book_nr"
|
||||
label="COM_GETBIBLE_TAGGED_VERSE_BOOK_NR_LABEL"
|
||||
class="multipleTaggedversesfilterbooknr"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="true"
|
||||
onchange="this.form.submit();"
|
||||
hint="COM_GETBIBLE_FILTER_SELECT_BOOK_NUMBER"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="translations"
|
||||
name="abbreviation"
|
||||
label="COM_GETBIBLE_TAGGED_VERSE_ABBREVIATION_LABEL"
|
||||
class="multipleTranslations"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="true"
|
||||
onchange="this.form.submit();"
|
||||
hint="COM_GETBIBLE_FILTER_SELECT_TRANSLATION"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="taggedversesfilteraccess"
|
||||
name="access"
|
||||
label="COM_GETBIBLE_TAGGED_VERSE_ACCESS_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="linkers"
|
||||
name="linker"
|
||||
label="COM_GETBIBLE_TAGGED_VERSE_LINKER_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="tagers"
|
||||
name="tag"
|
||||
label="COM_GETBIBLE_TAGGED_VERSE_TAG_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="taggedversesfilterverse"
|
||||
name="verse"
|
||||
label="COM_GETBIBLE_TAGGED_VERSE_VERSE_LABEL"
|
||||
class="multipleTaggedversesfilterverse"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="true"
|
||||
onchange="this.form.submit();"
|
||||
hint="COM_GETBIBLE_FILTER_SELECT_VERSE"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="taggedversesfilterchapter"
|
||||
name="chapter"
|
||||
label="COM_GETBIBLE_TAGGED_VERSE_CHAPTER_LABEL"
|
||||
class="multipleTaggedversesfilterchapter"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
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"/>
|
||||
</fields>
|
||||
@ -81,9 +85,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id DESC"
|
||||
validate="options"
|
||||
>
|
||||
@ -109,11 +112,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,7 +17,7 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_TAGS"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
@ -26,14 +26,14 @@
|
||||
name="linker"
|
||||
label="COM_GETBIBLE_TAG_LINKER_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="tagsfilteraccess"
|
||||
name="access"
|
||||
label="COM_GETBIBLE_TAG_ACCESS_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -42,9 +42,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.id DESC"
|
||||
validate="options"
|
||||
>
|
||||
@ -66,11 +65,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,25 +17,25 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_TRANSLATIONS"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="translationsfilterdirection"
|
||||
name="direction"
|
||||
label="COM_GETBIBLE_TRANSLATION_DIRECTION_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -44,9 +44,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="a.language asc"
|
||||
validate="options"
|
||||
>
|
||||
@ -70,11 +69,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
@ -17,46 +17,46 @@
|
||||
name="published"
|
||||
label="COM_GETBIBLE_FILTER_PUBLISHED"
|
||||
description="COM_GETBIBLE_FILTER_PUBLISHED_VERSES"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
label="JGRID_HEADING_ACCESS"
|
||||
hint="JOPTION_SELECT_ACCESS"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
/>
|
||||
<field
|
||||
type="versesfilterbooknr"
|
||||
name="book_nr"
|
||||
label="COM_GETBIBLE_VERSE_BOOK_NR_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="versesfilterchapter"
|
||||
name="chapter"
|
||||
label="COM_GETBIBLE_VERSE_CHAPTER_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="versesfilterverse"
|
||||
name="verse"
|
||||
label="COM_GETBIBLE_VERSE_VERSE_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<field
|
||||
type="translations"
|
||||
name="abbreviation"
|
||||
label="COM_GETBIBLE_VERSE_ABBREVIATION_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
@ -65,9 +65,8 @@
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
label="JGLOBAL_SORT_BY"
|
||||
class="js-select-submit-on-change"
|
||||
default="g.translation asc"
|
||||
validate="options"
|
||||
>
|
||||
@ -91,11 +90,9 @@
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
label="JGLOBAL_LIST_LIMIT"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
class="js-select-submit-on-change"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_getbible/models/rules"
|
||||
addfieldpath="/administrator/components/com_getbible/models/fields"
|
||||
addruleprefix="TrueChristianBible\Component\GetBible\Administrator\Rule"
|
||||
addfieldprefix="TrueChristianBible\Component\GetBible\Administrator\Field"
|
||||
>
|
||||
<config>
|
||||
<inlinehelp button="show"/>
|
||||
</config>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
@ -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();
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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_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_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_1="%s Book archived."
|
||||
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_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_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_1="%s Chapter archived."
|
||||
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_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_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_1="%s Linker archived."
|
||||
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_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_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_1="%s Note archived."
|
||||
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_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_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_1="%s Open AI Message archived."
|
||||
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_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_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_1="%s Open AI Response archived."
|
||||
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_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_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_1="%s Password archived."
|
||||
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_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_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_1="%s Prompt archived."
|
||||
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_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_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_1="%s Tagged Verse archived."
|
||||
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_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_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_1="%s Tag archived."
|
||||
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_TRANSLATION="Translations Edit 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_1="%s Translation archived."
|
||||
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_VERSE="Verses Edit 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_1="%s Verse archived."
|
||||
COM_GETBIBLE_VERSES_N_ITEMS_CHECKED_IN_0="No Verse successfully checked in."
|
||||
|
@ -108,6 +108,7 @@ COM_GETBIBLE_MENU_APP_OPTION="App"
|
||||
COM_GETBIBLE_MENU_APP_TITLE="App"
|
||||
COM_GETBIBLE_MENU_BOOKS="Books"
|
||||
COM_GETBIBLE_MENU_CHAPTERS="Chapters"
|
||||
COM_GETBIBLE_MENU_DASHBOARD="Dashboard"
|
||||
COM_GETBIBLE_MENU_LINKERS="Linkers"
|
||||
COM_GETBIBLE_MENU_NOTES="Notes"
|
||||
COM_GETBIBLE_MENU_OPEN_AI_RESPONSES="Open AI Responses"
|
||||
|
@ -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; ?>
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'name',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,22 +31,30 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'name',
|
||||
'chapter',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,20 +31,28 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -15,18 +15,19 @@
|
||||
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\StringHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\ArrayHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vvwnotes;
|
||||
$user = Factory::getUser();
|
||||
$user = Factory::getApplication()->getIdentity();
|
||||
$id = $displayData->item->id;
|
||||
// set the edit URL
|
||||
$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
|
||||
$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');
|
||||
?>
|
||||
<tr>
|
||||
|
@ -15,18 +15,19 @@
|
||||
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\StringHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\ArrayHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vvxpasswords;
|
||||
$user = Factory::getUser();
|
||||
$user = Factory::getApplication()->getIdentity();
|
||||
$id = $displayData->item->id;
|
||||
// set the edit URL
|
||||
$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
|
||||
$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');
|
||||
?>
|
||||
<tr>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -15,18 +15,19 @@
|
||||
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\StringHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\ArrayHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vvvtags;
|
||||
$user = Factory::getUser();
|
||||
$user = Factory::getApplication()->getIdentity();
|
||||
$id = $displayData->item->id;
|
||||
// set the edit URL
|
||||
$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
|
||||
$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');
|
||||
?>
|
||||
<tr>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'access',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,22 +31,30 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'role',
|
||||
'open_ai_response',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'response_id',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -15,18 +15,19 @@
|
||||
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\StringHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\ArrayHelper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vvymessage;
|
||||
$user = Factory::getUser();
|
||||
$user = Factory::getApplication()->getIdentity();
|
||||
$id = $displayData->item->id;
|
||||
// set the edit URL
|
||||
$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
|
||||
$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');
|
||||
?>
|
||||
<tr>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,20 +31,28 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -15,15 +15,18 @@
|
||||
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die('Restricted access');
|
||||
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\Component\Helper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
|
@ -15,15 +15,18 @@
|
||||
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die('Restricted access');
|
||||
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use TrueChristianBible\Component\GetBible\Administrator\Helper\GetbibleHelper;
|
||||
use TrueChristianBible\Joomla\Utilities\Component\Helper;
|
||||
|
||||
// No direct access to this file
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'name',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,21 +31,29 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'access',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
@ -31,22 +31,30 @@ $layout_path_array = explode('.', $this->getLayoutId());
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
$fields = $displayData->get($fields_tab_layout) ?: [
|
||||
'tag',
|
||||
'access',
|
||||
'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') ?: [];
|
||||
|
||||
?>
|
||||
<?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 if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
@ -16,7 +16,7 @@
|
||||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user