The update to fix #25, please note that this is a major upgrade and will require manual steps prior to the upgrade to set the Dropbox integration, watch the [tutorials](http://vdm.bz/sermondistributor-external-source-tutorials) for help.
This commit is contained in:
parent
23e89974bd
commit
b2516dfe23
28
README.md
28
README.md
@ -1,4 +1,4 @@
|
||||
# Sermon Distributor (1.3.8)
|
||||
# Sermon Distributor (1.4.0)
|
||||
|
||||
![Sermon Distributor image](https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor")
|
||||
|
||||
@ -23,38 +23,38 @@ The best way to see all your options is to install this component on you Joomla
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@vdm.io)
|
||||
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
|
||||
+ *First Build*: 22nd October, 2015
|
||||
+ *Last Build*: 2nd November, 2016
|
||||
+ *Version*: 1.3.8
|
||||
+ *Last Build*: 27th November, 2016
|
||||
+ *Version*: 1.4.0
|
||||
+ *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:
|
||||
|
||||
**140 Hours** or **18 Eight Hour Days** (actual time the author saved -
|
||||
**178 Hours** or **22 Eight Hour Days** (actual time the author saved -
|
||||
due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder))
|
||||
|
||||
> (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*: **50067**
|
||||
+ *File count*: **365**
|
||||
+ *Folder count*: **80**
|
||||
+ *Line count*: **63763**
|
||||
+ *File count*: **436**
|
||||
+ *Folder count*: **90**
|
||||
|
||||
**92 Hours** or **11 Eight Hour Days** (the actual time the author spent)
|
||||
**117 Hours** or **15 Eight Hour Days** (the actual time the author spent)
|
||||
|
||||
> (with the following break down:
|
||||
> **debugging @35hours** = codingtime / 4;
|
||||
> **planning @20hours** = codingtime / 7;
|
||||
> **mapping @14hours** = codingtime / 10;
|
||||
> **office @23hours** = codingtime / 6;)
|
||||
> **debugging @44hours** = codingtime / 4;
|
||||
> **planning @25hours** = codingtime / 7;
|
||||
> **mapping @18hours** = codingtime / 10;
|
||||
> **office @30hours** = codingtime / 6;)
|
||||
|
||||
**232 Hours** or **29 Eight Hour Days**
|
||||
**295 Hours** or **37 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: **5.8 weeks** or **1.2 months**
|
||||
Project duration: **7.4 weeks** or **1.5 months**
|
||||
|
||||
> This **component** was build with a Joomla [Automated Component Builder](https://www.vdm.io/joomla-component-builder).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Sermon Distributor (1.3.8)
|
||||
# Sermon Distributor (1.4.0)
|
||||
|
||||
![Sermon Distributor image](https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor")
|
||||
|
||||
@ -23,38 +23,38 @@ The best way to see all your options is to install this component on you Joomla
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@vdm.io)
|
||||
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
|
||||
+ *First Build*: 22nd October, 2015
|
||||
+ *Last Build*: 2nd November, 2016
|
||||
+ *Version*: 1.3.8
|
||||
+ *Last Build*: 27th November, 2016
|
||||
+ *Version*: 1.4.0
|
||||
+ *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:
|
||||
|
||||
**140 Hours** or **18 Eight Hour Days** (actual time the author saved -
|
||||
**178 Hours** or **22 Eight Hour Days** (actual time the author saved -
|
||||
due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder))
|
||||
|
||||
> (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*: **50067**
|
||||
+ *File count*: **365**
|
||||
+ *Folder count*: **80**
|
||||
+ *Line count*: **63763**
|
||||
+ *File count*: **436**
|
||||
+ *Folder count*: **90**
|
||||
|
||||
**92 Hours** or **11 Eight Hour Days** (the actual time the author spent)
|
||||
**117 Hours** or **15 Eight Hour Days** (the actual time the author spent)
|
||||
|
||||
> (with the following break down:
|
||||
> **debugging @35hours** = codingtime / 4;
|
||||
> **planning @20hours** = codingtime / 7;
|
||||
> **mapping @14hours** = codingtime / 10;
|
||||
> **office @23hours** = codingtime / 6;)
|
||||
> **debugging @44hours** = codingtime / 4;
|
||||
> **planning @25hours** = codingtime / 7;
|
||||
> **mapping @18hours** = codingtime / 10;
|
||||
> **office @30hours** = codingtime / 6;)
|
||||
|
||||
**232 Hours** or **29 Eight Hour Days**
|
||||
**295 Hours** or **37 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: **5.8 weeks** or **1.2 months**
|
||||
Project duration: **7.4 weeks** or **1.5 months**
|
||||
|
||||
> This **component** was build with a Joomla [Automated Component Builder](https://www.vdm.io/joomla-component-builder).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
@ -17,6 +17,32 @@
|
||||
<action name="core.edit.created" title="COM_SERMONDISTRIBUTOR_EDIT_CREATED_DATE" description="COM_SERMONDISTRIBUTOR_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="site.categories.access" title="COM_SERMONDISTRIBUTOR_CATEGORIES_ACCESS_SITE" description="COM_SERMONDISTRIBUTOR_CATEGORIES_ACCESS_SITE_DESC" />
|
||||
<action name="site.category.access" title="COM_SERMONDISTRIBUTOR_CATEGORY_ACCESS_SITE" description="COM_SERMONDISTRIBUTOR_CATEGORY_ACCESS_SITE_DESC" />
|
||||
<action name="external_source.access" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_ACCESS" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_ACCESS_DESC" />
|
||||
<action name="external_source.batch" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_BATCH_USE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_BATCH_USE_DESC" />
|
||||
<action name="external_source.create" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_CREATE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_CREATE_DESC" />
|
||||
<action name="external_source.dashboard_add" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DASHBOARD_ADD" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DASHBOARD_ADD_DESC" />
|
||||
<action name="external_source.dashboard_list" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DASHBOARD_LIST" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DASHBOARD_LIST_DESC" />
|
||||
<action name="external_source.delete" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DELETE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DELETE_DESC" />
|
||||
<action name="external_source.edit" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DESC" />
|
||||
<action name="external_source.edit.build" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_BUILD" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_BUILD_DESC" />
|
||||
<action name="external_source.edit.created_by" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_BY" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="external_source.edit.created" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_DATE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="external_source.edit.description" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DESCRIPTION" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DESCRIPTION_DESC" />
|
||||
<action name="external_source.edit.dropboxoptions" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DROPBOXOPTIONS" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DROPBOXOPTIONS_DESC" />
|
||||
<action name="external_source.edit.externalsources" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_EXTERNALSOURCES" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_EXTERNALSOURCES_DESC" />
|
||||
<action name="external_source.edit.filetypes" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FILETYPES" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FILETYPES_DESC" />
|
||||
<action name="external_source.edit.folder" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FOLDER" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FOLDER_DESC" />
|
||||
<action name="external_source.edit.oauthtoken" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OAUTHTOKEN" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OAUTHTOKEN_DESC" />
|
||||
<action name="external_source.edit.own" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OWN" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OWN_DESC" />
|
||||
<action name="external_source.edit.permissiontype" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_PERMISSIONTYPE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_PERMISSIONTYPE_DESC" />
|
||||
<action name="external_source.edit.sharedurl" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_SHAREDURL" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_SHAREDURL_DESC" />
|
||||
<action name="external_source.edit.state" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_STATE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_STATE_DESC" />
|
||||
<action name="external_source.edit.update_method" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_METHOD" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_METHOD_DESC" />
|
||||
<action name="external_source.edit.update_timer" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_TIMER" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_TIMER_DESC" />
|
||||
<action name="external_source.version" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_VERSION" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_VERSION_DESC" />
|
||||
<action name="external_source.export" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EXPORT" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EXPORT_DESC" />
|
||||
<action name="external_source.import" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_IMPORT" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_IMPORT_DESC" />
|
||||
<action name="external_source.submenu" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_SUBMENU" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_SUBMENU_DESC" />
|
||||
<action name="help_document.access" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_ACCESS" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_ACCESS_DESC" />
|
||||
<action name="help_document.batch" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_USE" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_BATCH_USE_DESC" />
|
||||
<action name="help_document.create" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_CREATE" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_CREATE_DESC" />
|
||||
@ -29,6 +55,30 @@
|
||||
<action name="help_document.export" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EXPORT" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EXPORT_DESC" />
|
||||
<action name="help_document.import" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_IMPORT" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_IMPORT_DESC" />
|
||||
<action name="help_document.submenu" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_SUBMENU" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_SUBMENU_DESC" />
|
||||
<action name="local_listing.access" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_ACCESS" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_ACCESS_DESC" />
|
||||
<action name="local_listing.batch" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_BATCH_USE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_BATCH_USE_DESC" />
|
||||
<action name="local_listing.create" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_CREATE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_CREATE_DESC" />
|
||||
<action name="local_listing.dashboard_list" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_DASHBOARD_LIST" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_DASHBOARD_LIST_DESC" />
|
||||
<action name="local_listing.delete" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_DELETE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_DELETE_DESC" />
|
||||
<action name="local_listing.edit" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_DESC" />
|
||||
<action name="local_listing.edit.build" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_BUILD" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_BUILD_DESC" />
|
||||
<action name="local_listing.edit.created_by" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_BY" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_BY_DESC" />
|
||||
<action name="local_listing.edit.created" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_DATE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="local_listing.edit.external_source" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_EXTERNAL_SOURCE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_EXTERNAL_SOURCE_DESC" />
|
||||
<action name="local_listing.edit.key" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_KEY" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_KEY_DESC" />
|
||||
<action name="local_listing.edit.name" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_NAME" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_NAME_DESC" />
|
||||
<action name="local_listing.edit.own" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_OWN" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_OWN_DESC" />
|
||||
<action name="local_listing.edit.size" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_SIZE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_SIZE_DESC" />
|
||||
<action name="local_listing.edit.state" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_STATE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_STATE_DESC" />
|
||||
<action name="local_listing.edit.url" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_URL" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_URL_DESC" />
|
||||
<action name="local_listing.version" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_VERSION" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_VERSION_DESC" />
|
||||
<action name="local_listing.export" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EXPORT" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EXPORT_DESC" />
|
||||
<action name="local_listing.import" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_IMPORT" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_IMPORT_DESC" />
|
||||
<action name="local_listing.submenu" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_SUBMENU" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_SUBMENU_DESC" />
|
||||
<action name="manual_updater.access" title="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_ACCESS" description="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_ACCESS_DESC" />
|
||||
<action name="manual_updater.dashboard_list" title="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_DASHBOARD_LIST" description="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_DASHBOARD_LIST_DESC" />
|
||||
<action name="manual_updater.external_sources" title="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_EXTERNAL_SOURCES_BUTTON_ACCESS" description="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_EXTERNAL_SOURCES_BUTTON_ACCESS_DESC" />
|
||||
<action name="manual_updater.submenu" title="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_SUBMENU" description="COM_SERMONDISTRIBUTOR_MANUAL_UPDATER_SUBMENU_DESC" />
|
||||
<action name="site.preacher.access" title="COM_SERMONDISTRIBUTOR_PREACHER_ACCESS_SITE" description="COM_SERMONDISTRIBUTOR_PREACHER_ACCESS_SITE_DESC" />
|
||||
<action name="preacher.access" title="COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS" description="COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_DESC" />
|
||||
<action name="site.preachers.access" title="COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_SITE" description="COM_SERMONDISTRIBUTOR_PREACHERS_ACCESS_SITE_DESC" />
|
||||
@ -138,6 +188,45 @@
|
||||
<action name="statistic.access" title="COM_SERMONDISTRIBUTOR_STATISTICS_ACCESS" description="COM_SERMONDISTRIBUTOR_STATISTICS_ACCESS_DESC" />
|
||||
<action name="statistic.version" title="COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_VERSION" description="COM_SERMONDISTRIBUTOR_STATISTICS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="external_source">
|
||||
<action name="external_source.edit" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DESC" />
|
||||
<action name="external_source.edit.own" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OWN" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OWN_DESC" />
|
||||
<action name="external_source.edit.state" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_STATE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_STATE_DESC" />
|
||||
<action name="external_source.edit.created_by" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_BY" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="external_source.edit.created" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_DATE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="external_source.create" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_CREATE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_CREATE_DESC" />
|
||||
<action name="external_source.delete" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DELETE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_DELETE_DESC" />
|
||||
<action name="external_source.access" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_ACCESS" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_ACCESS_DESC" />
|
||||
<action name="external_source.edit.description" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DESCRIPTION" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DESCRIPTION_DESC" />
|
||||
<action name="external_source.edit.externalsources" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_EXTERNALSOURCES" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_EXTERNALSOURCES_DESC" />
|
||||
<action name="external_source.edit.update_method" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_METHOD" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_METHOD_DESC" />
|
||||
<action name="external_source.edit.filetypes" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FILETYPES" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FILETYPES_DESC" />
|
||||
<action name="external_source.edit.build" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_BUILD" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_BUILD_DESC" />
|
||||
<action name="external_source.edit.permissiontype" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_PERMISSIONTYPE" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_PERMISSIONTYPE_DESC" />
|
||||
<action name="external_source.edit.update_timer" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_TIMER" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_UPDATE_TIMER_DESC" />
|
||||
<action name="external_source.edit.dropboxoptions" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DROPBOXOPTIONS" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_DROPBOXOPTIONS_DESC" />
|
||||
<action name="external_source.edit.folder" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FOLDER" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_FOLDER_DESC" />
|
||||
<action name="external_source.edit.sharedurl" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_SHAREDURL" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_SHAREDURL_DESC" />
|
||||
<action name="external_source.edit.oauthtoken" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OAUTHTOKEN" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_OAUTHTOKEN_DESC" />
|
||||
<action name="external_source.version" title="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_VERSION" description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="local_listing">
|
||||
<action name="local_listing.edit" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_DESC" />
|
||||
<action name="local_listing.edit.own" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_OWN" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_OWN_DESC" />
|
||||
<action name="local_listing.edit.state" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_STATE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_STATE_DESC" />
|
||||
<action name="local_listing.edit.created_by" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_BY" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_BY_DESC" />
|
||||
<action name="local_listing.edit.created" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_DATE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="local_listing.create" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_CREATE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_CREATE_DESC" />
|
||||
<action name="local_listing.delete" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_DELETE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_DELETE_DESC" />
|
||||
<action name="local_listing.access" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_ACCESS" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_ACCESS_DESC" />
|
||||
<action name="local_listing.edit.name" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_NAME" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_NAME_DESC" />
|
||||
<action name="local_listing.edit.build" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_BUILD" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_BUILD_DESC" />
|
||||
<action name="local_listing.edit.size" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_SIZE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_SIZE_DESC" />
|
||||
<action name="local_listing.edit.external_source" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_EXTERNAL_SOURCE" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_EXTERNAL_SOURCE_DESC" />
|
||||
<action name="local_listing.edit.key" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_KEY" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_KEY_DESC" />
|
||||
<action name="local_listing.edit.url" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_URL" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_URL_DESC" />
|
||||
<action name="local_listing.version" title="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_VERSION" description="COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="help_document">
|
||||
<action name="help_document.edit" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_DESC" />
|
||||
<action name="help_document.edit.own" title="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_OWN" description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENTS_EDIT_OWN_DESC" />
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage admin.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage dashboard.css
|
||||
|
27
admin/assets/css/external_source.css
Normal file
27
admin/assets/css/external_source.css
Normal file
@ -0,0 +1,27 @@
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage external_source.css
|
||||
@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.
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* CSS Document */
|
||||
|
||||
|
27
admin/assets/css/external_sources.css
Normal file
27
admin/assets/css/external_sources.css
Normal file
@ -0,0 +1,27 @@
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage external_sources.css
|
||||
@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.
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* CSS Document */
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage help_document.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage help_documents.css
|
||||
|
27
admin/assets/css/local_listing.css
Normal file
27
admin/assets/css/local_listing.css
Normal file
@ -0,0 +1,27 @@
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage local_listing.css
|
||||
@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.
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* CSS Document */
|
||||
|
||||
|
27
admin/assets/css/local_listings.css
Normal file
27
admin/assets/css/local_listings.css
Normal file
@ -0,0 +1,27 @@
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage local_listings.css
|
||||
@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.
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* CSS Document */
|
||||
|
||||
|
27
admin/assets/css/manual_updater.css
Normal file
27
admin/assets/css/manual_updater.css
Normal file
@ -0,0 +1,27 @@
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage manual_updater.css
|
||||
@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.
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* CSS Document */
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage preacher.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage preachers.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage series.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage series_list.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage statistic.css
|
||||
|
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage statistics.css
|
||||
|
BIN
admin/assets/images/icons/external_source_add.png
Normal file
BIN
admin/assets/images/icons/external_source_add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
admin/assets/images/icons/external_sources.png
Normal file
BIN
admin/assets/images/icons/external_sources.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
admin/assets/images/icons/local_listings.png
Normal file
BIN
admin/assets/images/icons/local_listings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
admin/assets/images/icons/manual_updater.png
Normal file
BIN
admin/assets/images/icons/manual_updater.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
797
admin/config.xml
797
admin/config.xml
@ -46,72 +46,6 @@
|
||||
default="10"
|
||||
/>
|
||||
<field type="spacer" name="spacerHistory" hr="true" />
|
||||
|
||||
<!-- Localfolder Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="localfolder"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="PATH"
|
||||
message="Error! Please add path to local folder here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_HINT"
|
||||
/>
|
||||
<!-- Link_encryption Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="link_encryption"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
message="Error! Please add the download link encryption key here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_HINT"
|
||||
/>
|
||||
<!-- Spacer_hr_d Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_d" hr="true" class="spacer_hr_d" />
|
||||
<!-- Preacher_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="preacher_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for preachers."
|
||||
/>
|
||||
<!-- Category_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="category_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for categories."
|
||||
/>
|
||||
<!-- Series_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="series_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for series."
|
||||
/>
|
||||
<!-- Sermon_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="sermon_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for sermon."
|
||||
/>
|
||||
<!-- Spacer_hr_e Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_e" hr="true" class="spacer_hr_e" />
|
||||
<field name="autorTitle"
|
||||
type="spacer"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTHOR"
|
||||
@ -394,6 +328,19 @@
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_GRADIANT_LOAD</option>"
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
name="encryption_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_ENCRYPTION_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_ENCRYPTION_DESC">
|
||||
<field type="note" name="basic_key_note" class="alert alert-info" label="COM_SERMONDISTRIBUTOR_CONFIG_BASIC_KEY_NOTE_LABEL" description="COM_SERMONDISTRIBUTOR_CONFIG_BASIC_KEY_NOTE_DESC" />
|
||||
<field name="basic_key"
|
||||
type="text"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_BASIC_KEY_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_BASIC_KEY_DESC"
|
||||
size="60"
|
||||
default=""
|
||||
/>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
name="player_custom_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_PLAYER">
|
||||
@ -419,17 +366,75 @@
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
name="dropbox_custom_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_DROPBOX">
|
||||
name="sermon_custom_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON">
|
||||
|
||||
<!-- Note_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_dropbox" label="COM_SERMONDISTRIBUTOR_CONFIG_NOTE_DROPBOX_LABEL" heading="h4" class="alert alert-info note_dropbox" />
|
||||
<!-- Add_to_dropbox Field. Type: Radio. (joomla) -->
|
||||
<!-- Localfolder Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="localfolder"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="PATH"
|
||||
message="Error! Please add path to local folder here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_LOCALFOLDER_HINT"
|
||||
/>
|
||||
<!-- Add_to_button Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_to_dropbox"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_ADD_TO_DROPBOX_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_ADD_TO_DROPBOX_DESCRIPTION"
|
||||
name="add_to_button"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_ADD_TO_BUTTON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_ADD_TO_BUTTON_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="sermon_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for sermon."
|
||||
/>
|
||||
<!-- Sermon_menu Field. Type: Menuitem. (joomla) -->
|
||||
<field
|
||||
type="menuitem"
|
||||
name="sermon_menu"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_MENU_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_MENU_DESCRIPTION"
|
||||
published="1"
|
||||
filter="int"
|
||||
/>
|
||||
<!-- Sermon_display Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_display"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DISPLAY_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DISPLAY_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="2">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PANEL</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_BOX</option>
|
||||
<option value="3">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_BIG</option>
|
||||
</field>
|
||||
<!-- Sermon_box_contrast Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_box_contrast"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_BOX_CONTRAST_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_BOX_CONTRAST_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
@ -438,333 +443,151 @@
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Dropbox_filetypes Field. Type: List. (joomla) -->
|
||||
<!-- Sermon_list_style Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="dropbox_filetypes"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_DROPBOX_FILETYPES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_DROPBOX_FILETYPES_DESCRIPTION"
|
||||
name="sermon_list_style"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_LIST_STYLE_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_LIST_STYLE_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
filter="ARRAY"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value=".mp3">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MPTHREE</option>
|
||||
<option value=".m4a">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MFOURA</option>
|
||||
<option value=".ogg">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_OGG</option>
|
||||
<option value=".wav">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_WAV</option>
|
||||
<option value=".mp4">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MPFOUR</option>
|
||||
<option value=".m4v">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MFOURV</option>
|
||||
<option value=".mov">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MOV</option>
|
||||
<option value=".wmv">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_WMV</option>
|
||||
<option value=".avi">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_AVI</option>
|
||||
<option value=".mpg">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MPG</option>
|
||||
<option value=".ogv">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_OGV</option>
|
||||
<option value=".3gp">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_THREEGP</option>
|
||||
<option value=".3g2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_THREEGTWO</option>
|
||||
<option value=".pdf">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PDF</option>
|
||||
<option value=".doc">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_DOC</option>
|
||||
<option value=".docx">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_DOCX</option>
|
||||
<option value=".ppt">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PPT</option>
|
||||
<option value=".pptx">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PPTX</option>
|
||||
<option value=".pps">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PPS</option>
|
||||
<option value=".ppsx">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PPSX</option>
|
||||
<option value=".odt">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_ODT</option>
|
||||
<option value=".xls">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_XLS</option>
|
||||
<option value=".xlsx">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_XLSX</option>
|
||||
<option value=".zip">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_ZIP</option>
|
||||
<option value=".jpg">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_JPG</option>
|
||||
<option value=".jpeg">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_JPEG</option>
|
||||
<option value=".png">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PNG</option>
|
||||
<option value=".gif">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_GIF</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option>
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_LINES</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option>
|
||||
<option value="3">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_a Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_a" hr="true" class="spacer_hr_a" />
|
||||
<!-- Note_manual_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_manual_dropbox" label="COM_SERMONDISTRIBUTOR_CONFIG_NOTE_MANUAL_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_CONFIG_NOTE_MANUAL_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_manual_dropbox" />
|
||||
<!-- Manual_link_update_method Field. Type: Radio. (joomla) -->
|
||||
<!-- Sermon_icon Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="manual_link_update_method"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_LINK_UPDATE_METHOD_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_LINK_UPDATE_METHOD_DESCRIPTION"
|
||||
name="sermon_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_ICON_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MANUAL</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_AUTOMATIC</option>
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Note_update_manual_button_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_update_manual_button_dropbox" description="COM_SERMONDISTRIBUTOR_CONFIG_NOTE_UPDATE_MANUAL_BUTTON_DROPBOX_DESCRIPTION" class="note_update_manual_button_dropbox" />
|
||||
<!-- Manual_dropbox_timer Field. Type: Integer. (joomla) -->
|
||||
<field
|
||||
type="integer"
|
||||
name="manual_dropbox_timer"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_DROPBOX_TIMER_LABEL"
|
||||
default="60"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_MANUAL_DROPBOX_TIMER_DESCRIPTION"
|
||||
class="text_area"
|
||||
first="0"
|
||||
last="50000"
|
||||
step="10"
|
||||
/>
|
||||
<!-- Manualdropboxone Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="manualdropboxone"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXONE_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXONE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXONE_HINT"
|
||||
/>
|
||||
<!-- Manualdropboxtwo Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="manualdropboxtwo"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTWO_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTWO_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTWO_HINT"
|
||||
/>
|
||||
<!-- Manualdropboxthree Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="manualdropboxthree"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTHREE_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTHREE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXTHREE_HINT"
|
||||
/>
|
||||
<!-- Manualdropboxfour Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="manualdropboxfour"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXFOUR_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXFOUR_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_MANUALDROPBOXFOUR_HINT"
|
||||
/>
|
||||
<!-- Spacer_hr_b Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_b" hr="true" class="spacer_hr_b" />
|
||||
<!-- Note_auto_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_auto_dropbox" label="COM_SERMONDISTRIBUTOR_CONFIG_NOTE_AUTO_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_CONFIG_NOTE_AUTO_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_auto_dropbox" />
|
||||
<!-- Auto_link_update_method Field. Type: Radio. (joomla) -->
|
||||
<!-- Sermon_desc Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="auto_link_update_method"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_UPDATE_METHOD_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_UPDATE_METHOD_DESCRIPTION"
|
||||
name="sermon_desc"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DESC_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DESC_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_MANUAL</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_AUTOMATIC</option>
|
||||
</field>
|
||||
<!-- Note_update_auto_button_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_update_auto_button_dropbox" description="COM_SERMONDISTRIBUTOR_CONFIG_NOTE_UPDATE_AUTO_BUTTON_DROPBOX_DESCRIPTION" class="note_update_auto_button_dropbox" />
|
||||
<!-- Auto_dropbox_timer Field. Type: Integer. (joomla) -->
|
||||
<field
|
||||
type="integer"
|
||||
name="auto_dropbox_timer"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTO_DROPBOX_TIMER_LABEL"
|
||||
default="60"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_AUTO_DROPBOX_TIMER_DESCRIPTION"
|
||||
class="text_area"
|
||||
first="0"
|
||||
last="50000"
|
||||
step="10"
|
||||
/>
|
||||
<!-- Autodropboxone Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="autodropboxone"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXONE_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXONE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXONE_HINT"
|
||||
/>
|
||||
<!-- Autodropboxtwo Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="autodropboxtwo"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTWO_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTWO_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTWO_HINT"
|
||||
/>
|
||||
<!-- Autodropboxthree Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="autodropboxthree"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTHREE_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTHREE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXTHREE_HINT"
|
||||
/>
|
||||
<!-- Autodropboxfour Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="autodropboxfour"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXFOUR_LABEL"
|
||||
size="40"
|
||||
maxlength="120"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXFOUR_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="false"
|
||||
filter="url"
|
||||
validated="url"
|
||||
message="Error! Please add Dropbox folder url here."
|
||||
hint="COM_SERMONDISTRIBUTOR_CONFIG_AUTODROPBOXFOUR_HINT"
|
||||
/>
|
||||
<!-- Spacer_hr_c Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_c" hr="true" class="spacer_hr_c" />
|
||||
<!-- Preacher_state Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="preacher_state"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_STATE_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_STATE_DESCRIPTION"
|
||||
class="chzn-color-state"
|
||||
multiple="false"
|
||||
filter="intval"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PUBLISHED</option>
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_UNPUBLISHED</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_ARCHIVED</option>
|
||||
<option value="-2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_TRASHED</option>
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Series_state Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="series_state"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_STATE_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_STATE_DESCRIPTION"
|
||||
class="chzn-color-state"
|
||||
multiple="false"
|
||||
filter="intval"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PUBLISHED</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_UNPUBLISHED</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_ARCHIVED</option>
|
||||
<option value="-2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_TRASHED</option>
|
||||
</field>
|
||||
<!-- Sermon_state Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="sermon_state"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_STATE_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_STATE_DESCRIPTION"
|
||||
class="chzn-color-state"
|
||||
multiple="false"
|
||||
filter="intval"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PUBLISHED</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_UNPUBLISHED</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_ARCHIVED</option>
|
||||
<option value="-2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_TRASHED</option>
|
||||
</field>
|
||||
<!-- Auto_link_type Field. Type: Radio. (joomla) -->
|
||||
<!-- Sermon_preacher Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="auto_link_type"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_TYPE_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_AUTO_LINK_TYPE_DESCRIPTION"
|
||||
name="sermon_preacher"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_PREACHER_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_PREACHER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_ENCRYPTED</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_DIRECT</option>
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_series Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_series"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_series Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_series"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_category Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_category"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_CATEGORY_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_CATEGORY_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_download_counter Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_download_counter"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOAD_COUNTER_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOAD_COUNTER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_hits Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_hits"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_HITS_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_HITS_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_downloads Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_downloads"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOADS_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOADS_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
@ -926,6 +749,14 @@
|
||||
name="preacher_custom_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER">
|
||||
|
||||
<!-- Preacher_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="preacher_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for preachers."
|
||||
/>
|
||||
<!-- Preacher_menu Field. Type: Menuitem. (joomla) -->
|
||||
<field
|
||||
type="menuitem"
|
||||
@ -1069,8 +900,8 @@
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_f" hr="true" class="spacer_hr_f" />
|
||||
<!-- Spacer_hr_a Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_a" hr="true" class="spacer_hr_a" />
|
||||
<!-- Preacher_sermons_display Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
@ -1381,6 +1212,14 @@
|
||||
name="category_custom_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY">
|
||||
|
||||
<!-- Category_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="category_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for categories."
|
||||
/>
|
||||
<!-- Category_menu Field. Type: Menuitem. (joomla) -->
|
||||
<field
|
||||
type="menuitem"
|
||||
@ -1496,8 +1335,8 @@
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_g Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_g" hr="true" class="spacer_hr_g" />
|
||||
<!-- Spacer_hr_b Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_b" hr="true" class="spacer_hr_b" />
|
||||
<!-- Category_sermons_display Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
@ -1808,6 +1647,14 @@
|
||||
name="series_custom_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES">
|
||||
|
||||
<!-- Series_default_icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="series_default_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DEFAULT_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DEFAULT_ICON_DESCRIPTION"
|
||||
directory="Set the default icon for series."
|
||||
/>
|
||||
<!-- Series_menu Field. Type: Menuitem. (joomla) -->
|
||||
<field
|
||||
type="menuitem"
|
||||
@ -1923,8 +1770,8 @@
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Spacer_hr_h Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_h" hr="true" class="spacer_hr_h" />
|
||||
<!-- Spacer_hr_c Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_c" hr="true" class="spacer_hr_c" />
|
||||
<!-- Series_sermons_display Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
@ -2103,196 +1950,6 @@
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
name="sermon_custom_config"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON">
|
||||
|
||||
<!-- Sermon_menu Field. Type: Menuitem. (joomla) -->
|
||||
<field
|
||||
type="menuitem"
|
||||
name="sermon_menu"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_MENU_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_MENU_DESCRIPTION"
|
||||
published="1"
|
||||
filter="int"
|
||||
/>
|
||||
<!-- Sermon_display Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_display"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DISPLAY_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DISPLAY_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="2">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PANEL</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_BOX</option>
|
||||
<option value="3">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_BIG</option>
|
||||
</field>
|
||||
<!-- Sermon_box_contrast Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_box_contrast"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_BOX_CONTRAST_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_BOX_CONTRAST_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_list_style Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="sermon_list_style"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_LIST_STYLE_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_LIST_STYLE_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_PLAIN</option>
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_LINES</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_STRIPED</option>
|
||||
<option value="3">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
|
||||
</field>
|
||||
<!-- Sermon_icon Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_icon"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_ICON_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_ICON_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_desc Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_desc"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DESC_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DESC_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_preacher Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_preacher"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_PREACHER_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_PREACHER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_series Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_series"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_series Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_series"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_SERIES_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_category Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_category"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_CATEGORY_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_CATEGORY_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_download_counter Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_download_counter"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOAD_COUNTER_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOAD_COUNTER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_hits Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_hits"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_HITS_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_HITS_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Sermon_downloads Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="sermon_downloads"
|
||||
label="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOADS_LABEL"
|
||||
description="COM_SERMONDISTRIBUTOR_CONFIG_SERMON_DOWNLOADS_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_YES</option>
|
||||
<option value="0">
|
||||
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
name="permissions"
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage controller.php
|
||||
@ -92,6 +92,8 @@ class SermondistributorController extends JControllerLegacy
|
||||
'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
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage ajax.json.php
|
||||
@ -42,11 +42,11 @@ class SermondistributorControllerAjax extends JControllerLegacy
|
||||
JResponse::setHeader('Content-Disposition','attachment;filename="getajax.json"');
|
||||
JResponse::setHeader("Access-Control-Allow-Origin", "*");
|
||||
// load the tasks
|
||||
$this->registerTask('checkDropboxListing', 'ajax');
|
||||
$this->registerTask('updateDropboxListing', 'ajax');
|
||||
$this->registerTask('getUpdateProgress', 'ajax');
|
||||
$this->registerTask('autoUpdateLocalListingExternal', 'ajax');
|
||||
$this->registerTask('updateLocalListingExternal', 'ajax');
|
||||
$this->registerTask('isNew', 'ajax');
|
||||
$this->registerTask('isRead', 'ajax');
|
||||
$this->registerTask('isRead', 'ajax');
|
||||
$this->registerTask('getBuildTable', 'ajax');
|
||||
}
|
||||
|
||||
public function ajax()
|
||||
@ -61,14 +61,16 @@ class SermondistributorControllerAjax extends JControllerLegacy
|
||||
$task = $this->getTask();
|
||||
switch($task)
|
||||
{
|
||||
case 'checkDropboxListing':
|
||||
case 'autoUpdateLocalListingExternal':
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$fromviewValue = $jinput->get('fromview', NULL, 'INT');
|
||||
if($fromviewValue && $user->id != 0)
|
||||
$idValue = $jinput->get('id', NULL, 'INT');
|
||||
$targetValue = $jinput->get('target', NULL, 'INT');
|
||||
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||
if($idValue && $targetValue && $typeValue)
|
||||
{
|
||||
$result = $this->getModel('ajax')->dropbox($fromviewValue);
|
||||
$result = $this->getModel('ajax')->autoUpdateLocalListingExternal($idValue, $targetValue, $typeValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -99,52 +101,17 @@ class SermondistributorControllerAjax extends JControllerLegacy
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'updateDropboxListing':
|
||||
case 'updateLocalListingExternal':
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$idValue = $jinput->get('id', NULL, 'INT');
|
||||
$targetValue = $jinput->get('target', NULL, 'INT');
|
||||
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||
if($typeValue && $user->id != 0)
|
||||
$sleutelValue = $jinput->get('sleutel', NULL, 'CMD');
|
||||
if($idValue && $targetValue && $typeValue && $sleutelValue && $user->id != 0)
|
||||
{
|
||||
$result = $this->getModel('ajax')->updateDropbox($typeValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = false;
|
||||
}
|
||||
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||
{
|
||||
echo $callback . "(".json_encode($result).");";
|
||||
}
|
||||
elseif($returnRaw)
|
||||
{
|
||||
echo json_encode($result);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($result).");";
|
||||
}
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||
{
|
||||
echo $callback."(".json_encode($e).");";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($e).");";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'getUpdateProgress':
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||
if($typeValue && $user->id != 0)
|
||||
{
|
||||
$result = $this->getModel('ajax')->updateProgress($typeValue);
|
||||
$result = $this->getModel('ajax')->updateLocalListingExternal($idValue, $targetValue, $typeValue, $sleutelValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -250,6 +217,45 @@ class SermondistributorControllerAjax extends JControllerLegacy
|
||||
echo "(".json_encode($e).");";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'getBuildTable':
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$idNameValue = $jinput->get('idName', NULL, 'WORD');
|
||||
$ojectValue = $jinput->get('oject', NULL, 'STRING');
|
||||
if($idNameValue && $ojectValue && $user->id != 0)
|
||||
{
|
||||
$result = $this->getModel('ajax')->getBuildTable($idNameValue, $ojectValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = false;
|
||||
}
|
||||
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||
{
|
||||
echo $callback . "(".json_encode($result).");";
|
||||
}
|
||||
elseif($returnRaw)
|
||||
{
|
||||
echo json_encode($result);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($result).");";
|
||||
}
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||
{
|
||||
echo $callback."(".json_encode($e).");";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($e).");";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
326
admin/controllers/external_source.php
Normal file
326
admin/controllers/external_source.php
Normal file
@ -0,0 +1,326 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage external_source.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');
|
||||
|
||||
// import Joomla controllerform library
|
||||
jimport('joomla.application.component.controllerform');
|
||||
|
||||
/**
|
||||
* External_source Controller
|
||||
*/
|
||||
class SermondistributorControllerExternal_source extends JControllerForm
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
*
|
||||
* @var string
|
||||
* @since 12.2
|
||||
* @note Replaces _task.
|
||||
*/
|
||||
protected $task;
|
||||
|
||||
public function __construct($config = array())
|
||||
{
|
||||
$this->view_list = 'External_sources'; // safeguard for setting the return view listing to the main view.
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can add a new record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// Access check.
|
||||
$access = JFactory::getUser()->authorise('external_source.access', 'com_sermondistributor');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// In the absense of better information, revert to the component permissions.
|
||||
return JFactory::getUser()->authorise('external_source.create', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can edit an existing record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
* @param string $key The name of the key for the primary key.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowEdit($data = array(), $key = 'id')
|
||||
{
|
||||
// get user object.
|
||||
$user = JFactory::getUser();
|
||||
// get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// Access check.
|
||||
$access = ($user->authorise('external_source.access', 'com_sermondistributor.external_source.' . (int) $recordId) && $user->authorise('external_source.access', 'com_sermondistributor'));
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($recordId)
|
||||
{
|
||||
// The record has been set. Check the record permissions.
|
||||
$permission = $user->authorise('external_source.edit', 'com_sermondistributor.external_source.' . (int) $recordId);
|
||||
if (!$permission && !is_null($permission))
|
||||
{
|
||||
if ($user->authorise('external_source.edit.own', 'com_sermondistributor.external_source.' . $recordId))
|
||||
{
|
||||
// Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// Need to do a lookup from the model.
|
||||
$record = $this->getModel()->getItem($recordId);
|
||||
|
||||
if (empty($record))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$ownerId = $record->created_by;
|
||||
}
|
||||
|
||||
// If the owner matches 'me' then allow.
|
||||
if ($ownerId == $user->id)
|
||||
{
|
||||
if ($user->authorise('external_source.edit.own', 'com_sermondistributor'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('external_source.edit', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the URL arguments to append to an item redirect.
|
||||
*
|
||||
* @param integer $recordId The primary key id for the item.
|
||||
* @param string $urlVar The name of the URL variable for the id.
|
||||
*
|
||||
* @return string The arguments to append to the redirect URL.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||
{
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$layout = $this->input->get('layout', 'edit', 'string');
|
||||
|
||||
$ref = $this->input->get('ref', 0, 'string');
|
||||
$refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// Setup redirect info.
|
||||
|
||||
$append = '';
|
||||
|
||||
if ($refid)
|
||||
{
|
||||
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
|
||||
}
|
||||
elseif ($ref)
|
||||
{
|
||||
$append .= '&ref='.(string)$ref;
|
||||
}
|
||||
|
||||
if ($tmpl)
|
||||
{
|
||||
$append .= '&tmpl=' . $tmpl;
|
||||
}
|
||||
|
||||
if ($layout)
|
||||
{
|
||||
$append .= '&layout=' . $layout;
|
||||
}
|
||||
|
||||
if ($recordId)
|
||||
{
|
||||
$append .= '&' . $urlVar . '=' . $recordId;
|
||||
}
|
||||
|
||||
return $append;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to run batch operations.
|
||||
*
|
||||
* @param object $model The model.
|
||||
*
|
||||
* @return boolean True if successful, false otherwise and internal error is set.
|
||||
*
|
||||
* @since 2.5
|
||||
*/
|
||||
public function batch($model = null)
|
||||
{
|
||||
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||
|
||||
// Set the model
|
||||
$model = $this->getModel('External_source', '', array());
|
||||
|
||||
// Preset the redirect
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=external_sources' . $this->getRedirectToListAppend(), false));
|
||||
|
||||
return parent::batch($model);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to cancel an edit.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
*
|
||||
* @return boolean True if access level checks pass, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function cancel($key = null)
|
||||
{
|
||||
// get the referal details
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
$cancel = parent::cancel($key);
|
||||
|
||||
if ($cancel)
|
||||
{
|
||||
if ($this->refid)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Redirect to the items screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $cancel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save a record.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
|
||||
*
|
||||
* @return boolean True if successful, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function save($key = null, $urlVar = null)
|
||||
{
|
||||
// get the referal details
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
if ($this->ref || $this->refid)
|
||||
{
|
||||
// to make sure the item is checkedin on redirect
|
||||
$this->task = 'save';
|
||||
}
|
||||
|
||||
$saved = parent::save($key, $urlVar);
|
||||
|
||||
if ($this->refid && $saved)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref && $saved)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $saved;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function that allows child controller access to model data
|
||||
* after the data has been saved.
|
||||
*
|
||||
* @param JModel &$model The data model object.
|
||||
* @param array $validData The validated data.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 11.1
|
||||
*/
|
||||
protected function postSaveHook(JModelLegacy $model, $validData = array())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
111
admin/controllers/external_sources.php
Normal file
111
admin/controllers/external_sources.php
Normal file
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage external_sources.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');
|
||||
|
||||
// import Joomla controlleradmin library
|
||||
jimport('joomla.application.component.controlleradmin');
|
||||
|
||||
/**
|
||||
* External_sources Controller
|
||||
*/
|
||||
class SermondistributorControllerExternal_sources extends JControllerAdmin
|
||||
{
|
||||
protected $text_prefix = 'COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCES';
|
||||
/**
|
||||
* Proxy for getModel.
|
||||
* @since 2.5
|
||||
*/
|
||||
public function getModel($name = 'External_source', $prefix = 'SermondistributorModel', $config = array())
|
||||
{
|
||||
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
||||
|
||||
return $model;
|
||||
}
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('external_source.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||
{
|
||||
// Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// Get the model
|
||||
$model = $this->getModel('External_sources');
|
||||
// get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (SermondistributorHelper::checkArray($data))
|
||||
{
|
||||
// now set the data to the spreadsheet
|
||||
$date = JFactory::getDate();
|
||||
SermondistributorHelper::xls($data,'External_sources_'.$date->format('jS_F_Y'),'External sources exported ('.$date->format('jS F, Y').')','external sources');
|
||||
}
|
||||
}
|
||||
// Redirect to the list screen with error.
|
||||
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=external_sources', false), $message, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
public function importData()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('external_source.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||
{
|
||||
// Get the import model
|
||||
$model = $this->getModel('External_sources');
|
||||
// get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
// Load headers to session.
|
||||
$session = JFactory::getSession();
|
||||
$headers = json_encode($headers);
|
||||
$session->set('external_source_VDM_IMPORTHEADERS', $headers);
|
||||
$session->set('backto_VDM_IMPORT', 'external_sources');
|
||||
$session->set('dataType_VDM_IMPORTINTO', 'external_source');
|
||||
// Redirect to import view.
|
||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_EXTERNAL_SOURCES');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Redirect to the list screen with error.
|
||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=external_sources', false), $message, 'error');
|
||||
return;
|
||||
}
|
||||
}
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage help.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage help_document.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage help_documents.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage import.php
|
||||
|
326
admin/controllers/local_listing.php
Normal file
326
admin/controllers/local_listing.php
Normal file
@ -0,0 +1,326 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage local_listing.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');
|
||||
|
||||
// import Joomla controllerform library
|
||||
jimport('joomla.application.component.controllerform');
|
||||
|
||||
/**
|
||||
* Local_listing Controller
|
||||
*/
|
||||
class SermondistributorControllerLocal_listing extends JControllerForm
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
*
|
||||
* @var string
|
||||
* @since 12.2
|
||||
* @note Replaces _task.
|
||||
*/
|
||||
protected $task;
|
||||
|
||||
public function __construct($config = array())
|
||||
{
|
||||
$this->view_list = 'Local_listings'; // safeguard for setting the return view listing to the main view.
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can add a new record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// Access check.
|
||||
$access = JFactory::getUser()->authorise('local_listing.access', 'com_sermondistributor');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// In the absense of better information, revert to the component permissions.
|
||||
return JFactory::getUser()->authorise('local_listing.create', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can edit an existing record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
* @param string $key The name of the key for the primary key.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowEdit($data = array(), $key = 'id')
|
||||
{
|
||||
// get user object.
|
||||
$user = JFactory::getUser();
|
||||
// get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// Access check.
|
||||
$access = ($user->authorise('local_listing.access', 'com_sermondistributor.local_listing.' . (int) $recordId) && $user->authorise('local_listing.access', 'com_sermondistributor'));
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($recordId)
|
||||
{
|
||||
// The record has been set. Check the record permissions.
|
||||
$permission = $user->authorise('local_listing.edit', 'com_sermondistributor.local_listing.' . (int) $recordId);
|
||||
if (!$permission && !is_null($permission))
|
||||
{
|
||||
if ($user->authorise('local_listing.edit.own', 'com_sermondistributor.local_listing.' . $recordId))
|
||||
{
|
||||
// Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// Need to do a lookup from the model.
|
||||
$record = $this->getModel()->getItem($recordId);
|
||||
|
||||
if (empty($record))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$ownerId = $record->created_by;
|
||||
}
|
||||
|
||||
// If the owner matches 'me' then allow.
|
||||
if ($ownerId == $user->id)
|
||||
{
|
||||
if ($user->authorise('local_listing.edit.own', 'com_sermondistributor'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('local_listing.edit', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the URL arguments to append to an item redirect.
|
||||
*
|
||||
* @param integer $recordId The primary key id for the item.
|
||||
* @param string $urlVar The name of the URL variable for the id.
|
||||
*
|
||||
* @return string The arguments to append to the redirect URL.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||
{
|
||||
$tmpl = $this->input->get('tmpl');
|
||||
$layout = $this->input->get('layout', 'edit', 'string');
|
||||
|
||||
$ref = $this->input->get('ref', 0, 'string');
|
||||
$refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// Setup redirect info.
|
||||
|
||||
$append = '';
|
||||
|
||||
if ($refid)
|
||||
{
|
||||
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
|
||||
}
|
||||
elseif ($ref)
|
||||
{
|
||||
$append .= '&ref='.(string)$ref;
|
||||
}
|
||||
|
||||
if ($tmpl)
|
||||
{
|
||||
$append .= '&tmpl=' . $tmpl;
|
||||
}
|
||||
|
||||
if ($layout)
|
||||
{
|
||||
$append .= '&layout=' . $layout;
|
||||
}
|
||||
|
||||
if ($recordId)
|
||||
{
|
||||
$append .= '&' . $urlVar . '=' . $recordId;
|
||||
}
|
||||
|
||||
return $append;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to run batch operations.
|
||||
*
|
||||
* @param object $model The model.
|
||||
*
|
||||
* @return boolean True if successful, false otherwise and internal error is set.
|
||||
*
|
||||
* @since 2.5
|
||||
*/
|
||||
public function batch($model = null)
|
||||
{
|
||||
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||
|
||||
// Set the model
|
||||
$model = $this->getModel('Local_listing', '', array());
|
||||
|
||||
// Preset the redirect
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=local_listings' . $this->getRedirectToListAppend(), false));
|
||||
|
||||
return parent::batch($model);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to cancel an edit.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
*
|
||||
* @return boolean True if access level checks pass, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function cancel($key = null)
|
||||
{
|
||||
// get the referal details
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
$cancel = parent::cancel($key);
|
||||
|
||||
if ($cancel)
|
||||
{
|
||||
if ($this->refid)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Redirect to the items screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . '&view=' . $this->view_list, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $cancel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save a record.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
|
||||
*
|
||||
* @return boolean True if successful, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function save($key = null, $urlVar = null)
|
||||
{
|
||||
// get the referal details
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
if ($this->ref || $this->refid)
|
||||
{
|
||||
// to make sure the item is checkedin on redirect
|
||||
$this->task = 'save';
|
||||
}
|
||||
|
||||
$saved = parent::save($key, $urlVar);
|
||||
|
||||
if ($this->refid && $saved)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref.'&layout=edit&id='.(int)$this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref && $saved)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $saved;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function that allows child controller access to model data
|
||||
* after the data has been saved.
|
||||
*
|
||||
* @param JModel &$model The data model object.
|
||||
* @param array $validData The validated data.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 11.1
|
||||
*/
|
||||
protected function postSaveHook(JModelLegacy $model, $validData = array())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
111
admin/controllers/local_listings.php
Normal file
111
admin/controllers/local_listings.php
Normal file
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage local_listings.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');
|
||||
|
||||
// import Joomla controlleradmin library
|
||||
jimport('joomla.application.component.controlleradmin');
|
||||
|
||||
/**
|
||||
* Local_listings Controller
|
||||
*/
|
||||
class SermondistributorControllerLocal_listings extends JControllerAdmin
|
||||
{
|
||||
protected $text_prefix = 'COM_SERMONDISTRIBUTOR_LOCAL_LISTINGS';
|
||||
/**
|
||||
* Proxy for getModel.
|
||||
* @since 2.5
|
||||
*/
|
||||
public function getModel($name = 'Local_listing', $prefix = 'SermondistributorModel', $config = array())
|
||||
{
|
||||
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
||||
|
||||
return $model;
|
||||
}
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('local_listing.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||
{
|
||||
// Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// Get the model
|
||||
$model = $this->getModel('Local_listings');
|
||||
// get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (SermondistributorHelper::checkArray($data))
|
||||
{
|
||||
// now set the data to the spreadsheet
|
||||
$date = JFactory::getDate();
|
||||
SermondistributorHelper::xls($data,'Local_listings_'.$date->format('jS_F_Y'),'Local listings exported ('.$date->format('jS F, Y').')','local listings');
|
||||
}
|
||||
}
|
||||
// Redirect to the list screen with error.
|
||||
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=local_listings', false), $message, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
public function importData()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('local_listing.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||
{
|
||||
// Get the import model
|
||||
$model = $this->getModel('Local_listings');
|
||||
// get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
// Load headers to session.
|
||||
$session = JFactory::getSession();
|
||||
$headers = json_encode($headers);
|
||||
$session->set('local_listing_VDM_IMPORTHEADERS', $headers);
|
||||
$session->set('backto_VDM_IMPORT', 'local_listings');
|
||||
$session->set('dataType_VDM_IMPORTINTO', 'local_listing');
|
||||
// Redirect to import view.
|
||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_LOCAL_LISTINGS');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Redirect to the list screen with error.
|
||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=local_listings', false), $message, 'error');
|
||||
return;
|
||||
}
|
||||
}
|
61
admin/controllers/manual_updater.php
Normal file
61
admin/controllers/manual_updater.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage manual_updater.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');
|
||||
|
||||
// import Joomla controlleradmin library
|
||||
jimport('joomla.application.component.controlleradmin');
|
||||
|
||||
/**
|
||||
* Manual_updater Controller
|
||||
*/
|
||||
class SermondistributorControllerManual_updater extends JControllerAdmin
|
||||
{
|
||||
protected $text_prefix = 'COM_SERMONDISTRIBUTOR_MANUAL_UPDATER';
|
||||
/**
|
||||
* Proxy for getModel.
|
||||
* @since 2.5
|
||||
*/
|
||||
public function getModel($name = 'Manual_updater', $prefix = 'SermondistributorModel', $config = array())
|
||||
{
|
||||
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
||||
|
||||
return $model;
|
||||
}
|
||||
|
||||
public function dashboard()
|
||||
{
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor', false));
|
||||
return;
|
||||
}
|
||||
|
||||
public function gotoExternalSources()
|
||||
{
|
||||
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=external_sources', false));
|
||||
return;
|
||||
}
|
||||
}
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage preacher.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage preachers.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage series.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage series_list.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermon.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermondistributor.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage statistic.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage statistics.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage batch_.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermondistributor.php
|
||||
@ -37,23 +37,26 @@ abstract class SermondistributorHelper
|
||||
**/
|
||||
public static function globalEvent($document)
|
||||
{
|
||||
self::loadDropboxAjax($document);
|
||||
self::loadExternalUpdateAjax($document);
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Dropbox Ajax to page
|
||||
* Load the External Update Ajax to page
|
||||
**/
|
||||
public static function loadDropboxAjax($document)
|
||||
public static function loadExternalUpdateAjax($document)
|
||||
{
|
||||
$document->addScriptDeclaration("
|
||||
$updates = self::getExternalListingUpdateKeys(); // id, target, type
|
||||
if (self::checkArray($updates))
|
||||
{
|
||||
$document->addScriptDeclaration("
|
||||
jQuery(window).load(function() {
|
||||
checkDropboxListing(3);
|
||||
checkExternalListing(".implode('); checkExternalListing(', $updates).");
|
||||
});
|
||||
|
||||
function checkDropboxListing(fromview){
|
||||
var getUrl = '".JURI::root()."administrator/index.php?option=com_sermondistributor&task=ajax.checkDropboxListing&format=json';
|
||||
if(fromview > 0){
|
||||
var request = 'token=".JSession::getFormToken()."&fromview='+fromview;
|
||||
function checkExternalListing(id, target, type) {
|
||||
var getUrl = '".JURI::root()."administrator/index.php?option=com_sermondistributor&task=ajax.autoUpdateLocalListingExternal&format=json';
|
||||
if(target > 0 && type > 0 && id > 0){
|
||||
var request = 'token=".JSession::getFormToken()."&target='+target+'&id='+id+'&type='+type;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: 'GET',
|
||||
@ -62,39 +65,29 @@ abstract class SermondistributorHelper
|
||||
data: request,
|
||||
jsonp: 'callback'
|
||||
});
|
||||
}
|
||||
");
|
||||
}
|
||||
|
||||
}");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The dropbox links auto
|
||||
* The external source links auto
|
||||
**/
|
||||
protected static $links_dropbox_auto;
|
||||
protected static $links_externalsource_auto;
|
||||
|
||||
/**
|
||||
* The dropbox links manual
|
||||
* The external source links manual
|
||||
**/
|
||||
protected static $links_dropbox_manual;
|
||||
protected static $links_externalsource_manual;
|
||||
|
||||
/**
|
||||
* The dropbox info File Name
|
||||
* The external source selection auto
|
||||
**/
|
||||
protected static $autoprogress = false;
|
||||
|
||||
protected static $select_externalsource_auto;
|
||||
|
||||
/**
|
||||
* The dropbox info File Name
|
||||
* The external source selection manual
|
||||
**/
|
||||
protected static $manualprogress = false;
|
||||
|
||||
/**
|
||||
* The dropbox info File Name
|
||||
**/
|
||||
protected static $autolisting = false;
|
||||
|
||||
/**
|
||||
* The dropbox info File Name
|
||||
**/
|
||||
protected static $manuallisting = false;
|
||||
protected static $select_externalsource_manual;
|
||||
|
||||
/**
|
||||
* The user notice info File Name
|
||||
@ -102,7 +95,42 @@ abstract class SermondistributorHelper
|
||||
protected static $usernotice = false;
|
||||
|
||||
/**
|
||||
* check Dropbox Local Listing
|
||||
* The update error info File Name
|
||||
**/
|
||||
protected static $updateerror = false;
|
||||
|
||||
/**
|
||||
* The update errors
|
||||
**/
|
||||
protected static $updateErrors = array();
|
||||
|
||||
/**
|
||||
* prepare base64 string for url
|
||||
**/
|
||||
public static function base64_urlencode($string, $encode = false)
|
||||
{
|
||||
if ($encode)
|
||||
{
|
||||
$string = base64_encode($string);
|
||||
}
|
||||
return str_replace(array('+', '/'), array('-', '_'), $string);
|
||||
}
|
||||
|
||||
/**
|
||||
* prepare base64 string form url
|
||||
**/
|
||||
public static function base64_urldecode($string, $decode = false)
|
||||
{
|
||||
$string = str_replace(array('-', '_'), array('+', '/'), $string);
|
||||
if ($decode)
|
||||
{
|
||||
$string = base64_decode($string);
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
||||
/**
|
||||
* get Download links of a sermon
|
||||
**/
|
||||
public static function getDownloadLinks(&$sermon)
|
||||
{
|
||||
@ -122,12 +150,13 @@ abstract class SermondistributorHelper
|
||||
{
|
||||
$keyCounter->series = $sermon->series;
|
||||
}
|
||||
$keyCounter = base64_encode($safe->encryptString(json_encode($keyCounter)));
|
||||
$keyCounterRAW = $safe->encryptString(json_encode($keyCounter));
|
||||
$keyCounter = self::base64_urlencode($keyCounterRAW);
|
||||
$token = JSession::getFormToken();
|
||||
$downloadURL = JURI::root().'index.php?option=com_sermondistributor&task=download.file&key='.$keyCounter.'&token='.$token;
|
||||
// check if local .htaccess should be set
|
||||
$setHtaccess = false;
|
||||
$onclick = ' onclick="sermonCounter(\''.$keyCounter.'\',\'FILENAME\');"';
|
||||
$onclick = ' onclick="sermonCounter(\''.$keyCounterRAW.'\',\'FILENAME\');"';
|
||||
// check what source of our link
|
||||
switch ($sermon->source)
|
||||
{
|
||||
@ -155,8 +184,8 @@ abstract class SermondistributorHelper
|
||||
{
|
||||
// get the file name use the same method as the auto
|
||||
$filename = self::getDownloadFileName($sermon,$key,'local');
|
||||
$lockedFolderPath = base64_encode($safe->encryptString($localFolder.$key));
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.$lockedFolderPath.'&filename='.$filename;
|
||||
$lockedFolderPath = $safe->encryptString($localFolder.$key);
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.self::base64_urlencode($lockedFolderPath).'&filename='.$filename;
|
||||
$sermon->onclick[$filename] = '';
|
||||
}
|
||||
elseif (2 == $sermon->link_type && $allowDirect)
|
||||
@ -171,7 +200,7 @@ abstract class SermondistributorHelper
|
||||
break;
|
||||
case 2:
|
||||
// Dropbox get global dropbox switch
|
||||
$dropboxButton = JComponentHelper::getParams('com_sermondistributor')->get('add_to_dropbox', 1);
|
||||
$addToButton = JComponentHelper::getParams('com_sermondistributor')->get('add_to_button', 0);
|
||||
if (1 == $sermon->build)
|
||||
{
|
||||
if (self::checkArray($sermon->manual_files))
|
||||
@ -180,24 +209,43 @@ abstract class SermondistributorHelper
|
||||
foreach($sermon->manual_files as $key)
|
||||
{
|
||||
// get the link
|
||||
$dropURL = self::getDropboxLink('manual',1,$key);
|
||||
$dropURL = self::getExternalSourceLink('manual',1,$key);
|
||||
if (1 == $sermon->link_type && $dropURL)
|
||||
{
|
||||
// get the file name use the same method as the auto
|
||||
$filename = self::getDownloadFileName($sermon,$key,'dropbox_manual');
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.$dropURL.'&filename='.$filename;
|
||||
// should we encrypt string this string
|
||||
if ('localKey34fdWEkl' == $localkey || (base64_encode(base64_decode($dropURL, true)) !== $dropURL)) // hmmm no global key has been set
|
||||
{
|
||||
$dropURL = $safe->encryptString($dropURL);
|
||||
}
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.self::base64_urlencode($dropURL).'&filename='.$filename;
|
||||
$sermon->onclick[$filename] = '';
|
||||
}
|
||||
elseif (2 == $sermon->link_type && $dropURL)
|
||||
{
|
||||
$filename = str_replace('VDM_pLeK_h0uEr/', '', $key);
|
||||
$sermon->download_links[$filename] = rtrim($safe->decryptString(base64_decode($dropURL)));
|
||||
if ('localKey34fdWEkl' == $localkey) // hmmm no global key has been set (so don't decrypt)
|
||||
{
|
||||
$sermon->download_links[$filename] = $dropURL;
|
||||
}
|
||||
else
|
||||
{
|
||||
$sermon->download_links[$filename] = rtrim($safe->decryptString($dropURL), "\0");
|
||||
}
|
||||
$sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick);
|
||||
}
|
||||
// build dropbox switch if needed
|
||||
if (1 == $dropboxButton && $dropURL)
|
||||
if (1 == $addToButton && $dropURL)
|
||||
{
|
||||
$sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString(base64_decode($dropURL))));
|
||||
if ('localKey34fdWEkl' == $localkey) // hmmm no global key has been set (so don't decrypt)
|
||||
{
|
||||
$sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', $dropURL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString($dropURL), "\0"));
|
||||
}
|
||||
$sermon->onclick_drobox[$filename] = str_replace('FILENAME', $filename, $onclick);
|
||||
}
|
||||
}
|
||||
@ -211,22 +259,41 @@ abstract class SermondistributorHelper
|
||||
foreach($sermon->auto_sermons as $filename => $key)
|
||||
{
|
||||
// get the link
|
||||
$dropURL = self::getDropboxLink('auto',1,$key);
|
||||
$dropURL = self::getExternalSourceLink('auto',1,$key);
|
||||
if (1 == $sermon->link_type && $dropURL)
|
||||
{
|
||||
// should we encrypt string this string
|
||||
if ('localKey34fdWEkl' == $localkey || (base64_encode(base64_decode($dropURL, true)) !== $dropURL)) // hmmm no global key has been set
|
||||
{
|
||||
$dropURL = $safe->encryptString($dropURL);
|
||||
}
|
||||
// get the file name (use the same method as the auto
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.$dropURL.'&filename='.$filename;
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.self::base64_urlencode($dropURL).'&filename='.$filename;
|
||||
$sermon->onclick[$filename] = '';
|
||||
}
|
||||
elseif (2 == $sermon->link_type && $dropURL)
|
||||
{
|
||||
$sermon->download_links[$filename] = rtrim($safe->decryptString(base64_decode($dropURL)));
|
||||
if ('localKey34fdWEkl' == $localkey) // hmmm no global key has been set (so don't decrypt)
|
||||
{
|
||||
$sermon->download_links[$filename] = $dropURL;
|
||||
}
|
||||
else
|
||||
{
|
||||
$sermon->download_links[$filename] = rtrim($safe->decryptString($dropURL), "\0");
|
||||
}
|
||||
$sermon->onclick[$filename] = str_replace('FILENAME', $filename, $onclick);
|
||||
}
|
||||
// build dropbox switch if needed
|
||||
if (1 == $dropboxButton && $dropURL)
|
||||
if (1 == $addToButton && $dropURL)
|
||||
{
|
||||
$sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString(base64_decode($dropURL))));
|
||||
if ('localKey34fdWEkl' == $localkey) // hmmm no global key has been set (so don't decrypt)
|
||||
{
|
||||
$sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', $dropURL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$sermon->dropbox_buttons[$filename] = str_replace('?dl=1', '?dl=0', rtrim($safe->decryptString($dropURL), "\0"));
|
||||
}
|
||||
$sermon->onclick_drobox[$filename] = str_replace('FILENAME', $filename, $onclick);
|
||||
}
|
||||
}
|
||||
@ -238,8 +305,8 @@ abstract class SermondistributorHelper
|
||||
$filename = self::getDownloadFileName($sermon,$sermon->url,'url');
|
||||
if (1 == $sermon->link_type)
|
||||
{
|
||||
$lockedURL = base64_encode($safe->encryptString($sermon->url));
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.$lockedURL.'&filename='.$filename;
|
||||
$lockedURL = $safe->encryptString($sermon->url);
|
||||
$sermon->download_links[$filename] = $downloadURL.'&link='.self::base64_urlencode($lockedURL).'&filename='.$filename;
|
||||
$sermon->onclick[$filename] = '';
|
||||
}
|
||||
elseif (2 == $sermon->link_type)
|
||||
@ -261,25 +328,104 @@ abstract class SermondistributorHelper
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function getExternalListingUpdateKeys($id = null, $updateMethod = 2, $returnType = 1)
|
||||
{
|
||||
// first check if this file already has statistics
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('id','sharedurl','folder','permissiontype','dropboxoptions','build')));
|
||||
$query->from($db->quoteName('#__sermondistributor_external_source'));
|
||||
$query->where($db->quoteName('update_method') . ' = '. (int) $updateMethod);
|
||||
if ($id && is_numeric($id))
|
||||
{
|
||||
$query->where($db->quoteName('id') . ' = '. (int) $id);
|
||||
}
|
||||
elseif ($id && self::checkArray($id))
|
||||
{
|
||||
$ids = implode(',', array_map( 'intval', $id));
|
||||
$query->where($db->quoteName('id') . ' IN (' . $ids . ')');
|
||||
}
|
||||
$query->where($db->quoteName('published') . ' = 1');
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$results = $db->loadObjectList();
|
||||
$updates = array();
|
||||
foreach ($results as $result)
|
||||
{
|
||||
if ('full' == $result->permissiontype)
|
||||
{
|
||||
// load folder or urls
|
||||
switch ($result->dropboxoptions)
|
||||
{
|
||||
case 1: // sharedurl
|
||||
if (self::checkJson($result->sharedurl))
|
||||
{
|
||||
$targets = json_decode($result->sharedurl)->tsharedurl;
|
||||
}
|
||||
break;
|
||||
case 2: // folders
|
||||
if (self::checkJson($result->folder))
|
||||
{
|
||||
$targets = json_decode($result->folder)->tfolder;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (self::checkArray($targets))
|
||||
{
|
||||
foreach ($targets as $key => $value)
|
||||
{
|
||||
$nr = $key + 1;
|
||||
// id, target, type
|
||||
if (1 == $returnType)
|
||||
{
|
||||
$updates[] = $result->id . ', '. $nr . ', ' . $result->build;
|
||||
}
|
||||
else // only return the targets
|
||||
{
|
||||
$updates[] = $nr;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// id, target, type
|
||||
if (1 == $returnType)
|
||||
{
|
||||
$updates[] = $result->id . ', 1, '. $result->build;
|
||||
}
|
||||
else // only return the targets
|
||||
{
|
||||
$updates[] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $updates;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function getDropboxLink($type, $return = false, $target = false)
|
||||
public static function getExternalSourceLink($type, $return = 7, $get = false, $target = 'links')
|
||||
{
|
||||
// make sure all defaults are set
|
||||
$found = self::checkDropboxLocalListing($type);
|
||||
$found = self::checkExternalSourceLocalListing($type, $target);
|
||||
if ($found)
|
||||
{
|
||||
switch($return)
|
||||
{
|
||||
case 1:
|
||||
// return a link
|
||||
if (isset(self::${'links_dropbox_'.$type}[$target]))
|
||||
if (isset(self::${$target.'_externalsource_'.$type}[$get]))
|
||||
{
|
||||
return self::${'links_dropbox_'.$type}[$target];
|
||||
return self::${$target.'_externalsource_'.$type}[$get];
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
// return all links
|
||||
return self::${'links_dropbox_'.$type};
|
||||
return self::${$target.'_externalsource_'.$type};
|
||||
break;
|
||||
default :
|
||||
// just confirm that it is set
|
||||
@ -295,7 +441,7 @@ abstract class SermondistributorHelper
|
||||
// Get local key
|
||||
$localkey = self::getLocalKey();
|
||||
$opener = new FOFEncryptAes($localkey, 128);
|
||||
$counter = json_decode(rtrim($opener->decryptString(base64_decode($counter))));
|
||||
$counter = json_decode(rtrim($opener->decryptString($counter), "\0"));
|
||||
if (self::checkObject($counter))
|
||||
{
|
||||
$counter->filename = $filename;
|
||||
@ -390,27 +536,37 @@ abstract class SermondistributorHelper
|
||||
}
|
||||
|
||||
/**
|
||||
* check Dropbox Local Listing (do we have the files)
|
||||
* check External Source Local Listing (do we have the files)
|
||||
**/
|
||||
public static function checkDropboxLocalListing($type)
|
||||
public static function checkExternalSourceLocalListing($type, $get = 'links')
|
||||
{
|
||||
$filePath = self::getFilePath($type);
|
||||
// get the local links
|
||||
if (self::checkArray(self::${'links_dropbox_'.$type}))
|
||||
if (isset(self::${$get.'_externalsource_'.$type}) && self::checkArray(self::${$get.'_externalsource_'.$type}))
|
||||
{
|
||||
// return true we have links loaded
|
||||
return true;
|
||||
}
|
||||
elseif (($jsonlinks = @file_get_contents($filePath)) !== FALSE)
|
||||
{
|
||||
if (self::checkString($jsonlinks))
|
||||
else
|
||||
{
|
||||
$target = array('links' => 'url', 'select' => 'name');
|
||||
$build = array( 'auto' => 2, 'manual' => 1);
|
||||
if (isset($build[$type]))
|
||||
{
|
||||
// get saved links
|
||||
$storeage = json_decode($jsonlinks,true);
|
||||
if (self::checkArray($storeage))
|
||||
// load the links from the database
|
||||
$db = JFactory::getDbo();
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('key', $target[$get])));
|
||||
$query->from($db->quoteName('#__sermondistributor_local_listing'));
|
||||
$query->where($db->quoteName('build') . ' = '. (int) $build[$type]);
|
||||
$query->where($db->quoteName('published') . ' = 1'); // TODO we can now limit the links to access groups
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
// load the saved links
|
||||
self::${'links_dropbox_'.$type} = $storeage;
|
||||
self::${$get.'_externalsource_'.$type} = $db->loadAssocList('key', $target[$get]);
|
||||
// return true we have links loaded
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -436,53 +592,81 @@ abstract class SermondistributorHelper
|
||||
/**
|
||||
* get the localkey
|
||||
**/
|
||||
protected static $localkey = false;
|
||||
protected static $localkey = array();
|
||||
|
||||
public static function getLocalKey()
|
||||
public static function getLocalKey($type = 'basic_key')
|
||||
{
|
||||
if (!self::$localkey)
|
||||
if (!isset(self::$localkey[$type]))
|
||||
{
|
||||
// get the main key
|
||||
self::$localkey = md5(JComponentHelper::getParams('com_sermondistributor')->get('link_encryption', 'localKey34fdWEkl'));
|
||||
self::$localkey[$type] = JComponentHelper::getParams('com_sermondistributor')->get($type, 'localKey34fdWEkl');
|
||||
}
|
||||
return self::$localkey;
|
||||
return self::$localkey[$type];
|
||||
}
|
||||
|
||||
public static function updateDropbox($type = false, $force = false)
|
||||
public static function updateExternalSource($id, $target = 0, $type = false, $force = false, $sleutel = null)
|
||||
{
|
||||
// load the file
|
||||
JLoader::import('dropboxupdater', JPATH_COMPONENT_SITE.'/helpers');
|
||||
// update types
|
||||
$types = array('manual','auto');
|
||||
// okay now update this type
|
||||
if (self::checkString($type) && in_array($type,$types))
|
||||
$source = self::getVar('external_source', (int) $id, 'id', 'externalsources');
|
||||
if (1 == $source) // Dropbox is the source
|
||||
{
|
||||
$dropbox = new Dropboxupdater();
|
||||
return $dropbox->update($type,$force);
|
||||
// load the file
|
||||
JLoader::import('dropboxupdater', JPATH_COMPONENT_SITE.'/helpers');
|
||||
// update types
|
||||
$types = array('manual','auto');
|
||||
// okay now update this type
|
||||
if (self::checkString($type) && in_array($type,$types))
|
||||
{
|
||||
$dropbox = new Dropboxupdater();
|
||||
if ($dropbox->update($id, $target, $type, $force, $sleutel))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
self::setUpdateError($id, $dropbox->getErrors());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
self::setUpdateError($id, array(JText::_('COM_SERMONDISTRIBUTOR_THE_EXTERNAL_SOURCE_COULD_NOT_BE_FOUND')));
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function getUpdateProgress($type)
|
||||
public static function getUpdateError($id, $fileKey = null)
|
||||
{
|
||||
$filePath = self::getFilePath($type,'progress');
|
||||
// get the set progress
|
||||
if (($progress = @file_get_contents($filePath)) !== FALSE)
|
||||
{
|
||||
if (self::checkString($progress))
|
||||
// get update error from file
|
||||
if ($fileKey)
|
||||
{
|
||||
$file_path = self::getFilePath('update', 'error', $fileKey, '.txt', JPATH_COMPONENT_ADMINISTRATOR);
|
||||
// check if it is set
|
||||
if (($text = @file_get_contents($file_path)) !== FALSE)
|
||||
{
|
||||
// get set progress
|
||||
$progress = json_decode($progress,true);
|
||||
if (self::checkArray($progress))
|
||||
// no error on success
|
||||
if ('success' != $text)
|
||||
{
|
||||
// return te progress
|
||||
return $progress['report'];
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (isset(self::$updateErrors[$id]) && self::checkArray(self::$updateErrors[$id]))
|
||||
{
|
||||
return '<ul><li>'.implode('</li><li>', self::$updateErrors[$id]).'</li><ul>';
|
||||
}
|
||||
return JText::_('COM_SERMONDISTRIBUTOR_UNKNOWN_ERROR_HAS_OCCURRED');
|
||||
}
|
||||
|
||||
protected static function setUpdateError($id, $errorArray)
|
||||
{
|
||||
if (self::checkArray($errorArray) && $id > 0)
|
||||
{
|
||||
foreach ($errorArray as $error)
|
||||
{
|
||||
if (!isset(self::$updateErrors[$id]))
|
||||
{
|
||||
self::$updateErrors[$id] = array();
|
||||
}
|
||||
self::$updateErrors[$id][] = $error;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Component xml manifest.
|
||||
**/
|
||||
@ -628,6 +812,19 @@ abstract class SermondistributorHelper
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_STATISTICS'), 'index.php?option=com_sermondistributor&view=statistics', $submenu == 'statistics');
|
||||
}
|
||||
if ($user->authorise('external_source.access', 'com_sermondistributor') && $user->authorise('external_source.submenu', 'com_sermondistributor'))
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_EXTERNAL_SOURCES'), 'index.php?option=com_sermondistributor&view=external_sources', $submenu == 'external_sources');
|
||||
}
|
||||
// Access control (manual_updater.access && manual_updater.submenu).
|
||||
if ($user->authorise('manual_updater.access', 'com_sermondistributor') && $user->authorise('manual_updater.submenu', 'com_sermondistributor'))
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_MANUAL_UPDATER'), 'index.php?option=com_sermondistributor&view=manual_updater', $submenu == 'manual_updater');
|
||||
}
|
||||
if ($user->authorise('local_listing.access', 'com_sermondistributor') && $user->authorise('local_listing.submenu', 'com_sermondistributor'))
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_LOCAL_LISTINGS'), 'index.php?option=com_sermondistributor&view=local_listings', $submenu == 'local_listings');
|
||||
}
|
||||
if ($user->authorise('help_document.access', 'com_sermondistributor') && $user->authorise('help_document.submenu', 'com_sermondistributor'))
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_SERMONDISTRIBUTOR_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_sermondistributor&view=help_documents', $submenu == 'help_documents');
|
||||
@ -1696,5 +1893,20 @@ abstract class SermondistributorHelper
|
||||
$key[] = $bag[$get];
|
||||
}
|
||||
return implode($key);
|
||||
}
|
||||
|
||||
public static function getCryptKey($type, $default = null)
|
||||
{
|
||||
if ('basic' == $type)
|
||||
{
|
||||
// Get the global params
|
||||
$params = JComponentHelper::getParams('com_sermondistributor', true);
|
||||
$basic_key = $params->get('basic_key', $default);
|
||||
if ($basic_key)
|
||||
{
|
||||
return $basic_key;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage batchselection.php
|
||||
|
42
admin/layouts/external_source/details_above.php
Normal file
42
admin/layouts/external_source/details_above.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = array(
|
||||
'description',
|
||||
'externalsources'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field){
|
||||
echo $form->renderField($field);
|
||||
} ?>
|
||||
</div>
|
49
admin/layouts/external_source/details_fullwidth.php
Normal file
49
admin/layouts/external_source/details_fullwidth.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'sharedurl',
|
||||
'folder'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $form->getLabel($field); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $form->getInput($field); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
58
admin/layouts/external_source/details_left.php
Normal file
58
admin/layouts/external_source/details_left.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'oauthtoken',
|
||||
'generated_access_token_note',
|
||||
'permissiontype',
|
||||
'app_limitation_note',
|
||||
'dropboxoptions'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
58
admin/layouts/external_source/details_right.php
Normal file
58
admin/layouts/external_source/details_right.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'build',
|
||||
'wiki_check_note',
|
||||
'update_method',
|
||||
'update_timer',
|
||||
'filetypes'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
41
admin/layouts/external_source/details_under.php
Normal file
41
admin/layouts/external_source/details_under.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_under.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = array(
|
||||
'not_required'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field){
|
||||
echo $form->renderField($field);
|
||||
} ?>
|
||||
</div>
|
1
admin/layouts/external_source/index.html
Normal file
1
admin/layouts/external_source/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
58
admin/layouts/external_source/publishing.php
Normal file
58
admin/layouts/external_source/publishing.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.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');
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'created',
|
||||
'created_by',
|
||||
'modified',
|
||||
'modified_by'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
59
admin/layouts/external_source/publlshing.php
Normal file
59
admin/layouts/external_source/publlshing.php
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publlshing.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');
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'published',
|
||||
'ordering',
|
||||
'version',
|
||||
'hits',
|
||||
'id'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
49
admin/layouts/external_source/wiki_fullwidth.php
Normal file
49
admin/layouts/external_source/wiki_fullwidth.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage wiki_fullwidth.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'note_manual_dropbox',
|
||||
'note_auto_dropbox'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $form->getLabel($field); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $form->getInput($field); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_under.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
42
admin/layouts/local_listing/details_above.php
Normal file
42
admin/layouts/local_listing/details_above.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = array(
|
||||
'name',
|
||||
'size'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field){
|
||||
echo $form->renderField($field);
|
||||
} ?>
|
||||
</div>
|
49
admin/layouts/local_listing/details_fullwidth.php
Normal file
49
admin/layouts/local_listing/details_fullwidth.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'key',
|
||||
'url'
|
||||
);
|
||||
|
||||
?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<div class="control-group">
|
||||
<div class="control-label">
|
||||
<?php echo $form->getLabel($field); ?>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<?php echo $form->getInput($field); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
54
admin/layouts/local_listing/details_left.php
Normal file
54
admin/layouts/local_listing/details_left.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'external_source'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
54
admin/layouts/local_listing/details_right.php
Normal file
54
admin/layouts/local_listing/details_right.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.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');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'build'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
1
admin/layouts/local_listing/index.html
Normal file
1
admin/layouts/local_listing/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
58
admin/layouts/local_listing/publishing.php
Normal file
58
admin/layouts/local_listing/publishing.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.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');
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'created',
|
||||
'created_by',
|
||||
'modified',
|
||||
'modified_by'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
59
admin/layouts/local_listing/publlshing.php
Normal file
59
admin/layouts/local_listing/publlshing.php
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publlshing.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');
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'published',
|
||||
'ordering',
|
||||
'version',
|
||||
'hits',
|
||||
'id'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$field = is_array($field) ? $field : array($field);
|
||||
foreach ($field as $f)
|
||||
{
|
||||
if ($form->getField($f))
|
||||
{
|
||||
if (in_array($f, $hiddenFields))
|
||||
{
|
||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
||||
}
|
||||
|
||||
echo $form->renderField($f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons_fullwidth.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage sermons_fullwidth.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_fullwidth.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_under.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage files_fullwidth.php
|
||||
@ -35,8 +35,8 @@ $fields = $displayData->get('fields') ?: array(
|
||||
'note_link_encrypted',
|
||||
'source',
|
||||
'build',
|
||||
'note_manual_dropbox',
|
||||
'note_auto_dropbox',
|
||||
'note_manual_externalsource',
|
||||
'note_auto_externalsource',
|
||||
'manual_files',
|
||||
'local_files',
|
||||
'url'
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage stastics_fullwidth.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_above.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_left.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage details_right.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage metadata.php
|
||||
|
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.3.8
|
||||
@build 2nd November, 2016
|
||||
@version 1.4.0
|
||||
@build 27th November, 2016
|
||||
@created 22nd October, 2015
|
||||
@package Sermon Distributor
|
||||
@subpackage publishing.php
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user