Compare commits

...

19 Commits
master ... 5.x

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

View File

@ -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,13 +18,14 @@
"author": "Llewellyn van der Merwe",
"author_email": "joomla@vdm.io",
"author_url": "https://io.vdm.dev/",
"description": "The Get Bible for Joomla.",
"description": "The Get Bible for Joomla 4 and 5.",
"version_id": "com_getbible",
"update_servers": "https://git.vdm.dev/getBible/joomla-component/raw/branch/master/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"
"repo": "joomla-pkg",
"branch": "5.0"
},
"files": [
{
@ -32,7 +33,7 @@
"repo": "joomla-component",
"id": "com_getbible",
"type": "component",
"mode": "master"
"mode": "5.0"
},
{
"owner": "getBible",

View File

@ -1,155 +1,67 @@
# v2.0.32
# v5.0.13
- Fixed other search related issues.
- Add back to Bible button to Open AI page.
# v2.0.31
# v5.0.12
- Fixed #10 so that exact search results now work correctly.
- Update scripture loader to version 3.0.3
- Add PHP check on installation.
- Add Database check on installation.
# v2.0.30
# v5.0.11
- Update scripture loader to version 3.0.2
- Moved all library classes away from default Namespace and Folder path to avoid collusion on outdated classes.
# v2.0.29
# v5.0.10
- Update scripture loader to version 3.0.1
- Update getBible loader to version 3.1.0
# v2.0.28
# v5.0.9
- Small xml fix
- Correct the url encoding to json_encode for none Latin languages.
- Fix type cast validation on search page.
# v2.0.27
# v5.0.8
- Improved the load scripture plugin.
- Fix wrong class naming.
# v2.0.26
# v5.0.7
- Adds few try catch blocks in the API.
- Adds local link to daily scripture module.
- Fix missing token variable in ajax call
# v2.0.25
# v5.0.6
- Adds getBible Loader Plugin
- Fix an Ajax input typo.
# v2.0.23
# v5.0.5
- Refactored all core helper functions to make use of New classes
- Adds open ai meta data to page
- Other JCB fixes
- Add option to target MySQL 8+ with the search regex.
# v2.0.22
# v5.0.4
- Fixed search redirect bug
- Fix the spl_autoload_register function to load all the needed namespace. That was remove in the last update (sorry).
# v2.0.21
# v5.0.3
- 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
- Fix canDelete to correctly use published.
- Add default 1 to version field to make sure the versioning feature works as expected.
# v2.0.20
# v5.0.2
- First step to resolve getBible/support#8 so that the selection works on mobile browsers.
- Fixed the scrolling for mobiles.
- Fix Daily Light Deprecated code.
- Fix Daily Scripture Deprecated code.
# v2.0.19
# v5.0.1
- Adds metadata to each Bible page to resolve getBible/support#6
- Adds option to force chapter hash checking.
- First stable back-end and front-end release towards Joomla 4 and 5
# v2.0.18
# v5.0.0
- Adds bottom module position on tag, search, ai and app pages.
- Fixed JavaScript Database Manager some more.
- Moved to Joomla 4 and 5
# v2.0.17
# v4.0.13
- Adds brut-force protection
- Add back to Bible button to Open AI page.
# v2.0.16
# v3.1.1
- 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.

2028
GetbibleInstallerScript.php Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
# Get Bible (2.0.32)
# Get Bible (5.0.13)
![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.
@ -18,38 +18,38 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 4th December, 2023
+ *Version*: 2.0.32
+ *Last Build*: 29th April, 2024
+ *Version*: 5.0.13
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time
**561 Hours** or **70 Eight Hour Days** (actual time the author saved -
**595 Hours** or **74 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*: **200979**
+ *File count*: **1744**
+ *Folder count*: **167**
+ *Line count*: **213109**
+ *File count*: **1749**
+ *Folder count*: **189**
**370 Hours** or **46 Eight Hour Days** (the actual time the author spent)
**392 Hours** or **49 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
> **debugging @140hours** = codingtime / 4;
> **planning @80hours** = codingtime / 7;
> **mapping @56hours** = codingtime / 10;
> **office @93hours** = codingtime / 6;)
> **debugging @149hours** = codingtime / 4;
> **planning @85hours** = codingtime / 7;
> **mapping @59hours** = codingtime / 10;
> **office @99hours** = codingtime / 6;)
**931 Hours** or **116 Eight Hour Days**
**987 Hours** or **123 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: **23.2 weeks** or **4.8 months**
Project duration: **24.6 weeks** or **5.1 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)

View File

@ -1,6 +1,6 @@
# Get Bible (2.0.32)
# Get Bible (5.0.13)
![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.
@ -18,38 +18,38 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 4th December, 2023
+ *Version*: 2.0.32
+ *Last Build*: 29th April, 2024
+ *Version*: 5.0.13
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time
**561 Hours** or **70 Eight Hour Days** (actual time the author saved -
**595 Hours** or **74 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*: **200979**
+ *File count*: **1744**
+ *Folder count*: **167**
+ *Line count*: **213109**
+ *File count*: **1749**
+ *Folder count*: **189**
**370 Hours** or **46 Eight Hour Days** (the actual time the author spent)
**392 Hours** or **49 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
> **debugging @140hours** = codingtime / 4;
> **planning @80hours** = codingtime / 7;
> **mapping @56hours** = codingtime / 10;
> **office @93hours** = codingtime / 6;)
> **debugging @149hours** = codingtime / 4;
> **planning @85hours** = codingtime / 7;
> **mapping @59hours** = codingtime / 10;
> **office @99hours** = codingtime / 6;)
**931 Hours** or **116 Eight Hour Days**
**987 Hours** or **123 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: **23.2 weeks** or **4.8 months**
Project duration: **24.6 weeks** or **5.1 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)

View File

