-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the new trash helper layout. Improves the access filter array s…
…tate control. Adds the empty hidden title field for the permissions fix in the views, that fixes the ajax call for permissions change/save in the back-end. Moves the filter empty option outside the result loop, so that an empty option will show even if there is not items found. Fixes the database adaptation of the assets table. Removes empty access control tabs.
- Loading branch information
1 parent
152026d
commit 1b5191d
Showing
66 changed files
with
415 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,32 +23,32 @@ The best way to see all your options is to install this component on you Joomla | |
+ *Author*: [Llewellyn van der Merwe](mailto:[email protected]) | ||
+ *Name*: [Sermon Distributor](https://www.vdm.io/) | ||
+ *First Build*: 22nd October, 2015 | ||
+ *Last Build*: 4th December, 2020 | ||
+ *Last Build*: 31st December, 2020 | ||
+ *Version*: 2.0.x | ||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved | ||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
## Build Time :hourglass: | ||
|
||
**203 Hours** or **25 Eight Hour Days** (actual time the author saved - | ||
**204 Hours** or **26 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*: **72798** | ||
+ *File count*: **459** | ||
+ *Line count*: **73050** | ||
+ *File count*: **460** | ||
+ *Folder count*: **93** | ||
|
||
**134 Hours** or **17 Eight Hour Days** (the actual time the author spent) | ||
**134 Hours** or **16 Eight Hour Days** (the actual time the author spent) | ||
|
||
> (with the following break down: | ||
> **debugging @51hours** = codingtime / 4; | ||
> **planning @29hours** = codingtime / 7; | ||
> **mapping @20hours** = codingtime / 10; | ||
> **office @34hours** = codingtime / 6;) | ||
**337 Hours** or **42 Eight Hour Days** | ||
**338 Hours** or **42 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**, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,32 +23,32 @@ The best way to see all your options is to install this component on you Joomla | |
+ *Author*: [Llewellyn van der Merwe](mailto:[email protected]) | ||
+ *Name*: [Sermon Distributor](https://www.vdm.io/) | ||
+ *First Build*: 22nd October, 2015 | ||
+ *Last Build*: 4th December, 2020 | ||
+ *Last Build*: 31st December, 2020 | ||
+ *Version*: 2.0.x | ||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved | ||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
## Build Time :hourglass: | ||
|
||
**203 Hours** or **25 Eight Hour Days** (actual time the author saved - | ||
**204 Hours** or **26 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*: **72798** | ||
+ *File count*: **459** | ||
+ *Line count*: **73050** | ||
+ *File count*: **460** | ||
+ *Folder count*: **93** | ||
|
||
**134 Hours** or **17 Eight Hour Days** (the actual time the author spent) | ||
**134 Hours** or **16 Eight Hour Days** (the actual time the author spent) | ||
|
||
> (with the following break down: | ||
> **debugging @51hours** = codingtime / 4; | ||
> **planning @29hours** = codingtime / 7; | ||
> **mapping @20hours** = codingtime / 10; | ||
> **office @34hours** = codingtime / 6;) | ||
|
||
**337 Hours** or **42 Eight Hour Days** | ||
**338 Hours** or **42 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**, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
/*-------------------------------------------------------------------------------------------------------------| www.vdm.io |------/ | ||
____ ____ __ __ __ | ||
/\ _`\ /\ _`\ __ /\ \__ __/\ \ /\ \__ | ||
\ \,\L\_\ __ _ __ ___ ___ ___ ___ \ \ \/\ \/\_\ ____\ \ ,_\ _ __ /\_\ \ \____ __ __\ \ ,_\ ___ _ __ | ||
\/_\__ \ /'__`\/\`'__\/' __` __`\ / __`\ /' _ `\ \ \ \ \ \/\ \ /',__\\ \ \/ /\`'__\/\ \ \ '__`\/\ \/\ \\ \ \/ / __`\/\`'__\ | ||
/\ \L\ \/\ __/\ \ \/ /\ \/\ \/\ \/\ \L\ \/\ \/\ \ \ \ \_\ \ \ \/\__, `\\ \ \_\ \ \/ \ \ \ \ \L\ \ \ \_\ \\ \ \_/\ \L\ \ \ \/ | ||
\ `\____\ \____\\ \_\ \ \_\ \_\ \_\ \____/\ \_\ \_\ \ \____/\ \_\/\____/ \ \__\\ \_\ \ \_\ \_,__/\ \____/ \ \__\ \____/\ \_\ | ||
\/_____/\/____/ \/_/ \/_/\/_/\/_/\/___/ \/_/\/_/ \/___/ \/_/\/___/ \/__/ \/_/ \/_/\/___/ \/___/ \/__/\/___/ \/_/ | ||
/------------------------------------------------------------------------------------------------------------------------------------/ | ||
@version 2.0.x | ||
@created 22nd October, 2015 | ||
@package Sermon Distributor | ||
@subpackage trashhelper.php | ||
@author Llewellyn van der Merwe <https://www.vdm.io/> | ||
@copyright Copyright (C) 2015. All Rights Reserved | ||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html | ||
A sermon distributor that links to Dropbox. | ||
/----------------------------------------------------------------------------------------------------------------------------------*/ | ||
|
||
// No direct access to this file | ||
defined('JPATH_BASE') or die('Restricted access'); | ||
|
||
|
||
|
||
?> | ||
<?php if ($displayData->state->get('filter.published') == -2 && ($displayData->canState && $displayData->canDelete)) : ?> | ||
<script> | ||
// change the class of the delete button | ||
jQuery("#toolbar-delete button").toggleClass("btn-danger"); | ||
// function to empty the trash | ||
function emptyTrash() { | ||
if (document.adminForm.boxchecked.value == 0) { | ||
// select all the items visable | ||
document.adminForm.elements['checkall-toggle'].checked=1; | ||
Joomla.checkAll(document.adminForm.elements['checkall-toggle']); | ||
// check to confirm the deletion | ||
if(confirm('<?= JText::_("COM_SERMONDISTRIBUTOR_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS") ?>')) { | ||
Joomla.submitbutton('<?= $displayData->get("name") ?>.delete'); | ||
} else { | ||
document.adminForm.elements['checkall-toggle'].checked=0; | ||
Joomla.checkAll(document.adminForm.elements['checkall-toggle']); | ||
} | ||
} else { | ||
// confirm deletion of those selected | ||
if (confirm('<?= JText::_("COM_SERMONDISTRIBUTOR_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS") ?>')) { | ||
Joomla.submitbutton('<?= $displayData->get("name") ?>.delete'); | ||
}; | ||
} | ||
return false; | ||
} | ||
// function to exit the tash state | ||
function exitTrash() { | ||
document.adminForm.filter_published.selectedIndex = 0; | ||
document.adminForm.submit(); | ||
return false; | ||
} | ||
</script> | ||
<div class="alert alert-error"> | ||
<h4 class="alert-heading"> | ||
<span class="icon-trash"></span> | ||
<?= JText::_("COM_SERMONDISTRIBUTOR_TRASHED_ITEMS") ?> | ||
</h4> | ||
<p><?= JText::_("COM_SERMONDISTRIBUTOR_YOU_ARE_CURRENTLY_VIEWING_THE_TRASHED_ITEMS") ?></p> | ||
<button onclick="emptyTrash();" class="btn btn-small btn-danger"> | ||
<span class="icon-delete" aria-hidden="true"></span> | ||
<?= JText::_("COM_SERMONDISTRIBUTOR_EMPTY_TRASH") ?> | ||
</button> | ||
<button onclick="exitTrash();" class="btn btn-small"> | ||
<span class="icon-back" aria-hidden="true"></span> | ||
<?= JText::_("COM_SERMONDISTRIBUTOR_EXIT_TRASH") ?> | ||
</button> | ||
</div> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.