@copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html A sermon distributor that links to Dropbox. /----------------------------------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\HTML\HTMLHelper as Html; use VDM\Joomla\Utilities\StringHelper; use VDM\Joomla\Utilities\ArrayHelper; // set the defaults $items = $displayData->vwcsermons; $user = Factory::getUser(); $id = $displayData->item->id; // set the edit URL $edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit"; // set a return value $return = ($id) ? "index.php?option=com_sermondistributor&view=series&layout=edit&id=" . $id : ""; // check for a return value $jinput = Factory::getApplication()->input; if ($_return = $jinput->get('return', null, 'base64')) { $return .= "&return=" . $_return; } // check if return value was set if (StringHelper::check($return)) { // set the referral values $ref = ($id) ? "&ref=series&refid=" . $id . "&return=" . urlencode(base64_encode($return)) : "&return=" . urlencode(base64_encode($return)); } else { $ref = ($id) ? "&ref=series&refid=" . $id : ""; } // set the create new URL $new = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit" . $ref; // load the action object $can = SermondistributorHelper::getActions('sermon'); ?>
get('sermon.create')): ?>

$item): ?> authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0; $userChkOut = Factory::getUser($item->checked_out); $canDo = SermondistributorHelper::getActions('sermon',$item,'sermons'); ?> published == 1): ?> published == 0): ?> published == 2): ?> published == -2): ?>
get('sermon.edit')): ?> escape($item->name); ?> checked_out): ?> name, $item->checked_out_time, 'sermons.', $canCheckin); ?> escape($item->name); ?> authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int) $item->preacher)): ?> escape($item->preacher_name); ?> escape($item->preacher_name); ?> escape($item->series_name); ?> escape($item->short_description); ?> authorise('core.edit', 'com_sermondistributor.sermon.category.' . (int)$item->catid)): ?> escape($item->category_title); ?> escape($item->category_title); ?> link_type); ?> source); ?> id; ?>