@ -17,153 +17,153 @@
/* CSS Document */
.dashboard-container {
margin-left: 10px;
margin-top: 10px;
width: 100%;
margin-left: 10px;
margin-top: 10px;
width: 100%;
}
.dashboard-container [class*="span"] {
display: block;
float: none;
margin-left: 0;
width: auto;
display: block;
float: none;
margin-left: 0;
width: auto;
}
.dashboard-container:before, .dashboard-container:after {
content: "";
display: table;
content: "";
display: table;
}
.dashboard-container:after {
clear: both;
clear: both;
}
.dashboard-container [class*="span"] {
box-sizing: border-box;
display: block;
float: left;
min-height: 145px;
min-width: 96px;
width: 100%;
box-sizing: border-box;
display: block;
float: left;
min-height: 145px;
min-width: 96px;
width: 100%;
}
.dashboard-container [class*="span"]:first-child {
margin-left: 0;
margin-left: 0;
}
.dashboard-wraper {
background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 5px;
float: left;
margin: 1%;
padding: 3px;
width: 17%;
min-height: 194px;
min-width: 96px;
background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 5px;
float: left;
margin: 1%;
padding: 3px;
width: 17%;
min-height: 194px;
min-width: 96px;
}
.dashboard-content a {
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%);
display: block;
min-height: 89px;
padding: 10px;
text-align: center;
text-decoration: none;
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%);
display: block;
min-height: 89px;
padding: 10px;
text-align: center;
text-decoration: none;
}
.dashboard-content a:hover {
background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
color: hsl(200, 100%, 30%);
text-decoration: none;
background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
color: hsl(200, 100%, 30%);
text-decoration: none;
}
.dashboard-title {
display: block;
padding-top: 5px;
display: block;
padding-top: 5px;
}
.dashboard-info {
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%);
display: block;
font-size: 12px;
padding: 10px;
text-align: center;
background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 85%);
border-radius: 4px;
box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
color: hsl(0, 0%, 20%);
display: block;
font-size: 12px;
padding: 10px;
text-align: center;
}
.dashboard-info span {
display: block;
text-align: center;
display: block;
text-align: center;
}
.dashboard-info img {
margin: 0 auto;
margin: 0 auto;
}
.dashboard-table {
border-top: 1px solid hsl(0, 0%, 87%);
margin-top: 5px;
width: 100%;
border-top: 1px solid hsl(0, 0%, 87%);
margin-top: 5px;
width: 100%;
}
.dashboard-info h5 {
font-size: 11px;
font-weight: bold;
font-size: 11px;
font-weight: bold;
}
.dashboard-block {
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 76%);
border-radius: 3px;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset;
margin-bottom: 20px;
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border: 1px solid hsl(0, 0%, 76%);
border-radius: 3px;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset;
margin-bottom: 20px;
}
.dashboard-block .dashboard-block-head {
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border-bottom: 1px solid hsl(0, 0%, 76%);
border-radius: 3px 3px 0 0;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%);
height: 40px;
position: relative;
background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
border-bottom: 1px solid hsl(0, 0%, 76%);
border-radius: 3px 3px 0 0;
box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%);
height: 40px;
position: relative;
}
.dashboard-block .dashboard-block-head h5 {
font-size: 12px;
margin: 0;
padding-left: 10px;
padding-top: 11px;
text-transform: uppercase;
font-size: 12px;
margin: 0;
padding-left: 10px;
padding-top: 11px;
text-transform: uppercase;
}
.dashboard-block .dashboard-block-content {
background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 0 0 3px 3px;
background: none repeat scroll 0 0 hsl(0, 0%, 93%);
border-radius: 0 0 3px 3px;
}
.dashboard-block .dashboard-block-box {
background: none repeat scroll 0 0 hsl(0, 0%, 100%);
border-top: 1px solid hsl(0, 0%, 82%);
box-shadow: 0 0 5px hsl(0, 0%, 87%) inset;
background: none repeat scroll 0 0 hsl(0, 0%, 100%);
border-top: 1px solid hsl(0, 0%, 82%);
box-shadow: 0 0 5px hsl(0, 0%, 87%) inset;
}
.dashboard-block .dashboard-block-content .dashboard-block-box {
margin-top: 0 !important;
margin-top: 0 !important;
}
.dashboard-block .dashboard-block-content .dashboard-block-box .dashboard-block-table {
margin-bottom: 0 !important;
margin-bottom: 0 !important;
}
.dashboard-block-table {
background-color: hsla(0, 0%, 0%, 0);
border-collapse: collapse;
border-spacing: 0;
margin-bottom: 20px;
max-width: 100%;
width: 100%;
background-color: hsla(0, 0%, 0%, 0);
border-collapse: collapse;
border-spacing: 0;
margin-bottom: 20px;
max-width: 100%;
width: 100%;
}
.dashboard-block-table th, .dashboard-block-table td {
border-top: 1px solid hsl(0, 0%, 87%);
line-height: 20px;
padding: 5px;
text-align: left;
vertical-align: middle;
border-top: 1px solid hsl(0, 0%, 87%);
line-height: 20px;
padding: 5px;
text-align: left;
vertical-align: middle;
}
.dashboard-badge {
background-color: hsl(0, 0%, 60%);
border-radius: 9px;
color: hsl(0, 0%, 100%);
font-size: 11.844px;
font-weight: bold;
line-height: 14px;
padding: 1px 9px 2px;
text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25);
vertical-align: baseline;
white-space: nowrap;
background-color: hsl(0, 0%, 60%);
border-radius: 9px;
color: hsl(0, 0%, 100%);
font-size: 11.844px;
font-weight: bold;
line-height: 14px;
padding: 1px 9px 2px;
text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25);
vertical-align: baseline;
white-space: nowrap;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
name="global_config"
label="COM_GETBIBLE_CONFIG_GLOBAL_LABEL"
description="COM_GETBIBLE_CONFIG_GLOBAL_DESC">

View File

