Compare commits

...

23 Commits
v2.1.0 ... 5.x

Author SHA1 Message Date
Robot 60e9e3b32d
Release of v5.0.0-beta2
First release of Sermon Distributor towards Joomla 5. Add PHP check to install/update class. Add Database check and fix to install/update class.
2024-05-03 07:46:28 +02:00
Robot 27a7c03ed8
Update on v5.0.0-beta1 (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 20:43:57 +02:00
Robot 4f0bb9ed7b
Update on v5.0.0-beta1 (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 20:32:33 +02:00
Robot 907e9b8d8f
Update on v5.0.0-beta1 (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 19:23:52 +02:00
Llewellyn van der Merwe 806fedaee2
Update octojpack config for J5. 2024-03-07 18:51:38 +02:00
Malachi van der Merwe 996ba96c78 Changes joomla_sermon_distributor_version to sermon_distributor_version in h-test.yml 2024-03-05 20:30:17 +00:00
Malachi van der Merwe 7673d14857 Fixes the ids names in h-test.yml 2024-03-05 20:30:17 +00:00
Malachi van der Merwe 3045f98ceb Fixes the ids names in h-test.yml 2024-03-05 20:30:17 +00:00
Malachi van der Merwe 502860ebfb Adds Joomla Sermon Distributor version, PHP version, and Apache version 2024-03-05 20:30:17 +00:00
Lemuel van der Merwe 721b25733c
Fixes the dropdown ids in g-security.yml 2024-03-05 16:01:59 +02:00
Lemuel van der Merwe 9d2cbb0f7a
Fixes the dropdown ids in a-bug.yml 2024-03-05 16:00:27 +02:00
Lemuel van der Merwe dd9b9aa30e
Adds Sermon Distributor version choice to g-security.yml 2024-03-05 15:02:22 +02:00
Lemuel van der Merwe 168636882d
Adds Sermon Distributor version, php version, and apache version choices to a-bug.yml 2024-03-05 14:52:39 +02:00
Llewellyn van der Merwe ab9db903ed
Update octojpack config for J5. 2024-03-05 12:26:51 +02:00
Llewellyn van der Merwe 1069746432
Moved the issue templates to the correct folder. 2024-03-05 12:04:36 +02:00
Malachi van der Merwe d7292ab43d Fixes indentation and text 2024-03-05 10:02:18 +00:00
Malachi van der Merwe 6923086cbb Fixes indentation and text 2024-03-05 10:02:18 +00:00
Malachi van der Merwe c983430461 Fixes indentation and text 2024-03-05 10:02:18 +00:00
Malachi van der Merwe 24a860fef6 Adds issue 2024-03-05 10:02:18 +00:00
Lemuel van der Merwe 961b1d0b8c
Fixes indentation and syntax in a-bug.yml 2024-03-05 11:36:26 +02:00
Lemuel van der Merwe 26ae45a46f
Adds ISSUE_TEMPLATE 2024-03-05 08:41:34 +02:00
Robot 9f0a07ff39
Stable release of v5.0.0-beta1
First release of [[[Component]]] towards Joomla 5.
2024-03-02 18:16:31 +02:00
Llewellyn van der Merwe b40bc5b293
Upgraded to JCB 3.1.24 2023-05-29 14:29:14 +02:00
832 changed files with 43473 additions and 82142 deletions

View File

@ -0,0 +1,139 @@
name: Bug Report
about: Draft a report to aid in our Debugging efforts.
title: "[BUG]: "
labels:
- bug
body:
- type: markdown
attributes:
value: |
We value your effort in reporting an bug! Your feedback is essential for us to address and fix the problem.
- type: textarea
id: what-happened
attributes:
label: What Happened?
description: Please provide a detailed description of the issue and explain what outcome you anticipate.
placeholder: Describe the issue you experienced.
value: ""
validations:
required: true
- type: markdown
attributes:
value: |
# Environment Details
- type: dropdown
id: joomla_version
attributes:
label: Which Joomla version are you using?
multiple: true
options:
- Latest
- Joomla 5
- Joomla 4
- Joomla 3
- Other
validations:
required: true
- type: dropdown
id: sermon_distributor_version
attributes:
label: Which Joomla Sermon Distributor version are you using?
multiple: true
options:
- Latest
- v5.0
- v3.0
- v2.1
- v2.0
- Other
validations:
required: true
- type: dropdown
id: php_version
attributes:
label: Which PHP version are you using?
multiple: true
options:
- Latest
- PHP 8.3
- PHP 8.2
- PHP 8.1
- PHP 8.0
- PHP 7.4
- Other
validations:
required: true
- type: dropdown
id: apache_version
attributes:
label: Which Apache version are you using?
multiple: true
options:
- Latest
- Apache 2.4
- Apache 2.2
- Apache 2.0
- Other
validations:
required: true
- type: dropdown
id: area
attributes:
label: Where did this issue occur?
multiple: true
options:
- Dashboard(admin_view)
- Preachers(admin_views)
- Preacher(admin_view)
- Sermons(admin_views)
- Sermon(admin_view)
- Sermon Categories(admin_views)
- Series List(admin_views)
- Series(admin_view)
- Statistics(admin_view)
- External Sources(admin_views)
- External Source(admin_view)
- Manual Updater(admin_view)
- Local Listings(admin_views)
- Help Documents(admin_views)
- Categories(site_views)
- Category(site_view)
- Preachers(site_views)
- Preacher(site_view)
- Series(site_view)
- Series List(site_views)
- Other
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: On which browsers did you encounter the issue?
multiple: true
options:
- Chrome
- Firefox
- Microsoft Edge
- Safari
- Opera
- Brave
- Vivaldi
validations:
required: true
- type: dropdown
id: os
attributes:
label: What operating system are you currently using?
multiple: true
options:
- Windows (Desktop)
- macOS (Desktop)
- Linux (Desktop)
- Other
validations:
required: true
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

View File

@ -0,0 +1,83 @@
name: Enhancement Request
about: Suggest an idea for Joomla-Sermon-Distributor
title: "[ENHANCEMENT]: "
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
Thank you for suggesting an enhancement! Your input is crucial for our innovation and progress. To assist us better, please share detailed information about your idea.
- type: textarea
id: enhancement-details
attributes:
label: Enhancement Details
description: Could you detail the enhancement you're suggesting? Explain the issue it addresses or the new feature it introduces.
placeholder: Please give an in-depth explanation of your proposed enhancement.
validations:
required: true
- type: markdown
attributes:
value: |
# Context and Priority
- type: dropdown
id: system
attributes:
label: On which Joomla version will this enhancement have an impact?
multiple: true
options:
- Joomla 5
- Joomla 4
- Joomla 3
- Other
validations:
required: true
- type: dropdown
id: area
attributes:
label: Which part of the extension will be affected by this enhancement?
multiple: true
options:
- Dashboard(admin_view)
- Preachers(admin_views)
- Preacher(admin_view)
- Sermons(admin_views)
- Sermon(admin_view)
- Sermons Categories(admin_views)
- Series List(admin_view)
- Series(admin_views)
- Statistics(admin_views)
- External Sources(admin_views)
- External Source(admin_view)
- Manual Updater(admin_view)
- Local Listings(admin_views)
- Help Documents(admin_views)
- Categories(site_views)
- Category(site_view)
- Preacher(site_view)
- Preachers(site_views)
- Series(site_view)
- Series List(site_views)
- Other
validations:
required: true
- type: textarea
id: benefits
attributes:
label: Expected Benefits
description: What advantages can be anticipated from this enhancement? How does it contribute to the improvement of the system?
placeholder: Detail the advantages that this enhancement will provide.
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Supply additional context or screenshots related to the enhancement request in this space.
validations:
required: false
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

View File

@ -0,0 +1,83 @@
name: Task
about: Create a task for project management
title: "[TASK]: "
labels:
- task
body:
- type: markdown
attributes:
value: |
Thanks for setting up the task! Tasks assist us in arranging and ranking our work. Kindly provide comprehensive details about the task for clarity and efficient tracking.
- type: textarea
id: task-details
attributes:
label: Task Details
description: Please describe the task. What are the specific actions required?
placeholder: Provide a detailed description of the task.
validations:
required: true
- type: markdown
attributes:
value: |
# Task Context and Priority
- type: dropdown
id: system
attributes:
label: Which Joomla version is this task related to?
multiple: true
options:
- Joomla 5
- Joomla 4
- Joomla 3
- Other
validations:
required: true
- type: dropdown
id: area
attributes:
label: Which area of the extension does this task impact?
multiple: true
options:
- Dashboard(admin_view)
- Preachers(admin_views)
- Preacher(admin_view)
- Sermons(admin_views)
- Sermon(admin_view)
- Sermon Categories(admin_views)
- Series List(admin_views)
- Series(admin_view)
- Statistics(admin_view)
- External Sources(admin_views)
- External Source(admin_view)
- Manual Updater(admin_view)
- Local Listings(admin_views)
- Help Documents(admin_views)
- Categories(site_views)
- Category(site_view)
- Preachers(site_views)
- Preacher(site_view)
- Series(site_view)
- Series List(site_views)
- Other
validations:
required: true
- type: textarea
id: task-objective
attributes:
label: Task Objective
description: What's the aim or purpose of this task? How will it contribute to the project or system's success?
placeholder: Describe the goal and anticipated result of the task.
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Please share any extra context, files, or screenshots that could aid in comprehending or carrying out the task.
validations:
required: false
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

View File

@ -0,0 +1,83 @@
name: Documentation
about: Propose improvements to the documentation or highlight any issues found within it.
title: "[DOCUMENTATION]: "
labels:
- documentation
body:
- type: markdown
attributes:
value: |
We appreciate your input on our documentation! Clear and comprehensive documentation plays a vital role in enabling users to effectively interact with our systems. To assist us in making improvements, kindly offer thorough details regarding your suggestion or the specific problem you've encountered.
- type: textarea
id: documentation-details
attributes:
label: Documentation Details
description: Please explain the specific problem with the documentation or the improvements you recommend. Is it a missing topic, unclear instructions, outdated content, or something else?
placeholder: Detail the issue with the documentation or suggest improvements..
validations:
required: true
- type: markdown
attributes:
value: |
# Specific Context
- type: dropdown
id: system
attributes:
label: Which Joomla version does this documentation relate to?
multiple: true
options:
- Joomla 5
- Joomla 4
- Joomla 3
- Other
validations:
required: true
- type: dropdown
id: area
attributes:
label: Which area of the extension does this documentation concern?
multiple: true
options:
- Dashboard(admin_view)
- Preachers(admin_views)
- Preacher(admin_view)
- Sermons(admin_views)
- Sermon(admin_view)
- Sermon Categories(admin_views)
- Series List(admin_views)
- Series(admin_view)
- Statistics(admin_view)
- External Sources(admin_views)
- External Source(admin_view)
- Manual Updater(admin_view)
- Local Listings(admin_views)
- Help Documents(admin_views)
- Categories(site_views)
- Category(site_view)
- Preachers(site_views)
- Preacher(site_view)
- Series(site_view)
- Series List(site_views)
- Other
validations:
required: true
- type: textarea
id: expected-outcome
attributes:
label: Expected Outcome
description: What outcomes do you anticipate from this change in documentation? How will it benifit the users or enhance the project?
placeholder: Explain the expected result of this change in the documentation.
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Share any extra details, files, or screenshots that could help in understanding or applying the documentation change.
validations:
required: false
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

View File

@ -0,0 +1,126 @@
name: Performance Issue
about: Recommend or propose performance improvements
title: "[PERFORMANCE]: "
labels:
- performance
body:
- type: markdown
attributes:
value: |
Appreciation for tackling performance challenges! Optimizing performance is vital for our system's efficiency and the user experience. Could you offer more comprehensive details to aid in identifying and resolving the suggested performance issue or improvement?
- type: textarea
id: performance-details
attributes:
label: Performance Details
description: Please outline the performance problem or the enhancements you propose. Is it related to speed, resource usage, responsiveness, or something else?
placeholder: Offer an in-depth explanation of the performance challenge or improvement.
validations:
required: true
- type: markdown
attributes:
value: |
# Affected Systems and Context
- type: dropdown
id: system
attributes:
label: Which Joomla version is affected by this performance issue?
multiple: true
options:
- Joomla 5
- Joomla 4
- Joomla 3
- Other
validations:
required: true
- type: dropdown
id: area
attributes:
label: Which part of the extension will be affected by this performance issue?
multiple: true
options:
- Dashboard(admin_view)
- Preachers(admin_views)
- Preacher(admin_view)
- Sermons(admin_views)
- Sermon(admin_view)
- Sermons Categories(admin_views)
- Series List(admin_view)
- Series(admin_views)
- Statistics(admin_views)
- External Sources(admin_views)
- External Source(admin_view)
- Manual Updater(admin_view)
- Local Listings(admin_views)
- Help Documents(admin_views)
- Categories(site_views)
- Category(site_view)
- Preacher(site_view)
- Preachers(site_views)
- Series(site_view)
- Series List(site_views)
- Other
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: Which browsers did you experience the performance problem on?
multiple: true
options:
- Chrome
- Firefox
- Microsoft Edge
- Safari
- Opera
- Brave
- Vivaldi
validations:
required: true
- type: dropdown
id: os
attributes:
label: Which operating system are you using?
multiple: true
options:
- Windows (Desktop)
- macOS (Desktop)
- Linux (Desktop)
- Other
validations:
required: true
- type: textarea
id: replication-steps
attributes:
label: Steps to Replicate
description: If possible, share a step-by-step guide to replicate the performance problem.
placeholder: Explain how to replicate the problem.
validations:
required: false
- type: textarea
id: impact-assessment
attributes:
label: Impact Assessment
description: How does the performance problem impact the system or its users? How severe is its effect?
placeholder: Explain the impact of the performance problem.
validations:
required: true
- type: textarea
id: proposed-solutions
attributes:
label: Proposed Solutions or Ideas
description: If you have any suggestions or ideas for resolving the performance problem, please share them here.
placeholder: Share any potential solutions or improvement problem.
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Provide any additional context, benchmarks, logs, or screenshots that might help in understanding or addressing the performance problem.
validations:
required: false
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

View File

@ -0,0 +1,86 @@
name: Refactoring Task
about: Recommend or identify the necessity for code refactoring.
title: "[REFACTOR]: "
labels:
- refactor
body:
- type: markdown
attributes:
value: |
We appreciate your commitment to enhancing the maintainability and quality of our codebase! Code refactoring plays a crucial role in ensuring our system remains efficient and easy to manage. To assist us effectively, please share comprehensive details about the refactoring task you are suggesting or identifying.
- type: textarea
id: refactoring-details
attributes:
label: Refactoring Details
description: Outline the refactoring task, specifying which code segment requires attention and the reasons behind this need. What improvements are expected from this refactoring?
placeholder: Provide an in-depth explanation of the refactoring task?
validations:
required: true
- type: markdown
attributes:
value: |
# Affected Components and Context
- type: dropdown
id: system
attributes:
label: Which Joomla version does this refactoring task relate to?
multiple: true
options:
- Joomla 5
- Joomla 4
- Joomla 3
- Other
validations:
required: true
- type: dropdown
id: area
attributes:
label: Which area of the extension will be impacted by this refactoring?
multiple: true
options:
- Dashboard(admin_view)
- Preachers(admin_views)
- Preacher(admin_view)
- Sermons(admin_views)
- Sermon(admin_view)
- Sermon Categories(admin_views)
- Series List(admin_views)
- Series(admin_view)
- Statistics(admin_view)
- External Sources(admin_views)
- External Source(admin_view)
- Manual Updater(admin_view)
- Local Listings(admin_views)
- Help Documents(admin_views)
- Categories(site_views)
- Category(site_view)
- Preachers(site_views)
- Preacher(site_view)
- Series(site_view)
- Series List(site_views)
- Back-end (Just Code)
- Front-end (Just GUI)
- All
- Other
validations:
required: true
- type: textarea
id: expected-outcome
attributes:
label: Expected Outcome
description: What benefits do you anticipate from this refactoring? How will it enhance the codebase or overall system?
placeholder: Explain the expected results of this refactoring.
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Share any further details or information, like code snippets, that could aid in comprehending or executing the refactoring task.
validations:
required: false
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

View File

@ -0,0 +1,64 @@
name: Security Issue
about: Identify a possible security risk.
title: "[SECURITY]: "
labels:
- security
body:
- type: markdown
attributes:
value: |
**⚠️ CRITICAL: Avoid sharing any sensitive or confidential details in this message.** Should you suspect a security flaw, please contact us directly at [joomla@vdm.io].
- type: textarea
id: security-general-description
attributes:
label: General Description
description: Offer a broad overview of the security concern, ensuring not to disclose any sensitive information.
placeholder: Provide a general description of the security problem.
validations:
required: true
- type: markdown
attributes:
value: |
# Affected Systems
- type: dropdown
id: joomla_version
attributes:
label: Which Joomla version could potentially be affected?
multiple: true
options:
- Latest
- Joomla 5
- Joomla 4
- Joomla 3
- All
- Other
validations:
required: true
- type: dropdown
id: sermon_distributor_version
attributes:
label: Which Joomla Sermon Distributor version could potentially be affected?
multiple: true
options:
- Latest
- v5.0
- v3.0
- v2.1
- v2.0
- All
- Other
validations:
required: true
- type: textarea
id: non-sensitive-details
attributes:
label: Non-Sensitive Details
description: If applicable, please offer further non-sensitive information or general observations regarding the security concern.
placeholder: Provide any relevant non-sensitive details or observations.
validations:
required: false
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

View File

@ -0,0 +1,127 @@
name: Test Issue
about: Recommend additional assessments or identify any problems with current tests.
title: "[TEST]: "
labels:
- test
body:
- type: markdown
attributes:
value: |
Thank you for your involvement in the testing phase of our initiative! Thorough testing is essential to uphold the integrity and dependability of our systems. Please provide detailed information to aid us in comprehending the testing activity or problem you're proposing or highlighting.
- type: textarea
id: testing-details
attributes:
label: Testing Details
description: Could you specify the testing task or concern? Are you proposing a new test, pointing out a defect in current tests, or identifying untested areas?
placeholder: Please offer an detailed description of the testing task or issue.
validations:
required: true
- type: markdown
attributes:
value: |
# Affected Components and Context
- type: dropdown
id: joomla_version
attributes:
label: Which Joomla version is this testing issue related to?
multiple: true
options:
- Latest
- Joomla 5
- Joomla 4
- Joomla 3
- Other
validations:
required: true
- type: dropdown
id: sermon_distributor_version
attributes:
label: Which Joomla Sermon Distributor version is this testing issue related to?
multiple: true
options:
- Latest
- v5.0
- v3.0
- v2.1
- v2.0
- Other
validations:
required: true
- type: dropdown
id: php_version
attributes:
label: Which PHP version is this testing issue related to?
multiple: true
options:
- Latest
- PHP 8.3
- PHP 8.2
- PHP 8.1
- PHP 8.0
- PHP 7.4
- Other
validations:
required: true
- type: dropdown
id: apache_version
attributes:
label: Which Apache version is this testing issue related to?
multiple: true
options:
- Latest
- Apache 2.4
- Apache 2.2
- Apache 2.0
- Other
validations:
required: true
- type: dropdown
id: area
attributes:
label: Which area of the extension does this testing task impact?
multiple: true
options:
- Dashboard(admin_view)
- Preachers(admin_views)
- Preacher(admin_view)
- Sermons(admin_views)
- Sermon(admin_view)
- Sermons Categories(admin_views)
- Series List(admin_view)
- Series(admin_views)
- Statistics(admin_views)
- External Sources(admin_views)
- External Source(admin_view)
- Manual Updater(admin_view)
- Local Listings(admin_views)
- Help Documents(admin_views)
- Categories(site_views)
- Category(site_view)
- Preacher(site_view)
- Preachers(site_views)
- Series(site_view)
- Series List(site_views)
- Other
validations:
required: true
- type: textarea
id: expected-outcome
attributes:
label: Expected Outcome
description: What do you expect to achieve with this testing task? How will it improve the system or its reliability?
placeholder: Describe the expected outcome of this testing task.
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Provide any additional context, testing scenarios, or information that might help in understanding or implementing the testing task.
validations:
required: false
- type: textarea
id: comments
attributes:
label: Additional Comments
description: Feel free to include any further comments or pertinent details that might assist us.

69
.octojpack Normal file
View File

@ -0,0 +1,69 @@
{
"global": {
"packager": "Vast Development Method",
"packager_url": "https://dev.vdm.io/",
"url": "git.vdm.dev",
"api": "https://git.vdm.dev/api/v1"
},
"package": {
"name": "PKG_SERMONDISTRIBUTOR",
"code_name": "sermondistributor",
"package_name": "pkg_sermondistributor",
"min_joomla_version": "5.0",
"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",
"license_file": "LICENSE",
"author": "Llewellyn van der Merwe",
"author_email": "joomla@vdm.io",
"author_url": "https://io.vdm.dev/",
"description": "The Sermon Distributor.",
"version_id": "com_sermondistributor",
"update_servers": "https://git.vdm.dev/christian/Joomla-Sermon-Distributor/raw/branch/5.x/sermondistributor_update_server.xml"
},
"repository": {
"owner": "christian",
"repo": "pkg-sermondistributor",
"branch": "5.x"
},
"files": [
{
"owner": "christian",
"repo": "Joomla-Sermon-Distributor",
"id": "com_sermondistributor",
"type": "component",
"mode": "5.x"
},
{
"owner": "getBible",
"repo": "daily-light-module",
"id": "mod_dailylight",
"type": "module",
"client": "site",
"mode": "master"
},
{
"owner": "getBible",
"repo": "daily-scripture-module",
"id": "mod_dailyscripture",
"type": "module",
"client": "site",
"mode": "master"
}
],
"languages": [
{
"tag": "en-GB",
"ini": "sys.ini",
"key": "PKG_SERMONDISTRIBUTOR",
"value": "Sermon Distributor Package"
},
{
"tag": "en-GB",
"ini": "ini",
"key": "PKG_SERMONDISTRIBUTOR",
"value": "Sermon Distributor Package"
}
]
}

16
CHANGELOG.md Normal file
View File

@ -0,0 +1,16 @@
# v5.0.0-beta2
- First release of Sermon Distributor towards Joomla 5
- Add PHP check to install/update class
- Add Database check and fix to install/update class
# v4.0.0-beta2
- First release of Sermon Distributor towards Joomla 4
- Add PHP check to install/update class
- Add Database check and fix to install/update class
# v3.0.5
- Add PHP check to install/update class
- Add Database check and fix to install/update class

View File

@ -1,10 +1,10 @@
# Sermon Distributor (2.1.x)
# Sermon Distributor (5.0.x)
![Sermon Distributor image](https://raw.githubusercontent.com/Llewellynvdm/Joomla-Sermon-Distributor/master/admin/assets/images/vdm-component.jpg "The Sermon Distributor")
![Sermon Distributor image](https://git.vdm.dev/christian/Joomla-Sermon-Distributor/raw/branch/master/admin/assets/images/vdm-component.jpg "The Sermon Distributor")
Distributor is a highly advanced sermon distributor that runs on the [Joomla 3.x](http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox.
Distributor is a highly advanced sermon distributor that runs on the [Joomla 4.x & 5.x](http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox.
The best way to see all your options is to install this component on you Joomla website and test all features yourself. Here is a [direct download link](https://github.com/SermonDistributor/Joomla-3-Component/archive/master.zip)
The best way to see all your options is to install this component on you Joomla website and test all features yourself. Here is a [direct download link](https://git.vdm.dev/christian/Joomla-Sermon-Distributor/archive/master.zip)
**If you like our component please rate it on the [Joomla Index](http://extensions.joomla.org/extensions/extension/living/religion/sermon-distributor)**
@ -24,74 +24,38 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 27th May, 2022
+ *Version*: 2.1.x
+ *Last Build*: 3rd May, 2024
+ *Version*: 5.0.x
+ *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 :hourglass:
**206 Hours** or **26 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder))
**263 Hours** or **33 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*: **74036**
+ *File count*: **472**
+ *Folder count*: **99**
+ *Line count*: **94142**
+ *File count*: **602**
+ *Folder count*: **124**
**137 Hours** or **17 Eight Hour Days** (the actual time the author spent)
**173 Hours** or **22 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
> **debugging @52hours** = codingtime / 4;
> **planning @29hours** = codingtime / 7;
> **mapping @21hours** = codingtime / 10;
> **office @34hours** = codingtime / 6;)
> **debugging @66hours** = codingtime / 4;
> **planning @38hours** = codingtime / 7;
> **mapping @26hours** = codingtime / 10;
> **office @44hours** = codingtime / 6;)
**343 Hours** or **43 Eight Hour Days**
**436 Hours** or **55 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: **8.6 weeks** or **1.8 months**
Project duration: **11 weeks** or **2.3 months**
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
## Contributors
This project exists thanks to all the people who contribute to the [Joomla Component Builder Project](https://github.com/vdm-io/Joomla-Component-Builder).
[![Contributors](https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false)](https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors)
### Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/Joomla-Component-Builder#backer)]
[![Our Backers on opencollective](https://opencollective.com/Joomla-Component-Builder/backers.svg?width=890)](https://opencollective.com/Joomla-Component-Builder#backers)
### Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/Joomla-Component-Builder#sponsor)]
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/0/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/0/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/1/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/1/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/2/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/2/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/3/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/3/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/4/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/4/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/5/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/5/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/6/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/7/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/8/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/9/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/10/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/10/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/11/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/11/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/12/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/12/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/13/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/13/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/14/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/14/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/15/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/15/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/16/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/16/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/17/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/17/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/18/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/18/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/19/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/19/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/20/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/20/website)
> This **component** was build with a Joomla [Automated Component Builder](https://www.joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
# Sermon Distributor (2.1.x)
# Sermon Distributor (5.0.x)
![Sermon Distributor image](https://raw.githubusercontent.com/Llewellynvdm/Joomla-Sermon-Distributor/master/admin/assets/images/vdm-component.jpg "The Sermon Distributor")
![Sermon Distributor image](https://git.vdm.dev/christian/Joomla-Sermon-Distributor/raw/branch/master/admin/assets/images/vdm-component.jpg "The Sermon Distributor")
Distributor is a highly advanced sermon distributor that runs on the [Joomla 3.x](http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox.
Distributor is a highly advanced sermon distributor that runs on the [Joomla 4.x & 5.x](http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox.
The best way to see all your options is to install this component on you Joomla website and test all features yourself. Here is a [direct download link](https://github.com/SermonDistributor/Joomla-3-Component/archive/master.zip)
The best way to see all your options is to install this component on you Joomla website and test all features yourself. Here is a [direct download link](https://git.vdm.dev/christian/Joomla-Sermon-Distributor/archive/master.zip)
**If you like our component please rate it on the [Joomla Index](http://extensions.joomla.org/extensions/extension/living/religion/sermon-distributor)**
@ -24,74 +24,38 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 27th May, 2022
+ *Version*: 2.1.x
+ *Last Build*: 3rd May, 2024
+ *Version*: 5.0.x
+ *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 :hourglass:
**206 Hours** or **26 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder))
**263 Hours** or **33 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*: **74036**
+ *File count*: **472**
+ *Folder count*: **99**
+ *Line count*: **94142**
+ *File count*: **602**
+ *Folder count*: **124**
**137 Hours** or **17 Eight Hour Days** (the actual time the author spent)
**173 Hours** or **22 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
> **debugging @52hours** = codingtime / 4;
> **planning @29hours** = codingtime / 7;
> **mapping @21hours** = codingtime / 10;
> **office @34hours** = codingtime / 6;)
> **debugging @66hours** = codingtime / 4;
> **planning @38hours** = codingtime / 7;
> **mapping @26hours** = codingtime / 10;
> **office @44hours** = codingtime / 6;)
**343 Hours** or **43 Eight Hour Days**
**436 Hours** or **55 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: **8.6 weeks** or **1.8 months**
Project duration: **11 weeks** or **2.3 months**
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
## Contributors
This project exists thanks to all the people who contribute to the [Joomla Component Builder Project](https://github.com/vdm-io/Joomla-Component-Builder).
[![Contributors](https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false)](https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors)
### Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/Joomla-Component-Builder#backer)]
[![Our Backers on opencollective](https://opencollective.com/Joomla-Component-Builder/backers.svg?width=890)](https://opencollective.com/Joomla-Component-Builder#backers)
### Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/Joomla-Component-Builder#sponsor)]
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/0/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/0/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/1/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/1/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/2/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/2/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/3/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/3/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/4/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/4/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/5/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/5/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/6/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/7/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/8/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/9/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/10/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/10/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/11/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/11/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/12/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/12/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/13/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/13/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/14/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/14/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/15/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/15/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/16/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/16/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/17/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/17/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/18/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/18/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/19/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/19/website)
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/20/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/20/website)
> 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

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage admin.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage dashboard.css
@ -24,153 +24,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;
}

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage external_source.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage external_sources.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage help_document.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage help_documents.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage local_listing.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage local_listings.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage manual_updater.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage preacher.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage preachers.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage series.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage series_list.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermon.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermons.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage statistic.css

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage statistics.css

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -9,7 +9,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage admin.js

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<fieldset
addrulepath="/administrator/components/com_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
name="global_config"
label="COM_SERMONDISTRIBUTOR_CONFIG_GLOBAL_LABEL"
description="COM_SERMONDISTRIBUTOR_CONFIG_GLOBAL_DESC">
@ -301,17 +301,17 @@
name="uikit_config"
label="COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_LABEL"
description="COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_DESC">
<field name="uikit_version"
<field name="add_jquery_framework"
type="radio"
label="COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_VERSION_DESC"
label="COM_SERMONDISTRIBUTOR_CONFIG_JQUERY_LOAD_LABEL"
description="COM_SERMONDISTRIBUTOR_CONFIG_JQUERY_LOAD_DESC"
class="btn-group btn-group-yesno"
default="2">
default="">
<!-- Option Set. -->
<option value="2">
COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_V2</option>"
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_V3</option>"
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_JQUERY_REMOVE</option>"
<option value="1">
COM_SERMONDISTRIBUTOR_CONFIG_JQUERY_LOAD</option>"
</field>
<field name="uikit_load"
type="radio"
@ -324,8 +324,6 @@
COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LOAD</option>"
<option value="1">
COM_SERMONDISTRIBUTOR_CONFIG_FORCE_LOAD</option>"
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_ONLY_EXTRA</option>"
<option value="2">
COM_SERMONDISTRIBUTOR_CONFIG_DONT_LOAD</option>"
</field>
@ -341,21 +339,6 @@
<option value=".min">
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>"
</field>
<field name="uikit_style"
type="radio"
label="COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_STYLE_LABEL"
description="COM_SERMONDISTRIBUTOR_CONFIG_UIKIT_STYLE_DESC"
class="btn-group btn-group-yesno"
showon="uikit_version:2"
default="">
<!-- Option Set. -->
<option value="">
COM_SERMONDISTRIBUTOR_CONFIG_FLAT_LOAD</option>"
<option value=".almost-flat">
COM_SERMONDISTRIBUTOR_CONFIG_ALMOST_FLAT_LOAD</option>"
<option value=".gradient">
COM_SERMONDISTRIBUTOR_CONFIG_GRADIANT_LOAD</option>"
</field>
</fieldset>
<fieldset
name="encryption_config"

View File

@ -1,132 +0,0 @@
<?php
/*-------------------------------------------------------------------------------------------------------------| www.vdm.io |------/
____ ____ __ __ __
/\ _`\ /\ _`\ __ /\ \__ __/\ \ /\ \__
\ \,\L\_\ __ _ __ ___ ___ ___ ___ \ \ \/\ \/\_\ ____\ \ ,_\ _ __ /\_\ \ \____ __ __\ \ ,_\ ___ _ __
\/_\__ \ /'__`\/\`'__\/' __` __`\ / __`\ /' _ `\ \ \ \ \ \/\ \ /',__\\ \ \/ /\`'__\/\ \ \ '__`\/\ \/\ \\ \ \/ / __`\/\`'__\
/\ \L\ \/\ __/\ \ \/ /\ \/\ \/\ \/\ \L\ \/\ \/\ \ \ \ \_\ \ \ \/\__, `\\ \ \_\ \ \/ \ \ \ \ \L\ \ \ \_\ \\ \ \_/\ \L\ \ \ \/
\ `\____\ \____\\ \_\ \ \_\ \_\ \_\ \____/\ \_\ \_\ \ \____/\ \_\/\____/ \ \__\\ \_\ \ \_\ \_,__/\ \____/ \ \__\ \____/\ \_\
\/_____/\/____/ \/_/ \/_/\/_/\/_/\/___/ \/_/\/_/ \/___/ \/_/\/___/ \/__/ \/_/ \/_/\/___/ \/___/ \/__/\/___/ \/_/
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage controller.php
@author Llewellyn van der Merwe <https://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
A sermon distributor that links to Dropbox.
/----------------------------------------------------------------------------------------------------------------------------------*/
// 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 Sermondistributor component
*/
class SermondistributorController 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'] = 'sermondistributor';
parent::__construct($config);
}
/**
* display task
*
* @return void
*/
function display($cachable = false, $urlparams = false)
{
// set default view if not set
$view = $this->input->getCmd('view', 'sermondistributor');
$data = $this->getViewRelation($view);
$layout = $this->input->get('layout', null, 'WORD');
$id = $this->input->getInt('id');
// Check for edit form.
if(SermondistributorHelper::checkArray($data))
{
if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_sermondistributor.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 && SermondistributorHelper::checkString($ref))
{
// redirect to item of ref
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false));
}
elseif (SermondistributorHelper::checkString($ref))
{
// redirect to ref
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.(string)$ref, false));
}
else
{
// normal redirect back to the list view
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view='.$data['views'], false));
}
return false;
}
}
return parent::display($cachable, $urlparams);
}
protected function getViewRelation($view)
{
// check the we have a value
if (SermondistributorHelper::checkString($view))
{
// the view relationships
$views = array(
'preacher' => 'preachers',
'sermon' => 'sermons',
'series' => 'series_list',
'statistic' => 'statistics',
'external_source' => 'external_sources',
'local_listing' => 'local_listings',
'help_document' => 'help_documents'
);
// check if this is a list view
if (in_array($view, $views))
{
// this is a list view
return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
}
// check if it is an edit view
elseif (array_key_exists($view, $views))
{
// this is a edit view
return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
}
}
return false;
}
}

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -73,6 +76,7 @@
label="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -357,7 +361,7 @@
hint="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_OAUTHTOKEN_HINT"
/>
</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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<fields name="filter">
<field
@ -17,7 +17,7 @@
name="published"
label="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED"
description="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED_EXTERNAL_SOURCES"
onchange="this.form.submit();"
class="js-select-submit-on-change"
>
<option value="">JOPTION_SELECT_PUBLISHED</option>
</field>
@ -26,21 +26,21 @@
name="externalsources"
label="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_EXTERNALSOURCES_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="externalsourcesfilterupdatemethod"
name="update_method"
label="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_UPDATE_METHOD_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="externalsourcesfilterbuild"
name="build"
label="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_BUILD_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<input type="hidden" name="form_submited" value="1"/>
</fields>
@ -49,9 +49,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"
>
@ -75,11 +74,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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<fields name="filter">
<field
@ -17,46 +17,46 @@
name="published"
label="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED"
description="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED_HELP_DOCUMENTS"
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="helpdocumentsfiltertype"
name="type"
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="helpdocumentsfilterlocation"
name="location"
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="adminviewfolderlist"
name="admin_view"
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="siteviewfolderlist"
name="site_view"
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_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"
>
@ -82,10 +81,10 @@
<option value="a.type DESC">COM_SERMONDISTRIBUTOR_FILTER_TYPE_DESCENDING</option>
<option value="a.location ASC">COM_SERMONDISTRIBUTOR_FILTER_LOCATION_ASCENDING</option>
<option value="a.location DESC">COM_SERMONDISTRIBUTOR_FILTER_LOCATION_DESCENDING</option>
<option value="g. ASC">COM_SERMONDISTRIBUTOR_FILTER_ADMIN_VIEWS_ASCENDING</option>
<option value="g. DESC">COM_SERMONDISTRIBUTOR_FILTER_ADMIN_VIEWS_DESCENDING</option>
<option value="h. ASC">COM_SERMONDISTRIBUTOR_FILTER_SITE_VIEWS_ASCENDING</option>
<option value="h. DESC">COM_SERMONDISTRIBUTOR_FILTER_SITE_VIEWS_DESCENDING</option>
<option value="h. ASC">COM_SERMONDISTRIBUTOR_FILTER_ADMIN_VIEWS_ASCENDING</option>
<option value="h. DESC">COM_SERMONDISTRIBUTOR_FILTER_ADMIN_VIEWS_DESCENDING</option>
<option value="i. ASC">COM_SERMONDISTRIBUTOR_FILTER_SITE_VIEWS_ASCENDING</option>
<option value="i. DESC">COM_SERMONDISTRIBUTOR_FILTER_SITE_VIEWS_DESCENDING</option>
<option value="a.id ASC">JGRID_HEADING_ID_ASC</option>
<option value="a.id DESC">JGRID_HEADING_ID_DESC</option>
</field>
@ -93,11 +92,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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<fields name="filter">
<field
@ -17,7 +17,7 @@
name="published"
label="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED"
description="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED_LOCAL_LISTINGS"
onchange="this.form.submit();"
class="js-select-submit-on-change"
>
<option value="">JOPTION_SELECT_PUBLISHED</option>
</field>
@ -26,14 +26,14 @@
name="build"
label="COM_SERMONDISTRIBUTOR_LOCAL_LISTING_BUILD_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="externalsource"
name="external_source"
label="COM_SERMONDISTRIBUTOR_LOCAL_LISTING_EXTERNAL_SOURCE_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"
>
@ -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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<fields name="filter">
<field
@ -17,18 +17,18 @@
name="published"
label="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED"
description="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED_PREACHERS"
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"
/>
<input type="hidden" name="form_submited" value="1"/>
</fields>
@ -37,9 +37,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"
>
@ -59,11 +58,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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<fields name="filter">
<field
@ -17,18 +17,18 @@
name="published"
label="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED"
description="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED_SERIES_LIST"
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"
/>
<input type="hidden" name="form_submited" value="1"/>
</fields>
@ -37,9 +37,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"
>
@ -57,11 +56,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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<fields name="filter">
<field
@ -17,7 +17,7 @@
name="published"
label="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED"
description="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED_SERMONS"
onchange="this.form.submit();"
class="js-select-submit-on-change"
>
<option value="">JOPTION_SELECT_PUBLISHED</option>
</field>
@ -27,49 +27,51 @@
label="COM_SERMONDISTRIBUTOR_SERMON_SERMONS_CATEGORIES"
description="JOPTION_FILTER_CATEGORY_DESC"
multiple="true"
class="multipleCategories"
class="js-select-submit-on-change"
extension="com_sermondistributor.sermon"
onchange="this.form.submit();"
layout="joomla.form.field.list-fancy-select"
published="0,1,2"
/>
<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="preachers"
name="preacher"
label="COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL"
class="multiplePreachers"
layout="joomla.form.field.list-fancy-select"
multiple="true"
onchange="this.form.submit();"
hint="COM_SERMONDISTRIBUTOR_FILTER_SELECT_PREACHER"
class="js-select-submit-on-change"
/>
<field
type="series"
name="series"
label="COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL"
class="multipleSeries"
layout="joomla.form.field.list-fancy-select"
multiple="true"
onchange="this.form.submit();"
hint="COM_SERMONDISTRIBUTOR_FILTER_SELECT_SERIES"
class="js-select-submit-on-change"
/>
<field
type="sermonsfilterlinktype"
name="link_type"
label="COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="sermonsfiltersource"
name="source"
label="COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<input type="hidden" name="form_submited" value="1"/>
</fields>
@ -78,9 +80,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"
>
@ -110,11 +111,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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<fields name="filter">
<field
@ -17,39 +17,39 @@
name="published"
label="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED"
description="COM_SERMONDISTRIBUTOR_FILTER_PUBLISHED_STATISTICS"
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="sermon"
name="sermon"
label="COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="preachers"
name="preacher"
label="COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL"
multiple="false"
onchange="this.form.submit();"
class="js-select-submit-on-change"
/>
<field
type="series"
name="series"
label="COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_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,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -139,9 +143,9 @@
<option value="3">
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL</option>
</field>
<!-- Groups Field. Type: Usergroup. (joomla) -->
<!-- Groups Field. Type: Usergrouplist. (custom) -->
<field
type="usergroup"
type="usergrouplist"
name="groups"
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS_LABEL"
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_GROUPS_DESCRIPTION"
@ -170,6 +174,7 @@
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL"
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION"
class="list_class"
layout="joomla.form.field.list-fancy-select"
multiple="false"
default=""
required="true"
@ -182,8 +187,8 @@
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL"
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION"
class="list_class"
layout="joomla.form.field.list-fancy-select"
multiple="false"
default=""
required="true"
button="false"
/>
@ -218,6 +223,7 @@
name="article"
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ARTICLE_LABEL"
class="list_class"
layout="joomla.form.field.list-fancy-select"
multiple="false"
default="0"
required="true"
@ -229,7 +235,6 @@
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_LABEL"
size="60"
maxlength="150"
default=""
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_DESCRIPTION"
class="text_area"
required="true"
@ -284,7 +289,7 @@
/>
</fieldset>
</fields>
<!-- 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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -73,6 +76,7 @@
label="COM_SERMONDISTRIBUTOR_LOCAL_LISTING_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_LOCAL_LISTING_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -173,7 +177,7 @@
hint="COM_SERMONDISTRIBUTOR_LOCAL_LISTING_URL_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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_SERMONDISTRIBUTOR_PREACHER_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_PREACHER_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -120,6 +124,8 @@
maxlength="150"
description="COM_SERMONDISTRIBUTOR_PREACHER_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_SERMONDISTRIBUTOR_PREACHER_NAME_MESSAGE"
@ -213,7 +219,7 @@
/>
</fieldset>
</fields>
<!-- 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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_SERMONDISTRIBUTOR_SERIES_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_SERIES_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -120,6 +124,8 @@
maxlength="150"
description="COM_SERMONDISTRIBUTOR_SERIES_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_SERMONDISTRIBUTOR_SERIES_NAME_MESSAGE"
@ -201,7 +207,7 @@
/>
</fieldset>
</fields>
<!-- 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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_SERMONDISTRIBUTOR_SERMON_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_SERMON_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -120,6 +124,8 @@
maxlength="150"
description="COM_SERMONDISTRIBUTOR_SERMON_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_SERMONDISTRIBUTOR_SERMON_NAME_MESSAGE"
@ -253,7 +259,6 @@
mode="ajax"
label="COM_SERMONDISTRIBUTOR_SERMON_TAGS_LABEL"
description="COM_SERMONDISTRIBUTOR_SERMON_TAGS_DESCRIPTION"
class="inputbox small"
published="true"
multiple="true"
/>
@ -373,7 +378,7 @@
/>
</fieldset>
</fields>
<!-- 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_sermondistributor/models/rules"
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
addruleprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Rule"
addfieldprefix="TrueChristianChurch\Component\Sermondistributor\Administrator\Field"
>
<config>
<inlinehelp button="show"/>
</config>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
@ -81,6 +84,7 @@
label="COM_SERMONDISTRIBUTOR_STATISTIC_VERSION_LABEL"
description="COM_SERMONDISTRIBUTOR_STATISTIC_VERSION_DESC"
size="6"
default="1"
readonly="true"
filter="unset"
/>
@ -202,7 +206,7 @@
/>
</fieldset>
</fields>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->

View File

@ -1,91 +0,0 @@
<?php
/*-------------------------------------------------------------------------------------------------------------| www.vdm.io |------/
____ ____ __ __ __
/\ _`\ /\ _`\ __ /\ \__ __/\ \ /\ \__
\ \,\L\_\ __ _ __ ___ ___ ___ ___ \ \ \/\ \/\_\ ____\ \ ,_\ _ __ /\_\ \ \____ __ __\ \ ,_\ ___ _ __
\/_\__ \ /'__`\/\`'__\/' __` __`\ / __`\ /' _ `\ \ \ \ \ \/\ \ /',__\\ \ \/ /\`'__\/\ \ \ '__`\/\ \/\ \\ \ \/ / __`\/\`'__\
/\ \L\ \/\ __/\ \ \/ /\ \/\ \/\ \/\ \L\ \/\ \/\ \ \ \ \_\ \ \ \/\__, `\\ \ \_\ \ \/ \ \ \ \ \L\ \ \ \_\ \\ \ \_/\ \L\ \ \ \/
\ `\____\ \____\\ \_\ \ \_\ \_\ \_\ \____/\ \_\ \_\ \ \____/\ \_\/\____/ \ \__\\ \_\ \ \_\ \_,__/\ \____/ \ \__\ \____/\ \_\
\/_____/\/____/ \/_/ \/_/\/_/\/_/\/___/ \/_/\/_/ \/___/ \/_/\/___/ \/__/ \/_/ \/_/\/___/ \/___/ \/__/\/___/ \/_/
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage batch_.php
@author Llewellyn van der Merwe <https://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
A sermon distributor that links to Dropbox.
/----------------------------------------------------------------------------------------------------------------------------------*/
// 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;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@ COM_SERMONDISTRIBUTOR_EXPORT_DATA_DESC="Allows users in this group to export dat
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_ACCESS="External Sources Access"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_ACCESS_DESC="Allows the users in this group to access access external sources"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_BATCH_USE="External Sources Batch Use"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch external sources"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch external sources"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_CREATE="External Sources Create"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_CREATE_DESC="Allows the users in this group to create create external sources"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DASHBOARD_ADD="External Sources Dashboard Add"
@ -35,7 +35,7 @@ COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OWN_DESC="Allows the users in this g
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_STATE="External Sources Edit State"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_STATE_DESC="Allows the users in this group to update the state of the external source"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_VERSION="External Sources Edit Version"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version external sources"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version external sources"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EXPORT="External Sources Export"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EXPORT_DESC="Allows the users in this group to export export external sources"
COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_IMPORT="External Sources Import"
@ -49,7 +49,7 @@ COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_RESET_UPDATE_STATUS_BUTTON_ACCESS_DESC="Al
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_ACCESS="Help Documents Access"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_ACCESS_DESC="Allows the users in this group to access access help documents"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_USE="Help Documents Batch Use"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch help documents"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch help documents"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_CREATE="Help Documents Create"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_CREATE_DESC="Allows the users in this group to create create help documents"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_DASHBOARD_LIST="Help Documents Dashboard List"
@ -63,7 +63,7 @@ COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_OWN_DESC="Allows the users in this gro
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_STATE="Help Documents Edit State"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_STATE_DESC="Allows the users in this group to update the state of the help document"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_VERSION="Help Documents Edit Version"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version help documents"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version help documents"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EXPORT="Help Documents Export"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EXPORT_DESC="Allows the users in this group to export export help documents"
COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_IMPORT="Help Documents Import"
@ -75,7 +75,7 @@ COM_SERMONDISTRIBUTOR_IMPORT_DATA_DESC="Allows users in this group to import dat
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_ACCESS="Local Listings Access"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_ACCESS_DESC="Allows the users in this group to access access local listings"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_BATCH_USE="Local Listings Batch Use"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch local listings"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch local listings"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_CREATE="Local Listings Create"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_CREATE_DESC="Allows the users in this group to create create local listings"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_DASHBOARD_LIST="Local Listings Dashboard List"
@ -105,7 +105,7 @@ COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_STATE_DESC="Allows the users in this g
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_URL="Local Listings Edit Url"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_URL_DESC="Allows the users in this group to edit url of local listing"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_VERSION="Local Listings Edit Version"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version local listings"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version local listings"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EXPORT="Local Listings Export"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EXPORT_DESC="Allows the users in this group to export export local listings"
COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_IMPORT="Local Listings Import"
@ -120,13 +120,15 @@ COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_EXTERNAL_SOURCES_BUTTON_ACCESS="Manual Upda
COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_EXTERNAL_SOURCES_BUTTON_ACCESS_DESC="Allows the users in this group to access the external sources button."
COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_SUBMENU="Manual Updater Submenu"
COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_SUBMENU_DESC="Allows the users in this group to submenu of Manual Updater"
COM_SERMONDISTRIBUTOR_MENU="&#187; Sermon Distributor"
COM_SERMONDISTRIBUTOR_MENU="Sermon Distributor"
COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_DESC="All categories that are published"
COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_OPTION="Categories"
COM_SERMONDISTRIBUTOR_MENU_CATEGORIES_TITLE="Categories"
COM_SERMONDISTRIBUTOR_MENU_CATEGORY_DESC="A category that is published"
COM_SERMONDISTRIBUTOR_MENU_CATEGORY_OPTION="Category"
COM_SERMONDISTRIBUTOR_MENU_CATEGORY_TITLE="Category"
COM_SERMONDISTRIBUTOR_MENU_DASHBOARD="Dashboard"
COM_SERMONDISTRIBUTOR_MENU_MANUAL_UPDATER="Manual Updater"
COM_SERMONDISTRIBUTOR_MENU_PREACHERS="Preachers"
COM_SERMONDISTRIBUTOR_MENU_PREACHERS_DESC="All preachers that are published"
COM_SERMONDISTRIBUTOR_MENU_PREACHERS_OPTION="Preachers"
@ -147,7 +149,7 @@ COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_DESC="Allows the users in this group to a
COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_SITE="Preachers (Site) Access"
COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_SITE_DESC="Allows the users in this group to access site preachers."
COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_USE="Preachers Batch Use"
COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch preachers"
COM_SERMONDISTRIBUTOR_PREACHERS_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch preachers"
COM_SERMONDISTRIBUTOR_PREACHERS_CREATE="Preachers Create"
COM_SERMONDISTRIBUTOR_PREACHERS_CREATE_DESC="Allows the users in this group to create create preachers"
COM_SERMONDISTRIBUTOR_PREACHERS_DASHBOARD_ADD="Preachers Dashboard Add"
@ -167,7 +169,7 @@ COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_OWN_DESC="Allows the users in this group to
COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_STATE="Preachers Edit State"
COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the preacher"
COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_VERSION="Preachers Edit Version"
COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version preachers"
COM_SERMONDISTRIBUTOR_PREACHERS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version preachers"
COM_SERMONDISTRIBUTOR_PREACHERS_EXPORT="Preachers Export"
COM_SERMONDISTRIBUTOR_PREACHERS_EXPORT_DESC="Allows the users in this group to export export preachers"
COM_SERMONDISTRIBUTOR_PREACHERS_IMPORT="Preachers Import"
@ -183,7 +185,7 @@ COM_SERMONDISTRIBUTOR_SERIES_LIST_ACCESS_DESC="Allows the users in this group to
COM_SERMONDISTRIBUTOR_SERIES_LIST_ACCESS_SITE="Series List (Site) Access"
COM_SERMONDISTRIBUTOR_SERIES_LIST_ACCESS_SITE_DESC="Allows the users in this group to access site series list."
COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_USE="Series List Batch Use"
COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch series list"
COM_SERMONDISTRIBUTOR_SERIES_LIST_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch series list"
COM_SERMONDISTRIBUTOR_SERIES_LIST_CREATE="Series List Create"
COM_SERMONDISTRIBUTOR_SERIES_LIST_CREATE_DESC="Allows the users in this group to create create series list"
COM_SERMONDISTRIBUTOR_SERIES_LIST_DASHBOARD_ADD="Series List Dashboard Add"
@ -203,7 +205,7 @@ COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_OWN_DESC="Allows the users in this group
COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_STATE="Series List Edit State"
COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_STATE_DESC="Allows the users in this group to update the state of the series"
COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_VERSION="Series List Edit Version"
COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_VERSION_DESC="Allows users in this group to edit versions of version series list"
COM_SERMONDISTRIBUTOR_SERIES_LIST_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version series list"
COM_SERMONDISTRIBUTOR_SERIES_LIST_EXPORT="Series List Export"
COM_SERMONDISTRIBUTOR_SERIES_LIST_EXPORT_DESC="Allows the users in this group to export export series list"
COM_SERMONDISTRIBUTOR_SERIES_LIST_IMPORT="Series List Import"
@ -213,7 +215,7 @@ COM_SERMONDISTRIBUTOR_SERIES_LIST_SUBMENU_DESC="Allows the users in this group t
COM_SERMONDISTRIBUTOR_SERMONS_ACCESS="Sermons Access"
COM_SERMONDISTRIBUTOR_SERMONS_ACCESS_DESC="Allows the users in this group to access access sermons"
COM_SERMONDISTRIBUTOR_SERMONS_BATCH_USE="Sermons Batch Use"
COM_SERMONDISTRIBUTOR_SERMONS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch sermons"
COM_SERMONDISTRIBUTOR_SERMONS_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch sermons"
COM_SERMONDISTRIBUTOR_SERMONS_CREATE="Sermons Create"
COM_SERMONDISTRIBUTOR_SERMONS_CREATE_DESC="Allows the users in this group to create create sermons"
COM_SERMONDISTRIBUTOR_SERMONS_DASHBOARD_ADD="Sermons Dashboard Add"
@ -233,7 +235,7 @@ COM_SERMONDISTRIBUTOR_SERMONS_EDIT_OWN_DESC="Allows the users in this group to e
COM_SERMONDISTRIBUTOR_SERMONS_EDIT_STATE="Sermons Edit State"
COM_SERMONDISTRIBUTOR_SERMONS_EDIT_STATE_DESC="Allows the users in this group to update the state of the sermon"
COM_SERMONDISTRIBUTOR_SERMONS_EDIT_VERSION="Sermons Edit Version"
COM_SERMONDISTRIBUTOR_SERMONS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version sermons"
COM_SERMONDISTRIBUTOR_SERMONS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version sermons"
COM_SERMONDISTRIBUTOR_SERMONS_EXPORT="Sermons Export"
COM_SERMONDISTRIBUTOR_SERMONS_EXPORT_DESC="Allows the users in this group to export export sermons"
COM_SERMONDISTRIBUTOR_SERMONS_IMPORT="Sermons Import"
@ -245,7 +247,7 @@ COM_SERMONDISTRIBUTOR_SERMON_ACCESS_SITE_DESC="Allows the users in this group to
COM_SERMONDISTRIBUTOR_STATISTICS_ACCESS="Statistics Access"
COM_SERMONDISTRIBUTOR_STATISTICS_ACCESS_DESC="Allows the users in this group to access access statistics"
COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_USE="Statistics Batch Use"
COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch statistics"
COM_SERMONDISTRIBUTOR_STATISTICS_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch statistics"
COM_SERMONDISTRIBUTOR_STATISTICS_CREATE="Statistics Create"
COM_SERMONDISTRIBUTOR_STATISTICS_CREATE_DESC="Allows the users in this group to create create statistics"
COM_SERMONDISTRIBUTOR_STATISTICS_DASHBOARD_LIST="Statistics Dashboard List"
@ -263,7 +265,7 @@ COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_OWN_DESC="Allows the users in this group t
COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_STATE="Statistics Edit State"
COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_STATE_DESC="Allows the users in this group to update the state of the statistic"
COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_VERSION="Statistics Edit Version"
COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version statistics"
COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version statistics"
COM_SERMONDISTRIBUTOR_STATISTICS_EXPORT="Statistics Export"
COM_SERMONDISTRIBUTOR_STATISTICS_EXPORT_DESC="Allows the users in this group to export export statistics"
COM_SERMONDISTRIBUTOR_STATISTICS_IMPORT="Statistics Import"

View File

@ -1,61 +0,0 @@
<?php
/*-------------------------------------------------------------------------------------------------------------| www.vdm.io |------/
____ ____ __ __ __
/\ _`\ /\ _`\ __ /\ \__ __/\ \ /\ \__
\ \,\L\_\ __ _ __ ___ ___ ___ ___ \ \ \/\ \/\_\ ____\ \ ,_\ _ __ /\_\ \ \____ __ __\ \ ,_\ ___ _ __
\/_\__ \ /'__`\/\`'__\/' __` __`\ / __`\ /' _ `\ \ \ \ \ \/\ \ /',__\\ \ \/ /\`'__\/\ \ \ '__`\/\ \/\ \\ \ \/ / __`\/\`'__\
/\ \L\ \/\ __/\ \ \/ /\ \/\ \/\ \/\ \L\ \/\ \/\ \ \ \ \_\ \ \ \/\__, `\\ \ \_\ \ \/ \ \ \ \ \L\ \ \ \_\ \\ \ \_/\ \L\ \ \ \/
\ `\____\ \____\\ \_\ \ \_\ \_\ \_\ \____/\ \_\ \_\ \ \____/\ \_\/\____/ \ \__\\ \_\ \ \_\ \_,__/\ \____/ \ \__\ \____/\ \_\
\/_____/\/____/ \/_/ \/_/\/_/\/_/\/___/ \/_/\/_/ \/___/ \/_/\/___/ \/__/ \/_/ \/_/\/___/ \/___/ \/__/\/___/ \/_/
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage batchselection.php
@author Llewellyn van der Merwe <https://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
A sermon distributor that links to Dropbox.
/----------------------------------------------------------------------------------------------------------------------------------*/
// 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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage build_option_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -44,7 +44,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'note_auto_externalsource'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,21 +38,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) ?: [
'description',
'externalsources'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -44,7 +44,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'apicronjob_note'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -46,7 +46,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'dropboxoptions'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -44,7 +44,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'filetypes'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_under.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,20 +38,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) ?: [
'not_required'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -46,7 +46,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publlshing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -46,7 +46,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,21 +38,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) ?: [
'title',
'alias'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -46,7 +46,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'site_view'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -44,7 +44,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'article'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_under.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,20 +38,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) ?: [
'not_required'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php
@ -22,8 +22,10 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Language\Text;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
$form = $displayData->getForm();
@ -33,7 +35,7 @@ $fieldSets = $form->getFieldsets('metadata');
<?php foreach ($fieldSets as $name => $fieldSet) : ?>
<?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?>
<p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p>
<p class="alert alert-info"><?php echo $this->escape(Text::_($fieldSet->description)); ?></p>
<?php endif; ?>
<?php

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -51,7 +51,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,21 +38,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',
'size'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -43,7 +43,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'url'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'external_source'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'build'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -46,7 +46,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publlshing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -46,7 +46,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,21 +38,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',
'alias'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'icon'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -43,7 +43,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'website'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php
@ -22,8 +22,10 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Language\Text;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
$form = $displayData->getForm();
@ -33,7 +35,7 @@ $fieldSets = $form->getFieldsets('metadata');
<?php foreach ($fieldSets as $name => $fieldSet) : ?>
<?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?>
<p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p>
<p class="alert alert-info"><?php echo $this->escape(Text::_($fieldSet->description)); ?></p>
<?php endif; ?>
<?php

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -52,7 +52,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermons_fullwidth.php
@ -22,25 +22,32 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianChurch\Component\Sermondistributor\Administrator\Helper\SermondistributorHelper;
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->vvvsermons;
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
// set a return value
$return = ($id) ? "index.php?option=com_sermondistributor&view=preacher&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 (SermondistributorHelper::checkString($return))
if (StringHelper::check($return))
{
// set the referral values
$ref = ($id) ? "&ref=preacher&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
@ -60,40 +67,40 @@ $can = SermondistributorHelper::getActions('sermon');
<div class="form-vertical">
<?php if ($can->get('sermon.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_SERMONDISTRIBUTOR_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('preacher.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo JText::_('COM_SERMONDISTRIBUTOR_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_SERMONDISTRIBUTOR_NEW'); ?></a>
<a class="btn btn-small" onclick="Joomla.submitbutton('preacher.cancel');" href="<?php echo $close_new; ?>"><span class="icon-new"></span> <?php echo Text::_('COM_SERMONDISTRIBUTOR_CLOSE_NEW'); ?></a>
</div><br /><br />
<?php endif; ?>
<?php if (SermondistributorHelper::checkArray($items)): ?>
<table class="footable table data sermons metro-blue" data-page-size="20" data-filter="#filter_sermons">
<?php if (ArrayHelper::check($items)): ?>
<table class="footable table data sermons" 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-toggle="true">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL'); ?>
<th data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL'); ?>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL'); ?>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERMONS_CATEGORIES'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SERMONS_CATEGORIES'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL'); ?>
</th>
<th data-hide="all">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL'); ?>
<th data-breakpoints="all" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL'); ?>
</th>
<th width="10" data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_STATUS'); ?>
<th width="10" data-breakpoints="xs sm md">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_STATUS'); ?>
</th>
<th width="5" data-type="numeric" data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_ID'); ?>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_ID'); ?>
</th>
</tr>
</thead>
@ -101,7 +108,9 @@ $can = SermondistributorHelper::getActions('sermon');
<?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 = SermondistributorHelper::getActions('sermon',$item,'sermons');
?>
<tr>
@ -109,7 +118,7 @@ $can = SermondistributorHelper::getActions('sermon');
<?php if ($canDo->get('sermon.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, 'sermons.', $canCheckin); ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'sermons.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo $displayData->escape($item->name); ?>
@ -136,33 +145,33 @@ $can = SermondistributorHelper::getActions('sermon');
<?php endif; ?>
</td>
<td>
<?php echo JText::_($item->link_type); ?>
<?php echo Text::_($item->link_type); ?>
</td>
<td>
<?php echo JText::_($item->source); ?>
<?php echo Text::_($item->source); ?>
</td>
<?php if ($item->published == 1): ?>
<td class="center" data-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0): ?>
<td class="center" data-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2): ?>
<td class="center" data-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2): ?>
<td class="center" data-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
@ -172,17 +181,10 @@ $can = SermondistributorHelper::getActions('sermon');
</tr>
<?php endforeach; ?>
</tbody>
<tfoot class="hide-if-no-paging">
<tr>
<td colspan="9">
<div class="pagination pagination-centered"></div>
</td>
</tr>
</tfoot>
</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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,21 +38,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',
'alias'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'icon'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'scripture'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php
@ -22,8 +22,10 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Language\Text;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
$form = $displayData->getForm();
@ -33,7 +35,7 @@ $fieldSets = $form->getFieldsets('metadata');
<?php foreach ($fieldSets as $name => $fieldSet) : ?>
<?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?>
<p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p>
<p class="alert alert-info"><?php echo $this->escape(Text::_($fieldSet->description)); ?></p>
<?php endif; ?>
<?php

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -52,7 +52,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage sermons_fullwidth.php
@ -22,25 +22,32 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianChurch\Component\Sermondistributor\Administrator\Helper\SermondistributorHelper;
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->vwcsermons;
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
// set a return value
$return = ($id) ? "index.php?option=com_sermondistributor&view=series&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 (SermondistributorHelper::checkString($return))
if (StringHelper::check($return))
{
// set the referral values
$ref = ($id) ? "&ref=series&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
@ -57,38 +64,38 @@ $can = SermondistributorHelper::getActions('sermon');
?>
<div class="form-vertical">
<?php if ($can->get('sermon.create')): ?>
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo JText::_('COM_SERMONDISTRIBUTOR_NEW'); ?></a><br /><br />
<a class="btn btn-small btn-success" href="<?php echo $new; ?>"><span class="icon-new icon-white"></span> <?php echo Text::_('COM_SERMONDISTRIBUTOR_NEW'); ?></a><br /><br />
<?php endif; ?>
<?php if (SermondistributorHelper::checkArray($items)): ?>
<table class="footable table data sermons metro-blue" data-page-size="20" data-filter="#filter_sermons">
<?php if (ArrayHelper::check($items)): ?>
<table class="footable table data sermons" 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-toggle="true">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL'); ?>
<th data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_NAME_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL'); ?>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL'); ?>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERMONS_CATEGORIES'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SERMONS_CATEGORIES'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL'); ?>
</th>
<th data-hide="all">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL'); ?>
<th data-breakpoints="all" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL'); ?>
</th>
<th width="10" data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_STATUS'); ?>
<th width="10" data-breakpoints="xs sm md">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_STATUS'); ?>
</th>
<th width="5" data-type="numeric" data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_SERMON_ID'); ?>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_SERMON_ID'); ?>
</th>
</tr>
</thead>
@ -96,7 +103,9 @@ $can = SermondistributorHelper::getActions('sermon');
<?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 = SermondistributorHelper::getActions('sermon',$item,'sermons');
?>
<tr>
@ -104,7 +113,7 @@ $can = SermondistributorHelper::getActions('sermon');
<?php if ($canDo->get('sermon.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, 'sermons.', $canCheckin); ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'sermons.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo $displayData->escape($item->name); ?>
@ -131,33 +140,33 @@ $can = SermondistributorHelper::getActions('sermon');
<?php endif; ?>
</td>
<td>
<?php echo JText::_($item->link_type); ?>
<?php echo Text::_($item->link_type); ?>
</td>
<td>
<?php echo JText::_($item->source); ?>
<?php echo Text::_($item->source); ?>
</td>
<?php if ($item->published == 1): ?>
<td class="center" data-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0): ?>
<td class="center" data-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2): ?>
<td class="center" data-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2): ?>
<td class="center" data-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
@ -167,17 +176,10 @@ $can = SermondistributorHelper::getActions('sermon');
</tr>
<?php endforeach; ?>
</tbody>
<tfoot class="hide-if-no-paging">
<tr>
<td colspan="9">
<div class="pagination pagination-centered"></div>
</td>
</tr>
</tfoot>
</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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,22 +38,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',
'alias',
'preacher'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -42,7 +42,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -44,7 +44,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'icon'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_right.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -44,7 +44,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'tags'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_under.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,21 +38,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) ?: [
'not_required',
'auto_sermons'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage files_fullwidth.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -51,7 +51,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'url'
);
$hiddenFields = $displayData->get('hidden_fields') ?: array();
$hiddenFields = $displayData->get('hidden_fields') ?: [];
?>
<?php if ($fields && count((array) $fields)) :?>

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage metadata.php
@ -22,8 +22,10 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Language\Text;
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
$form = $displayData->getForm();
@ -33,7 +35,7 @@ $fieldSets = $form->getFieldsets('metadata');
<?php foreach ($fieldSets as $name => $fieldSet) : ?>
<?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?>
<p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p>
<p class="alert alert-info"><?php echo $this->escape(Text::_($fieldSet->description)); ?></p>
<?php endif; ?>
<?php

View File

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage publishing.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -52,7 +52,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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage stastics_fullwidth.php
@ -22,25 +22,32 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use TrueChristianChurch\Component\Sermondistributor\Administrator\Helper\SermondistributorHelper;
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->vwbstastics;
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
$id = $displayData->item->id;
// set the edit URL
$edit = "index.php?option=com_sermondistributor&view=statistics&task=statistic.edit";
// set a return value
$return = ($id) ? "index.php?option=com_sermondistributor&view=sermon&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 (SermondistributorHelper::checkString($return))
if (StringHelper::check($return))
{
// set the referral values
$ref = ($id) ? "&ref=sermon&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return));
@ -52,30 +59,30 @@ else
?>
<div class="form-vertical">
<?php if (SermondistributorHelper::checkArray($items)): ?>
<table class="footable table data statistics metro-blue" data-page-size="20" data-filter="#filter_statistics">
<?php if (ArrayHelper::check($items)): ?>
<table class="footable table data statistics" 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-toggle="true">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_LABEL'); ?>
<th data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL'); ?>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL'); ?>
</th>
<th data-hide="phone">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL'); ?>
<th data-breakpoints="xs sm" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL'); ?>
</th>
<th data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_LABEL'); ?>
<th data-breakpoints="xs sm md" data-type="html" data-sort-use="text">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_STATISTIC_COUNTER_LABEL'); ?>
</th>
<th width="10" data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_STATUS'); ?>
<th width="10" data-breakpoints="xs sm md">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_STATISTIC_STATUS'); ?>
</th>
<th width="5" data-type="numeric" data-hide="phone,tablet">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_ID'); ?>
<th width="5" data-type="number" data-breakpoints="xs sm md">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_STATISTIC_ID'); ?>
</th>
</tr>
</thead>
@ -83,7 +90,9 @@ else
<?php foreach ($items as $i => $item): ?>
<?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = JFactory::getUser($item->checked_out);
$userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
$canDo = SermondistributorHelper::getActions('statistic',$item,'statistics');
?>
<tr>
@ -91,7 +100,7 @@ else
<?php if ($canDo->get('statistic.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?><?php echo $ref; ?>"><?php echo $item->filename; ?></a>
<?php if ($item->checked_out): ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'statistics.', $canCheckin); ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'statistics.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo $item->filename; ?>
@ -118,27 +127,27 @@ else
<?php echo $displayData->escape($item->counter); ?>
</td>
<?php if ($item->published == 1): ?>
<td class="center" data-value="1">
<span class="status-metro status-published" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>
<td class="center" data-sort-value="1">
<span class="status-metro status-published" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_PUBLISHED'); ?>
</span>
</td>
<?php elseif ($item->published == 0): ?>
<td class="center" data-value="2">
<span class="status-metro status-inactive" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>
<td class="center" data-sort-value="2">
<span class="status-metro status-inactive" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_INACTIVE'); ?>
</span>
</td>
<?php elseif ($item->published == 2): ?>
<td class="center" data-value="3">
<span class="status-metro status-archived" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>
<td class="center" data-sort-value="3">
<span class="status-metro status-archived" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_ARCHIVED'); ?>
</span>
</td>
<?php elseif ($item->published == -2): ?>
<td class="center" data-value="4">
<span class="status-metro status-trashed" title="<?php echo JText::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>">
<?php echo JText::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>
<td class="center" data-sort-value="4">
<span class="status-metro status-trashed" title="<?php echo Text::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>">
<?php echo Text::_('COM_SERMONDISTRIBUTOR_TRASHED'); ?>
</span>
</td>
<?php endif; ?>
@ -148,17 +157,10 @@ else
</tr>
<?php endforeach; ?>
</tbody>
<tfoot class="hide-if-no-paging">
<tr>
<td colspan="7">
<div class="pagination pagination-centered"></div>
</td>
</tr>
</tfoot>
</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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_above.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -38,21 +38,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) ?: [
'filename',
'sermon'
);
];
$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

@ -10,7 +10,7 @@
/------------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.x
@version 5.0.x
@created 22nd October, 2015
@package Sermon Distributor
@subpackage details_left.php
@ -23,7 +23,7 @@
/----------------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die;
// get the form
$form = $displayData->getForm();
@ -43,7 +43,7 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
'series'
);
$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