@ -1,130 +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;
/**
* 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 = array())
{
// 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(GetbibleHelper::checkArray($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(JText::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 && GetbibleHelper::checkString($ref))
{
// redirect to item of ref
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false));
}
elseif (GetbibleHelper::checkString($ref))
{
// redirect to ref
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view='.(string)$ref, false));
}
else
{
// normal redirect back to the list view
$this->setRedirect(JRoute::_('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 (GetbibleHelper::checkString($view))
{
// the view relationships
$views = array(
'linker' => 'linkers',
'note' => 'notes',
'tagged_verse' => 'tagged_verses',
'prompt' => 'prompts',
'open_ai_response' => 'open_ai_responses',
'open_ai_message' => 'open_ai_messages',
'password' => 'passwords',
'tag' => 'tags',
'translation' => 'translations',
'book' => 'books',
'chapter' => 'chapters',
'verse' => 'verses'
);
// check if this is a list view
if (in_array($view, $views))
{
// this is a list view
return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
}
// check if it is an edit view
elseif (array_key_exists($view, $views))
{
// this is a edit view
return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
}
}
return false;
}
}

View File

@ -1,162 +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\AdminController;
use Joomla\Utilities\ArrayHelper;
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
use VDM\Joomla\GetBible\Factory;
/**
* Books Admin Controller
*/
class GetbibleControllerBooks extends AdminController
{
/**
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
protected $text_prefix = 'COM_GETBIBLE_BOOKS';
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Book', $prefix = 'GetbibleModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function updateChaptersNames()
{
// Check for request forgeries
JSession::checkToken() or die(Text::_('JINVALID_TOKEN'));
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('book.update_chapters_names', 'com_getbible'))
{
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// Sanitize the input
JArrayHelper::toInteger($pks);
// check if there is any selections
$number = UtilitiesArrayHelper::check($pks);
if (!$number)
{
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_NO_BOOK_WAS_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), $message, 'error');
return;
}
elseif (Factory::_('GetBible.Watcher.Chapter')->names($pks))
{
// Redirect to the list screen with success.
$message = array();
$message[] = '<h1>' . JText::_('COM_GETBIBLE_UPDATE_COMPLETED') . '</h1>';
// get the data to export
if ($number == 1)
{
$message[] = '<p>' . JText::_('COM_GETBIBLE_THE_CHAPTER_NAMES_OF_THE_BOOK_WERE_SUCCESSFULLY_UPDATED_AND_THEY_ARE_NOW_IN_SYNC_WITH_THE_GETBIBLE_API') . '</p>';
}
else
{
$message[] = '<p>' . JText::_('COM_GETBIBLE_THE_CHAPTER_NAMES_OF_THE_SELECTED_BOOKS_WERE_SUCCESSFULLY_UPDATED_AND_THEY_ARE_NOW_IN_SYNC_WITH_THE_GETBIBLE_API') . '</p>';
}
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), implode('', $message), 'Success');
return;
}
}
else
{
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_PERMISSION_TO_UPDATE_THE_CHAPTER_NAMES_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), $message, 'error');
return;
}
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_UPDATE_FAILED_PLEASE_TRY_AGAIN_LATTER');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), $message, 'error');
return;
}
public function forceHashCheck()
{
// Check for request forgeries
JSession::checkToken() or die(Text::_('JINVALID_TOKEN'));
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('book.force_hash_check', 'com_getbible'))
{
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// Sanitize the input
JArrayHelper::toInteger($pks);
// check if there is any selections
$number = UtilitiesArrayHelper::check($pks);
if (!$number)
{
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_NO_BOOK_WAS_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), $message, 'error');
return;
}
elseif (Factory::_('GetBible.Watcher.Chapter')->force($pks))
{
// Redirect to the list screen with success.
$message = array();
$message[] = '<h1>' . JText::_('COM_GETBIBLE_FORCE_HASH_CHECK_ENABLED') . '</h1>';
// get the data to export
if ($number == 1)
{
$message[] = '<p>' . JText::_('COM_GETBIBLE_THE_CHAPTERS_OF_THE_BOOK_WILL_BE_FORCEFULLY_SYNCED_WITH_THE_GETBIBLE_API') . '</p>';
}
else
{
$message[] = '<p>' . JText::_('COM_GETBIBLE_THE_CHAPTERS_OF_THE_SELECTED_BOOKS_WILL_BE_FORCEFULLY_SYNCED_WITH_THE_GETBIBLE_API') . '</p>';
}
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), implode('', $message), 'Success');
return;
}
}
else
{
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_PERMISSION_TO_ENABLED_FORCEFUL_CHECK_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), $message, 'error');
return;
}
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_UPDATE_FAILED_PLEASE_TRY_AGAIN_LATTER');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=books', false), $message, 'error');
return;
}
}

View File

@ -1,140 +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\AdminController;
use Joomla\Utilities\ArrayHelper;
use VDM\Joomla\GetBible\Factory;
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
/**
* Translations Admin Controller
*/
class GetbibleControllerTranslations extends AdminController
{
/**
* The prefix to use with controller messages.
*
* @var string
* @since 1.6
*/
protected $text_prefix = 'COM_GETBIBLE_TRANSLATIONS';
/**
* Method to get a model object, loading it if required.
*
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JModelLegacy The model.
*
* @since 1.6
*/
public function getModel($name = 'Translation', $prefix = 'GetbibleModel', $config = array('ignore_request' => true))
{
return parent::getModel($name, $prefix, $config);
}
public function updateTranslationsDetails()
{
// Check for request forgeries
JSession::checkToken() or die(Text::_('JINVALID_TOKEN'));
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('translation.update_translations_details', 'com_getbible'))
{
if (Factory::_('GetBible.Watcher.Translation')->translations())
{
// Redirect to the list screen with success.
$message = array();
$message[] = '<h1>' . JText::_('COM_GETBIBLE_UPDATE_COMPLETED') . '</h1>';
$message[] = '<p>' . JText::_('COM_GETBIBLE_ALL_TRANSLATIONS_WERE_SUCCESSFULLY_UPDATED_AND_THEY_ARE_NOW_IN_SYNC_WITH_THE_GETBIBLE_API') . '</p>';
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=translations', false), implode('', $message), 'Success');
return;
}
}
else
{
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_PERMISSION_TO_UPDATE_THE_BOOK_NAMES_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=translations', false), $message, 'error');
return;
}
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_UPDATE_FAILED_PLEASE_TRY_AGAIN_LATTER');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=translations', false), $message, 'error');
return;
}
public function updateBookNames()
{
// Check for request forgeries
JSession::checkToken() or die(Text::_('JINVALID_TOKEN'));
// check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('translation.update_book_names', 'com_getbible'))
{
// Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// Sanitize the input
JArrayHelper::toInteger($pks);
// check if there is any selections
$number = UtilitiesArrayHelper::check($pks);
if (!$number)
{
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_NO_TRANSLATION_WAS_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=translations', false), $message, 'error');
return;
}
elseif (Factory::_('GetBible.Watcher.Book')->translations($pks))
{
// Redirect to the list screen with success.
$message = array();
$message[] = '<h1>' . JText::_('COM_GETBIBLE_UPDATE_COMPLETED') . '</h1>';
// get the data to export
if ($number == 1)
{
$message[] = '<p>' . JText::_('COM_GETBIBLE_THE_BOOK_NAMES_OF_THE_TRANSLATION_WERE_SUCCESSFULLY_UPDATED_AND_THEY_ARE_NOW_IN_SYNC_WITH_THE_GETBIBLE_API') . '</p>';
}
else
{
$message[] = '<p>' . JText::_('COM_GETBIBLE_THE_BOOK_NAMES_OF_THE_SELECTED_TRANSLATIONS_WERE_SUCCESSFULLY_UPDATED_AND_THEY_ARE_NOW_IN_SYNC_WITH_THE_GETBIBLE_API') . '</p>';
}
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=translations', false), implode('', $message), 'Success');
return;
}
}
else
{
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_PERMISSION_TO_UPDATE_THE_BOOK_NAMES_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=translations', false), $message, 'error');
return;
}
// Redirect to the list screen with error.
$message = JText::_('COM_GETBIBLE_UPDATE_FAILED_PLEASE_TRY_AGAIN_LATTER');
$this->setRedirect(JRoute::_('index.php?option=com_getbible&view=translations', false), $message, 'error');
return;
}
}

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -91,6 +94,7 @@
label="COM_GETBIBLE_BOOK_VERSION_LABEL"
description="COM_GETBIBLE_BOOK_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -159,7 +163,7 @@
message="COM_GETBIBLE_BOOK_SHA_MESSAGE"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -91,6 +94,7 @@
label="COM_GETBIBLE_CHAPTER_VERSION_LABEL"
description="COM_GETBIBLE_CHAPTER_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -171,7 +175,7 @@
message="COM_GETBIBLE_CHAPTER_SHA_MESSAGE"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<fields name="filter">
<field
@ -17,39 +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"
multiple="false"
onchange="this.form.submit();"
layout="joomla.form.field.list-fancy-select"
multiple="true"
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>
@ -58,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"
>
@ -82,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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\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>

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_GETBIBLE_LINKER_VERSION_LABEL"
description="COM_GETBIBLE_LINKER_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -151,7 +155,7 @@
COM_GETBIBLE_LINKER_NO</option>
</field>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -73,6 +76,7 @@
label="COM_GETBIBLE_NOTE_VERSION_LABEL"
description="COM_GETBIBLE_NOTE_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -175,7 +179,7 @@
step="1"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_GETBIBLE_OPEN_AI_MESSAGE_VERSION_LABEL"
description="COM_GETBIBLE_OPEN_AI_MESSAGE_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -187,7 +191,7 @@
step="1"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_GETBIBLE_OPEN_AI_RESPONSE_VERSION_LABEL"
description="COM_GETBIBLE_OPEN_AI_RESPONSE_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -394,7 +398,7 @@
COM_GETBIBLE_OPEN_AI_RESPONSE_GPT35TURBO16K0613</option>
</field>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_GETBIBLE_PASSWORD_VERSION_LABEL"
description="COM_GETBIBLE_PASSWORD_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -149,7 +153,7 @@
autocomplete="off"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_GETBIBLE_PROMPT_VERSION_LABEL"
description="COM_GETBIBLE_PROMPT_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -546,7 +550,7 @@
<!-- Cache_advance_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="cache_advance_note" label="COM_GETBIBLE_PROMPT_CACHE_ADVANCE_NOTE_LABEL" description="COM_GETBIBLE_PROMPT_CACHE_ADVANCE_NOTE_DESCRIPTION" heading="h5" class="alert alert-success cache_advance_note" showon="cache_behaviour:2" />
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -73,6 +76,7 @@
label="COM_GETBIBLE_TAG_VERSION_LABEL"
description="COM_GETBIBLE_TAG_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -153,7 +157,7 @@
hint="COM_GETBIBLE_TAG_DESCRIPTION_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -73,6 +76,7 @@
label="COM_GETBIBLE_TAGGED_VERSE_VERSION_LABEL"
description="COM_GETBIBLE_TAGGED_VERSE_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -184,7 +188,7 @@
step="1"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -91,6 +94,7 @@
label="COM_GETBIBLE_TRANSLATION_VERSION_LABEL"
description="COM_GETBIBLE_TRANSLATION_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -390,7 +394,7 @@
hint="COM_GETBIBLE_TRANSLATION_DISTRIBUTION_ABBREVIATION_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -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="TrueChristianChurch\Component\Getbible\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Getbible\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -91,6 +94,7 @@
label="COM_GETBIBLE_VERSE_VERSION_LABEL"
description="COM_GETBIBLE_VERSE_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -184,7 +188,7 @@
hint="COM_GETBIBLE_VERSE_NAME_HINT"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -1,77 +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');
class getbibleHeaderCheck
{
function js_loaded($script_name)
{
// UIkit check point
if (strpos($script_name,'uikit') !== false)
{
$app = JFactory::getApplication();
$getTemplateName = $app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false)
{
return true;
}
}
$document = JFactory::getDocument();
$head_data = $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)
{
$app = JFactory::getApplication();
$getTemplateName = $app->getTemplate('template')->template;
if (strpos($getTemplateName,'yoo') !== false)
{
return true;
}
}
$document = JFactory::getDocument();
$head_data = $document->getHeadData();
foreach (array_keys($head_data['styleSheets']) as $script)
{
if (stristr($script, $script_name))
{
return true;
}
}
return false;
}
}

View File

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

View File

@ -1,14 +1,13 @@
COM_GETBIBLE="Get Bible"
COM_GETBIBLE_ACCESS_ALREADY_EXIST_BUT_COULD_NOT_BE_REACTIVATED="Access already exist, but could not be reactivated."
COM_GETBIBLE_ACCESS_REVOKED="Access revoked."
COM_GETBIBLE_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER="All is good, please check again latter."
COM_GETBIBLE_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATER="All is good, please check again later"
COM_GETBIBLE_ALL_TRANSLATIONS="All Translations"
COM_GETBIBLE_ALL_TRANSLATIONS_WERE_SUCCESSFULLY_UPDATED_AND_THEY_ARE_NOW_IN_SYNC_WITH_THE_GETBIBLE_API="All translations were successfully updated, and they are now in sync with the getBible API."
COM_GETBIBLE_ARCHIVED="Archived"
COM_GETBIBLE_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS="Are you sure you want to delete? Confirming will permanently delete the selected item(s)!"
COM_GETBIBLE_AUTHOR="Author"
COM_GETBIBLE_BACK="Back"
COM_GETBIBLE_BETA_RELEASE="Beta Release"
COM_GETBIBLE_BOOK="Book"
COM_GETBIBLE_BOOKS="Books"
COM_GETBIBLE_BOOKS_ACCESS="Books Access"
@ -41,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."
@ -70,6 +72,7 @@ COM_GETBIBLE_BOOK_CREATED_DATE_DESC="The date this Book was created."
COM_GETBIBLE_BOOK_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_BOOK_DETAILS="Details"
COM_GETBIBLE_BOOK_ERROR_UNIQUE_ALIAS="Another Book has the same alias."
COM_GETBIBLE_BOOK_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Book has the same alias ."
COM_GETBIBLE_BOOK_FORCE_HASH_CHECK_BUTTON_ACCESS="Book Force Hash Check Button Access"
COM_GETBIBLE_BOOK_FORCE_HASH_CHECK_BUTTON_ACCESS_DESC="Allows the users in this group to access the force hash check button."
COM_GETBIBLE_BOOK_ID="Id"
@ -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."
@ -163,6 +169,7 @@ COM_GETBIBLE_CHAPTER_CREATED_DATE_DESC="The date this Chapter was created."
COM_GETBIBLE_CHAPTER_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_CHAPTER_DETAILS="Details"
COM_GETBIBLE_CHAPTER_ERROR_UNIQUE_ALIAS="Another Chapter has the same alias."
COM_GETBIBLE_CHAPTER_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Chapter has the same alias ."
COM_GETBIBLE_CHAPTER_ID="Id"
COM_GETBIBLE_CHAPTER_MODIFIED_BY_DESC="The last user that modified this Chapter."
COM_GETBIBLE_CHAPTER_MODIFIED_BY_LABEL="Modified By"
@ -656,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."
@ -684,6 +694,7 @@ COM_GETBIBLE_LINKER_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_LINKER_DETAILS="Details"
COM_GETBIBLE_LINKER_EDIT="Editing the Linker"
COM_GETBIBLE_LINKER_ERROR_UNIQUE_ALIAS="Another Linker has the same alias."
COM_GETBIBLE_LINKER_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Linker has the same alias ."
COM_GETBIBLE_LINKER_GUID_DESCRIPTION="Globally Unique Identifier"
COM_GETBIBLE_LINKER_GUID_HINT="Auto Generated"
COM_GETBIBLE_LINKER_GUID_LABEL="GUID"
@ -753,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."
@ -788,6 +802,7 @@ COM_GETBIBLE_NOTE_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_NOTE_DETAILS="Details"
COM_GETBIBLE_NOTE_EDIT="Editing the Note"
COM_GETBIBLE_NOTE_ERROR_UNIQUE_ALIAS="Another Note has the same alias."
COM_GETBIBLE_NOTE_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Note has the same alias ."
COM_GETBIBLE_NOTE_GUID_DESCRIPTION="Globally Unique Identifier"
COM_GETBIBLE_NOTE_GUID_HINT="Auto Generated"
COM_GETBIBLE_NOTE_GUID_LABEL="GUID"
@ -856,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."
@ -884,6 +902,7 @@ COM_GETBIBLE_OPEN_AI_MESSAGE_CREATED_DATE_DESC="The date this Open AI Message wa
COM_GETBIBLE_OPEN_AI_MESSAGE_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_OPEN_AI_MESSAGE_EDIT="Editing the Open AI Message"
COM_GETBIBLE_OPEN_AI_MESSAGE_ERROR_UNIQUE_ALIAS="Another Open AI Message has the same alias."
COM_GETBIBLE_OPEN_AI_MESSAGE_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Open AI Message has the same alias ."
COM_GETBIBLE_OPEN_AI_MESSAGE_FUNCTION="function"
COM_GETBIBLE_OPEN_AI_MESSAGE_ID="Id"
COM_GETBIBLE_OPEN_AI_MESSAGE_INDEX_DESCRIPTION="Message index"
@ -986,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."
@ -1025,6 +1047,7 @@ COM_GETBIBLE_OPEN_AI_RESPONSE_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_OPEN_AI_RESPONSE_DETAILS="Details"
COM_GETBIBLE_OPEN_AI_RESPONSE_EDIT="Editing the Open AI Response"
COM_GETBIBLE_OPEN_AI_RESPONSE_ERROR_UNIQUE_ALIAS="Another Open AI Response has the same alias."
COM_GETBIBLE_OPEN_AI_RESPONSE_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Open AI Response has the same alias ."
COM_GETBIBLE_OPEN_AI_RESPONSE_FREQUENCY_PENALTY_DESCRIPTION="Penalty for new tokens based on their frequency in the text"
COM_GETBIBLE_OPEN_AI_RESPONSE_FREQUENCY_PENALTY_LABEL="Frequency Penalty"
COM_GETBIBLE_OPEN_AI_RESPONSE_GPT35TURBO="gpt-3.5-turbo"
@ -1129,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."
@ -1157,6 +1183,7 @@ COM_GETBIBLE_PASSWORD_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_PASSWORD_DETAILS="Details"
COM_GETBIBLE_PASSWORD_EDIT="Editing the Password"
COM_GETBIBLE_PASSWORD_ERROR_UNIQUE_ALIAS="Another Password has the same alias."
COM_GETBIBLE_PASSWORD_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Password has the same alias ."
COM_GETBIBLE_PASSWORD_GUID_DESCRIPTION="Globally Unique Identifier"
COM_GETBIBLE_PASSWORD_GUID_HINT="Auto Generated"
COM_GETBIBLE_PASSWORD_GUID_LABEL="GUID"
@ -1182,7 +1209,8 @@ COM_GETBIBLE_PASSWORD_STATUS="Status"
COM_GETBIBLE_PASSWORD_TO_SHORT_USE_A_LONGER_PASSWORD="Password to short, use a longer password."
COM_GETBIBLE_PASSWORD_VERSION_DESC="A count of the number of times this Password has been revised."
COM_GETBIBLE_PASSWORD_VERSION_LABEL="Version"
COM_GETBIBLE_PLEASE_CHECK_AGAIN_LATTER="Please check again latter."
COM_GETBIBLE_PLEASE_CHECK_AGAIN_LATER="Please check again later"
COM_GETBIBLE_PRE_RELEASE="Pre Release"
COM_GETBIBLE_PROMPT="Prompt"
COM_GETBIBLE_PROMPTS="Prompts"
COM_GETBIBLE_PROMPTS_ACCESS="Prompts Access"
@ -1257,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."
@ -1306,6 +1337,7 @@ COM_GETBIBLE_PROMPT_CREATED_DATE_DESC="The date this Prompt was created."
COM_GETBIBLE_PROMPT_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_PROMPT_EDIT="Editing the Prompt"
COM_GETBIBLE_PROMPT_ERROR_UNIQUE_ALIAS="Another Prompt has the same alias."
COM_GETBIBLE_PROMPT_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Prompt has the same alias ."
COM_GETBIBLE_PROMPT_FREQUENCY_PENALTY_DESCRIPTION="Penalty for new tokens based on their frequency in the text"
COM_GETBIBLE_PROMPT_FREQUENCY_PENALTY_LABEL="Frequency Penalty"
COM_GETBIBLE_PROMPT_FREQUENCY_PENALTY_NOTE_DESCRIPTION="<p>The &quot;frequency_penalty&quot; is another optional parameter that defaults to 0. This is also a value between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.</p><ul> <li>For example, a high frequency penalty discourages the model from excessively repeating the same words or phrases, encouraging it to produce more diverse and creative text.</li></ul>"
@ -1474,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."
@ -1511,6 +1546,7 @@ COM_GETBIBLE_TAGGED_VERSE_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_TAGGED_VERSE_DETAILS="Details"
COM_GETBIBLE_TAGGED_VERSE_EDIT="Editing the Tagged Verse"
COM_GETBIBLE_TAGGED_VERSE_ERROR_UNIQUE_ALIAS="Another Tagged Verse has the same alias."
COM_GETBIBLE_TAGGED_VERSE_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Tagged Verse has the same alias ."
COM_GETBIBLE_TAGGED_VERSE_GUID_DESCRIPTION="Globally Unique Identifier"
COM_GETBIBLE_TAGGED_VERSE_GUID_HINT="Auto Generated"
COM_GETBIBLE_TAGGED_VERSE_GUID_LABEL="GUID"
@ -1569,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."
@ -1602,6 +1641,7 @@ COM_GETBIBLE_TAG_DESCRIPTION_LABEL="Description"
COM_GETBIBLE_TAG_DETAILS="Details"
COM_GETBIBLE_TAG_EDIT="Editing the Tag"
COM_GETBIBLE_TAG_ERROR_UNIQUE_ALIAS="Another Tag has the same alias."
COM_GETBIBLE_TAG_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Tag has the same alias ."
COM_GETBIBLE_TAG_FOUND_BUT_COULD_NOT_BE_REACTIVATED="Tag found, but could not be reactivated."
COM_GETBIBLE_TAG_GUID_DESCRIPTION="Globally Unique Identifier"
COM_GETBIBLE_TAG_GUID_HINT="Auto Generated"
@ -1645,7 +1685,7 @@ COM_GETBIBLE_THE_TAG_WAS_SUCCESSFULLY_REACTIVATED="The tag was successfully reac
COM_GETBIBLE_THE_TAG_WAS_SUCCESSFULLY_REMOVED_FROM_THE_VERSE="The tag was successfully removed from the verse."
COM_GETBIBLE_THE_TAG_WAS_SUCCESSFULLY_UPDATED="The tag was successfully updated."
COM_GETBIBLE_THE_VERSE_WAS_SUCCESSFULLY_TAGGED="The verse was successfully tagged."
COM_GETBIBLE_THE_WIKI_CAN_ONLY_BE_LOADED_WHEN_YOUR_JCB_SYSTEM_HAS_INTERNET_CONNECTION="The wiki can only be loaded when your JCB system has internet connection."
COM_GETBIBLE_THE_WIKI_CAN_ONLY_BE_LOADED_WHEN_YOUR_GETBIBLE_SYSTEM_HAS_INTERNET_CONNECTION="The wiki can only be loaded when your getBible system has internet connection."
COM_GETBIBLE_THE_WIKI_IS_LOADING="The wiki is loading"
COM_GETBIBLE_THIS_IS_A_GLOBAL_TAG_SET_BY_US_AT_BSB_FOR_YOUR_CONVENIENCE_WE_HOLD_THE_PRIVILEGE_TO_MODIFY_THESE_TAGS_IF_YOU_BELIEVE_ITS_SET_IN_ERROR_KINDLY_INFORM_US="This is a global tag, set by us at <b>%s</b> for your convenience. We hold the privilege to modify these tags. If you believe it's set in error, kindly inform us."
COM_GETBIBLE_THIS_TAG_COULD_NOT_BE_REMOVED="This tag could not be removed."
@ -1709,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."
@ -1782,6 +1825,7 @@ COM_GETBIBLE_TRANSLATION_ENCODING_DESCRIPTION="Enter some encoding"
COM_GETBIBLE_TRANSLATION_ENCODING_LABEL="Encoding"
COM_GETBIBLE_TRANSLATION_ENCODING_MESSAGE="Error! Please add some encoding here."
COM_GETBIBLE_TRANSLATION_ERROR_UNIQUE_ALIAS="Another Translation has the same alias."
COM_GETBIBLE_TRANSLATION_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Translation has the same alias ."
COM_GETBIBLE_TRANSLATION_ID="Id"
COM_GETBIBLE_TRANSLATION_LANGUAGE_DESCRIPTION="The translation language."
COM_GETBIBLE_TRANSLATION_LANGUAGE_HINT="English"
@ -1876,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."
@ -1909,6 +1956,7 @@ COM_GETBIBLE_VERSE_CREATED_DATE_DESC="The date this Verse was created."
COM_GETBIBLE_VERSE_CREATED_DATE_LABEL="Created Date"
COM_GETBIBLE_VERSE_DETAILS="Details"
COM_GETBIBLE_VERSE_ERROR_UNIQUE_ALIAS="Another Verse has the same alias."
COM_GETBIBLE_VERSE_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Verse has the same alias ."
COM_GETBIBLE_VERSE_ID="Id"
COM_GETBIBLE_VERSE_MODIFIED_BY_DESC="The last user that modified this Verse."
COM_GETBIBLE_VERSE_MODIFIED_BY_LABEL="Modified By"

View File

@ -103,14 +103,12 @@ COM_GETBIBLE_LINKERS_EDIT_STATE_DESC="Allows the users in this group to update t
COM_GETBIBLE_LINKERS_SUBMENU="Linkers Submenu"
COM_GETBIBLE_LINKERS_SUBMENU_DESC="Allows the users in this group to submenu of linker"
COM_GETBIBLE_MENU="Get Bible"
COM_GETBIBLE_MENU_API_DESC="Api"
COM_GETBIBLE_MENU_API_OPTION="Api"
COM_GETBIBLE_MENU_API_TITLE="Api"
COM_GETBIBLE_MENU_APP_DESC="App"
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"

View File

@ -1,54 +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;
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 JText::_('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 JText::_('Update'); ?></label>
</div>
</div>
<?php endif; ?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'abbreviation'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'sha'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -39,7 +39,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'abbreviation'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'sha'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -39,7 +39,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'public_tagged_verses'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'public_notes'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -15,25 +15,32 @@
/------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use TrueChristianChurch\Joomla\Utilities\StringHelper;
use TrueChristianChurch\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvwnotes;
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_getbible&view=notes&task=note.edit";
// set a return value
$return = ($id) ? "index.php?option=com_getbible&view=linker&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
$jinput = Factory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (GetbibleHelper::checkString($return))
if (StringHelper::check($return))
{
// set the referral values
$ref = ($id) ? "&ref=linker&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
@ -53,28 +60,28 @@ $can = GetbibleHelper::getActions('note');
<div class="form-vertical">
<?php if ($can->get('note.create')): ?>
<div class="btn-group">
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_GETBIBLE_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('linker.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo JText::_('COM_GETBIBLE_CLOSE_NEW'); ?></a>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo Text::_('COM_GETBIBLE_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('linker.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo Text::_('COM_GETBIBLE_CLOSE_NEW'); ?></a>
</div><br /><br />
<?php endif; ?>
<?php if (GetbibleHelper::checkArray($items)): ?>
<?php if (ArrayHelper::check($items)): ?>
<table class="footable table data notes" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
<thead>
<tr>
<th data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_NOTE_BOOK_NR_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_NOTE_BOOK_NR_LABEL'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_NOTE_LINKER_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_NOTE_LINKER_LABEL'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_NOTE_ACCESS_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_NOTE_ACCESS_LABEL'); ?>
</th>
<th width="10" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_NOTE_STATUS'); ?>
<?php echo Text::_('COM_GETBIBLE_NOTE_STATUS'); ?>
</th>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_NOTE_ID'); ?>
<?php echo Text::_('COM_GETBIBLE_NOTE_ID'); ?>
</th>
</tr>
</thead>
@ -82,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 = JFactory::getUser($item->checked_out);
$userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
$canDo = GetbibleHelper::getActions('note',$item,'notes');
?>
<tr>
@ -90,7 +99,7 @@ $can = GetbibleHelper::getActions('note');
<?php if ($canDo->get('note.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->book_nr); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'notes.', $canCheckin); ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'notes.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo $displayData->escape($item->book_nr); ?>
@ -100,30 +109,30 @@ $can = GetbibleHelper::getActions('note');
<?php echo $displayData->escape($item->linker_name); ?>
</td>
<td>
<?php echo JText::_($item->access); ?>
<?php echo Text::_($item->access); ?>
</td>
<?php if ($item->published == 1): ?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>
<span class="status-metro status-published" title="<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0): ?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>
<span class="status-metro status-inactive" title="<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2): ?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>
<span class="status-metro status-archived" title="<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2): ?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>
<span class="status-metro status-trashed" title="<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
@ -136,7 +145,7 @@ $can = GetbibleHelper::getActions('note');
</table>
<?php else: ?>
<div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div>
<?php endif; ?>
</div>

View File

@ -15,25 +15,32 @@
/------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use TrueChristianChurch\Joomla\Utilities\StringHelper;
use TrueChristianChurch\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvxpasswords;
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_getbible&view=passwords&task=password.edit";
// set a return value
$return = ($id) ? "index.php?option=com_getbible&view=linker&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
$jinput = Factory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (GetbibleHelper::checkString($return))
if (StringHelper::check($return))
{
// set the referral values
$ref = ($id) ? "&ref=linker&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
@ -53,28 +60,28 @@ $can = GetbibleHelper::getActions('password');
<div class="form-vertical">
<?php if ($can->get('password.create')): ?>
<div class="btn-group">
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_GETBIBLE_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('linker.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo JText::_('COM_GETBIBLE_CLOSE_NEW'); ?></a>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo Text::_('COM_GETBIBLE_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('linker.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo Text::_('COM_GETBIBLE_CLOSE_NEW'); ?></a>
</div><br /><br />
<?php endif; ?>
<?php if (GetbibleHelper::checkArray($items)): ?>
<?php if (ArrayHelper::check($items)): ?>
<table class="footable table data passwords" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
<thead>
<tr>
<th data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_PASSWORD_NAME_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_PASSWORD_NAME_LABEL'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_PASSWORD_LINKER_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_PASSWORD_LINKER_LABEL'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_PASSWORD_GUID_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_PASSWORD_GUID_LABEL'); ?>
</th>
<th width="10" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_PASSWORD_STATUS'); ?>
<?php echo Text::_('COM_GETBIBLE_PASSWORD_STATUS'); ?>
</th>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_PASSWORD_ID'); ?>
<?php echo Text::_('COM_GETBIBLE_PASSWORD_ID'); ?>
</th>
</tr>
</thead>
@ -82,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 = JFactory::getUser($item->checked_out);
$userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
$canDo = GetbibleHelper::getActions('password',$item,'passwords');
?>
<tr>
@ -90,7 +99,7 @@ $can = GetbibleHelper::getActions('password');
<?php if ($canDo->get('password.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'passwords.', $canCheckin); ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'passwords.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo $displayData->escape($item->name); ?>
@ -104,26 +113,26 @@ $can = GetbibleHelper::getActions('password');
</td>
<?php if ($item->published == 1): ?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>
<span class="status-metro status-published" title="<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0): ?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>
<span class="status-metro status-inactive" title="<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2): ?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>
<span class="status-metro status-archived" title="<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2): ?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>
<span class="status-metro status-trashed" title="<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
@ -136,7 +145,7 @@ $can = GetbibleHelper::getActions('password');
</table>
<?php else: ?>
<div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div>
<?php endif; ?>
</div>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -15,25 +15,32 @@
/------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use TrueChristianChurch\Joomla\Utilities\StringHelper;
use TrueChristianChurch\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvvtags;
$user = JFactory::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";
// set a return value
$return = ($id) ? "index.php?option=com_getbible&view=linker&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
$jinput = Factory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (GetbibleHelper::checkString($return))
if (StringHelper::check($return))
{
// set the referral values
$ref = ($id) ? "&ref=linker&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
@ -53,34 +60,34 @@ $can = GetbibleHelper::getActions('tagged_verse');
<div class="form-vertical">
<?php if ($can->get('tagged_verse.create')): ?>
<div class="btn-group">
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_GETBIBLE_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('linker.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo JText::_('COM_GETBIBLE_CLOSE_NEW'); ?></a>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo Text::_('COM_GETBIBLE_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('linker.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo Text::_('COM_GETBIBLE_CLOSE_NEW'); ?></a>
</div><br /><br />
<?php endif; ?>
<?php if (GetbibleHelper::checkArray($items)): ?>
<?php if (ArrayHelper::check($items)): ?>
<table class="footable table data tagged_verses" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
<thead>
<tr>
<th data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_TAGGED_VERSES_REFERENCE'); ?>
<?php echo Text::_('COM_GETBIBLE_TAGGED_VERSES_REFERENCE'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_TAGGED_VERSE_ABBREVIATION_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_TAGGED_VERSE_ABBREVIATION_LABEL'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_TAGGED_VERSE_ACCESS_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_TAGGED_VERSE_ACCESS_LABEL'); ?>
</th>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_TAGGED_VERSE_LINKER_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_TAGGED_VERSE_LINKER_LABEL'); ?>
</th>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_TAGGED_VERSE_TAG_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_TAGGED_VERSE_TAG_LABEL'); ?>
</th>
<th width="10" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_TAGGED_VERSE_STATUS'); ?>
<?php echo Text::_('COM_GETBIBLE_TAGGED_VERSE_STATUS'); ?>
</th>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_TAGGED_VERSE_ID'); ?>
<?php echo Text::_('COM_GETBIBLE_TAGGED_VERSE_ID'); ?>
</th>
</tr>
</thead>
@ -88,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 = JFactory::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>
@ -96,7 +105,7 @@ $can = GetbibleHelper::getActions('tagged_verse');
<?php if ($canDo->get('tagged_verse.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $displayData->escape($item->book_nr); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'tagged_verses.', $canCheckin); ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'tagged_verses.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo $displayData->escape($item->book_nr); ?>
@ -110,7 +119,7 @@ $can = GetbibleHelper::getActions('tagged_verse');
<?php endif; ?>
</td>
<td>
<?php echo JText::_($item->access); ?>
<?php echo Text::_($item->access); ?>
</td>
<td>
<?php echo $displayData->escape($item->linker_name); ?>
@ -124,26 +133,26 @@ $can = GetbibleHelper::getActions('tagged_verse');
</td>
<?php if ($item->published == 1): ?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>
<span class="status-metro status-published" title="<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0): ?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>
<span class="status-metro status-inactive" title="<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2): ?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>
<span class="status-metro status-archived" title="<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2): ?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>
<span class="status-metro status-trashed" title="<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
@ -156,7 +165,7 @@ $can = GetbibleHelper::getActions('tagged_verse');
</table>
<?php else: ?>
<div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div>
<?php endif; ?>
</div>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -37,7 +37,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'verse'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'note'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -39,7 +39,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'content'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -36,7 +36,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'index'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -39,7 +39,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -38,7 +38,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'book'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -38,7 +38,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'selected_word'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -37,7 +37,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'response_created'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -37,7 +37,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'total_tokens'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -15,25 +15,32 @@
/------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use TrueChristianChurch\Joomla\Utilities\StringHelper;
use TrueChristianChurch\Joomla\Utilities\ArrayHelper;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// set the defaults
$items = $displayData->vvymessage;
$user = JFactory::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";
// set a return value
$return = ($id) ? "index.php?option=com_getbible&view=open_ai_response&layout=edit&id=" . $id : "";
// check for a return value
$jinput = JFactory::getApplication()->input;
$jinput = Factory::getApplication()->input;
if ($_return = $jinput->get('return', null, 'base64'))
{
$return .= "&return=" . $_return;
}
// check if return value was set
if (GetbibleHelper::checkString($return))
if (StringHelper::check($return))
{
// set the referral values
$ref = ($id) ? "&ref=open_ai_response&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
@ -45,27 +52,27 @@ else
?>
<div class="form-vertical">
<?php if (GetbibleHelper::checkArray($items)): ?>
<?php if (ArrayHelper::check($items)): ?>
<table class="footable table data open_ai_messages" data-show-toggle="true" data-toggle-column="first" data-sorting="true" data-paging="true" data-paging-size="20" data-filtering="true">
<thead>
<tr>
<th data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_OPEN_AI_MESSAGE_ROLE_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_OPEN_AI_MESSAGE_ROLE_LABEL'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_OPEN_AI_MESSAGE_OPEN_AI_RESPONSE_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_OPEN_AI_MESSAGE_OPEN_AI_RESPONSE_LABEL'); ?>
</th>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_OPEN_AI_MESSAGE_PROMPT_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_OPEN_AI_MESSAGE_PROMPT_LABEL'); ?>
</th>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo JText::_('COM_GETBIBLE_OPEN_AI_MESSAGE_SOURCE_LABEL'); ?>
<?php echo Text::_('COM_GETBIBLE_OPEN_AI_MESSAGE_SOURCE_LABEL'); ?>
</th>
<th width="10" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_OPEN_AI_MESSAGE_STATUS'); ?>
<?php echo Text::_('COM_GETBIBLE_OPEN_AI_MESSAGE_STATUS'); ?>
</th>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo JText::_('COM_GETBIBLE_OPEN_AI_MESSAGE_ID'); ?>
<?php echo Text::_('COM_GETBIBLE_OPEN_AI_MESSAGE_ID'); ?>
</th>
</tr>
</thead>
@ -73,18 +80,20 @@ 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 = JFactory::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>
<td>
<?php if ($canDo->get('open_ai_message.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo JText::_($item->role); ?></a>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo Text::_($item->role); ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'open_ai_messages.', $canCheckin); ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'open_ai_messages.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo JText::_($item->role); ?>
<?php echo Text::_($item->role); ?>
<?php endif; ?>
</td>
<td>
@ -98,30 +107,30 @@ else
<?php endif; ?>
</td>
<td>
<?php echo JText::_($item->source); ?>
<?php echo Text::_($item->source); ?>
</td>
<?php if ($item->published == 1): ?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_PUBLISHED'); ?>
<span class="status-metro status-published" title="<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0): ?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo JText::_('COM_GETBIBLE_INACTIVE'); ?>
<span class="status-metro status-inactive" title="<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>">
<?php echo Text::_('COM_GETBIBLE_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2): ?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo JText::_('COM_GETBIBLE_ARCHIVED'); ?>
<span class="status-metro status-archived" title="<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>">
<?php echo Text::_('COM_GETBIBLE_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2): ?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo JText::_('COM_GETBIBLE_TRASHED'); ?>
<span class="status-metro status-trashed" title="<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>">
<?php echo Text::_('COM_GETBIBLE_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
@ -134,7 +143,7 @@ else
</table>
<?php else: ?>
<div class="alert alert-no-items">
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
</div>
<?php endif; ?>
</div>

View File

@ -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();
@ -37,7 +37,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'top_p'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -38,7 +38,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'n'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -39,7 +39,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'password'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -15,9 +15,17 @@
/------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\LayoutHelper;
use TrueChristianChurch\Component\Getbible\Administrator\Helper\GetbibleHelper;
use TrueChristianChurch\Joomla\Utilities\Component\Helper;
// No direct access to this file
defined('JPATH_BASE') or die('Restricted access');
use VDM\Joomla\Utilities\Component\Helper;
defined('JPATH_BASE') or die;
// get the form
$form = $displayData->getForm();
@ -67,7 +75,7 @@ $hiddenFields = $displayData->get('hidden_fields') ?: array();
<?php endforeach; ?>
<?php else: ?>
<div class="alert alert-info">
<h4><?php echo JText::_('COM_GETBIBLE_OPEN_AI_DISABLED'); ?></h4>
<p><?php echo JText::_('COM_GETBIBLE_YOU_WILL_HAVE_TO_ENABLE_OPEN_AI_IN_THE_GLOBAL_OPTIONS_OF_YOUR_COMPONENT_SINCE_IT_IS_CURRENTLY_DISABLED'); ?></p>
<h4><?php echo Text::_('COM_GETBIBLE_OPEN_AI_DISABLED'); ?></h4>
<p><?php echo Text::_('COM_GETBIBLE_YOU_WILL_HAVE_TO_ENABLE_OPEN_AI_IN_THE_GLOBAL_OPTIONS_OF_YOUR_COMPONENT_SINCE_IT_IS_CURRENTLY_DISABLED'); ?></p>
</div>
<?php endif; ?>

View File

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

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -38,7 +38,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'messages'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'cache_advance_note'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -38,7 +38,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'response_retrieval_note'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'description'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -35,7 +35,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'name'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -40,7 +40,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'modified_by'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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();
@ -39,7 +39,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'id'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -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'
);
];
$hiddenFields = $displayData->get('hidden_fields') ?: array();
// 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; ?>

View File

@ -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();
@ -36,7 +36,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'book_nr'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

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