Changed to readme file, other changes are only random var changes (due to automation)

This commit is contained in:
Llewellyn van der Merwe 2015-12-01 02:24:32 +02:00
parent 979a0f908b
commit 47f5267209
65 changed files with 1896 additions and 1897 deletions

View File

@ -1,6 +1,6 @@
# Sermon Distributor (1.2.9)
![Sermon Distributor image (https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor")] (https://github.com/SermonDistributor/Joomla-3-Component)
![Sermon Distributor image] (https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor") (https://github.com/SermonDistributor/Joomla-3-Component)
Distributor is a highly advanced sermon distributor that runs on the [Joomla 3.x] (http://www.joomla.org) framework. You can link a shared folder from Dropbox to the component and use Dropbox as your file host, not to mention the advanced auto builder that gives you the ability to simply load sermons to your website by only adding them to Dropbox.
@ -16,7 +16,7 @@ The best way to see all your options is to install this component on you Joomla
+ [Setup Dropbox] (https://youtu.be/btpKFDk0-dI)
+ [Component Build] (https://youtu.be/yMPp1Cp3W_0)
# Build Details :factory:
# Build Details
+ *Company*: [Vast Development Method] (https://www.vdm.io/)
+ *Author*: [Llewellyn van der Merwe] (mailto:llewellyn@vdm.io)
@ -35,9 +35,9 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
> (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*: **45152** :round_pushpin:
+ *File count*: **347** :page_with_curl:
+ *Folder count*: **79** :open_file_folder:
+ *Line count*: **45151**
+ *File count*: **347**
+ *Folder count*: **79**
**83 Hours** or **10 Eight Hour Days** (the actual time the author spent)

File diff suppressed because it is too large Load Diff

View File

@ -55,13 +55,13 @@ class SermondistributorControllerHelp_document extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9313] Access check.
// [9312] Access check.
$access = JFactory::getUser()->authorise('help_document.access', 'com_sermondistributor');
if (!$access)
{
return false;
}
// [9324] In the absense of better information, revert to the component permissions.
// [9323] In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('help_document.create', $this->option);
}
@ -77,13 +77,13 @@ class SermondistributorControllerHelp_document extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9467] get user object.
// [9466] get user object.
$user = JFactory::getUser();
// [9469] get record id.
// [9468] get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9476] Access check.
// [9475] Access check.
$access = ($user->authorise('help_document.access', 'com_sermondistributor.help_document.' . (int) $recordId) && $user->authorise('help_document.access', 'com_sermondistributor'));
if (!$access)
{
@ -92,17 +92,17 @@ class SermondistributorControllerHelp_document extends JControllerForm
if ($recordId)
{
// [9485] The record has been set. Check the record permissions.
// [9484] The record has been set. Check the record permissions.
$permission = $user->authorise('help_document.edit', 'com_sermondistributor.help_document.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('help_document.edit.own', 'com_sermondistributor.help_document.' . $recordId))
{
// [9507] Now test the owner is the user.
// [9506] Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9511] Need to do a lookup from the model.
// [9510] Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -112,7 +112,7 @@ class SermondistributorControllerHelp_document extends JControllerForm
$ownerId = $record->created_by;
}
// [9519] If the owner matches 'me' then allow.
// [9518] If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('help_document.edit.own', 'com_sermondistributor'))
@ -124,7 +124,7 @@ class SermondistributorControllerHelp_document extends JControllerForm
return false;
}
}
// [9541] Since there is no permission, revert to the component permissions.
// [9540] Since there is no permission, revert to the component permissions.
return $user->authorise('help_document.edit', $this->option);
}

View File

@ -43,29 +43,29 @@ class SermondistributorControllerHelp_documents extends JControllerAdmin
public function exportData()
{
// [7263] Check for request forgeries
// [7262] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7265] check if export is allowed for this user.
// [7264] check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('help_document.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
{
// [7269] Get the input
// [7268] Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7272] Sanitize the input
// [7271] Sanitize the input
JArrayHelper::toInteger($pks);
// [7274] Get the model
// [7273] Get the model
$model = $this->getModel('Help_documents');
// [7276] get the data to export
// [7275] get the data to export
$data = $model->getExportData($pks);
if (SermondistributorHelper::checkArray($data))
{
// [7280] now set the data to the spreadsheet
// [7279] now set the data to the spreadsheet
$date = JFactory::getDate();
SermondistributorHelper::xls($data,'Help_documents_'.$date->format('jS_F_Y'),'Help documents exported ('.$date->format('jS F, Y').')','help documents');
}
}
// [7285] Redirect to the list screen with error.
// [7284] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error');
return;
@ -74,31 +74,31 @@ class SermondistributorControllerHelp_documents extends JControllerAdmin
public function importData()
{
// [7294] Check for request forgeries
// [7293] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7296] check if import is allowed for this user.
// [7295] check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('help_document.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
{
// [7300] Get the import model
// [7299] Get the import model
$model = $this->getModel('Help_documents');
// [7302] get the headers to import
// [7301] get the headers to import
$headers = $model->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
// [7306] Load headers to session.
// [7305] Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('help_document_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'help_documents');
$session->set('dataType_VDM_IMPORTINTO', 'help_document');
// [7312] Redirect to import view.
// [7311] Redirect to import view.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
return;
}
}
// [7324] Redirect to the list screen with error.
// [7323] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error');
return;

View File

@ -55,13 +55,13 @@ class SermondistributorControllerPreacher extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9313] Access check.
// [9312] Access check.
$access = JFactory::getUser()->authorise('preacher.access', 'com_sermondistributor');
if (!$access)
{
return false;
}
// [9324] In the absense of better information, revert to the component permissions.
// [9323] In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('preacher.create', $this->option);
}
@ -77,13 +77,13 @@ class SermondistributorControllerPreacher extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9467] get user object.
// [9466] get user object.
$user = JFactory::getUser();
// [9469] get record id.
// [9468] get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9476] Access check.
// [9475] Access check.
$access = ($user->authorise('preacher.access', 'com_sermondistributor.preacher.' . (int) $recordId) && $user->authorise('preacher.access', 'com_sermondistributor'));
if (!$access)
{
@ -92,17 +92,17 @@ class SermondistributorControllerPreacher extends JControllerForm
if ($recordId)
{
// [9485] The record has been set. Check the record permissions.
// [9484] The record has been set. Check the record permissions.
$permission = $user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('preacher.edit.own', 'com_sermondistributor.preacher.' . $recordId))
{
// [9507] Now test the owner is the user.
// [9506] Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9511] Need to do a lookup from the model.
// [9510] Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -112,7 +112,7 @@ class SermondistributorControllerPreacher extends JControllerForm
$ownerId = $record->created_by;
}
// [9519] If the owner matches 'me' then allow.
// [9518] If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('preacher.edit.own', 'com_sermondistributor'))
@ -124,7 +124,7 @@ class SermondistributorControllerPreacher extends JControllerForm
return false;
}
}
// [9541] Since there is no permission, revert to the component permissions.
// [9540] Since there is no permission, revert to the component permissions.
return $user->authorise('preacher.edit', $this->option);
}

View File

@ -43,29 +43,29 @@ class SermondistributorControllerPreachers extends JControllerAdmin
public function exportData()
{
// [7263] Check for request forgeries
// [7262] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7265] check if export is allowed for this user.
// [7264] check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('preacher.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
{
// [7269] Get the input
// [7268] Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7272] Sanitize the input
// [7271] Sanitize the input
JArrayHelper::toInteger($pks);
// [7274] Get the model
// [7273] Get the model
$model = $this->getModel('Preachers');
// [7276] get the data to export
// [7275] get the data to export
$data = $model->getExportData($pks);
if (SermondistributorHelper::checkArray($data))
{
// [7280] now set the data to the spreadsheet
// [7279] now set the data to the spreadsheet
$date = JFactory::getDate();
SermondistributorHelper::xls($data,'Preachers_'.$date->format('jS_F_Y'),'Preachers exported ('.$date->format('jS F, Y').')','preachers');
}
}
// [7285] Redirect to the list screen with error.
// [7284] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error');
return;
@ -74,31 +74,31 @@ class SermondistributorControllerPreachers extends JControllerAdmin
public function importData()
{
// [7294] Check for request forgeries
// [7293] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7296] check if import is allowed for this user.
// [7295] check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('preacher.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
{
// [7300] Get the import model
// [7299] Get the import model
$model = $this->getModel('Preachers');
// [7302] get the headers to import
// [7301] get the headers to import
$headers = $model->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
// [7306] Load headers to session.
// [7305] Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('preacher_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'preachers');
$session->set('dataType_VDM_IMPORTINTO', 'preacher');
// [7312] Redirect to import view.
// [7311] Redirect to import view.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_PREACHERS');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
return;
}
}
// [7324] Redirect to the list screen with error.
// [7323] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error');
return;

View File

@ -55,13 +55,13 @@ class SermondistributorControllerSeries extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9313] Access check.
// [9312] Access check.
$access = JFactory::getUser()->authorise('series.access', 'com_sermondistributor');
if (!$access)
{
return false;
}
// [9324] In the absense of better information, revert to the component permissions.
// [9323] In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('series.create', $this->option);
}
@ -77,13 +77,13 @@ class SermondistributorControllerSeries extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9467] get user object.
// [9466] get user object.
$user = JFactory::getUser();
// [9469] get record id.
// [9468] get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9476] Access check.
// [9475] Access check.
$access = ($user->authorise('series.access', 'com_sermondistributor.series.' . (int) $recordId) && $user->authorise('series.access', 'com_sermondistributor'));
if (!$access)
{
@ -92,17 +92,17 @@ class SermondistributorControllerSeries extends JControllerForm
if ($recordId)
{
// [9485] The record has been set. Check the record permissions.
// [9484] The record has been set. Check the record permissions.
$permission = $user->authorise('series.edit', 'com_sermondistributor.series.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('series.edit.own', 'com_sermondistributor.series.' . $recordId))
{
// [9507] Now test the owner is the user.
// [9506] Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9511] Need to do a lookup from the model.
// [9510] Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -112,7 +112,7 @@ class SermondistributorControllerSeries extends JControllerForm
$ownerId = $record->created_by;
}
// [9519] If the owner matches 'me' then allow.
// [9518] If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('series.edit.own', 'com_sermondistributor'))
@ -124,7 +124,7 @@ class SermondistributorControllerSeries extends JControllerForm
return false;
}
}
// [9541] Since there is no permission, revert to the component permissions.
// [9540] Since there is no permission, revert to the component permissions.
return $user->authorise('series.edit', $this->option);
}

View File

@ -43,29 +43,29 @@ class SermondistributorControllerSeries_list extends JControllerAdmin
public function exportData()
{
// [7263] Check for request forgeries
// [7262] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7265] check if export is allowed for this user.
// [7264] check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('series.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
{
// [7269] Get the input
// [7268] Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7272] Sanitize the input
// [7271] Sanitize the input
JArrayHelper::toInteger($pks);
// [7274] Get the model
// [7273] Get the model
$model = $this->getModel('Series_list');
// [7276] get the data to export
// [7275] get the data to export
$data = $model->getExportData($pks);
if (SermondistributorHelper::checkArray($data))
{
// [7280] now set the data to the spreadsheet
// [7279] now set the data to the spreadsheet
$date = JFactory::getDate();
SermondistributorHelper::xls($data,'Series_list_'.$date->format('jS_F_Y'),'Series list exported ('.$date->format('jS F, Y').')','series list');
}
}
// [7285] Redirect to the list screen with error.
// [7284] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error');
return;
@ -74,31 +74,31 @@ class SermondistributorControllerSeries_list extends JControllerAdmin
public function importData()
{
// [7294] Check for request forgeries
// [7293] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7296] check if import is allowed for this user.
// [7295] check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('series.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
{
// [7300] Get the import model
// [7299] Get the import model
$model = $this->getModel('Series_list');
// [7302] get the headers to import
// [7301] get the headers to import
$headers = $model->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
// [7306] Load headers to session.
// [7305] Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('series_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'series_list');
$session->set('dataType_VDM_IMPORTINTO', 'series');
// [7312] Redirect to import view.
// [7311] Redirect to import view.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERIES_LIST');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
return;
}
}
// [7324] Redirect to the list screen with error.
// [7323] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error');
return;

View File

@ -55,10 +55,10 @@ class SermondistributorControllerSermon extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9268] get the user object
// [9267] get the user object
$user = JFactory::getUser();
// [9273] Access check.
// [9272] Access check.
$access = $user->authorise('sermon.access', 'com_sermondistributor');
if (!$access)
{
@ -69,13 +69,13 @@ class SermondistributorControllerSermon extends JControllerForm
if ($categoryId)
{
// [9284] If the category has been passed in the URL check it.
// [9283] If the category has been passed in the URL check it.
$allow = $user->authorise('core.create', $this->option . '.sermons.category.' . $categoryId);
}
if ($allow === null)
{
// [9293] In the absense of better information, revert to the component permissions.
// [9292] In the absense of better information, revert to the component permissions.
return $user->authorise('sermon.create', $this->option);
}
else
@ -95,13 +95,13 @@ class SermondistributorControllerSermon extends JControllerForm
* @since 1.6
*/
protected function allowEdit($data = array(), $key = 'id')
{ // [9371] get user object.
{ // [9370] get user object.
$user = JFactory::getUser();
// [9373] get record id.
// [9372] get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9380] Access check.
// [9379] Access check.
$access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $recordId) && $user->authorise('sermon.access', 'com_sermondistributor'));
if (!$access)
{
@ -110,17 +110,17 @@ class SermondistributorControllerSermon extends JControllerForm
if ($recordId)
{
// [9389] The record has been set. Check the record permissions.
// [9388] The record has been set. Check the record permissions.
$permission = $user->authorise('sermon.edit', 'com_sermondistributor.sermon.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('sermon.edit.own', 'com_sermondistributor.sermon.' . $recordId))
{
// [9411] Fallback on edit.own. Now test the owner is the user.
// [9410] Fallback on edit.own. Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9415] Need to do a lookup from the model.
// [9414] Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -130,7 +130,7 @@ class SermondistributorControllerSermon extends JControllerForm
$ownerId = $record->created_by;
}
// [9423] If the owner matches 'me' then do the test.
// [9422] If the owner matches 'me' then do the test.
if ($ownerId == $user->id)
{
if ($user->authorise('sermon.edit.own', 'com_sermondistributor'))
@ -146,7 +146,7 @@ class SermondistributorControllerSermon extends JControllerForm
if ($categoryId)
{
// [9445] The category has been set. Check the category permissions.
// [9444] The category has been set. Check the category permissions.
$catpermission = $user->authorise('core.edit', $this->option . '.sermons.category.' . $categoryId);
if (!$catpermission && !is_null($catpermission))
{
@ -154,7 +154,7 @@ class SermondistributorControllerSermon extends JControllerForm
}
}
}
// [9455] Since there is no permission, revert to the component permissions.
// [9454] Since there is no permission, revert to the component permissions.
return $user->authorise('sermon.edit', $this->option);
}

View File

@ -43,29 +43,29 @@ class SermondistributorControllerSermons extends JControllerAdmin
public function exportData()
{
// [7263] Check for request forgeries
// [7262] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7265] check if export is allowed for this user.
// [7264] check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('sermon.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
{
// [7269] Get the input
// [7268] Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7272] Sanitize the input
// [7271] Sanitize the input
JArrayHelper::toInteger($pks);
// [7274] Get the model
// [7273] Get the model
$model = $this->getModel('Sermons');
// [7276] get the data to export
// [7275] get the data to export
$data = $model->getExportData($pks);
if (SermondistributorHelper::checkArray($data))
{
// [7280] now set the data to the spreadsheet
// [7279] now set the data to the spreadsheet
$date = JFactory::getDate();
SermondistributorHelper::xls($data,'Sermons_'.$date->format('jS_F_Y'),'Sermons exported ('.$date->format('jS F, Y').')','sermons');
}
}
// [7285] Redirect to the list screen with error.
// [7284] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error');
return;
@ -74,31 +74,31 @@ class SermondistributorControllerSermons extends JControllerAdmin
public function importData()
{
// [7294] Check for request forgeries
// [7293] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7296] check if import is allowed for this user.
// [7295] check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('sermon.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
{
// [7300] Get the import model
// [7299] Get the import model
$model = $this->getModel('Sermons');
// [7302] get the headers to import
// [7301] get the headers to import
$headers = $model->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
// [7306] Load headers to session.
// [7305] Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('sermon_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'sermons');
$session->set('dataType_VDM_IMPORTINTO', 'sermon');
// [7312] Redirect to import view.
// [7311] Redirect to import view.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERMONS');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
return;
}
}
// [7324] Redirect to the list screen with error.
// [7323] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error');
return;

View File

@ -55,13 +55,13 @@ class SermondistributorControllerStatistic extends JControllerForm
*/
protected function allowAdd($data = array())
{
// [9313] Access check.
// [9312] Access check.
$access = JFactory::getUser()->authorise('statistic.access', 'com_sermondistributor');
if (!$access)
{
return false;
}
// [9324] In the absense of better information, revert to the component permissions.
// [9323] In the absense of better information, revert to the component permissions.
return JFactory::getUser()->authorise('statistic.create', $this->option);
}
@ -77,13 +77,13 @@ class SermondistributorControllerStatistic extends JControllerForm
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9467] get user object.
// [9466] get user object.
$user = JFactory::getUser();
// [9469] get record id.
// [9468] get record id.
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
// [9476] Access check.
// [9475] Access check.
$access = ($user->authorise('statistic.access', 'com_sermondistributor.statistic.' . (int) $recordId) && $user->authorise('statistic.access', 'com_sermondistributor'));
if (!$access)
{
@ -92,17 +92,17 @@ class SermondistributorControllerStatistic extends JControllerForm
if ($recordId)
{
// [9485] The record has been set. Check the record permissions.
// [9484] The record has been set. Check the record permissions.
$permission = $user->authorise('statistic.edit', 'com_sermondistributor.statistic.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
if ($user->authorise('statistic.edit.own', 'com_sermondistributor.statistic.' . $recordId))
{
// [9507] Now test the owner is the user.
// [9506] Now test the owner is the user.
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
if (empty($ownerId))
{
// [9511] Need to do a lookup from the model.
// [9510] Need to do a lookup from the model.
$record = $this->getModel()->getItem($recordId);
if (empty($record))
@ -112,7 +112,7 @@ class SermondistributorControllerStatistic extends JControllerForm
$ownerId = $record->created_by;
}
// [9519] If the owner matches 'me' then allow.
// [9518] If the owner matches 'me' then allow.
if ($ownerId == $user->id)
{
if ($user->authorise('statistic.edit.own', 'com_sermondistributor'))
@ -124,7 +124,7 @@ class SermondistributorControllerStatistic extends JControllerForm
return false;
}
}
// [9541] Since there is no permission, revert to the component permissions.
// [9540] Since there is no permission, revert to the component permissions.
return $user->authorise('statistic.edit', $this->option);
}

View File

@ -43,29 +43,29 @@ class SermondistributorControllerStatistics extends JControllerAdmin
public function exportData()
{
// [7263] Check for request forgeries
// [7262] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7265] check if export is allowed for this user.
// [7264] check if export is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('statistic.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
{
// [7269] Get the input
// [7268] Get the input
$input = JFactory::getApplication()->input;
$pks = $input->post->get('cid', array(), 'array');
// [7272] Sanitize the input
// [7271] Sanitize the input
JArrayHelper::toInteger($pks);
// [7274] Get the model
// [7273] Get the model
$model = $this->getModel('Statistics');
// [7276] get the data to export
// [7275] get the data to export
$data = $model->getExportData($pks);
if (SermondistributorHelper::checkArray($data))
{
// [7280] now set the data to the spreadsheet
// [7279] now set the data to the spreadsheet
$date = JFactory::getDate();
SermondistributorHelper::xls($data,'Statistics_'.$date->format('jS_F_Y'),'Statistics exported ('.$date->format('jS F, Y').')','statistics');
}
}
// [7285] Redirect to the list screen with error.
// [7284] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error');
return;
@ -74,31 +74,31 @@ class SermondistributorControllerStatistics extends JControllerAdmin
public function importData()
{
// [7294] Check for request forgeries
// [7293] Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// [7296] check if import is allowed for this user.
// [7295] check if import is allowed for this user.
$user = JFactory::getUser();
if ($user->authorise('statistic.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
{
// [7300] Get the import model
// [7299] Get the import model
$model = $this->getModel('Statistics');
// [7302] get the headers to import
// [7301] get the headers to import
$headers = $model->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
// [7306] Load headers to session.
// [7305] Load headers to session.
$session = JFactory::getSession();
$headers = json_encode($headers);
$session->set('statistic_VDM_IMPORTHEADERS', $headers);
$session->set('backto_VDM_IMPORT', 'statistics');
$session->set('dataType_VDM_IMPORTINTO', 'statistic');
// [7312] Redirect to import view.
// [7311] Redirect to import view.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_STATISTICS');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
return;
}
}
// [7324] Redirect to the list screen with error.
// [7323] Redirect to the list screen with error.
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error');
return;

View File

@ -23,7 +23,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->wcisermons;
$items = $displayData->riksermons;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";

View File

@ -23,7 +23,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->kcesermons;
$items = $displayData->hvwsermons;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";

View File

@ -23,7 +23,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
$items = $displayData->xtqstastics;
$items = $displayData->njdstastics;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_sermondistributor&view=statistics&task=statistic.edit";

View File

@ -38,7 +38,7 @@ class SermondistributorModelAjax extends JModelList
}
// [8910] Used in sermon
// [8909] Used in sermon
/**
* Check and Set Dropbox local listing
**/

View File

@ -45,36 +45,36 @@ class JFormFieldArticles extends JFormFieldList
*/
protected function getInput()
{
// [7685] see if we should add buttons
// [7684] see if we should add buttons
$setButton = $this->getAttribute('button');
// [7687] get html
// [7686] get html
$html = parent::getInput();
// [7689] if true set button
// [7688] if true set button
if ($setButton === 'true')
{
$user = JFactory::getUser();
// [7693] only add if user allowed to create article
// [7692] only add if user allowed to create article
if ($user->authorise('core.create', 'com_sermondistributor'))
{
// [7711] get the input from url
// [7710] get the input from url
$jinput = JFactory::getApplication()->input;
// [7713] get the view name & id
// [7712] get the view name & id
$values = $jinput->getArray(array(
'id' => 'int',
'view' => 'word'
));
// [7718] check if new item
// [7717] check if new item
$ref = '';
if (!is_null($values['id']) && strlen($values['view']))
{
// [7722] only load referal if not new item.
// [7721] only load referal if not new item.
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
}
// [7725] build the button
// [7724] build the button
$button = '<a class="btn btn-small btn-success"
href="index.php?option=com_sermondistributor&amp;view=article&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
// [7729] return the button attached to input field
// [7728] return the button attached to input field
return $html . $button;
}
}

View File

@ -45,36 +45,36 @@ class JFormFieldDropboxfiles extends JFormFieldList
*/
protected function getInput()
{
// [7685] see if we should add buttons
// [7684] see if we should add buttons
$setButton = $this->getAttribute('button');
// [7687] get html
// [7686] get html
$html = parent::getInput();
// [7689] if true set button
// [7688] if true set button
if ($setButton === 'true')
{
$user = JFactory::getUser();
// [7693] only add if user allowed to create
// [7692] only add if user allowed to create
if ($user->authorise('core.create', 'com_sermondistributor'))
{
// [7711] get the input from url
// [7710] get the input from url
$jinput = JFactory::getApplication()->input;
// [7713] get the view name & id
// [7712] get the view name & id
$values = $jinput->getArray(array(
'id' => 'int',
'view' => 'word'
));
// [7718] check if new item
// [7717] check if new item
$ref = '';
if (!is_null($values['id']) && strlen($values['view']))
{
// [7722] only load referal if not new item.
// [7721] only load referal if not new item.
$ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id'];
}
// [7725] build the button
// [7724] build the button
$button = '<a class="btn btn-small btn-success"
href="index.php?option=com_sermondistributor&amp;view=&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
// [7729] return the button attached to input field
// [7728] return the button attached to input field
return $html . $button;
}
}

View File

@ -45,36 +45,36 @@ class JFormFieldLocalfiles extends JFormFieldList
*/
protected function getInput()
{
// [7685] see if we should add buttons
// [7684] see if we should add buttons
$setButton = $this->getAttribute('button');
// [7687] get html
// [7686] get html
$html = parent::getInput();
// [7689] if true set button
// [7688] if true set button
if ($setButton === 'true')
{
$user = JFactory::getUser();
// [7693] only add if user allowed to create
// [7692] only add if user allowed to create
if ($user->authorise('core.create', 'com_sermondistributor'))
{
// [7711] get the input from url
// [7710] get the input from url
$jinput = JFactory::getApplication()->input;
// [7713] get the view name & id
// [7712] get the view name & id
$values = $jinput->getArray(array(
'id' => 'int',
'view' => 'word'
));
// [7718] check if new item
// [7717] check if new item
$ref = '';
if (!is_null($values['id']) && strlen($values['view']))
{
// [7722] only load referal if not new item.
// [7721] only load referal if not new item.
$ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id'];
}
// [7725] build the button
// [7724] build the button
$button = '<a class="btn btn-small btn-success"
href="index.php?option=com_sermondistributor&amp;view=&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
// [7729] return the button attached to input field
// [7728] return the button attached to input field
return $html . $button;
}
}

View File

@ -45,36 +45,36 @@ class JFormFieldPreachers extends JFormFieldList
*/
protected function getInput()
{
// [7685] see if we should add buttons
// [7684] see if we should add buttons
$setButton = $this->getAttribute('button');
// [7687] get html
// [7686] get html
$html = parent::getInput();
// [7689] if true set button
// [7688] if true set button
if ($setButton === 'true')
{
$user = JFactory::getUser();
// [7693] only add if user allowed to create preacher
// [7692] only add if user allowed to create preacher
if ($user->authorise('preacher.create', 'com_sermondistributor'))
{
// [7711] get the input from url
// [7710] get the input from url
$jinput = JFactory::getApplication()->input;
// [7713] get the view name & id
// [7712] get the view name & id
$values = $jinput->getArray(array(
'id' => 'int',
'view' => 'word'
));
// [7718] check if new item
// [7717] check if new item
$ref = '';
if (!is_null($values['id']) && strlen($values['view']))
{
// [7722] only load referal if not new item.
// [7721] only load referal if not new item.
$ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id'];
}
// [7725] build the button
// [7724] build the button
$button = '<a class="btn btn-small btn-success"
href="index.php?option=com_sermondistributor&amp;view=preacher&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
// [7729] return the button attached to input field
// [7728] return the button attached to input field
return $html . $button;
}
}

View File

@ -45,36 +45,36 @@ class JFormFieldSeries extends JFormFieldList
*/
protected function getInput()
{
// [7685] see if we should add buttons
// [7684] see if we should add buttons
$setButton = $this->getAttribute('button');
// [7687] get html
// [7686] get html
$html = parent::getInput();
// [7689] if true set button
// [7688] if true set button
if ($setButton === 'true')
{
$user = JFactory::getUser();
// [7693] only add if user allowed to create series
// [7692] only add if user allowed to create series
if ($user->authorise('series.create', 'com_sermondistributor'))
{
// [7711] get the input from url
// [7710] get the input from url
$jinput = JFactory::getApplication()->input;
// [7713] get the view name & id
// [7712] get the view name & id
$values = $jinput->getArray(array(
'id' => 'int',
'view' => 'word'
));
// [7718] check if new item
// [7717] check if new item
$ref = '';
if (!is_null($values['id']) && strlen($values['view']))
{
// [7722] only load referal if not new item.
// [7721] only load referal if not new item.
$ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id'];
}
// [7725] build the button
// [7724] build the button
$button = '<a class="btn btn-small btn-success"
href="index.php?option=com_sermondistributor&amp;view=series&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
// [7729] return the button attached to input field
// [7728] return the button attached to input field
return $html . $button;
}
}

View File

@ -45,36 +45,36 @@ class JFormFieldSermon extends JFormFieldList
*/
protected function getInput()
{
// [7685] see if we should add buttons
// [7684] see if we should add buttons
$setButton = $this->getAttribute('button');
// [7687] get html
// [7686] get html
$html = parent::getInput();
// [7689] if true set button
// [7688] if true set button
if ($setButton === 'true')
{
$user = JFactory::getUser();
// [7693] only add if user allowed to create sermon
// [7692] only add if user allowed to create sermon
if ($user->authorise('sermon.create', 'com_sermondistributor'))
{
// [7711] get the input from url
// [7710] get the input from url
$jinput = JFactory::getApplication()->input;
// [7713] get the view name & id
// [7712] get the view name & id
$values = $jinput->getArray(array(
'id' => 'int',
'view' => 'word'
));
// [7718] check if new item
// [7717] check if new item
$ref = '';
if (!is_null($values['id']) && strlen($values['view']))
{
// [7722] only load referal if not new item.
// [7721] only load referal if not new item.
$ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id'];
}
// [7725] build the button
// [7724] build the button
$button = '<a class="btn btn-small btn-success"
href="index.php?option=com_sermondistributor&amp;view=sermon&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
// [7729] return the button attached to input field
// [7728] return the button attached to input field
return $html . $button;
}
}

View File

@ -18,38 +18,38 @@
/------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_qgvZjvNaOJ_required = false;
jform_HkhDrQjmhr_required = false;
jform_llHjuZwvZl_required = false;
jform_clywlAZYIP_required = false;
jform_pfUDjYGVoL_required = false;
jform_cfyFlnvkzP_required = false;
jform_SSRqCogOIY_required = false;
jform_qdgfzreiiB_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_UohYgsV = jQuery("#jform_location input[type='radio']:checked").val();
UohYgsV(location_UohYgsV);
var location_YqmLlcw = jQuery("#jform_location input[type='radio']:checked").val();
YqmLlcw(location_YqmLlcw);
var location_dmkgZVG = jQuery("#jform_location input[type='radio']:checked").val();
dmkgZVG(location_dmkgZVG);
var location_ErKnwQB = jQuery("#jform_location input[type='radio']:checked").val();
ErKnwQB(location_ErKnwQB);
var type_qgvZjvN = jQuery("#jform_type").val();
qgvZjvN(type_qgvZjvN);
var type_pfUDjYG = jQuery("#jform_type").val();
pfUDjYG(type_pfUDjYG);
var type_HkhDrQj = jQuery("#jform_type").val();
HkhDrQj(type_HkhDrQj);
var type_cfyFlnv = jQuery("#jform_type").val();
cfyFlnv(type_cfyFlnv);
var type_llHjuZw = jQuery("#jform_type").val();
llHjuZw(type_llHjuZw);
var type_SSRqCog = jQuery("#jform_type").val();
SSRqCog(type_SSRqCog);
var target_clywlAZ = jQuery("#jform_target input[type='radio']:checked").val();
clywlAZ(target_clywlAZ);
var target_qdgfzre = jQuery("#jform_target input[type='radio']:checked").val();
qdgfzre(target_qdgfzre);
});
// the UohYgsV function
function UohYgsV(location_UohYgsV)
// the YqmLlcw function
function YqmLlcw(location_YqmLlcw)
{
// [8002] set the function logic
if (location_UohYgsV == 1)
// [8001] set the function logic
if (location_YqmLlcw == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
}
@ -59,11 +59,11 @@ function UohYgsV(location_UohYgsV)
}
}
// the dmkgZVG function
function dmkgZVG(location_dmkgZVG)
// the ErKnwQB function
function ErKnwQB(location_ErKnwQB)
{
// [8002] set the function logic
if (location_dmkgZVG == 2)
// [8001] set the function logic
if (location_ErKnwQB == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
}
@ -73,198 +73,198 @@ function dmkgZVG(location_dmkgZVG)
}
}
// the qgvZjvN function
function qgvZjvN(type_qgvZjvN)
// the pfUDjYG function
function pfUDjYG(type_pfUDjYG)
{
if (isSet(type_qgvZjvN) && type_qgvZjvN.constructor !== Array)
if (isSet(type_pfUDjYG) && type_pfUDjYG.constructor !== Array)
{
var temp_qgvZjvN = type_qgvZjvN;
var type_qgvZjvN = [];
type_qgvZjvN.push(temp_qgvZjvN);
var temp_pfUDjYG = type_pfUDjYG;
var type_pfUDjYG = [];
type_pfUDjYG.push(temp_pfUDjYG);
}
else if (!isSet(type_qgvZjvN))
else if (!isSet(type_pfUDjYG))
{
var type_qgvZjvN = [];
var type_pfUDjYG = [];
}
var type = type_qgvZjvN.some(type_qgvZjvN_SomeFunc);
var type = type_pfUDjYG.some(type_pfUDjYG_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_qgvZjvNaOJ_required)
if (jform_pfUDjYGVoL_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_qgvZjvNaOJ_required = false;
jform_pfUDjYGVoL_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_qgvZjvNaOJ_required)
if (!jform_pfUDjYGVoL_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_qgvZjvNaOJ_required = true;
jform_pfUDjYGVoL_required = true;
}
}
}
// the qgvZjvN Some function
function type_qgvZjvN_SomeFunc(type_qgvZjvN)
// the pfUDjYG Some function
function type_pfUDjYG_SomeFunc(type_pfUDjYG)
{
// [7967] set the function logic
if (type_qgvZjvN == 3)
// [7966] set the function logic
if (type_pfUDjYG == 3)
{
return true;
}
return false;
}
// the HkhDrQj function
function HkhDrQj(type_HkhDrQj)
// the cfyFlnv function
function cfyFlnv(type_cfyFlnv)
{
if (isSet(type_HkhDrQj) && type_HkhDrQj.constructor !== Array)
if (isSet(type_cfyFlnv) && type_cfyFlnv.constructor !== Array)
{
var temp_HkhDrQj = type_HkhDrQj;
var type_HkhDrQj = [];
type_HkhDrQj.push(temp_HkhDrQj);
var temp_cfyFlnv = type_cfyFlnv;
var type_cfyFlnv = [];
type_cfyFlnv.push(temp_cfyFlnv);
}
else if (!isSet(type_HkhDrQj))
else if (!isSet(type_cfyFlnv))
{
var type_HkhDrQj = [];
var type_cfyFlnv = [];
}
var type = type_HkhDrQj.some(type_HkhDrQj_SomeFunc);
var type = type_cfyFlnv.some(type_cfyFlnv_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_HkhDrQjmhr_required)
if (jform_cfyFlnvkzP_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_HkhDrQjmhr_required = false;
jform_cfyFlnvkzP_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_HkhDrQjmhr_required)
if (!jform_cfyFlnvkzP_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_HkhDrQjmhr_required = true;
jform_cfyFlnvkzP_required = true;
}
}
}
// the HkhDrQj Some function
function type_HkhDrQj_SomeFunc(type_HkhDrQj)
// the cfyFlnv Some function
function type_cfyFlnv_SomeFunc(type_cfyFlnv)
{
// [7967] set the function logic
if (type_HkhDrQj == 1)
// [7966] set the function logic
if (type_cfyFlnv == 1)
{
return true;
}
return false;
}
// the llHjuZw function
function llHjuZw(type_llHjuZw)
// the SSRqCog function
function SSRqCog(type_SSRqCog)
{
if (isSet(type_llHjuZw) && type_llHjuZw.constructor !== Array)
if (isSet(type_SSRqCog) && type_SSRqCog.constructor !== Array)
{
var temp_llHjuZw = type_llHjuZw;
var type_llHjuZw = [];
type_llHjuZw.push(temp_llHjuZw);
var temp_SSRqCog = type_SSRqCog;
var type_SSRqCog = [];
type_SSRqCog.push(temp_SSRqCog);
}
else if (!isSet(type_llHjuZw))
else if (!isSet(type_SSRqCog))
{
var type_llHjuZw = [];
var type_SSRqCog = [];
}
var type = type_llHjuZw.some(type_llHjuZw_SomeFunc);
var type = type_SSRqCog.some(type_SSRqCog_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_llHjuZwvZl_required)
if (jform_SSRqCogOIY_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_llHjuZwvZl_required = false;
jform_SSRqCogOIY_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_llHjuZwvZl_required)
if (!jform_SSRqCogOIY_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_llHjuZwvZl_required = true;
jform_SSRqCogOIY_required = true;
}
}
}
// the llHjuZw Some function
function type_llHjuZw_SomeFunc(type_llHjuZw)
// the SSRqCog Some function
function type_SSRqCog_SomeFunc(type_SSRqCog)
{
// [7967] set the function logic
if (type_llHjuZw == 2)
// [7966] set the function logic
if (type_SSRqCog == 2)
{
return true;
}
return false;
}
// the clywlAZ function
function clywlAZ(target_clywlAZ)
// the qdgfzre function
function qdgfzre(target_qdgfzre)
{
// [8002] set the function logic
if (target_clywlAZ == 1)
// [8001] set the function logic
if (target_qdgfzre == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_clywlAZYIP_required)
if (jform_qdgfzreiiB_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_clywlAZYIP_required = false;
jform_qdgfzreiiB_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_clywlAZYIP_required)
if (!jform_qdgfzreiiB_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_clywlAZYIP_required = true;
jform_qdgfzreiiB_required = true;
}
}
}

View File

@ -4,15 +4,15 @@
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
>
<fieldset name="details">
<!-- [11013] Default Fields. -->
<!-- [11014] Id Field. Type: Text (joomla) -->
<!-- [11012] Default Fields. -->
<!-- [11013] Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- [11021] Date Created Field. Type: Calendar (joomla) -->
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
@ -22,14 +22,14 @@
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- [11032] User Created Field. Type: User (joomla) -->
<!-- [11031] User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_LABEL"
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_DESC"
/>
<!-- [11040] Published Field. Type: List (joomla) -->
<!-- [11039] Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
@ -42,18 +42,18 @@
<option value="-2">
JTRASHED</option>
</field>
<!-- [11055] Date Modified Field. Type: Calendar (joomla) -->
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- [11059] User Modified Field. Type: User (joomla) -->
<!-- [11058] User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- [11069] Access Field. Type: Accesslevel (joomla) -->
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
@ -61,7 +61,7 @@
default="1"
required="false"
/>
<!-- [11079] Ordering Field. Type: Numbers (joomla) -->
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
@ -72,7 +72,7 @@
size="6"
required="false"
/>
<!-- [11091] Version Field. Type: Text (joomla) -->
<!-- [11090] Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
@ -83,7 +83,7 @@
readonly="true"
filter="unset"
/>
<!-- [11105] Metakey Field. Type: Textarea (joomla) -->
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
<field
name="metakey"
type="textarea"
@ -92,7 +92,7 @@
rows="3"
cols="30"
/>
<!-- [11114] Metadesc Field. Type: Textarea (joomla) -->
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
<field
name="metadesc"
type="textarea"
@ -101,8 +101,8 @@
rows="3"
cols="30"
/>
<!-- [11124] Dynamic Fields. -->
<!-- [11360] Title Field. Type: Text. (joomla) -->
<!-- [11123] Dynamic Fields. -->
<!-- [11359] Title Field. Type: Text. (joomla) -->
<field
type="text"
name="title"
@ -118,7 +118,7 @@
message="Error! Please add title here."
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_HINT"
/>
<!-- [11274] Type Field. Type: List. (joomla) -->
<!-- [11273] Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
@ -127,7 +127,7 @@
class="list_class"
multiple="false"
required="true">
<!-- [11346] Option Set. -->
<!-- [11345] Option Set. -->
<option value="">
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SELECT_AN_OPTION</option>
<option value="1">
@ -137,7 +137,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL</option>
</field>
<!-- [11360] Groups Field. Type: Usergroup. (joomla) -->
<!-- [11359] Groups Field. Type: Usergroup. (joomla) -->
<field
type="usergroup"
name="groups"
@ -146,7 +146,7 @@
required="true"
multiple="true"
/>
<!-- [11274] Location Field. Type: Radio. (joomla) -->
<!-- [11273] Location Field. Type: Radio. (joomla) -->
<field
type="radio"
name="location"
@ -154,13 +154,13 @@
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_DESCRIPTION"
class="btn-group"
required="true">
<!-- [11346] Option Set. -->
<!-- [11345] Option Set. -->
<option value="1">
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN</option>
<option value="2">
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE</option>
</field>
<!-- [11360] Admin_view Field. Type: Folderlist. (joomla) -->
<!-- [11359] Admin_view Field. Type: Folderlist. (joomla) -->
<field
type="folderlist"
name="admin_view"
@ -170,7 +170,7 @@
hide_none="true"
hide_default="true"
/>
<!-- [11360] Site_view Field. Type: Folderlist. (joomla) -->
<!-- [11359] Site_view Field. Type: Folderlist. (joomla) -->
<field
type="folderlist"
name="site_view"
@ -180,7 +180,7 @@
hide_none="true"
hide_default="true"
/>
<!-- [11274] Target Field. Type: Radio. (joomla) -->
<!-- [11273] Target Field. Type: Radio. (joomla) -->
<field
type="radio"
name="target"
@ -188,13 +188,13 @@
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET_DESCRIPTION"
class="btn-group"
required="true">
<!-- [11346] Option Set. -->
<!-- [11345] Option Set. -->
<option value="1">
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SOME</option>
<option value="2">
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALL</option>
</field>
<!-- [11360] Content Field. Type: Editor. (joomla) -->
<!-- [11359] Content Field. Type: Editor. (joomla) -->
<field
type="editor"
name="content"
@ -205,7 +205,7 @@
filter="safehtml"
required="true"
/>
<!-- [11360] Alias Field. Type: Text. (joomla) -->
<!-- [11359] Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
@ -214,7 +214,7 @@
filter="STRING"
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALIAS_HINT"
/>
<!-- [11481] Article Field. Type: Articles. (custom) -->
<!-- [11480] Article Field. Type: Articles. (custom) -->
<field
type="articles"
name="article"
@ -224,7 +224,7 @@
default="0"
required="true"
/>
<!-- [11360] Url Field. Type: Url. (joomla) -->
<!-- [11359] Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
@ -239,7 +239,7 @@
message="Error! Please add url here."
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_HINT"
/>
<!-- [11360] Not_required Field. Type: Hidden. (joomla) -->
<!-- [11359] Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
@ -247,11 +247,11 @@
/>
</fieldset>
<!-- [11143] Metadata Fields. -->
<!-- [11142] Metadata Fields. -->
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<fieldset name="vdmmetadata"
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<!-- [11147] Robots Field. Type: List (joomla) -->
<!-- [11146] Robots Field. Type: List (joomla) -->
<field name="robots"
type="list"
label="JFIELD_METADATA_ROBOTS_LABEL"
@ -262,13 +262,13 @@
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
</field>
<!-- [11158] Author Field. Type: Text (joomla) -->
<!-- [11157] Author Field. Type: Text (joomla) -->
<field name="author"
type="text"
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
size="20"
/>
<!-- [11164] Rights Field. Type: Textarea (joomla) -->
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
cols="30" rows="2"
@ -276,15 +276,15 @@
</fieldset>
</fields>
<!-- [10047] Access Control Fields. -->
<!-- [10046] Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- [10049] Asset Id Field. Type: Hidden (joomla) -->
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- [10055] Rules Field. Type: Rules (joomla) -->
<!-- [10054] Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"

View File

@ -4,15 +4,15 @@
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
>
<fieldset name="details">
<!-- [11013] Default Fields. -->
<!-- [11014] Id Field. Type: Text (joomla) -->
<!-- [11012] Default Fields. -->
<!-- [11013] Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- [11021] Date Created Field. Type: Calendar (joomla) -->
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
@ -22,14 +22,14 @@
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- [11032] User Created Field. Type: User (joomla) -->
<!-- [11031] User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_LABEL"
description="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_DESC"
/>
<!-- [11040] Published Field. Type: List (joomla) -->
<!-- [11039] Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
@ -42,18 +42,18 @@
<option value="-2">
JTRASHED</option>
</field>
<!-- [11055] Date Modified Field. Type: Calendar (joomla) -->
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- [11059] User Modified Field. Type: User (joomla) -->
<!-- [11058] User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- [11069] Access Field. Type: Accesslevel (joomla) -->
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
@ -61,7 +61,7 @@
default="1"
required="false"
/>
<!-- [11079] Ordering Field. Type: Numbers (joomla) -->
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
@ -72,7 +72,7 @@
size="6"
required="false"
/>
<!-- [11091] Version Field. Type: Text (joomla) -->
<!-- [11090] Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
@ -83,7 +83,7 @@
readonly="true"
filter="unset"
/>
<!-- [11105] Metakey Field. Type: Textarea (joomla) -->
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
<field
name="metakey"
type="textarea"
@ -92,7 +92,7 @@
rows="3"
cols="30"
/>
<!-- [11114] Metadesc Field. Type: Textarea (joomla) -->
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
<field
name="metadesc"
type="textarea"
@ -101,8 +101,8 @@
rows="3"
cols="30"
/>
<!-- [11124] Dynamic Fields. -->
<!-- [11360] Name Field. Type: Text. (joomla) -->
<!-- [11123] Dynamic Fields. -->
<!-- [11359] Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
@ -118,7 +118,7 @@
message="Error! Please add name here."
hint="COM_SERMONDISTRIBUTOR_PREACHER_NAME_HINT"
/>
<!-- [11360] Description Field. Type: Editor. (joomla) -->
<!-- [11359] Description Field. Type: Editor. (joomla) -->
<field
type="editor"
name="description"
@ -130,7 +130,7 @@
buttons="false"
filter="safehtml"
/>
<!-- [11360] Alias Field. Type: Text. (joomla) -->
<!-- [11359] Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
@ -139,7 +139,7 @@
filter="STRING"
hint="COM_SERMONDISTRIBUTOR_PREACHER_ALIAS_HINT"
/>
<!-- [11360] Email Field. Type: Text. (joomla) -->
<!-- [11359] Email Field. Type: Text. (joomla) -->
<field
type="text"
name="email"
@ -154,7 +154,7 @@
message="Error! Please add email address here."
hint="COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_HINT"
/>
<!-- [11360] Website Field. Type: Url. (joomla) -->
<!-- [11359] Website Field. Type: Url. (joomla) -->
<field
type="url"
name="website"
@ -168,7 +168,7 @@
message="Error! Please add website here."
hint="COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_HINT"
/>
<!-- [11360] Icon Field. Type: Media. (joomla) -->
<!-- [11359] Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
@ -178,11 +178,11 @@
/>
</fieldset>
<!-- [11143] Metadata Fields. -->
<!-- [11142] Metadata Fields. -->
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<fieldset name="vdmmetadata"
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<!-- [11147] Robots Field. Type: List (joomla) -->
<!-- [11146] Robots Field. Type: List (joomla) -->
<field name="robots"
type="list"
label="JFIELD_METADATA_ROBOTS_LABEL"
@ -193,13 +193,13 @@
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
</field>
<!-- [11158] Author Field. Type: Text (joomla) -->
<!-- [11157] Author Field. Type: Text (joomla) -->
<field name="author"
type="text"
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
size="20"
/>
<!-- [11164] Rights Field. Type: Textarea (joomla) -->
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
cols="30" rows="2"
@ -207,15 +207,15 @@
</fieldset>
</fields>
<!-- [10047] Access Control Fields. -->
<!-- [10046] Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- [10049] Asset Id Field. Type: Hidden (joomla) -->
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- [10055] Rules Field. Type: Rules (joomla) -->
<!-- [10054] Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"

View File

@ -4,15 +4,15 @@
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
>
<fieldset name="details">
<!-- [11013] Default Fields. -->
<!-- [11014] Id Field. Type: Text (joomla) -->
<!-- [11012] Default Fields. -->
<!-- [11013] Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- [11021] Date Created Field. Type: Calendar (joomla) -->
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
@ -22,14 +22,14 @@
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- [11032] User Created Field. Type: User (joomla) -->
<!-- [11031] User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_LABEL"
description="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_DESC"
/>
<!-- [11040] Published Field. Type: List (joomla) -->
<!-- [11039] Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
@ -42,18 +42,18 @@
<option value="-2">
JTRASHED</option>
</field>
<!-- [11055] Date Modified Field. Type: Calendar (joomla) -->
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- [11059] User Modified Field. Type: User (joomla) -->
<!-- [11058] User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- [11069] Access Field. Type: Accesslevel (joomla) -->
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
@ -61,7 +61,7 @@
default="1"
required="false"
/>
<!-- [11079] Ordering Field. Type: Numbers (joomla) -->
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
@ -72,7 +72,7 @@
size="6"
required="false"
/>
<!-- [11091] Version Field. Type: Text (joomla) -->
<!-- [11090] Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
@ -83,7 +83,7 @@
readonly="true"
filter="unset"
/>
<!-- [11105] Metakey Field. Type: Textarea (joomla) -->
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
<field
name="metakey"
type="textarea"
@ -92,7 +92,7 @@
rows="3"
cols="30"
/>
<!-- [11114] Metadesc Field. Type: Textarea (joomla) -->
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
<field
name="metadesc"
type="textarea"
@ -101,8 +101,8 @@
rows="3"
cols="30"
/>
<!-- [11124] Dynamic Fields. -->
<!-- [11360] Name Field. Type: Text. (joomla) -->
<!-- [11123] Dynamic Fields. -->
<!-- [11359] Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
@ -118,7 +118,7 @@
message="Error! Please add name here."
hint="COM_SERMONDISTRIBUTOR_SERIES_NAME_HINT"
/>
<!-- [11360] Description Field. Type: Editor. (joomla) -->
<!-- [11359] Description Field. Type: Editor. (joomla) -->
<field
type="editor"
name="description"
@ -130,7 +130,7 @@
buttons="false"
filter="safehtml"
/>
<!-- [11360] Alias Field. Type: Text. (joomla) -->
<!-- [11359] Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
@ -139,7 +139,7 @@
filter="STRING"
hint="COM_SERMONDISTRIBUTOR_SERIES_ALIAS_HINT"
/>
<!-- [11360] Icon Field. Type: Media. (joomla) -->
<!-- [11359] Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
@ -147,7 +147,7 @@
description="COM_SERMONDISTRIBUTOR_SERIES_ICON_DESCRIPTION"
directory=""
/>
<!-- [11360] Scripture Field. Type: Text. (joomla) -->
<!-- [11359] Scripture Field. Type: Text. (joomla) -->
<field
type="text"
name="scripture"
@ -165,11 +165,11 @@
/>
</fieldset>
<!-- [11143] Metadata Fields. -->
<!-- [11142] Metadata Fields. -->
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<fieldset name="vdmmetadata"
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<!-- [11147] Robots Field. Type: List (joomla) -->
<!-- [11146] Robots Field. Type: List (joomla) -->
<field name="robots"
type="list"
label="JFIELD_METADATA_ROBOTS_LABEL"
@ -180,13 +180,13 @@
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
</field>
<!-- [11158] Author Field. Type: Text (joomla) -->
<!-- [11157] Author Field. Type: Text (joomla) -->
<field name="author"
type="text"
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
size="20"
/>
<!-- [11164] Rights Field. Type: Textarea (joomla) -->
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
cols="30" rows="2"
@ -194,15 +194,15 @@
</fieldset>
</fields>
<!-- [10047] Access Control Fields. -->
<!-- [10046] Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- [10049] Asset Id Field. Type: Hidden (joomla) -->
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- [10055] Rules Field. Type: Rules (joomla) -->
<!-- [10054] Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"

View File

@ -18,127 +18,127 @@
/------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_uZsflMfgTr_required = false;
jform_CqfSUiFuhT_required = false;
jform_uqyxvuOdbK_required = false;
jform_uqVcAgSnSM_required = false;
jform_HCeOmWWRle_required = false;
jform_mWnyiWrQzD_required = false;
jform_USEyiqHsmP_required = false;
jform_PuIkmmJLYI_required = false;
jform_rZyqFpzhBR_required = false;
jform_pwLZOSxoqG_required = false;
// Initial Script
jQuery(document).ready(function()
{
var source_uZsflMf = jQuery("#jform_source").val();
uZsflMf(source_uZsflMf);
var source_mWnyiWr = jQuery("#jform_source").val();
mWnyiWr(source_mWnyiWr);
var source_BzXllfH = jQuery("#jform_source").val();
var build_BzXllfH = jQuery("#jform_build input[type='radio']:checked").val();
BzXllfH(source_BzXllfH,build_BzXllfH);
var source_qGZCbLd = jQuery("#jform_source").val();
var build_qGZCbLd = jQuery("#jform_build input[type='radio']:checked").val();
qGZCbLd(source_qGZCbLd,build_qGZCbLd);
var source_CqfSUiF = jQuery("#jform_source").val();
var build_CqfSUiF = jQuery("#jform_build input[type='radio']:checked").val();
CqfSUiF(source_CqfSUiF,build_CqfSUiF);
var source_USEyiqH = jQuery("#jform_source").val();
var build_USEyiqH = jQuery("#jform_build input[type='radio']:checked").val();
USEyiqH(source_USEyiqH,build_USEyiqH);
var build_uqyxvuO = jQuery("#jform_build input[type='radio']:checked").val();
var source_uqyxvuO = jQuery("#jform_source").val();
uqyxvuO(build_uqyxvuO,source_uqyxvuO);
var build_PuIkmmJ = jQuery("#jform_build input[type='radio']:checked").val();
var source_PuIkmmJ = jQuery("#jform_source").val();
PuIkmmJ(build_PuIkmmJ,source_PuIkmmJ);
var source_uqVcAgS = jQuery("#jform_source").val();
uqVcAgS(source_uqVcAgS);
var source_rZyqFpz = jQuery("#jform_source").val();
rZyqFpz(source_rZyqFpz);
var source_HCeOmWW = jQuery("#jform_source").val();
HCeOmWW(source_HCeOmWW);
var source_pwLZOSx = jQuery("#jform_source").val();
pwLZOSx(source_pwLZOSx);
var link_type_MMtrqVI = jQuery("#jform_link_type input[type='radio']:checked").val();
MMtrqVI(link_type_MMtrqVI);
var link_type_hfgQmzf = jQuery("#jform_link_type input[type='radio']:checked").val();
hfgQmzf(link_type_hfgQmzf);
var link_type_cZNPuaM = jQuery("#jform_link_type input[type='radio']:checked").val();
cZNPuaM(link_type_cZNPuaM);
var link_type_bdfNqfg = jQuery("#jform_link_type input[type='radio']:checked").val();
bdfNqfg(link_type_bdfNqfg);
});
// the uZsflMf function
function uZsflMf(source_uZsflMf)
// the mWnyiWr function
function mWnyiWr(source_mWnyiWr)
{
if (isSet(source_uZsflMf) && source_uZsflMf.constructor !== Array)
if (isSet(source_mWnyiWr) && source_mWnyiWr.constructor !== Array)
{
var temp_uZsflMf = source_uZsflMf;
var source_uZsflMf = [];
source_uZsflMf.push(temp_uZsflMf);
var temp_mWnyiWr = source_mWnyiWr;
var source_mWnyiWr = [];
source_mWnyiWr.push(temp_mWnyiWr);
}
else if (!isSet(source_uZsflMf))
else if (!isSet(source_mWnyiWr))
{
var source_uZsflMf = [];
var source_mWnyiWr = [];
}
var source = source_uZsflMf.some(source_uZsflMf_SomeFunc);
var source = source_mWnyiWr.some(source_mWnyiWr_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (source)
{
jQuery('#jform_build').closest('.control-group').show();
if (jform_uZsflMfgTr_required)
if (jform_mWnyiWrQzD_required)
{
updateFieldRequired('build',0);
jQuery('#jform_build').prop('required','required');
jQuery('#jform_build').attr('aria-required',true);
jQuery('#jform_build').addClass('required');
jform_uZsflMfgTr_required = false;
jform_mWnyiWrQzD_required = false;
}
}
else
{
jQuery('#jform_build').closest('.control-group').hide();
if (!jform_uZsflMfgTr_required)
if (!jform_mWnyiWrQzD_required)
{
updateFieldRequired('build',1);
jQuery('#jform_build').removeAttr('required');
jQuery('#jform_build').removeAttr('aria-required');
jQuery('#jform_build').removeClass('required');
jform_uZsflMfgTr_required = true;
jform_mWnyiWrQzD_required = true;
}
}
}
// the uZsflMf Some function
function source_uZsflMf_SomeFunc(source_uZsflMf)
// the mWnyiWr Some function
function source_mWnyiWr_SomeFunc(source_mWnyiWr)
{
// [7967] set the function logic
if (source_uZsflMf == 2)
// [7966] set the function logic
if (source_mWnyiWr == 2)
{
return true;
}
return false;
}
// the BzXllfH function
function BzXllfH(source_BzXllfH,build_BzXllfH)
// the qGZCbLd function
function qGZCbLd(source_qGZCbLd,build_qGZCbLd)
{
if (isSet(source_BzXllfH) && source_BzXllfH.constructor !== Array)
if (isSet(source_qGZCbLd) && source_qGZCbLd.constructor !== Array)
{
var temp_BzXllfH = source_BzXllfH;
var source_BzXllfH = [];
source_BzXllfH.push(temp_BzXllfH);
var temp_qGZCbLd = source_qGZCbLd;
var source_qGZCbLd = [];
source_qGZCbLd.push(temp_qGZCbLd);
}
else if (!isSet(source_BzXllfH))
else if (!isSet(source_qGZCbLd))
{
var source_BzXllfH = [];
var source_qGZCbLd = [];
}
var source = source_BzXllfH.some(source_BzXllfH_SomeFunc);
var source = source_qGZCbLd.some(source_qGZCbLd_SomeFunc);
if (isSet(build_BzXllfH) && build_BzXllfH.constructor !== Array)
if (isSet(build_qGZCbLd) && build_qGZCbLd.constructor !== Array)
{
var temp_BzXllfH = build_BzXllfH;
var build_BzXllfH = [];
build_BzXllfH.push(temp_BzXllfH);
var temp_qGZCbLd = build_qGZCbLd;
var build_qGZCbLd = [];
build_qGZCbLd.push(temp_qGZCbLd);
}
else if (!isSet(build_BzXllfH))
else if (!isSet(build_qGZCbLd))
{
var build_BzXllfH = [];
var build_qGZCbLd = [];
}
var build = build_BzXllfH.some(build_BzXllfH_SomeFunc);
var build = build_qGZCbLd.some(build_qGZCbLd_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (source && build)
{
jQuery('.note_auto_dropbox').closest('.control-group').show();
@ -149,67 +149,67 @@ function BzXllfH(source_BzXllfH,build_BzXllfH)
}
}
// the BzXllfH Some function
function source_BzXllfH_SomeFunc(source_BzXllfH)
// the qGZCbLd Some function
function source_qGZCbLd_SomeFunc(source_qGZCbLd)
{
// [7967] set the function logic
if (source_BzXllfH == 2)
// [7966] set the function logic
if (source_qGZCbLd == 2)
{
return true;
}
return false;
}
// the BzXllfH Some function
function build_BzXllfH_SomeFunc(build_BzXllfH)
// the qGZCbLd Some function
function build_qGZCbLd_SomeFunc(build_qGZCbLd)
{
// [7967] set the function logic
if (build_BzXllfH == 2)
// [7966] set the function logic
if (build_qGZCbLd == 2)
{
return true;
}
return false;
}
// the CqfSUiF function
function CqfSUiF(source_CqfSUiF,build_CqfSUiF)
// the USEyiqH function
function USEyiqH(source_USEyiqH,build_USEyiqH)
{
if (isSet(source_CqfSUiF) && source_CqfSUiF.constructor !== Array)
if (isSet(source_USEyiqH) && source_USEyiqH.constructor !== Array)
{
var temp_CqfSUiF = source_CqfSUiF;
var source_CqfSUiF = [];
source_CqfSUiF.push(temp_CqfSUiF);
var temp_USEyiqH = source_USEyiqH;
var source_USEyiqH = [];
source_USEyiqH.push(temp_USEyiqH);
}
else if (!isSet(source_CqfSUiF))
else if (!isSet(source_USEyiqH))
{
var source_CqfSUiF = [];
var source_USEyiqH = [];
}
var source = source_CqfSUiF.some(source_CqfSUiF_SomeFunc);
var source = source_USEyiqH.some(source_USEyiqH_SomeFunc);
if (isSet(build_CqfSUiF) && build_CqfSUiF.constructor !== Array)
if (isSet(build_USEyiqH) && build_USEyiqH.constructor !== Array)
{
var temp_CqfSUiF = build_CqfSUiF;
var build_CqfSUiF = [];
build_CqfSUiF.push(temp_CqfSUiF);
var temp_USEyiqH = build_USEyiqH;
var build_USEyiqH = [];
build_USEyiqH.push(temp_USEyiqH);
}
else if (!isSet(build_CqfSUiF))
else if (!isSet(build_USEyiqH))
{
var build_CqfSUiF = [];
var build_USEyiqH = [];
}
var build = build_CqfSUiF.some(build_CqfSUiF_SomeFunc);
var build = build_USEyiqH.some(build_USEyiqH_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (source && build)
{
jQuery('#jform_manual_files').closest('.control-group').show();
if (jform_CqfSUiFuhT_required)
if (jform_USEyiqHsmP_required)
{
updateFieldRequired('manual_files',0);
jQuery('#jform_manual_files').prop('required','required');
jQuery('#jform_manual_files').attr('aria-required',true);
jQuery('#jform_manual_files').addClass('required');
jform_CqfSUiFuhT_required = false;
jform_USEyiqHsmP_required = false;
}
jQuery('.note_manual_dropbox').closest('.control-group').show();
@ -217,79 +217,79 @@ function CqfSUiF(source_CqfSUiF,build_CqfSUiF)
else
{
jQuery('#jform_manual_files').closest('.control-group').hide();
if (!jform_CqfSUiFuhT_required)
if (!jform_USEyiqHsmP_required)
{
updateFieldRequired('manual_files',1);
jQuery('#jform_manual_files').removeAttr('required');
jQuery('#jform_manual_files').removeAttr('aria-required');
jQuery('#jform_manual_files').removeClass('required');
jform_CqfSUiFuhT_required = true;
jform_USEyiqHsmP_required = true;
}
jQuery('.note_manual_dropbox').closest('.control-group').hide();
}
}
// the CqfSUiF Some function
function source_CqfSUiF_SomeFunc(source_CqfSUiF)
// the USEyiqH Some function
function source_USEyiqH_SomeFunc(source_USEyiqH)
{
// [7967] set the function logic
if (source_CqfSUiF == 2)
// [7966] set the function logic
if (source_USEyiqH == 2)
{
return true;
}
return false;
}
// the CqfSUiF Some function
function build_CqfSUiF_SomeFunc(build_CqfSUiF)
// the USEyiqH Some function
function build_USEyiqH_SomeFunc(build_USEyiqH)
{
// [7967] set the function logic
if (build_CqfSUiF == 1)
// [7966] set the function logic
if (build_USEyiqH == 1)
{
return true;
}
return false;
}
// the uqyxvuO function
function uqyxvuO(build_uqyxvuO,source_uqyxvuO)
// the PuIkmmJ function
function PuIkmmJ(build_PuIkmmJ,source_PuIkmmJ)
{
if (isSet(build_uqyxvuO) && build_uqyxvuO.constructor !== Array)
if (isSet(build_PuIkmmJ) && build_PuIkmmJ.constructor !== Array)
{
var temp_uqyxvuO = build_uqyxvuO;
var build_uqyxvuO = [];
build_uqyxvuO.push(temp_uqyxvuO);
var temp_PuIkmmJ = build_PuIkmmJ;
var build_PuIkmmJ = [];
build_PuIkmmJ.push(temp_PuIkmmJ);
}
else if (!isSet(build_uqyxvuO))
else if (!isSet(build_PuIkmmJ))
{
var build_uqyxvuO = [];
var build_PuIkmmJ = [];
}
var build = build_uqyxvuO.some(build_uqyxvuO_SomeFunc);
var build = build_PuIkmmJ.some(build_PuIkmmJ_SomeFunc);
if (isSet(source_uqyxvuO) && source_uqyxvuO.constructor !== Array)
if (isSet(source_PuIkmmJ) && source_PuIkmmJ.constructor !== Array)
{
var temp_uqyxvuO = source_uqyxvuO;
var source_uqyxvuO = [];
source_uqyxvuO.push(temp_uqyxvuO);
var temp_PuIkmmJ = source_PuIkmmJ;
var source_PuIkmmJ = [];
source_PuIkmmJ.push(temp_PuIkmmJ);
}
else if (!isSet(source_uqyxvuO))
else if (!isSet(source_PuIkmmJ))
{
var source_uqyxvuO = [];
var source_PuIkmmJ = [];
}
var source = source_uqyxvuO.some(source_uqyxvuO_SomeFunc);
var source = source_PuIkmmJ.some(source_PuIkmmJ_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (build && source)
{
jQuery('#jform_manual_files').closest('.control-group').show();
if (jform_uqyxvuOdbK_required)
if (jform_PuIkmmJLYI_required)
{
updateFieldRequired('manual_files',0);
jQuery('#jform_manual_files').prop('required','required');
jQuery('#jform_manual_files').attr('aria-required',true);
jQuery('#jform_manual_files').addClass('required');
jform_uqyxvuOdbK_required = false;
jform_PuIkmmJLYI_required = false;
}
jQuery('.note_manual_dropbox').closest('.control-group').show();
@ -297,155 +297,155 @@ function uqyxvuO(build_uqyxvuO,source_uqyxvuO)
else
{
jQuery('#jform_manual_files').closest('.control-group').hide();
if (!jform_uqyxvuOdbK_required)
if (!jform_PuIkmmJLYI_required)
{
updateFieldRequired('manual_files',1);
jQuery('#jform_manual_files').removeAttr('required');
jQuery('#jform_manual_files').removeAttr('aria-required');
jQuery('#jform_manual_files').removeClass('required');
jform_uqyxvuOdbK_required = true;
jform_PuIkmmJLYI_required = true;
}
jQuery('.note_manual_dropbox').closest('.control-group').hide();
}
}
// the uqyxvuO Some function
function build_uqyxvuO_SomeFunc(build_uqyxvuO)
// the PuIkmmJ Some function
function build_PuIkmmJ_SomeFunc(build_PuIkmmJ)
{
// [7967] set the function logic
if (build_uqyxvuO == 1)
// [7966] set the function logic
if (build_PuIkmmJ == 1)
{
return true;
}
return false;
}
// the uqyxvuO Some function
function source_uqyxvuO_SomeFunc(source_uqyxvuO)
// the PuIkmmJ Some function
function source_PuIkmmJ_SomeFunc(source_PuIkmmJ)
{
// [7967] set the function logic
if (source_uqyxvuO == 2)
// [7966] set the function logic
if (source_PuIkmmJ == 2)
{
return true;
}
return false;
}
// the uqVcAgS function
function uqVcAgS(source_uqVcAgS)
// the rZyqFpz function
function rZyqFpz(source_rZyqFpz)
{
if (isSet(source_uqVcAgS) && source_uqVcAgS.constructor !== Array)
if (isSet(source_rZyqFpz) && source_rZyqFpz.constructor !== Array)
{
var temp_uqVcAgS = source_uqVcAgS;
var source_uqVcAgS = [];
source_uqVcAgS.push(temp_uqVcAgS);
var temp_rZyqFpz = source_rZyqFpz;
var source_rZyqFpz = [];
source_rZyqFpz.push(temp_rZyqFpz);
}
else if (!isSet(source_uqVcAgS))
else if (!isSet(source_rZyqFpz))
{
var source_uqVcAgS = [];
var source_rZyqFpz = [];
}
var source = source_uqVcAgS.some(source_uqVcAgS_SomeFunc);
var source = source_rZyqFpz.some(source_rZyqFpz_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (source)
{
jQuery('#jform_local_files').closest('.control-group').show();
if (jform_uqVcAgSnSM_required)
if (jform_rZyqFpzhBR_required)
{
updateFieldRequired('local_files',0);
jQuery('#jform_local_files').prop('required','required');
jQuery('#jform_local_files').attr('aria-required',true);
jQuery('#jform_local_files').addClass('required');
jform_uqVcAgSnSM_required = false;
jform_rZyqFpzhBR_required = false;
}
}
else
{
jQuery('#jform_local_files').closest('.control-group').hide();
if (!jform_uqVcAgSnSM_required)
if (!jform_rZyqFpzhBR_required)
{
updateFieldRequired('local_files',1);
jQuery('#jform_local_files').removeAttr('required');
jQuery('#jform_local_files').removeAttr('aria-required');
jQuery('#jform_local_files').removeClass('required');
jform_uqVcAgSnSM_required = true;
jform_rZyqFpzhBR_required = true;
}
}
}
// the uqVcAgS Some function
function source_uqVcAgS_SomeFunc(source_uqVcAgS)
// the rZyqFpz Some function
function source_rZyqFpz_SomeFunc(source_rZyqFpz)
{
// [7967] set the function logic
if (source_uqVcAgS == 1)
// [7966] set the function logic
if (source_rZyqFpz == 1)
{
return true;
}
return false;
}
// the HCeOmWW function
function HCeOmWW(source_HCeOmWW)
// the pwLZOSx function
function pwLZOSx(source_pwLZOSx)
{
if (isSet(source_HCeOmWW) && source_HCeOmWW.constructor !== Array)
if (isSet(source_pwLZOSx) && source_pwLZOSx.constructor !== Array)
{
var temp_HCeOmWW = source_HCeOmWW;
var source_HCeOmWW = [];
source_HCeOmWW.push(temp_HCeOmWW);
var temp_pwLZOSx = source_pwLZOSx;
var source_pwLZOSx = [];
source_pwLZOSx.push(temp_pwLZOSx);
}
else if (!isSet(source_HCeOmWW))
else if (!isSet(source_pwLZOSx))
{
var source_HCeOmWW = [];
var source_pwLZOSx = [];
}
var source = source_HCeOmWW.some(source_HCeOmWW_SomeFunc);
var source = source_pwLZOSx.some(source_pwLZOSx_SomeFunc);
// [7980] set this function logic
// [7979] set this function logic
if (source)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_HCeOmWWRle_required)
if (jform_pwLZOSxoqG_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_HCeOmWWRle_required = false;
jform_pwLZOSxoqG_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_HCeOmWWRle_required)
if (!jform_pwLZOSxoqG_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_HCeOmWWRle_required = true;
jform_pwLZOSxoqG_required = true;
}
}
}
// the HCeOmWW Some function
function source_HCeOmWW_SomeFunc(source_HCeOmWW)
// the pwLZOSx Some function
function source_pwLZOSx_SomeFunc(source_pwLZOSx)
{
// [7967] set the function logic
if (source_HCeOmWW == 3)
// [7966] set the function logic
if (source_pwLZOSx == 3)
{
return true;
}
return false;
}
// the MMtrqVI function
function MMtrqVI(link_type_MMtrqVI)
// the hfgQmzf function
function hfgQmzf(link_type_hfgQmzf)
{
// [8002] set the function logic
if (link_type_MMtrqVI == 2)
// [8001] set the function logic
if (link_type_hfgQmzf == 2)
{
jQuery('.note_link_directed').closest('.control-group').show();
}
@ -455,11 +455,11 @@ function MMtrqVI(link_type_MMtrqVI)
}
}
// the cZNPuaM function
function cZNPuaM(link_type_cZNPuaM)
// the bdfNqfg function
function bdfNqfg(link_type_bdfNqfg)
{
// [8002] set the function logic
if (link_type_cZNPuaM == 1)
// [8001] set the function logic
if (link_type_bdfNqfg == 1)
{
jQuery('.note_link_encrypted').closest('.control-group').show();
}

View File

@ -4,15 +4,15 @@
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
>
<fieldset name="details">
<!-- [11013] Default Fields. -->
<!-- [11014] Id Field. Type: Text (joomla) -->
<!-- [11012] Default Fields. -->
<!-- [11013] Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- [11021] Date Created Field. Type: Calendar (joomla) -->
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
@ -22,14 +22,14 @@
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- [11032] User Created Field. Type: User (joomla) -->
<!-- [11031] User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_LABEL"
description="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_DESC"
/>
<!-- [11040] Published Field. Type: List (joomla) -->
<!-- [11039] Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
@ -42,18 +42,18 @@
<option value="-2">
JTRASHED</option>
</field>
<!-- [11055] Date Modified Field. Type: Calendar (joomla) -->
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- [11059] User Modified Field. Type: User (joomla) -->
<!-- [11058] User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- [11069] Access Field. Type: Accesslevel (joomla) -->
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
@ -61,7 +61,7 @@
default="1"
required="false"
/>
<!-- [11079] Ordering Field. Type: Numbers (joomla) -->
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
@ -72,7 +72,7 @@
size="6"
required="false"
/>
<!-- [11091] Version Field. Type: Text (joomla) -->
<!-- [11090] Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
@ -83,7 +83,7 @@
readonly="true"
filter="unset"
/>
<!-- [11105] Metakey Field. Type: Textarea (joomla) -->
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
<field
name="metakey"
type="textarea"
@ -92,7 +92,7 @@
rows="3"
cols="30"
/>
<!-- [11114] Metadesc Field. Type: Textarea (joomla) -->
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
<field
name="metadesc"
type="textarea"
@ -101,8 +101,8 @@
rows="3"
cols="30"
/>
<!-- [11124] Dynamic Fields. -->
<!-- [11360] Name Field. Type: Text. (joomla) -->
<!-- [11123] Dynamic Fields. -->
<!-- [11359] Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
@ -118,7 +118,7 @@
message="Error! Please add name here."
hint="COM_SERMONDISTRIBUTOR_SERMON_NAME_HINT"
/>
<!-- [11481] Preacher Field. Type: Preachers. (custom) -->
<!-- [11480] Preacher Field. Type: Preachers. (custom) -->
<field
type="preachers"
name="preacher"
@ -129,7 +129,7 @@
default="0"
button="true"
/>
<!-- [11481] Series Field. Type: Series. (custom) -->
<!-- [11480] Series Field. Type: Series. (custom) -->
<field
type="series"
name="series"
@ -140,7 +140,7 @@
default="0"
button="true"
/>
<!-- [11360] Short_description Field. Type: Text. (joomla) -->
<!-- [11359] Short_description Field. Type: Text. (joomla) -->
<field
type="text"
name="short_description"
@ -154,7 +154,7 @@
message="Error! Please add some short description here."
hint="COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_HINT"
/>
<!-- [11360] Catid Field. Type: Category. (joomla) -->
<!-- [11359] Catid Field. Type: Category. (joomla) -->
<field
type="category"
name="catid"
@ -164,7 +164,7 @@
description="COM_SERMONDISTRIBUTOR_SERMON_CATID_DESCRIPTION"
class="inputbox"
/>
<!-- [11274] Link_type Field. Type: Radio. (joomla) -->
<!-- [11273] Link_type Field. Type: Radio. (joomla) -->
<field
type="radio"
name="link_type"
@ -173,13 +173,13 @@
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- [11346] Option Set. -->
<!-- [11345] Option Set. -->
<option value="1">
COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED</option>
<option value="2">
COM_SERMONDISTRIBUTOR_SERMON_DIRECT</option>
</field>
<!-- [11274] Source Field. Type: List. (joomla) -->
<!-- [11273] Source Field. Type: List. (joomla) -->
<field
type="list"
name="source"
@ -189,7 +189,7 @@
multiple="false"
filter="INT"
required="true">
<!-- [11346] Option Set. -->
<!-- [11345] Option Set. -->
<option value="">
COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE</option>
<option value="1">
@ -199,7 +199,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_SERMON_URL</option>
</field>
<!-- [11360] Icon Field. Type: Media. (joomla) -->
<!-- [11359] Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
@ -207,7 +207,7 @@
description="COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION"
directory=""
/>
<!-- [11360] Tags Field. Type: Tag. (joomla) -->
<!-- [11359] Tags Field. Type: Tag. (joomla) -->
<field
type="tag"
name="tags"
@ -218,7 +218,7 @@
published="true"
multiple="true"
/>
<!-- [11481] Local_files Field. Type: Localfiles. (custom) -->
<!-- [11480] Local_files Field. Type: Localfiles. (custom) -->
<field
type="localfiles"
name="local_files"
@ -230,7 +230,7 @@
required="true"
button="false"
/>
<!-- [11360] Description Field. Type: Editor. (joomla) -->
<!-- [11359] Description Field. Type: Editor. (joomla) -->
<field
type="editor"
name="description"
@ -242,9 +242,9 @@
buttons="false"
filter="safehtml"
/>
<!-- [11374] Note_auto_dropbox Field. Type: Note. A None Database Field. (joomla) -->
<!-- [11373] Note_auto_dropbox Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_auto_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_auto_dropbox" />
<!-- [11360] Alias Field. Type: Text. (joomla) -->
<!-- [11359] Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
@ -253,19 +253,19 @@
filter="STRING"
hint="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT"
/>
<!-- [11360] Not_required Field. Type: Hidden. (joomla) -->
<!-- [11359] Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- [11374] Note_link_directed Field. Type: Note. A None Database Field. (joomla) -->
<!-- [11373] Note_link_directed Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_link_directed" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_directed" close="true" />
<!-- [11374] Note_manual_dropbox Field. Type: Note. A None Database Field. (joomla) -->
<!-- [11373] Note_manual_dropbox Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_manual_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_manual_dropbox" />
<!-- [11374] Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) -->
<!-- [11373] Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_link_encrypted" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_encrypted" close="true" />
<!-- [11481] Manual_files Field. Type: Dropboxfiles. (custom) -->
<!-- [11480] Manual_files Field. Type: Dropboxfiles. (custom) -->
<field
type="dropboxfiles"
name="manual_files"
@ -277,7 +277,7 @@
required="true"
button="false"
/>
<!-- [11360] Scripture Field. Type: Text. (joomla) -->
<!-- [11359] Scripture Field. Type: Text. (joomla) -->
<field
type="text"
name="scripture"
@ -293,7 +293,7 @@
message="Error! Please add some scripture reference here."
hint="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_HINT"
/>
<!-- [11360] Url Field. Type: Url. (joomla) -->
<!-- [11359] Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
@ -308,7 +308,7 @@
message="Error! Please add sermon url here."
hint="COM_SERMONDISTRIBUTOR_SERMON_URL_HINT"
/>
<!-- [11274] Build Field. Type: Radio. (joomla) -->
<!-- [11273] Build Field. Type: Radio. (joomla) -->
<field
type="radio"
name="build"
@ -317,13 +317,13 @@
class="btn-group btn-group-yesno"
default="1"
required="true">
<!-- [11346] Option Set. -->
<!-- [11345] Option Set. -->
<option value="1">
COM_SERMONDISTRIBUTOR_SERMON_MANUAL</option>
<option value="2">
COM_SERMONDISTRIBUTOR_SERMON_AUTOMATIC</option>
</field>
<!-- [11360] Auto_sermons Field. Type: Hidden. (joomla) -->
<!-- [11359] Auto_sermons Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="auto_sermons"
@ -331,11 +331,11 @@
/>
</fieldset>
<!-- [11143] Metadata Fields. -->
<!-- [11142] Metadata Fields. -->
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<fieldset name="vdmmetadata"
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<!-- [11147] Robots Field. Type: List (joomla) -->
<!-- [11146] Robots Field. Type: List (joomla) -->
<field name="robots"
type="list"
label="JFIELD_METADATA_ROBOTS_LABEL"
@ -346,13 +346,13 @@
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
</field>
<!-- [11158] Author Field. Type: Text (joomla) -->
<!-- [11157] Author Field. Type: Text (joomla) -->
<field name="author"
type="text"
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
size="20"
/>
<!-- [11164] Rights Field. Type: Textarea (joomla) -->
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
cols="30" rows="2"
@ -360,15 +360,15 @@
</fieldset>
</fields>
<!-- [10047] Access Control Fields. -->
<!-- [10046] Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- [10049] Asset Id Field. Type: Hidden (joomla) -->
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- [10055] Rules Field. Type: Rules (joomla) -->
<!-- [10054] Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"

View File

@ -4,15 +4,15 @@
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
>
<fieldset name="details">
<!-- [11013] Default Fields. -->
<!-- [11014] Id Field. Type: Text (joomla) -->
<!-- [11012] Default Fields. -->
<!-- [11013] Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- [11021] Date Created Field. Type: Calendar (joomla) -->
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
@ -22,14 +22,14 @@
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- [11032] User Created Field. Type: User (joomla) -->
<!-- [11031] User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_LABEL"
description="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_DESC"
/>
<!-- [11040] Published Field. Type: List (joomla) -->
<!-- [11039] Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
@ -42,18 +42,18 @@
<option value="-2">
JTRASHED</option>
</field>
<!-- [11055] Date Modified Field. Type: Calendar (joomla) -->
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- [11059] User Modified Field. Type: User (joomla) -->
<!-- [11058] User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- [11069] Access Field. Type: Accesslevel (joomla) -->
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
@ -61,7 +61,7 @@
default="1"
required="false"
/>
<!-- [11079] Ordering Field. Type: Numbers (joomla) -->
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
@ -72,7 +72,7 @@
size="6"
required="false"
/>
<!-- [11091] Version Field. Type: Text (joomla) -->
<!-- [11090] Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
@ -83,7 +83,7 @@
readonly="true"
filter="unset"
/>
<!-- [11105] Metakey Field. Type: Textarea (joomla) -->
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
<field
name="metakey"
type="textarea"
@ -92,7 +92,7 @@
rows="3"
cols="30"
/>
<!-- [11114] Metadesc Field. Type: Textarea (joomla) -->
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
<field
name="metadesc"
type="textarea"
@ -101,8 +101,8 @@
rows="3"
cols="30"
/>
<!-- [11124] Dynamic Fields. -->
<!-- [11360] Filename Field. Type: Text. (joomla) -->
<!-- [11123] Dynamic Fields. -->
<!-- [11359] Filename Field. Type: Text. (joomla) -->
<field
type="text"
name="filename"
@ -116,7 +116,7 @@
message="Error! Please add file name here."
hint="COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_HINT"
/>
<!-- [11481] Sermon Field. Type: Sermon. (custom) -->
<!-- [11480] Sermon Field. Type: Sermon. (custom) -->
<field
type="sermon"
name="sermon"
@ -127,7 +127,7 @@
required="true"
button="true"
/>
<!-- [11481] Preacher Field. Type: Preachers. (custom) -->
<!-- [11480] Preacher Field. Type: Preachers. (custom) -->
<field
type="preachers"
name="preacher"
@ -138,7 +138,7 @@
default="0"
button="true"
/>
<!-- [11481] Series Field. Type: Series. (custom) -->
<!-- [11480] Series Field. Type: Series. (custom) -->
<field
type="series"
name="series"
@ -149,7 +149,7 @@
default="0"
button="true"
/>
<!-- [11360] Counter Field. Type: Text. (joomla) -->
<!-- [11359] Counter Field. Type: Text. (joomla) -->
<field
type="text"
name="counter"
@ -165,11 +165,11 @@
/>
</fieldset>
<!-- [11143] Metadata Fields. -->
<!-- [11142] Metadata Fields. -->
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<fieldset name="vdmmetadata"
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<!-- [11147] Robots Field. Type: List (joomla) -->
<!-- [11146] Robots Field. Type: List (joomla) -->
<field name="robots"
type="list"
label="JFIELD_METADATA_ROBOTS_LABEL"
@ -180,13 +180,13 @@
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
</field>
<!-- [11158] Author Field. Type: Text (joomla) -->
<!-- [11157] Author Field. Type: Text (joomla) -->
<field name="author"
type="text"
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
size="20"
/>
<!-- [11164] Rights Field. Type: Textarea (joomla) -->
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
cols="30" rows="2"
@ -194,15 +194,15 @@
</fieldset>
</fields>
<!-- [10047] Access Control Fields. -->
<!-- [10046] Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- [10049] Asset Id Field. Type: Hidden (joomla) -->
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- [10055] Rules Field. Type: Rules (joomla) -->
<!-- [10054] Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"

View File

@ -117,7 +117,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{ // [9560] Get the form.
{ // [9559] Get the form.
$form = $this->loadForm('com_sermondistributor.help_document', 'help_document', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form))
@ -127,12 +127,12 @@ class SermondistributorModelHelp_document extends JModelAdmin
$jinput = JFactory::getApplication()->input;
// [9645] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
if ($jinput->get('a_id'))
{
$id = $jinput->get('a_id', 0, 'INT');
}
// [9650] The back end uses id so we use that the rest of the time and set it to 0 by default.
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
else
{
$id = $jinput->get('id', 0, 'INT');
@ -140,34 +140,34 @@ class SermondistributorModelHelp_document extends JModelAdmin
$user = JFactory::getUser();
// [9656] Check for existing item.
// [9657] Modify the form based on Edit State access controls.
// [9655] Check for existing item.
// [9656] Modify the form based on Edit State access controls.
if ($id != 0 && (!$user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $id))
|| ($id == 0 && !$user->authorise('help_document.edit.state', 'com_sermondistributor')))
{
// [9670] Disable fields for display.
// [9669] Disable fields for display.
$form->setFieldAttribute('ordering', 'disabled', 'true');
$form->setFieldAttribute('published', 'disabled', 'true');
// [9673] Disable fields while saving.
// [9672] Disable fields while saving.
$form->setFieldAttribute('ordering', 'filter', 'unset');
$form->setFieldAttribute('published', 'filter', 'unset');
}
// [9678] Modify the form based on Edit Creaded By access controls.
// [9677] Modify the form based on Edit Creaded By access controls.
if (!$user->authorise('core.edit.created_by', 'com_sermondistributor'))
{
// [9690] Disable fields for display.
// [9689] Disable fields for display.
$form->setFieldAttribute('created_by', 'disabled', 'true');
// [9692] Disable fields for display.
// [9691] Disable fields for display.
$form->setFieldAttribute('created_by', 'readonly', 'true');
// [9694] Disable fields while saving.
// [9693] Disable fields while saving.
$form->setFieldAttribute('created_by', 'filter', 'unset');
}
// [9697] Modify the form based on Edit Creaded Date access controls.
// [9696] Modify the form based on Edit Creaded Date access controls.
if (!$user->authorise('core.edit.created', 'com_sermondistributor'))
{
// [9709] Disable fields for display.
// [9708] Disable fields for display.
$form->setFieldAttribute('created', 'disabled', 'true');
// [9711] Disable fields while saving.
// [9710] Disable fields while saving.
$form->setFieldAttribute('created', 'filter', 'unset');
}
@ -203,7 +203,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
}
$user = JFactory::getUser();
// [9861] The record has been set. Check the record permissions.
// [9860] The record has been set. Check the record permissions.
return $user->authorise('help_document.delete', 'com_sermondistributor.help_document.' . (int) $record->id);
}
return false;
@ -225,14 +225,14 @@ class SermondistributorModelHelp_document extends JModelAdmin
if ($recordId)
{
// [9948] The record has been set. Check the record permissions.
// [9947] The record has been set. Check the record permissions.
$permission = $user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// [9965] In the absense of better information, revert to the component permissions.
// [9964] In the absense of better information, revert to the component permissions.
return $user->authorise('help_document.edit.state', 'com_sermondistributor');
}
@ -247,7 +247,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9773] Check specific edit permission then general edit permission.
// [9772] Check specific edit permission then general edit permission.
$user = JFactory::getUser();
return $user->authorise('help_document.edit', 'com_sermondistributor.help_document.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('help_document.edit', 'com_sermondistributor');
@ -346,20 +346,20 @@ class SermondistributorModelHelp_document extends JModelAdmin
*/
public function validate($form, $data, $group = null)
{
// [8764] check if the not_required field is set
// [8763] check if the not_required field is set
if (SermondistributorHelper::checkString($data['not_required']))
{
$requiredFields = (array) explode(',',(string) $data['not_required']);
$requiredFields = array_unique($requiredFields);
// [8769] now change the required field attributes value
// [8768] now change the required field attributes value
foreach ($requiredFields as $requiredField)
{
// [8772] make sure there is a string value
// [8771] make sure there is a string value
if (SermondistributorHelper::checkString($requiredField))
{
// [8775] change to false
// [8774] change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// [8777] also clear the data set
// [8776] also clear the data set
$data[$requiredField] = '';
}
}
@ -490,7 +490,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4926] Set some needed variables.
// [4925] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -504,12 +504,12 @@ class SermondistributorModelHelp_document extends JModelAdmin
return false;
}
// [4946] get list of uniqe fields
// [4945] get list of uniqe fields
$uniqeFields = $this->getUniqeFields();
// [4948] remove move_copy from array
// [4947] remove move_copy from array
unset($values['move_copy']);
// [4951] make sure published is set
// [4950] make sure published is set
if (!isset($values['published']))
{
$values['published'] = 0;
@ -521,21 +521,21 @@ class SermondistributorModelHelp_document extends JModelAdmin
$newIds = array();
// [4988] Parent exists so let's proceed
// [4987] Parent exists so let's proceed
while (!empty($pks))
{
// [4991] Pop the first ID off the stack
// [4990] Pop the first ID off the stack
$pk = array_shift($pks);
$this->table->reset();
// [4996] only allow copy if user may edit this item.
// [4995] only allow copy if user may edit this item.
if (!$this->user->authorise('help_document.edit', $contexts[$pk]))
{
// [5006] Not fatal error
// [5005] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
@ -543,19 +543,19 @@ class SermondistributorModelHelp_document extends JModelAdmin
}
// [5011] Check that the row actually exists
// [5010] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [5016] Fatal error
// [5015] Fatal error
$this->setError($error);
return false;
}
else
{
// [5023] Not fatal error
// [5022] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
@ -563,7 +563,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
list($this->table->title, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->title);
// [5059] insert all set values
// [5058] insert all set values
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
@ -575,7 +575,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
}
}
// [5071] update all uniqe fields
// [5070] update all uniqe fields
if (SermondistributorHelper::checkArray($uniqeFields))
{
foreach ($uniqeFields as $uniqeField)
@ -584,13 +584,13 @@ class SermondistributorModelHelp_document extends JModelAdmin
}
}
// [5080] Reset the ID because we are making a copy
// [5079] Reset the ID because we are making a copy
$this->table->id = 0;
// [5083] TODO: Deal with ordering?
// [5084] $this->table->ordering = 1;
// [5082] TODO: Deal with ordering?
// [5083] $this->table->ordering = 1;
// [5086] Check the row.
// [5085] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -603,7 +603,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [5099] Store the row.
// [5098] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -611,14 +611,14 @@ class SermondistributorModelHelp_document extends JModelAdmin
return false;
}
// [5107] Get the new item ID
// [5106] Get the new item ID
$newId = $this->table->get('id');
// [5110] Add the new ID to the array
// [5109] Add the new ID to the array
$newIds[$pk] = $newId;
}
// [5114] Clean the cache
// [5113] Clean the cache
$this->cleanCache();
return $newIds;
@ -639,7 +639,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4728] Set some needed variables.
// [4727] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -654,15 +654,15 @@ class SermondistributorModelHelp_document extends JModelAdmin
return false;
}
// [4750] make sure published only updates if user has the permission.
// [4749] make sure published only updates if user has the permission.
if (isset($values['published']) && !$this->canDo->get('help_document.edit.state'))
{
unset($values['published']);
}
// [4763] remove move_copy from array
// [4762] remove move_copy from array
unset($values['move_copy']);
// [4784] Parent exists so we proceed
// [4783] Parent exists so we proceed
foreach ($pks as $pk)
{
if (!$this->user->authorise('help_document.edit', $contexts[$pk]))
@ -672,30 +672,30 @@ class SermondistributorModelHelp_document extends JModelAdmin
return false;
}
// [4801] Check that the row actually exists
// [4800] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [4806] Fatal error
// [4805] Fatal error
$this->setError($error);
return false;
}
else
{
// [4813] Not fatal error
// [4812] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
}
// [4819] insert all set values.
// [4818] insert all set values.
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
// [4824] Do special action for access.
// [4823] Do special action for access.
if ('access' == $key && strlen($value) > 0)
{
$this->table->$key = $value;
@ -708,7 +708,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
}
// [4836] Check the row.
// [4835] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -721,7 +721,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [4849] Store the row.
// [4848] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -730,7 +730,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
}
}
// [4858] Clean the cache
// [4857] Clean the cache
$this->cleanCache();
return true;
@ -774,7 +774,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
$data['params'] = (string) $params;
}
// [5140] Alter the title for save as copy
// [5139] Alter the title for save as copy
if ($input->get('task') == 'save2copy')
{
$origTable = clone $this->getTable();
@ -797,7 +797,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
$data['published'] = 0;
}
// [5167] Automatic handling of alias for empty fields
// [5166] Automatic handling of alias for empty fields
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
{
if ($data['alias'] == null)
@ -828,10 +828,10 @@ class SermondistributorModelHelp_document extends JModelAdmin
}
}
// [5206] Alter the uniqe field for save as copy
// [5205] Alter the uniqe field for save as copy
if ($input->get('task') == 'save2copy')
{
// [5209] Automatic handling of other uniqe fields
// [5208] Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
if (SermondistributorHelper::checkArray($uniqeFields))
{
@ -885,7 +885,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
protected function _generateNewTitle($alias, $title)
{
// [5240] Alter the title & alias
// [5239] Alter the title & alias
$table = $this->getTable();
while ($table->load(array('alias' => $alias)))

View File

@ -108,16 +108,16 @@ class SermondistributorModelHelp_documents extends JModelList
*/
public function getItems()
{
// [10530] check in items
// [10529] check in items
$this->checkInNow();
// load parent items
$items = parent::getItems();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -128,7 +128,7 @@ class SermondistributorModelHelp_documents extends JModelList
continue;
}
// [10676] decode groups
// [10675] decode groups
$groupsArray = json_decode($item->groups, true);
if (SermondistributorHelper::checkArray($groupsArray))
{
@ -151,14 +151,14 @@ class SermondistributorModelHelp_documents extends JModelList
}
}
// [10871] set selection value to a translatable value
// [10870] set selection value to a translatable value
if (SermondistributorHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// [10878] convert type
// [10877] convert type
$item->type = $this->selectionTranslation($item->type, 'type');
// [10878] convert location
// [10877] convert location
$item->location = $this->selectionTranslation($item->location, 'location');
}
}
@ -175,7 +175,7 @@ class SermondistributorModelHelp_documents extends JModelList
*/
public function selectionTranslation($value,$name)
{
// [10904] Array of type language strings
// [10903] Array of type language strings
if ($name == 'type')
{
$typeArray = array(
@ -184,20 +184,20 @@ class SermondistributorModelHelp_documents extends JModelList
2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TEXT',
3 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($typeArray[$value]) && SermondistributorHelper::checkString($typeArray[$value]))
{
return $typeArray[$value];
}
}
// [10904] Array of location language strings
// [10903] Array of location language strings
if ($name == 'location')
{
$locationArray = array(
1 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN',
2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($locationArray[$value]) && SermondistributorHelper::checkString($locationArray[$value]))
{
return $locationArray[$value];
@ -213,19 +213,19 @@ class SermondistributorModelHelp_documents extends JModelList
*/
protected function getListQuery()
{
// [7391] Get the user object.
// [7390] Get the user object.
$user = JFactory::getUser();
// [7393] Create a new query object.
// [7392] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7396] Select some fields
// [7395] Select some fields
$query->select('a.*');
// [7403] From the sermondistributor_item table
// [7402] From the sermondistributor_item table
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
// [7417] Filter by published state
// [7416] Filter by published state
$published = $this->getState('filter.published');
if (is_numeric($published))
{
@ -236,21 +236,21 @@ class SermondistributorModelHelp_documents extends JModelList
$query->where('(a.published = 0 OR a.published = 1)');
}
// [7429] Join over the asset groups.
// [7428] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [7432] Filter by access level.
// [7431] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [7437] Implement View Level Access
// [7436] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7514] Filter by search.
// [7513] Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
{
@ -265,28 +265,28 @@ class SermondistributorModelHelp_documents extends JModelList
}
}
// [7757] Filter by Type.
// [7756] Filter by Type.
if ($type = $this->getState('filter.type'))
{
$query->where('a.type = ' . $db->quote($db->escape($type, true)));
}
// [7757] Filter by Location.
// [7756] Filter by Location.
if ($location = $this->getState('filter.location'))
{
$query->where('a.location = ' . $db->quote($db->escape($location, true)));
}
// [7757] Filter by Admin_view.
// [7756] Filter by Admin_view.
if ($admin_view = $this->getState('filter.admin_view'))
{
$query->where('a.admin_view = ' . $db->quote($db->escape($admin_view, true)));
}
// [7757] Filter by Site_view.
// [7756] Filter by Site_view.
if ($site_view = $this->getState('filter.site_view'))
{
$query->where('a.site_view = ' . $db->quote($db->escape($site_view, true)));
}
// [7473] Add the list ordering clause.
// [7472] Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
if ($orderCol != '')
@ -304,42 +304,42 @@ class SermondistributorModelHelp_documents extends JModelList
*/
public function getExportData($pks)
{
// [7181] setup the query
// [7180] setup the query
if (SermondistributorHelper::checkArray($pks))
{
// [7184] Get the user object.
// [7183] Get the user object.
$user = JFactory::getUser();
// [7186] Create a new query object.
// [7185] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7189] Select some fields
// [7188] Select some fields
$query->select('a.*');
// [7191] From the sermondistributor_help_document table
// [7190] From the sermondistributor_help_document table
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
$query->where('a.id IN (' . implode(',',$pks) . ')');
// [7201] Implement View Level Access
// [7200] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7208] Order the results by ordering
// [7207] Order the results by ordering
$query->order('a.ordering ASC');
// [7210] Load the items
// [7209] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -350,13 +350,13 @@ class SermondistributorModelHelp_documents extends JModelList
continue;
}
// [10818] unset the values we don't want exported.
// [10817] unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
unset($item->checked_out_time);
}
}
// [10827] Add headers to items array.
// [10826] Add headers to items array.
$headers = $this->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
@ -375,13 +375,13 @@ class SermondistributorModelHelp_documents extends JModelList
*/
public function getExImPortHeaders()
{
// [7230] Get a db connection.
// [7229] Get a db connection.
$db = JFactory::getDbo();
// [7232] get the columns
// [7231] get the columns
$columns = $db->getTableColumns("#__sermondistributor_help_document");
if (SermondistributorHelper::checkArray($columns))
{
// [7236] remove the headers you don't import/export.
// [7235] remove the headers you don't import/export.
unset($columns['asset_id']);
unset($columns['checked_out']);
unset($columns['checked_out_time']);
@ -403,7 +403,7 @@ class SermondistributorModelHelp_documents extends JModelList
*/
protected function getStoreId($id = '')
{
// [10153] Compile the store id.
// [10152] Compile the store id.
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
@ -427,15 +427,15 @@ class SermondistributorModelHelp_documents extends JModelList
*/
protected function checkInNow()
{
// [10546] Get set check in time
// [10545] Get set check in time
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
if ($time)
{
// [10551] Get a db connection.
// [10550] Get a db connection.
$db = JFactory::getDbo();
// [10553] reset query
// [10552] reset query
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__sermondistributor_help_document'));
@ -443,24 +443,24 @@ class SermondistributorModelHelp_documents extends JModelList
$db->execute();
if ($db->getNumRows())
{
// [10561] Get Yesterdays date
// [10560] Get Yesterdays date
$date = JFactory::getDate()->modify($time)->toSql();
// [10563] reset query
// [10562] reset query
$query = $db->getQuery(true);
// [10565] Fields to update.
// [10564] Fields to update.
$fields = array(
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
$db->quoteName('checked_out') . '=0'
);
// [10570] Conditions for which records should be updated.
// [10569] Conditions for which records should be updated.
$conditions = array(
$db->quoteName('checked_out') . '!=0',
$db->quoteName('checked_out_time') . '<\''.$date.'\''
);
// [10575] Check table
// [10574] Check table
$query->update($db->quoteName('#__sermondistributor_help_document'))->set($fields)->where($conditions);
$db->setQuery($query);

View File

@ -96,7 +96,7 @@ class SermondistributorModelPreacher extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_sermondistributor.preacher');
}
}
$this->preacherhsyu = $item->id;
$this->preacherqkei = $item->id;
return $item;
}
@ -106,74 +106,74 @@ class SermondistributorModelPreacher extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getWcisermons()
public function getRiksermons()
{
// [6939] Get the user object.
// [6938] Get the user object.
$user = JFactory::getUser();
// [6941] Create a new query object.
// [6940] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [6944] Select some fields
// [6943] Select some fields
$query->select('a.*');
$query->select($db->quoteName('c.title','category_title'));
// [6951] From the sermondistributor_sermon table
// [6950] From the sermondistributor_sermon table
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
// [7544] From the sermondistributor_preacher table.
// [7543] From the sermondistributor_preacher table.
$query->select($db->quoteName('g.name','preacher_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
// [7544] From the sermondistributor_series table.
// [7543] From the sermondistributor_series table.
$query->select($db->quoteName('h.name','series_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
// [6967] Filter by preacherhsyu global.
$preacherhsyu = $this->preacherhsyu;
if (is_numeric($preacherhsyu ))
// [6966] Filter by preacherqkei global.
$preacherqkei = $this->preacherqkei;
if (is_numeric($preacherqkei ))
{
$query->where('a.preacher = ' . (int) $preacherhsyu );
$query->where('a.preacher = ' . (int) $preacherqkei );
}
elseif (is_string($preacherhsyu))
elseif (is_string($preacherqkei))
{
$query->where('a.preacher = ' . $db->quote($preacherhsyu));
$query->where('a.preacher = ' . $db->quote($preacherqkei));
}
else
{
$query->where('a.preacher = -5');
}
// [6984] Join over the asset groups.
// [6983] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [6987] Filter by access level.
// [6986] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [6992] Implement View Level Access
// [6991] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [6999] Order the results by ordering
// [6998] Order the results by ordering
$query->order('a.ordering ASC');
// [7001] Load the items
// [7000] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -187,15 +187,15 @@ class SermondistributorModelPreacher extends JModelAdmin
}
}
// [10871] set selection value to a translatable value
// [10870] set selection value to a translatable value
if (SermondistributorHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// [10878] convert link_type
$item->link_type = $this->selectionTranslationWcisermons($item->link_type, 'link_type');
// [10878] convert source
$item->source = $this->selectionTranslationWcisermons($item->source, 'source');
// [10877] convert link_type
$item->link_type = $this->selectionTranslationRiksermons($item->link_type, 'link_type');
// [10877] convert source
$item->source = $this->selectionTranslationRiksermons($item->source, 'source');
}
}
@ -209,22 +209,22 @@ class SermondistributorModelPreacher extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationWcisermons($value,$name)
public function selectionTranslationRiksermons($value,$name)
{
// [10904] Array of link_type language strings
// [10903] Array of link_type language strings
if ($name == 'link_type')
{
$link_typeArray = array(
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
{
return $link_typeArray[$value];
}
}
// [10904] Array of source language strings
// [10903] Array of source language strings
if ($name == 'source')
{
$sourceArray = array(
@ -233,7 +233,7 @@ class SermondistributorModelPreacher extends JModelAdmin
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
{
return $sourceArray[$value];
@ -253,7 +253,7 @@ class SermondistributorModelPreacher extends JModelAdmin
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{ // [9560] Get the form.
{ // [9559] Get the form.
$form = $this->loadForm('com_sermondistributor.preacher', 'preacher', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form))
@ -263,12 +263,12 @@ class SermondistributorModelPreacher extends JModelAdmin
$jinput = JFactory::getApplication()->input;
// [9645] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
if ($jinput->get('a_id'))
{
$id = $jinput->get('a_id', 0, 'INT');
}
// [9650] The back end uses id so we use that the rest of the time and set it to 0 by default.
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
else
{
$id = $jinput->get('id', 0, 'INT');
@ -276,36 +276,36 @@ class SermondistributorModelPreacher extends JModelAdmin
$user = JFactory::getUser();
// [9656] Check for existing item.
// [9657] Modify the form based on Edit State access controls.
// [9655] Check for existing item.
// [9656] Modify the form based on Edit State access controls.
if ($id != 0 && (!$user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $id))
|| ($id == 0 && !$user->authorise('preacher.edit.state', 'com_sermondistributor')))
{
// [9670] Disable fields for display.
// [9669] Disable fields for display.
$form->setFieldAttribute('ordering', 'disabled', 'true');
$form->setFieldAttribute('published', 'disabled', 'true');
// [9673] Disable fields while saving.
// [9672] Disable fields while saving.
$form->setFieldAttribute('ordering', 'filter', 'unset');
$form->setFieldAttribute('published', 'filter', 'unset');
}
// [9678] Modify the form based on Edit Creaded By access controls.
// [9677] Modify the form based on Edit Creaded By access controls.
if ($id != 0 && (!$user->authorise('preacher.edit.created_by', 'com_sermondistributor.preacher.' . (int) $id))
|| ($id == 0 && !$user->authorise('preacher.edit.created_by', 'com_sermondistributor')))
{
// [9690] Disable fields for display.
// [9689] Disable fields for display.
$form->setFieldAttribute('created_by', 'disabled', 'true');
// [9692] Disable fields for display.
// [9691] Disable fields for display.
$form->setFieldAttribute('created_by', 'readonly', 'true');
// [9694] Disable fields while saving.
// [9693] Disable fields while saving.
$form->setFieldAttribute('created_by', 'filter', 'unset');
}
// [9697] Modify the form based on Edit Creaded Date access controls.
// [9696] Modify the form based on Edit Creaded Date access controls.
if ($id != 0 && (!$user->authorise('preacher.edit.created', 'com_sermondistributor.preacher.' . (int) $id))
|| ($id == 0 && !$user->authorise('preacher.edit.created', 'com_sermondistributor')))
{
// [9709] Disable fields for display.
// [9708] Disable fields for display.
$form->setFieldAttribute('created', 'disabled', 'true');
// [9711] Disable fields while saving.
// [9710] Disable fields while saving.
$form->setFieldAttribute('created', 'filter', 'unset');
}
@ -341,7 +341,7 @@ class SermondistributorModelPreacher extends JModelAdmin
}
$user = JFactory::getUser();
// [9861] The record has been set. Check the record permissions.
// [9860] The record has been set. Check the record permissions.
return $user->authorise('preacher.delete', 'com_sermondistributor.preacher.' . (int) $record->id);
}
return false;
@ -363,14 +363,14 @@ class SermondistributorModelPreacher extends JModelAdmin
if ($recordId)
{
// [9948] The record has been set. Check the record permissions.
// [9947] The record has been set. Check the record permissions.
$permission = $user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// [9965] In the absense of better information, revert to the component permissions.
// [9964] In the absense of better information, revert to the component permissions.
return $user->authorise('preacher.edit.state', 'com_sermondistributor');
}
@ -385,7 +385,7 @@ class SermondistributorModelPreacher extends JModelAdmin
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9773] Check specific edit permission then general edit permission.
// [9772] Check specific edit permission then general edit permission.
$user = JFactory::getUser();
return $user->authorise('preacher.edit', 'com_sermondistributor.preacher.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('preacher.edit', 'com_sermondistributor');
@ -592,7 +592,7 @@ class SermondistributorModelPreacher extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4926] Set some needed variables.
// [4925] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -606,12 +606,12 @@ class SermondistributorModelPreacher extends JModelAdmin
return false;
}
// [4946] get list of uniqe fields
// [4945] get list of uniqe fields
$uniqeFields = $this->getUniqeFields();
// [4948] remove move_copy from array
// [4947] remove move_copy from array
unset($values['move_copy']);
// [4951] make sure published is set
// [4950] make sure published is set
if (!isset($values['published']))
{
$values['published'] = 0;
@ -623,21 +623,21 @@ class SermondistributorModelPreacher extends JModelAdmin
$newIds = array();
// [4988] Parent exists so let's proceed
// [4987] Parent exists so let's proceed
while (!empty($pks))
{
// [4991] Pop the first ID off the stack
// [4990] Pop the first ID off the stack
$pk = array_shift($pks);
$this->table->reset();
// [4996] only allow copy if user may edit this item.
// [4995] only allow copy if user may edit this item.
if (!$this->user->authorise('preacher.edit', $contexts[$pk]))
{
// [5006] Not fatal error
// [5005] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
@ -645,19 +645,19 @@ class SermondistributorModelPreacher extends JModelAdmin
}
// [5011] Check that the row actually exists
// [5010] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [5016] Fatal error
// [5015] Fatal error
$this->setError($error);
return false;
}
else
{
// [5023] Not fatal error
// [5022] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
@ -665,7 +665,7 @@ class SermondistributorModelPreacher extends JModelAdmin
list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name);
// [5059] insert all set values
// [5058] insert all set values
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
@ -677,7 +677,7 @@ class SermondistributorModelPreacher extends JModelAdmin
}
}
// [5071] update all uniqe fields
// [5070] update all uniqe fields
if (SermondistributorHelper::checkArray($uniqeFields))
{
foreach ($uniqeFields as $uniqeField)
@ -686,13 +686,13 @@ class SermondistributorModelPreacher extends JModelAdmin
}
}
// [5080] Reset the ID because we are making a copy
// [5079] Reset the ID because we are making a copy
$this->table->id = 0;
// [5083] TODO: Deal with ordering?
// [5084] $this->table->ordering = 1;
// [5082] TODO: Deal with ordering?
// [5083] $this->table->ordering = 1;
// [5086] Check the row.
// [5085] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -705,7 +705,7 @@ class SermondistributorModelPreacher extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [5099] Store the row.
// [5098] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -713,14 +713,14 @@ class SermondistributorModelPreacher extends JModelAdmin
return false;
}
// [5107] Get the new item ID
// [5106] Get the new item ID
$newId = $this->table->get('id');
// [5110] Add the new ID to the array
// [5109] Add the new ID to the array
$newIds[$pk] = $newId;
}
// [5114] Clean the cache
// [5113] Clean the cache
$this->cleanCache();
return $newIds;
@ -741,7 +741,7 @@ class SermondistributorModelPreacher extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4728] Set some needed variables.
// [4727] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -756,15 +756,15 @@ class SermondistributorModelPreacher extends JModelAdmin
return false;
}
// [4750] make sure published only updates if user has the permission.
// [4749] make sure published only updates if user has the permission.
if (isset($values['published']) && !$this->canDo->get('preacher.edit.state'))
{
unset($values['published']);
}
// [4763] remove move_copy from array
// [4762] remove move_copy from array
unset($values['move_copy']);
// [4784] Parent exists so we proceed
// [4783] Parent exists so we proceed
foreach ($pks as $pk)
{
if (!$this->user->authorise('preacher.edit', $contexts[$pk]))
@ -774,30 +774,30 @@ class SermondistributorModelPreacher extends JModelAdmin
return false;
}
// [4801] Check that the row actually exists
// [4800] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [4806] Fatal error
// [4805] Fatal error
$this->setError($error);
return false;
}
else
{
// [4813] Not fatal error
// [4812] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
}
// [4819] insert all set values.
// [4818] insert all set values.
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
// [4824] Do special action for access.
// [4823] Do special action for access.
if ('access' == $key && strlen($value) > 0)
{
$this->table->$key = $value;
@ -810,7 +810,7 @@ class SermondistributorModelPreacher extends JModelAdmin
}
// [4836] Check the row.
// [4835] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -823,7 +823,7 @@ class SermondistributorModelPreacher extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [4849] Store the row.
// [4848] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -832,7 +832,7 @@ class SermondistributorModelPreacher extends JModelAdmin
}
}
// [4858] Clean the cache
// [4857] Clean the cache
$this->cleanCache();
return true;
@ -870,7 +870,7 @@ class SermondistributorModelPreacher extends JModelAdmin
$data['params'] = (string) $params;
}
// [5140] Alter the name for save as copy
// [5139] Alter the name for save as copy
if ($input->get('task') == 'save2copy')
{
$origTable = clone $this->getTable();
@ -893,7 +893,7 @@ class SermondistributorModelPreacher extends JModelAdmin
$data['published'] = 0;
}
// [5167] Automatic handling of alias for empty fields
// [5166] Automatic handling of alias for empty fields
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
{
if ($data['alias'] == null)
@ -924,10 +924,10 @@ class SermondistributorModelPreacher extends JModelAdmin
}
}
// [5206] Alter the uniqe field for save as copy
// [5205] Alter the uniqe field for save as copy
if ($input->get('task') == 'save2copy')
{
// [5209] Automatic handling of other uniqe fields
// [5208] Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
if (SermondistributorHelper::checkArray($uniqeFields))
{
@ -981,7 +981,7 @@ class SermondistributorModelPreacher extends JModelAdmin
protected function _generateNewTitle($alias, $title)
{
// [5240] Alter the title & alias
// [5239] Alter the title & alias
$table = $this->getTable();
while ($table->load(array('alias' => $alias)))

View File

@ -96,16 +96,16 @@ class SermondistributorModelPreachers extends JModelList
*/
public function getItems()
{
// [10530] check in items
// [10529] check in items
$this->checkInNow();
// load parent items
$items = parent::getItems();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -130,19 +130,19 @@ class SermondistributorModelPreachers extends JModelList
*/
protected function getListQuery()
{
// [7391] Get the user object.
// [7390] Get the user object.
$user = JFactory::getUser();
// [7393] Create a new query object.
// [7392] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7396] Select some fields
// [7395] Select some fields
$query->select('a.*');
// [7403] From the sermondistributor_item table
// [7402] From the sermondistributor_item table
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
// [7417] Filter by published state
// [7416] Filter by published state
$published = $this->getState('filter.published');
if (is_numeric($published))
{
@ -153,21 +153,21 @@ class SermondistributorModelPreachers extends JModelList
$query->where('(a.published = 0 OR a.published = 1)');
}
// [7429] Join over the asset groups.
// [7428] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [7432] Filter by access level.
// [7431] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [7437] Implement View Level Access
// [7436] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7514] Filter by search.
// [7513] Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
{
@ -183,7 +183,7 @@ class SermondistributorModelPreachers extends JModelList
}
// [7473] Add the list ordering clause.
// [7472] Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
if ($orderCol != '')
@ -201,42 +201,42 @@ class SermondistributorModelPreachers extends JModelList
*/
public function getExportData($pks)
{
// [7181] setup the query
// [7180] setup the query
if (SermondistributorHelper::checkArray($pks))
{
// [7184] Get the user object.
// [7183] Get the user object.
$user = JFactory::getUser();
// [7186] Create a new query object.
// [7185] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7189] Select some fields
// [7188] Select some fields
$query->select('a.*');
// [7191] From the sermondistributor_preacher table
// [7190] From the sermondistributor_preacher table
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
$query->where('a.id IN (' . implode(',',$pks) . ')');
// [7201] Implement View Level Access
// [7200] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7208] Order the results by ordering
// [7207] Order the results by ordering
$query->order('a.ordering ASC');
// [7210] Load the items
// [7209] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -247,13 +247,13 @@ class SermondistributorModelPreachers extends JModelList
continue;
}
// [10818] unset the values we don't want exported.
// [10817] unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
unset($item->checked_out_time);
}
}
// [10827] Add headers to items array.
// [10826] Add headers to items array.
$headers = $this->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
@ -272,13 +272,13 @@ class SermondistributorModelPreachers extends JModelList
*/
public function getExImPortHeaders()
{
// [7230] Get a db connection.
// [7229] Get a db connection.
$db = JFactory::getDbo();
// [7232] get the columns
// [7231] get the columns
$columns = $db->getTableColumns("#__sermondistributor_preacher");
if (SermondistributorHelper::checkArray($columns))
{
// [7236] remove the headers you don't import/export.
// [7235] remove the headers you don't import/export.
unset($columns['asset_id']);
unset($columns['checked_out']);
unset($columns['checked_out_time']);
@ -300,7 +300,7 @@ class SermondistributorModelPreachers extends JModelList
*/
protected function getStoreId($id = '')
{
// [10153] Compile the store id.
// [10152] Compile the store id.
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
@ -321,15 +321,15 @@ class SermondistributorModelPreachers extends JModelList
*/
protected function checkInNow()
{
// [10546] Get set check in time
// [10545] Get set check in time
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
if ($time)
{
// [10551] Get a db connection.
// [10550] Get a db connection.
$db = JFactory::getDbo();
// [10553] reset query
// [10552] reset query
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__sermondistributor_preacher'));
@ -337,24 +337,24 @@ class SermondistributorModelPreachers extends JModelList
$db->execute();
if ($db->getNumRows())
{
// [10561] Get Yesterdays date
// [10560] Get Yesterdays date
$date = JFactory::getDate()->modify($time)->toSql();
// [10563] reset query
// [10562] reset query
$query = $db->getQuery(true);
// [10565] Fields to update.
// [10564] Fields to update.
$fields = array(
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
$db->quoteName('checked_out') . '=0'
);
// [10570] Conditions for which records should be updated.
// [10569] Conditions for which records should be updated.
$conditions = array(
$db->quoteName('checked_out') . '!=0',
$db->quoteName('checked_out_time') . '<\''.$date.'\''
);
// [10575] Check table
// [10574] Check table
$query->update($db->quoteName('#__sermondistributor_preacher'))->set($fields)->where($conditions);
$db->setQuery($query);

View File

@ -96,7 +96,7 @@ class SermondistributorModelSeries extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_sermondistributor.series');
}
}
$this->serieseolv = $item->id;
$this->serieszeat = $item->id;
return $item;
}
@ -106,74 +106,74 @@ class SermondistributorModelSeries extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getKcesermons()
public function getHvwsermons()
{
// [6939] Get the user object.
// [6938] Get the user object.
$user = JFactory::getUser();
// [6941] Create a new query object.
// [6940] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [6944] Select some fields
// [6943] Select some fields
$query->select('a.*');
$query->select($db->quoteName('c.title','category_title'));
// [6951] From the sermondistributor_sermon table
// [6950] From the sermondistributor_sermon table
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
// [7544] From the sermondistributor_preacher table.
// [7543] From the sermondistributor_preacher table.
$query->select($db->quoteName('g.name','preacher_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
// [7544] From the sermondistributor_series table.
// [7543] From the sermondistributor_series table.
$query->select($db->quoteName('h.name','series_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
// [6967] Filter by serieseolv global.
$serieseolv = $this->serieseolv;
if (is_numeric($serieseolv ))
// [6966] Filter by serieszeat global.
$serieszeat = $this->serieszeat;
if (is_numeric($serieszeat ))
{
$query->where('a.series = ' . (int) $serieseolv );
$query->where('a.series = ' . (int) $serieszeat );
}
elseif (is_string($serieseolv))
elseif (is_string($serieszeat))
{
$query->where('a.series = ' . $db->quote($serieseolv));
$query->where('a.series = ' . $db->quote($serieszeat));
}
else
{
$query->where('a.series = -5');
}
// [6984] Join over the asset groups.
// [6983] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [6987] Filter by access level.
// [6986] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [6992] Implement View Level Access
// [6991] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [6999] Order the results by ordering
// [6998] Order the results by ordering
$query->order('a.ordering ASC');
// [7001] Load the items
// [7000] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -187,15 +187,15 @@ class SermondistributorModelSeries extends JModelAdmin
}
}
// [10871] set selection value to a translatable value
// [10870] set selection value to a translatable value
if (SermondistributorHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// [10878] convert link_type
$item->link_type = $this->selectionTranslationKcesermons($item->link_type, 'link_type');
// [10878] convert source
$item->source = $this->selectionTranslationKcesermons($item->source, 'source');
// [10877] convert link_type
$item->link_type = $this->selectionTranslationHvwsermons($item->link_type, 'link_type');
// [10877] convert source
$item->source = $this->selectionTranslationHvwsermons($item->source, 'source');
}
}
@ -209,22 +209,22 @@ class SermondistributorModelSeries extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationKcesermons($value,$name)
public function selectionTranslationHvwsermons($value,$name)
{
// [10904] Array of link_type language strings
// [10903] Array of link_type language strings
if ($name == 'link_type')
{
$link_typeArray = array(
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
{
return $link_typeArray[$value];
}
}
// [10904] Array of source language strings
// [10903] Array of source language strings
if ($name == 'source')
{
$sourceArray = array(
@ -233,7 +233,7 @@ class SermondistributorModelSeries extends JModelAdmin
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
{
return $sourceArray[$value];
@ -253,7 +253,7 @@ class SermondistributorModelSeries extends JModelAdmin
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{ // [9560] Get the form.
{ // [9559] Get the form.
$form = $this->loadForm('com_sermondistributor.series', 'series', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form))
@ -263,12 +263,12 @@ class SermondistributorModelSeries extends JModelAdmin
$jinput = JFactory::getApplication()->input;
// [9645] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
if ($jinput->get('a_id'))
{
$id = $jinput->get('a_id', 0, 'INT');
}
// [9650] The back end uses id so we use that the rest of the time and set it to 0 by default.
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
else
{
$id = $jinput->get('id', 0, 'INT');
@ -276,36 +276,36 @@ class SermondistributorModelSeries extends JModelAdmin
$user = JFactory::getUser();
// [9656] Check for existing item.
// [9657] Modify the form based on Edit State access controls.
// [9655] Check for existing item.
// [9656] Modify the form based on Edit State access controls.
if ($id != 0 && (!$user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $id))
|| ($id == 0 && !$user->authorise('series.edit.state', 'com_sermondistributor')))
{
// [9670] Disable fields for display.
// [9669] Disable fields for display.
$form->setFieldAttribute('ordering', 'disabled', 'true');
$form->setFieldAttribute('published', 'disabled', 'true');
// [9673] Disable fields while saving.
// [9672] Disable fields while saving.
$form->setFieldAttribute('ordering', 'filter', 'unset');
$form->setFieldAttribute('published', 'filter', 'unset');
}
// [9678] Modify the form based on Edit Creaded By access controls.
// [9677] Modify the form based on Edit Creaded By access controls.
if ($id != 0 && (!$user->authorise('series.edit.created_by', 'com_sermondistributor.series.' . (int) $id))
|| ($id == 0 && !$user->authorise('series.edit.created_by', 'com_sermondistributor')))
{
// [9690] Disable fields for display.
// [9689] Disable fields for display.
$form->setFieldAttribute('created_by', 'disabled', 'true');
// [9692] Disable fields for display.
// [9691] Disable fields for display.
$form->setFieldAttribute('created_by', 'readonly', 'true');
// [9694] Disable fields while saving.
// [9693] Disable fields while saving.
$form->setFieldAttribute('created_by', 'filter', 'unset');
}
// [9697] Modify the form based on Edit Creaded Date access controls.
// [9696] Modify the form based on Edit Creaded Date access controls.
if ($id != 0 && (!$user->authorise('series.edit.created', 'com_sermondistributor.series.' . (int) $id))
|| ($id == 0 && !$user->authorise('series.edit.created', 'com_sermondistributor')))
{
// [9709] Disable fields for display.
// [9708] Disable fields for display.
$form->setFieldAttribute('created', 'disabled', 'true');
// [9711] Disable fields while saving.
// [9710] Disable fields while saving.
$form->setFieldAttribute('created', 'filter', 'unset');
}
@ -341,7 +341,7 @@ class SermondistributorModelSeries extends JModelAdmin
}
$user = JFactory::getUser();
// [9861] The record has been set. Check the record permissions.
// [9860] The record has been set. Check the record permissions.
return $user->authorise('series.delete', 'com_sermondistributor.series.' . (int) $record->id);
}
return false;
@ -363,14 +363,14 @@ class SermondistributorModelSeries extends JModelAdmin
if ($recordId)
{
// [9948] The record has been set. Check the record permissions.
// [9947] The record has been set. Check the record permissions.
$permission = $user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// [9965] In the absense of better information, revert to the component permissions.
// [9964] In the absense of better information, revert to the component permissions.
return $user->authorise('series.edit.state', 'com_sermondistributor');
}
@ -385,7 +385,7 @@ class SermondistributorModelSeries extends JModelAdmin
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9773] Check specific edit permission then general edit permission.
// [9772] Check specific edit permission then general edit permission.
$user = JFactory::getUser();
return $user->authorise('series.edit', 'com_sermondistributor.series.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('series.edit', 'com_sermondistributor');
@ -592,7 +592,7 @@ class SermondistributorModelSeries extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4926] Set some needed variables.
// [4925] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -606,12 +606,12 @@ class SermondistributorModelSeries extends JModelAdmin
return false;
}
// [4946] get list of uniqe fields
// [4945] get list of uniqe fields
$uniqeFields = $this->getUniqeFields();
// [4948] remove move_copy from array
// [4947] remove move_copy from array
unset($values['move_copy']);
// [4951] make sure published is set
// [4950] make sure published is set
if (!isset($values['published']))
{
$values['published'] = 0;
@ -623,21 +623,21 @@ class SermondistributorModelSeries extends JModelAdmin
$newIds = array();
// [4988] Parent exists so let's proceed
// [4987] Parent exists so let's proceed
while (!empty($pks))
{
// [4991] Pop the first ID off the stack
// [4990] Pop the first ID off the stack
$pk = array_shift($pks);
$this->table->reset();
// [4996] only allow copy if user may edit this item.
// [4995] only allow copy if user may edit this item.
if (!$this->user->authorise('series.edit', $contexts[$pk]))
{
// [5006] Not fatal error
// [5005] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
@ -645,19 +645,19 @@ class SermondistributorModelSeries extends JModelAdmin
}
// [5011] Check that the row actually exists
// [5010] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [5016] Fatal error
// [5015] Fatal error
$this->setError($error);
return false;
}
else
{
// [5023] Not fatal error
// [5022] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
@ -665,7 +665,7 @@ class SermondistributorModelSeries extends JModelAdmin
list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name);
// [5059] insert all set values
// [5058] insert all set values
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
@ -677,7 +677,7 @@ class SermondistributorModelSeries extends JModelAdmin
}
}
// [5071] update all uniqe fields
// [5070] update all uniqe fields
if (SermondistributorHelper::checkArray($uniqeFields))
{
foreach ($uniqeFields as $uniqeField)
@ -686,13 +686,13 @@ class SermondistributorModelSeries extends JModelAdmin
}
}
// [5080] Reset the ID because we are making a copy
// [5079] Reset the ID because we are making a copy
$this->table->id = 0;
// [5083] TODO: Deal with ordering?
// [5084] $this->table->ordering = 1;
// [5082] TODO: Deal with ordering?
// [5083] $this->table->ordering = 1;
// [5086] Check the row.
// [5085] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -705,7 +705,7 @@ class SermondistributorModelSeries extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [5099] Store the row.
// [5098] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -713,14 +713,14 @@ class SermondistributorModelSeries extends JModelAdmin
return false;
}
// [5107] Get the new item ID
// [5106] Get the new item ID
$newId = $this->table->get('id');
// [5110] Add the new ID to the array
// [5109] Add the new ID to the array
$newIds[$pk] = $newId;
}
// [5114] Clean the cache
// [5113] Clean the cache
$this->cleanCache();
return $newIds;
@ -741,7 +741,7 @@ class SermondistributorModelSeries extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4728] Set some needed variables.
// [4727] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -756,15 +756,15 @@ class SermondistributorModelSeries extends JModelAdmin
return false;
}
// [4750] make sure published only updates if user has the permission.
// [4749] make sure published only updates if user has the permission.
if (isset($values['published']) && !$this->canDo->get('series.edit.state'))
{
unset($values['published']);
}
// [4763] remove move_copy from array
// [4762] remove move_copy from array
unset($values['move_copy']);
// [4784] Parent exists so we proceed
// [4783] Parent exists so we proceed
foreach ($pks as $pk)
{
if (!$this->user->authorise('series.edit', $contexts[$pk]))
@ -774,30 +774,30 @@ class SermondistributorModelSeries extends JModelAdmin
return false;
}
// [4801] Check that the row actually exists
// [4800] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [4806] Fatal error
// [4805] Fatal error
$this->setError($error);
return false;
}
else
{
// [4813] Not fatal error
// [4812] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
}
// [4819] insert all set values.
// [4818] insert all set values.
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
// [4824] Do special action for access.
// [4823] Do special action for access.
if ('access' == $key && strlen($value) > 0)
{
$this->table->$key = $value;
@ -810,7 +810,7 @@ class SermondistributorModelSeries extends JModelAdmin
}
// [4836] Check the row.
// [4835] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -823,7 +823,7 @@ class SermondistributorModelSeries extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [4849] Store the row.
// [4848] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -832,7 +832,7 @@ class SermondistributorModelSeries extends JModelAdmin
}
}
// [4858] Clean the cache
// [4857] Clean the cache
$this->cleanCache();
return true;
@ -870,7 +870,7 @@ class SermondistributorModelSeries extends JModelAdmin
$data['params'] = (string) $params;
}
// [5140] Alter the name for save as copy
// [5139] Alter the name for save as copy
if ($input->get('task') == 'save2copy')
{
$origTable = clone $this->getTable();
@ -893,7 +893,7 @@ class SermondistributorModelSeries extends JModelAdmin
$data['published'] = 0;
}
// [5167] Automatic handling of alias for empty fields
// [5166] Automatic handling of alias for empty fields
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
{
if ($data['alias'] == null)
@ -924,10 +924,10 @@ class SermondistributorModelSeries extends JModelAdmin
}
}
// [5206] Alter the uniqe field for save as copy
// [5205] Alter the uniqe field for save as copy
if ($input->get('task') == 'save2copy')
{
// [5209] Automatic handling of other uniqe fields
// [5208] Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
if (SermondistributorHelper::checkArray($uniqeFields))
{
@ -981,7 +981,7 @@ class SermondistributorModelSeries extends JModelAdmin
protected function _generateNewTitle($alias, $title)
{
// [5240] Alter the title & alias
// [5239] Alter the title & alias
$table = $this->getTable();
while ($table->load(array('alias' => $alias)))

View File

@ -92,16 +92,16 @@ class SermondistributorModelSeries_list extends JModelList
*/
public function getItems()
{
// [10530] check in items
// [10529] check in items
$this->checkInNow();
// load parent items
$items = parent::getItems();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -126,19 +126,19 @@ class SermondistributorModelSeries_list extends JModelList
*/
protected function getListQuery()
{
// [7391] Get the user object.
// [7390] Get the user object.
$user = JFactory::getUser();
// [7393] Create a new query object.
// [7392] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7396] Select some fields
// [7395] Select some fields
$query->select('a.*');
// [7403] From the sermondistributor_item table
// [7402] From the sermondistributor_item table
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
// [7417] Filter by published state
// [7416] Filter by published state
$published = $this->getState('filter.published');
if (is_numeric($published))
{
@ -149,21 +149,21 @@ class SermondistributorModelSeries_list extends JModelList
$query->where('(a.published = 0 OR a.published = 1)');
}
// [7429] Join over the asset groups.
// [7428] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [7432] Filter by access level.
// [7431] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [7437] Implement View Level Access
// [7436] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7514] Filter by search.
// [7513] Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
{
@ -179,7 +179,7 @@ class SermondistributorModelSeries_list extends JModelList
}
// [7473] Add the list ordering clause.
// [7472] Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
if ($orderCol != '')
@ -197,42 +197,42 @@ class SermondistributorModelSeries_list extends JModelList
*/
public function getExportData($pks)
{
// [7181] setup the query
// [7180] setup the query
if (SermondistributorHelper::checkArray($pks))
{
// [7184] Get the user object.
// [7183] Get the user object.
$user = JFactory::getUser();
// [7186] Create a new query object.
// [7185] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7189] Select some fields
// [7188] Select some fields
$query->select('a.*');
// [7191] From the sermondistributor_series table
// [7190] From the sermondistributor_series table
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
$query->where('a.id IN (' . implode(',',$pks) . ')');
// [7201] Implement View Level Access
// [7200] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7208] Order the results by ordering
// [7207] Order the results by ordering
$query->order('a.ordering ASC');
// [7210] Load the items
// [7209] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -243,13 +243,13 @@ class SermondistributorModelSeries_list extends JModelList
continue;
}
// [10818] unset the values we don't want exported.
// [10817] unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
unset($item->checked_out_time);
}
}
// [10827] Add headers to items array.
// [10826] Add headers to items array.
$headers = $this->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
@ -268,13 +268,13 @@ class SermondistributorModelSeries_list extends JModelList
*/
public function getExImPortHeaders()
{
// [7230] Get a db connection.
// [7229] Get a db connection.
$db = JFactory::getDbo();
// [7232] get the columns
// [7231] get the columns
$columns = $db->getTableColumns("#__sermondistributor_series");
if (SermondistributorHelper::checkArray($columns))
{
// [7236] remove the headers you don't import/export.
// [7235] remove the headers you don't import/export.
unset($columns['asset_id']);
unset($columns['checked_out']);
unset($columns['checked_out_time']);
@ -296,7 +296,7 @@ class SermondistributorModelSeries_list extends JModelList
*/
protected function getStoreId($id = '')
{
// [10153] Compile the store id.
// [10152] Compile the store id.
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
@ -316,15 +316,15 @@ class SermondistributorModelSeries_list extends JModelList
*/
protected function checkInNow()
{
// [10546] Get set check in time
// [10545] Get set check in time
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
if ($time)
{
// [10551] Get a db connection.
// [10550] Get a db connection.
$db = JFactory::getDbo();
// [10553] reset query
// [10552] reset query
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__sermondistributor_series'));
@ -332,24 +332,24 @@ class SermondistributorModelSeries_list extends JModelList
$db->execute();
if ($db->getNumRows())
{
// [10561] Get Yesterdays date
// [10560] Get Yesterdays date
$date = JFactory::getDate()->modify($time)->toSql();
// [10563] reset query
// [10562] reset query
$query = $db->getQuery(true);
// [10565] Fields to update.
// [10564] Fields to update.
$fields = array(
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
$db->quoteName('checked_out') . '=0'
);
// [10570] Conditions for which records should be updated.
// [10569] Conditions for which records should be updated.
$conditions = array(
$db->quoteName('checked_out') . '!=0',
$db->quoteName('checked_out_time') . '<\''.$date.'\''
);
// [10575] Check table
// [10574] Check table
$query->update($db->quoteName('#__sermondistributor_series'))->set($fields)->where($conditions);
$db->setQuery($query);

View File

@ -108,7 +108,7 @@ class SermondistributorModelSermon extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_sermondistributor.sermon');
}
}
$this->sermonrwfz = $item->id;
$this->sermonkndl = $item->id;
return $item;
}
@ -118,76 +118,76 @@ class SermondistributorModelSermon extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getXtqstastics()
public function getNjdstastics()
{
// [6939] Get the user object.
// [6938] Get the user object.
$user = JFactory::getUser();
// [6941] Create a new query object.
// [6940] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [6944] Select some fields
// [6943] Select some fields
$query->select('a.*');
// [6951] From the sermondistributor_statistic table
// [6950] From the sermondistributor_statistic table
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
// [7544] From the sermondistributor_sermon table.
// [7543] From the sermondistributor_sermon table.
$query->select($db->quoteName('g.name','sermon_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')');
// [7544] From the sermondistributor_preacher table.
// [7543] From the sermondistributor_preacher table.
$query->select($db->quoteName('h.name','preacher_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')');
// [7544] From the sermondistributor_series table.
// [7543] From the sermondistributor_series table.
$query->select($db->quoteName('i.name','series_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')');
// [6967] Filter by sermonrwfz global.
$sermonrwfz = $this->sermonrwfz;
if (is_numeric($sermonrwfz ))
// [6966] Filter by sermonkndl global.
$sermonkndl = $this->sermonkndl;
if (is_numeric($sermonkndl ))
{
$query->where('a.sermon = ' . (int) $sermonrwfz );
$query->where('a.sermon = ' . (int) $sermonkndl );
}
elseif (is_string($sermonrwfz))
elseif (is_string($sermonkndl))
{
$query->where('a.sermon = ' . $db->quote($sermonrwfz));
$query->where('a.sermon = ' . $db->quote($sermonkndl));
}
else
{
$query->where('a.sermon = -5');
}
// [6984] Join over the asset groups.
// [6983] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [6987] Filter by access level.
// [6986] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [6992] Implement View Level Access
// [6991] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [6999] Order the results by ordering
// [6998] Order the results by ordering
$query->order('a.ordering ASC');
// [7001] Load the items
// [7000] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -216,7 +216,7 @@ class SermondistributorModelSermon extends JModelAdmin
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{ // [9560] Get the form.
{ // [9559] Get the form.
$form = $this->loadForm('com_sermondistributor.sermon', 'sermon', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form))
@ -226,17 +226,17 @@ class SermondistributorModelSermon extends JModelAdmin
$jinput = JFactory::getApplication()->input;
// [9587] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
// [9586] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
if ($jinput->get('a_id'))
{
$id = $jinput->get('a_id', 0, 'INT');
}
// [9592] The back end uses id so we use that the rest of the time and set it to 0 by default.
// [9591] The back end uses id so we use that the rest of the time and set it to 0 by default.
else
{
$id = $jinput->get('id', 0, 'INT');
}
// [9597] Determine correct permissions to check.
// [9596] Determine correct permissions to check.
if ($this->getState('sermon.id'))
{
$id = $this->getState('sermon.id');
@ -244,56 +244,56 @@ class SermondistributorModelSermon extends JModelAdmin
$catid = 0;
if (isset($this->getItem($id)->catid))
{
// [9604] set catagory id
// [9603] set catagory id
$catid = $this->getItem($id)->catid;
// [9606] Existing record. Can only edit in selected categories.
// [9605] Existing record. Can only edit in selected categories.
$form->setFieldAttribute('catid', 'action', 'core.edit');
// [9608] Existing record. Can only edit own items in selected categories.
// [9607] Existing record. Can only edit own items in selected categories.
$form->setFieldAttribute('catid', 'action', 'core.edit.own');
}
}
else
{
// [9614] New record. Can only create in selected categories.
// [9613] New record. Can only create in selected categories.
$form->setFieldAttribute('catid', 'action', 'core.create');
}
$user = JFactory::getUser();
// [9618] Check for existing item.
// [9619] Modify the form based on Edit State access controls.
// [9617] Check for existing item.
// [9618] Modify the form based on Edit State access controls.
if ($id != 0 && (!$user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $id))
|| (isset($catid) && $catid != 0 && !$user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $catid))
|| ($id == 0 && !$user->authorise('sermon.edit.state', 'com_sermondistributor')))
{
// [9634] Disable fields for display.
// [9633] Disable fields for display.
$form->setFieldAttribute('ordering', 'disabled', 'true');
$form->setFieldAttribute('published', 'disabled', 'true');
// [9637] Disable fields while saving.
// [9636] Disable fields while saving.
$form->setFieldAttribute('ordering', 'filter', 'unset');
$form->setFieldAttribute('published', 'filter', 'unset');
}
// [9678] Modify the form based on Edit Creaded By access controls.
// [9677] Modify the form based on Edit Creaded By access controls.
if ($id != 0 && (!$user->authorise('sermon.edit.created_by', 'com_sermondistributor.sermon.' . (int) $id))
|| ($id == 0 && !$user->authorise('sermon.edit.created_by', 'com_sermondistributor')))
{
// [9690] Disable fields for display.
// [9689] Disable fields for display.
$form->setFieldAttribute('created_by', 'disabled', 'true');
// [9692] Disable fields for display.
// [9691] Disable fields for display.
$form->setFieldAttribute('created_by', 'readonly', 'true');
// [9694] Disable fields while saving.
// [9693] Disable fields while saving.
$form->setFieldAttribute('created_by', 'filter', 'unset');
}
// [9697] Modify the form based on Edit Creaded Date access controls.
// [9696] Modify the form based on Edit Creaded Date access controls.
if ($id != 0 && (!$user->authorise('sermon.edit.created', 'com_sermondistributor.sermon.' . (int) $id))
|| ($id == 0 && !$user->authorise('sermon.edit.created', 'com_sermondistributor')))
{
// [9709] Disable fields for display.
// [9708] Disable fields for display.
$form->setFieldAttribute('created', 'disabled', 'true');
// [9711] Disable fields while saving.
// [9710] Disable fields while saving.
$form->setFieldAttribute('created', 'filter', 'unset');
}
@ -333,7 +333,7 @@ class SermondistributorModelSermon extends JModelAdmin
if ($allow)
{
// [9832] The record has been set. Check the record permissions.
// [9831] The record has been set. Check the record permissions.
return $user->authorise('sermon.delete', 'com_sermondistributor.sermon.' . (int) $record->id);
}
return $allow;
@ -357,14 +357,14 @@ class SermondistributorModelSermon extends JModelAdmin
if ($recordId)
{
// [9905] The record has been set. Check the record permissions.
// [9904] The record has been set. Check the record permissions.
$permission = $user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// [9921] Check against the category.
// [9920] Check against the category.
if (!empty($record->catid))
{
$catpermission = $user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $record->catid);
@ -373,7 +373,7 @@ class SermondistributorModelSermon extends JModelAdmin
return false;
}
}
// [9932] In the absense of better information, revert to the component permissions.
// [9931] In the absense of better information, revert to the component permissions.
return $user->authorise('sermon.edit.state', 'com_sermondistributor');
}
@ -388,7 +388,7 @@ class SermondistributorModelSermon extends JModelAdmin
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9773] Check specific edit permission then general edit permission.
// [9772] Check specific edit permission then general edit permission.
$user = JFactory::getUser();
return $user->authorise('sermon.edit', 'com_sermondistributor.sermon.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('sermon.edit', 'com_sermondistributor');
@ -487,20 +487,20 @@ class SermondistributorModelSermon extends JModelAdmin
*/
public function validate($form, $data, $group = null)
{
// [8764] check if the not_required field is set
// [8763] check if the not_required field is set
if (SermondistributorHelper::checkString($data['not_required']))
{
$requiredFields = (array) explode(',',(string) $data['not_required']);
$requiredFields = array_unique($requiredFields);
// [8769] now change the required field attributes value
// [8768] now change the required field attributes value
foreach ($requiredFields as $requiredField)
{
// [8772] make sure there is a string value
// [8771] make sure there is a string value
if (SermondistributorHelper::checkString($requiredField))
{
// [8775] change to false
// [8774] change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// [8777] also clear the data set
// [8776] also clear the data set
$data[$requiredField] = '';
}
}
@ -631,7 +631,7 @@ class SermondistributorModelSermon extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4926] Set some needed variables.
// [4925] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -645,12 +645,12 @@ class SermondistributorModelSermon extends JModelAdmin
return false;
}
// [4946] get list of uniqe fields
// [4945] get list of uniqe fields
$uniqeFields = $this->getUniqeFields();
// [4948] remove move_copy from array
// [4947] remove move_copy from array
unset($values['move_copy']);
// [4951] make sure published is set
// [4950] make sure published is set
if (!isset($values['published']))
{
$values['published'] = 0;
@ -666,7 +666,7 @@ class SermondistributorModelSermon extends JModelAdmin
}
elseif (isset($values['category']) && (int) $values['category'] > 0)
{
// [4976] move the category value to correct field name
// [4975] move the category value to correct field name
$values['catid'] = $values['category'];
unset($values['category']);
}
@ -677,21 +677,21 @@ class SermondistributorModelSermon extends JModelAdmin
$newIds = array();
// [4988] Parent exists so let's proceed
// [4987] Parent exists so let's proceed
while (!empty($pks))
{
// [4991] Pop the first ID off the stack
// [4990] Pop the first ID off the stack
$pk = array_shift($pks);
$this->table->reset();
// [4996] only allow copy if user may edit this item.
// [4995] only allow copy if user may edit this item.
if (!$this->user->authorise('sermon.edit', $contexts[$pk]))
{
// [5006] Not fatal error
// [5005] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
@ -699,19 +699,19 @@ class SermondistributorModelSermon extends JModelAdmin
}
// [5011] Check that the row actually exists
// [5010] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [5016] Fatal error
// [5015] Fatal error
$this->setError($error);
return false;
}
else
{
// [5023] Not fatal error
// [5022] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
@ -726,7 +726,7 @@ class SermondistributorModelSermon extends JModelAdmin
list($this->table->name, $this->table->alias) = $this->generateNewTitle($this->table->catid, $this->table->alias, $this->table->name);
}
// [5059] insert all set values
// [5058] insert all set values
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
@ -738,7 +738,7 @@ class SermondistributorModelSermon extends JModelAdmin
}
}
// [5071] update all uniqe fields
// [5070] update all uniqe fields
if (SermondistributorHelper::checkArray($uniqeFields))
{
foreach ($uniqeFields as $uniqeField)
@ -747,13 +747,13 @@ class SermondistributorModelSermon extends JModelAdmin
}
}
// [5080] Reset the ID because we are making a copy
// [5079] Reset the ID because we are making a copy
$this->table->id = 0;
// [5083] TODO: Deal with ordering?
// [5084] $this->table->ordering = 1;
// [5082] TODO: Deal with ordering?
// [5083] $this->table->ordering = 1;
// [5086] Check the row.
// [5085] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -766,7 +766,7 @@ class SermondistributorModelSermon extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [5099] Store the row.
// [5098] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -774,14 +774,14 @@ class SermondistributorModelSermon extends JModelAdmin
return false;
}
// [5107] Get the new item ID
// [5106] Get the new item ID
$newId = $this->table->get('id');
// [5110] Add the new ID to the array
// [5109] Add the new ID to the array
$newIds[$pk] = $newId;
}
// [5114] Clean the cache
// [5113] Clean the cache
$this->cleanCache();
return $newIds;
@ -802,7 +802,7 @@ class SermondistributorModelSermon extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4728] Set some needed variables.
// [4727] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -817,12 +817,12 @@ class SermondistributorModelSermon extends JModelAdmin
return false;
}
// [4750] make sure published only updates if user has the permission.
// [4749] make sure published only updates if user has the permission.
if (isset($values['published']) && !$this->canDo->get('sermon.edit.state'))
{
unset($values['published']);
}
// [4763] remove move_copy from array
// [4762] remove move_copy from array
unset($values['move_copy']);
if (isset($values['category']) && (int) $values['category'] > 0 && !static::checkCategoryId($values['category']))
@ -831,7 +831,7 @@ class SermondistributorModelSermon extends JModelAdmin
}
elseif (isset($values['category']) && (int) $values['category'] > 0)
{
// [4774] move the category value to correct field name
// [4773] move the category value to correct field name
$values['catid'] = $values['category'];
unset($values['category']);
}
@ -841,7 +841,7 @@ class SermondistributorModelSermon extends JModelAdmin
}
// [4784] Parent exists so we proceed
// [4783] Parent exists so we proceed
foreach ($pks as $pk)
{
if (!$this->user->authorise('sermon.edit', $contexts[$pk]))
@ -851,30 +851,30 @@ class SermondistributorModelSermon extends JModelAdmin
return false;
}
// [4801] Check that the row actually exists
// [4800] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [4806] Fatal error
// [4805] Fatal error
$this->setError($error);
return false;
}
else
{
// [4813] Not fatal error
// [4812] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
}
// [4819] insert all set values.
// [4818] insert all set values.
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
// [4824] Do special action for access.
// [4823] Do special action for access.
if ('access' == $key && strlen($value) > 0)
{
$this->table->$key = $value;
@ -887,7 +887,7 @@ class SermondistributorModelSermon extends JModelAdmin
}
// [4836] Check the row.
// [4835] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -900,7 +900,7 @@ class SermondistributorModelSermon extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [4849] Store the row.
// [4848] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -909,7 +909,7 @@ class SermondistributorModelSermon extends JModelAdmin
}
}
// [4858] Clean the cache
// [4857] Clean the cache
$this->cleanCache();
return true;
@ -959,7 +959,7 @@ class SermondistributorModelSermon extends JModelAdmin
$data['params'] = (string) $params;
}
// [5140] Alter the name for save as copy
// [5139] Alter the name for save as copy
if ($input->get('task') == 'save2copy')
{
$origTable = clone $this->getTable();
@ -982,7 +982,7 @@ class SermondistributorModelSermon extends JModelAdmin
$data['published'] = 0;
}
// [5167] Automatic handling of alias for empty fields
// [5166] Automatic handling of alias for empty fields
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
{
if ($data['alias'] == null)
@ -1013,10 +1013,10 @@ class SermondistributorModelSermon extends JModelAdmin
}
}
// [5206] Alter the uniqe field for save as copy
// [5205] Alter the uniqe field for save as copy
if ($input->get('task') == 'save2copy')
{
// [5209] Automatic handling of other uniqe fields
// [5208] Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
if (SermondistributorHelper::checkArray($uniqeFields))
{
@ -1070,7 +1070,7 @@ class SermondistributorModelSermon extends JModelAdmin
protected function _generateNewTitle($alias, $title)
{
// [5240] Alter the title & alias
// [5239] Alter the title & alias
$table = $this->getTable();
while ($table->load(array('alias' => $alias)))

View File

@ -40,7 +40,7 @@ class SermondistributorModelSermondistributor extends JModelList
$viewGroups = array(
'main' => array('png.preacher.add', 'png.preachers', 'png.sermon.add', 'png.sermons', 'png.sermons.catid', 'png.series.add', 'png.series_list', 'png.statistics', 'png.help_documents')
);
// [12176] view access array
// [12175] view access array
$viewAccess = array(
'preacher.create' => 'preacher.create',
'preachers.access' => 'preacher.access',

View File

@ -124,16 +124,16 @@ class SermondistributorModelSermons extends JModelList
*/
public function getItems()
{
// [10530] check in items
// [10529] check in items
$this->checkInNow();
// load parent items
$items = parent::getItems();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -147,14 +147,14 @@ class SermondistributorModelSermons extends JModelList
}
}
// [10871] set selection value to a translatable value
// [10870] set selection value to a translatable value
if (SermondistributorHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// [10878] convert link_type
// [10877] convert link_type
$item->link_type = $this->selectionTranslation($item->link_type, 'link_type');
// [10878] convert source
// [10877] convert source
$item->source = $this->selectionTranslation($item->source, 'source');
}
}
@ -171,20 +171,20 @@ class SermondistributorModelSermons extends JModelList
*/
public function selectionTranslation($value,$name)
{
// [10904] Array of link_type language strings
// [10903] Array of link_type language strings
if ($name == 'link_type')
{
$link_typeArray = array(
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
{
return $link_typeArray[$value];
}
}
// [10904] Array of source language strings
// [10903] Array of source language strings
if ($name == 'source')
{
$sourceArray = array(
@ -193,7 +193,7 @@ class SermondistributorModelSermons extends JModelList
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
);
// [10935] Now check if value is found in this array
// [10934] Now check if value is found in this array
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
{
return $sourceArray[$value];
@ -209,29 +209,29 @@ class SermondistributorModelSermons extends JModelList
*/
protected function getListQuery()
{
// [7391] Get the user object.
// [7390] Get the user object.
$user = JFactory::getUser();
// [7393] Create a new query object.
// [7392] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7396] Select some fields
// [7395] Select some fields
$query->select('a.*');
$query->select($db->quoteName('c.title','category_title'));
// [7403] From the sermondistributor_item table
// [7402] From the sermondistributor_item table
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
// [7544] From the sermondistributor_preacher table.
// [7543] From the sermondistributor_preacher table.
$query->select($db->quoteName('g.name','preacher_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
// [7544] From the sermondistributor_series table.
// [7543] From the sermondistributor_series table.
$query->select($db->quoteName('h.name','series_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
// [7417] Filter by published state
// [7416] Filter by published state
$published = $this->getState('filter.published');
if (is_numeric($published))
{
@ -242,21 +242,21 @@ class SermondistributorModelSermons extends JModelList
$query->where('(a.published = 0 OR a.published = 1)');
}
// [7429] Join over the asset groups.
// [7428] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [7432] Filter by access level.
// [7431] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [7437] Implement View Level Access
// [7436] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7514] Filter by search.
// [7513] Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
{
@ -271,28 +271,28 @@ class SermondistributorModelSermons extends JModelList
}
}
// [7748] Filter by preacher.
// [7747] Filter by preacher.
if ($preacher = $this->getState('filter.preacher'))
{
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
}
// [7748] Filter by series.
// [7747] Filter by series.
if ($series = $this->getState('filter.series'))
{
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
}
// [7757] Filter by Link_type.
// [7756] Filter by Link_type.
if ($link_type = $this->getState('filter.link_type'))
{
$query->where('a.link_type = ' . $db->quote($db->escape($link_type, true)));
}
// [7757] Filter by Source.
// [7756] Filter by Source.
if ($source = $this->getState('filter.source'))
{
$query->where('a.source = ' . $db->quote($db->escape($source, true)));
}
// [7451] Filter by a single or group of categories.
// [7450] Filter by a single or group of categories.
$baselevel = 1;
$categoryId = $this->getState('filter.category_id');
@ -314,7 +314,7 @@ class SermondistributorModelSermons extends JModelList
}
// [7473] Add the list ordering clause.
// [7472] Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
if ($orderCol != '')
@ -332,42 +332,42 @@ class SermondistributorModelSermons extends JModelList
*/
public function getExportData($pks)
{
// [7181] setup the query
// [7180] setup the query
if (SermondistributorHelper::checkArray($pks))
{
// [7184] Get the user object.
// [7183] Get the user object.
$user = JFactory::getUser();
// [7186] Create a new query object.
// [7185] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7189] Select some fields
// [7188] Select some fields
$query->select('a.*');
// [7191] From the sermondistributor_sermon table
// [7190] From the sermondistributor_sermon table
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
$query->where('a.id IN (' . implode(',',$pks) . ')');
// [7201] Implement View Level Access
// [7200] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7208] Order the results by ordering
// [7207] Order the results by ordering
$query->order('a.ordering ASC');
// [7210] Load the items
// [7209] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -378,13 +378,13 @@ class SermondistributorModelSermons extends JModelList
continue;
}
// [10818] unset the values we don't want exported.
// [10817] unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
unset($item->checked_out_time);
}
}
// [10827] Add headers to items array.
// [10826] Add headers to items array.
$headers = $this->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
@ -403,13 +403,13 @@ class SermondistributorModelSermons extends JModelList
*/
public function getExImPortHeaders()
{
// [7230] Get a db connection.
// [7229] Get a db connection.
$db = JFactory::getDbo();
// [7232] get the columns
// [7231] get the columns
$columns = $db->getTableColumns("#__sermondistributor_sermon");
if (SermondistributorHelper::checkArray($columns))
{
// [7236] remove the headers you don't import/export.
// [7235] remove the headers you don't import/export.
unset($columns['asset_id']);
unset($columns['checked_out']);
unset($columns['checked_out_time']);
@ -431,7 +431,7 @@ class SermondistributorModelSermons extends JModelList
*/
protected function getStoreId($id = '')
{
// [10153] Compile the store id.
// [10152] Compile the store id.
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
@ -459,15 +459,15 @@ class SermondistributorModelSermons extends JModelList
*/
protected function checkInNow()
{
// [10546] Get set check in time
// [10545] Get set check in time
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
if ($time)
{
// [10551] Get a db connection.
// [10550] Get a db connection.
$db = JFactory::getDbo();
// [10553] reset query
// [10552] reset query
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__sermondistributor_sermon'));
@ -475,24 +475,24 @@ class SermondistributorModelSermons extends JModelList
$db->execute();
if ($db->getNumRows())
{
// [10561] Get Yesterdays date
// [10560] Get Yesterdays date
$date = JFactory::getDate()->modify($time)->toSql();
// [10563] reset query
// [10562] reset query
$query = $db->getQuery(true);
// [10565] Fields to update.
// [10564] Fields to update.
$fields = array(
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
$db->quoteName('checked_out') . '=0'
);
// [10570] Conditions for which records should be updated.
// [10569] Conditions for which records should be updated.
$conditions = array(
$db->quoteName('checked_out') . '!=0',
$db->quoteName('checked_out_time') . '<\''.$date.'\''
);
// [10575] Check table
// [10574] Check table
$query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions);
$db->setQuery($query);

View File

@ -111,7 +111,7 @@ class SermondistributorModelStatistic extends JModelAdmin
* @since 1.6
*/
public function getForm($data = array(), $loadData = true)
{ // [9560] Get the form.
{ // [9559] Get the form.
$form = $this->loadForm('com_sermondistributor.statistic', 'statistic', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form))
@ -121,12 +121,12 @@ class SermondistributorModelStatistic extends JModelAdmin
$jinput = JFactory::getApplication()->input;
// [9645] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
if ($jinput->get('a_id'))
{
$id = $jinput->get('a_id', 0, 'INT');
}
// [9650] The back end uses id so we use that the rest of the time and set it to 0 by default.
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
else
{
$id = $jinput->get('id', 0, 'INT');
@ -134,36 +134,36 @@ class SermondistributorModelStatistic extends JModelAdmin
$user = JFactory::getUser();
// [9656] Check for existing item.
// [9657] Modify the form based on Edit State access controls.
// [9655] Check for existing item.
// [9656] Modify the form based on Edit State access controls.
if ($id != 0 && (!$user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $id))
|| ($id == 0 && !$user->authorise('statistic.edit.state', 'com_sermondistributor')))
{
// [9670] Disable fields for display.
// [9669] Disable fields for display.
$form->setFieldAttribute('ordering', 'disabled', 'true');
$form->setFieldAttribute('published', 'disabled', 'true');
// [9673] Disable fields while saving.
// [9672] Disable fields while saving.
$form->setFieldAttribute('ordering', 'filter', 'unset');
$form->setFieldAttribute('published', 'filter', 'unset');
}
// [9678] Modify the form based on Edit Creaded By access controls.
// [9677] Modify the form based on Edit Creaded By access controls.
if ($id != 0 && (!$user->authorise('statistic.edit.created_by', 'com_sermondistributor.statistic.' . (int) $id))
|| ($id == 0 && !$user->authorise('statistic.edit.created_by', 'com_sermondistributor')))
{
// [9690] Disable fields for display.
// [9689] Disable fields for display.
$form->setFieldAttribute('created_by', 'disabled', 'true');
// [9692] Disable fields for display.
// [9691] Disable fields for display.
$form->setFieldAttribute('created_by', 'readonly', 'true');
// [9694] Disable fields while saving.
// [9693] Disable fields while saving.
$form->setFieldAttribute('created_by', 'filter', 'unset');
}
// [9697] Modify the form based on Edit Creaded Date access controls.
// [9696] Modify the form based on Edit Creaded Date access controls.
if ($id != 0 && (!$user->authorise('statistic.edit.created', 'com_sermondistributor.statistic.' . (int) $id))
|| ($id == 0 && !$user->authorise('statistic.edit.created', 'com_sermondistributor')))
{
// [9709] Disable fields for display.
// [9708] Disable fields for display.
$form->setFieldAttribute('created', 'disabled', 'true');
// [9711] Disable fields while saving.
// [9710] Disable fields while saving.
$form->setFieldAttribute('created', 'filter', 'unset');
}
@ -199,7 +199,7 @@ class SermondistributorModelStatistic extends JModelAdmin
}
$user = JFactory::getUser();
// [9861] The record has been set. Check the record permissions.
// [9860] The record has been set. Check the record permissions.
return $user->authorise('statistic.delete', 'com_sermondistributor.statistic.' . (int) $record->id);
}
return false;
@ -221,14 +221,14 @@ class SermondistributorModelStatistic extends JModelAdmin
if ($recordId)
{
// [9948] The record has been set. Check the record permissions.
// [9947] The record has been set. Check the record permissions.
$permission = $user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $recordId);
if (!$permission && !is_null($permission))
{
return false;
}
}
// [9965] In the absense of better information, revert to the component permissions.
// [9964] In the absense of better information, revert to the component permissions.
return $user->authorise('statistic.edit.state', 'com_sermondistributor');
}
@ -243,7 +243,7 @@ class SermondistributorModelStatistic extends JModelAdmin
*/
protected function allowEdit($data = array(), $key = 'id')
{
// [9773] Check specific edit permission then general edit permission.
// [9772] Check specific edit permission then general edit permission.
$user = JFactory::getUser();
return $user->authorise('statistic.edit', 'com_sermondistributor.statistic.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('statistic.edit', 'com_sermondistributor');
@ -450,7 +450,7 @@ class SermondistributorModelStatistic extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4926] Set some needed variables.
// [4925] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -464,12 +464,12 @@ class SermondistributorModelStatistic extends JModelAdmin
return false;
}
// [4946] get list of uniqe fields
// [4945] get list of uniqe fields
$uniqeFields = $this->getUniqeFields();
// [4948] remove move_copy from array
// [4947] remove move_copy from array
unset($values['move_copy']);
// [4951] make sure published is set
// [4950] make sure published is set
if (!isset($values['published']))
{
$values['published'] = 0;
@ -481,21 +481,21 @@ class SermondistributorModelStatistic extends JModelAdmin
$newIds = array();
// [4988] Parent exists so let's proceed
// [4987] Parent exists so let's proceed
while (!empty($pks))
{
// [4991] Pop the first ID off the stack
// [4990] Pop the first ID off the stack
$pk = array_shift($pks);
$this->table->reset();
// [4996] only allow copy if user may edit this item.
// [4995] only allow copy if user may edit this item.
if (!$this->user->authorise('statistic.edit', $contexts[$pk]))
{
// [5006] Not fatal error
// [5005] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
@ -503,19 +503,19 @@ class SermondistributorModelStatistic extends JModelAdmin
}
// [5011] Check that the row actually exists
// [5010] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [5016] Fatal error
// [5015] Fatal error
$this->setError($error);
return false;
}
else
{
// [5023] Not fatal error
// [5022] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
@ -523,7 +523,7 @@ class SermondistributorModelStatistic extends JModelAdmin
$this->table->filename = $this->generateUniqe('filename',$this->table->filename);
// [5059] insert all set values
// [5058] insert all set values
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
@ -535,7 +535,7 @@ class SermondistributorModelStatistic extends JModelAdmin
}
}
// [5071] update all uniqe fields
// [5070] update all uniqe fields
if (SermondistributorHelper::checkArray($uniqeFields))
{
foreach ($uniqeFields as $uniqeField)
@ -544,13 +544,13 @@ class SermondistributorModelStatistic extends JModelAdmin
}
}
// [5080] Reset the ID because we are making a copy
// [5079] Reset the ID because we are making a copy
$this->table->id = 0;
// [5083] TODO: Deal with ordering?
// [5084] $this->table->ordering = 1;
// [5082] TODO: Deal with ordering?
// [5083] $this->table->ordering = 1;
// [5086] Check the row.
// [5085] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -563,7 +563,7 @@ class SermondistributorModelStatistic extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [5099] Store the row.
// [5098] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -571,14 +571,14 @@ class SermondistributorModelStatistic extends JModelAdmin
return false;
}
// [5107] Get the new item ID
// [5106] Get the new item ID
$newId = $this->table->get('id');
// [5110] Add the new ID to the array
// [5109] Add the new ID to the array
$newIds[$pk] = $newId;
}
// [5114] Clean the cache
// [5113] Clean the cache
$this->cleanCache();
return $newIds;
@ -599,7 +599,7 @@ class SermondistributorModelStatistic extends JModelAdmin
{
if (empty($this->batchSet))
{
// [4728] Set some needed variables.
// [4727] Set some needed variables.
$this->user = JFactory::getUser();
$this->table = $this->getTable();
$this->tableClassName = get_class($this->table);
@ -614,15 +614,15 @@ class SermondistributorModelStatistic extends JModelAdmin
return false;
}
// [4750] make sure published only updates if user has the permission.
// [4749] make sure published only updates if user has the permission.
if (isset($values['published']) && !$this->canDo->get('statistic.edit.state'))
{
unset($values['published']);
}
// [4763] remove move_copy from array
// [4762] remove move_copy from array
unset($values['move_copy']);
// [4784] Parent exists so we proceed
// [4783] Parent exists so we proceed
foreach ($pks as $pk)
{
if (!$this->user->authorise('statistic.edit', $contexts[$pk]))
@ -632,30 +632,30 @@ class SermondistributorModelStatistic extends JModelAdmin
return false;
}
// [4801] Check that the row actually exists
// [4800] Check that the row actually exists
if (!$this->table->load($pk))
{
if ($error = $this->table->getError())
{
// [4806] Fatal error
// [4805] Fatal error
$this->setError($error);
return false;
}
else
{
// [4813] Not fatal error
// [4812] Not fatal error
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
continue;
}
}
// [4819] insert all set values.
// [4818] insert all set values.
if (SermondistributorHelper::checkArray($values))
{
foreach ($values as $key => $value)
{
// [4824] Do special action for access.
// [4823] Do special action for access.
if ('access' == $key && strlen($value) > 0)
{
$this->table->$key = $value;
@ -668,7 +668,7 @@ class SermondistributorModelStatistic extends JModelAdmin
}
// [4836] Check the row.
// [4835] Check the row.
if (!$this->table->check())
{
$this->setError($this->table->getError());
@ -681,7 +681,7 @@ class SermondistributorModelStatistic extends JModelAdmin
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
}
// [4849] Store the row.
// [4848] Store the row.
if (!$this->table->store())
{
$this->setError($this->table->getError());
@ -690,7 +690,7 @@ class SermondistributorModelStatistic extends JModelAdmin
}
}
// [4858] Clean the cache
// [4857] Clean the cache
$this->cleanCache();
return true;
@ -728,10 +728,10 @@ class SermondistributorModelStatistic extends JModelAdmin
$data['params'] = (string) $params;
}
// [5206] Alter the uniqe field for save as copy
// [5205] Alter the uniqe field for save as copy
if ($input->get('task') == 'save2copy')
{
// [5209] Automatic handling of other uniqe fields
// [5208] Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();
if (SermondistributorHelper::checkArray($uniqeFields))
{
@ -784,7 +784,7 @@ class SermondistributorModelStatistic extends JModelAdmin
protected function _generateNewTitle($title)
{
// [5264] Alter the title
// [5263] Alter the title
$table = $this->getTable();
while ($table->load(array('title' => $title)))

View File

@ -108,16 +108,16 @@ class SermondistributorModelStatistics extends JModelList
*/
public function getItems()
{
// [10530] check in items
// [10529] check in items
$this->checkInNow();
// load parent items
$items = parent::getItems();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -142,31 +142,31 @@ class SermondistributorModelStatistics extends JModelList
*/
protected function getListQuery()
{
// [7391] Get the user object.
// [7390] Get the user object.
$user = JFactory::getUser();
// [7393] Create a new query object.
// [7392] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7396] Select some fields
// [7395] Select some fields
$query->select('a.*');
// [7403] From the sermondistributor_item table
// [7402] From the sermondistributor_item table
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
// [7544] From the sermondistributor_sermon table.
// [7543] From the sermondistributor_sermon table.
$query->select($db->quoteName('g.name','sermon_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')');
// [7544] From the sermondistributor_preacher table.
// [7543] From the sermondistributor_preacher table.
$query->select($db->quoteName('h.name','preacher_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')');
// [7544] From the sermondistributor_series table.
// [7543] From the sermondistributor_series table.
$query->select($db->quoteName('i.name','series_name'));
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')');
// [7417] Filter by published state
// [7416] Filter by published state
$published = $this->getState('filter.published');
if (is_numeric($published))
{
@ -177,21 +177,21 @@ class SermondistributorModelStatistics extends JModelList
$query->where('(a.published = 0 OR a.published = 1)');
}
// [7429] Join over the asset groups.
// [7428] Join over the asset groups.
$query->select('ag.title AS access_level');
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
// [7432] Filter by access level.
// [7431] Filter by access level.
if ($access = $this->getState('filter.access'))
{
$query->where('a.access = ' . (int) $access);
}
// [7437] Implement View Level Access
// [7436] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7514] Filter by search.
// [7513] Filter by search.
$search = $this->getState('filter.search');
if (!empty($search))
{
@ -206,23 +206,23 @@ class SermondistributorModelStatistics extends JModelList
}
}
// [7748] Filter by sermon.
// [7747] Filter by sermon.
if ($sermon = $this->getState('filter.sermon'))
{
$query->where('a.sermon = ' . $db->quote($db->escape($sermon, true)));
}
// [7748] Filter by preacher.
// [7747] Filter by preacher.
if ($preacher = $this->getState('filter.preacher'))
{
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
}
// [7748] Filter by series.
// [7747] Filter by series.
if ($series = $this->getState('filter.series'))
{
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
}
// [7473] Add the list ordering clause.
// [7472] Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
if ($orderCol != '')
@ -240,42 +240,42 @@ class SermondistributorModelStatistics extends JModelList
*/
public function getExportData($pks)
{
// [7181] setup the query
// [7180] setup the query
if (SermondistributorHelper::checkArray($pks))
{
// [7184] Get the user object.
// [7183] Get the user object.
$user = JFactory::getUser();
// [7186] Create a new query object.
// [7185] Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);
// [7189] Select some fields
// [7188] Select some fields
$query->select('a.*');
// [7191] From the sermondistributor_statistic table
// [7190] From the sermondistributor_statistic table
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
$query->where('a.id IN (' . implode(',',$pks) . ')');
// [7201] Implement View Level Access
// [7200] Implement View Level Access
if (!$user->authorise('core.options', 'com_sermondistributor'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
// [7208] Order the results by ordering
// [7207] Order the results by ordering
$query->order('a.ordering ASC');
// [7210] Load the items
// [7209] Load the items
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$items = $db->loadObjectList();
// [10605] set values to display correctly.
// [10604] set values to display correctly.
if (SermondistributorHelper::checkArray($items))
{
// [10608] get user object.
// [10607] get user object.
$user = JFactory::getUser();
foreach ($items as $nr => &$item)
{
@ -286,13 +286,13 @@ class SermondistributorModelStatistics extends JModelList
continue;
}
// [10818] unset the values we don't want exported.
// [10817] unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
unset($item->checked_out_time);
}
}
// [10827] Add headers to items array.
// [10826] Add headers to items array.
$headers = $this->getExImPortHeaders();
if (SermondistributorHelper::checkObject($headers))
{
@ -311,13 +311,13 @@ class SermondistributorModelStatistics extends JModelList
*/
public function getExImPortHeaders()
{
// [7230] Get a db connection.
// [7229] Get a db connection.
$db = JFactory::getDbo();
// [7232] get the columns
// [7231] get the columns
$columns = $db->getTableColumns("#__sermondistributor_statistic");
if (SermondistributorHelper::checkArray($columns))
{
// [7236] remove the headers you don't import/export.
// [7235] remove the headers you don't import/export.
unset($columns['asset_id']);
unset($columns['checked_out']);
unset($columns['checked_out_time']);
@ -339,7 +339,7 @@ class SermondistributorModelStatistics extends JModelList
*/
protected function getStoreId($id = '')
{
// [10153] Compile the store id.
// [10152] Compile the store id.
$id .= ':' . $this->getState('filter.id');
$id .= ':' . $this->getState('filter.search');
$id .= ':' . $this->getState('filter.published');
@ -363,15 +363,15 @@ class SermondistributorModelStatistics extends JModelList
*/
protected function checkInNow()
{
// [10546] Get set check in time
// [10545] Get set check in time
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
if ($time)
{
// [10551] Get a db connection.
// [10550] Get a db connection.
$db = JFactory::getDbo();
// [10553] reset query
// [10552] reset query
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__sermondistributor_statistic'));
@ -379,24 +379,24 @@ class SermondistributorModelStatistics extends JModelList
$db->execute();
if ($db->getNumRows())
{
// [10561] Get Yesterdays date
// [10560] Get Yesterdays date
$date = JFactory::getDate()->modify($time)->toSql();
// [10563] reset query
// [10562] reset query
$query = $db->getQuery(true);
// [10565] Fields to update.
// [10564] Fields to update.
$fields = array(
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
$db->quoteName('checked_out') . '=0'
);
// [10570] Conditions for which records should be updated.
// [10569] Conditions for which records should be updated.
$conditions = array(
$db->quoteName('checked_out') . '!=0',
$db->quoteName('checked_out_time') . '<\''.$date.'\''
);
// [10575] Check table
// [10574] Check table
$query->update($db->quoteName('#__sermondistributor_statistic'))->set($fields)->where($conditions);
$db->setQuery($query);

View File

@ -95,93 +95,93 @@ $componentParams = JComponentHelper::getParams('com_sermondistributor');
<script type="text/javascript">
// #jform_location listeners for location_UohYgsV function
// #jform_location listeners for location_YqmLlcw function
jQuery('#jform_location').on('keyup',function()
{
var location_UohYgsV = jQuery("#jform_location input[type='radio']:checked").val();
UohYgsV(location_UohYgsV);
var location_YqmLlcw = jQuery("#jform_location input[type='radio']:checked").val();
YqmLlcw(location_YqmLlcw);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_UohYgsV = jQuery("#jform_location input[type='radio']:checked").val();
UohYgsV(location_UohYgsV);
var location_YqmLlcw = jQuery("#jform_location input[type='radio']:checked").val();
YqmLlcw(location_YqmLlcw);
});
// #jform_location listeners for location_dmkgZVG function
// #jform_location listeners for location_ErKnwQB function
jQuery('#jform_location').on('keyup',function()
{
var location_dmkgZVG = jQuery("#jform_location input[type='radio']:checked").val();
dmkgZVG(location_dmkgZVG);
var location_ErKnwQB = jQuery("#jform_location input[type='radio']:checked").val();
ErKnwQB(location_ErKnwQB);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_dmkgZVG = jQuery("#jform_location input[type='radio']:checked").val();
dmkgZVG(location_dmkgZVG);
var location_ErKnwQB = jQuery("#jform_location input[type='radio']:checked").val();
ErKnwQB(location_ErKnwQB);
});
// #jform_type listeners for type_qgvZjvN function
// #jform_type listeners for type_pfUDjYG function
jQuery('#jform_type').on('keyup',function()
{
var type_qgvZjvN = jQuery("#jform_type").val();
qgvZjvN(type_qgvZjvN);
var type_pfUDjYG = jQuery("#jform_type").val();
pfUDjYG(type_pfUDjYG);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_qgvZjvN = jQuery("#jform_type").val();
qgvZjvN(type_qgvZjvN);
var type_pfUDjYG = jQuery("#jform_type").val();
pfUDjYG(type_pfUDjYG);
});
// #jform_type listeners for type_HkhDrQj function
// #jform_type listeners for type_cfyFlnv function
jQuery('#jform_type').on('keyup',function()
{
var type_HkhDrQj = jQuery("#jform_type").val();
HkhDrQj(type_HkhDrQj);
var type_cfyFlnv = jQuery("#jform_type").val();
cfyFlnv(type_cfyFlnv);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_HkhDrQj = jQuery("#jform_type").val();
HkhDrQj(type_HkhDrQj);
var type_cfyFlnv = jQuery("#jform_type").val();
cfyFlnv(type_cfyFlnv);
});
// #jform_type listeners for type_llHjuZw function
// #jform_type listeners for type_SSRqCog function
jQuery('#jform_type').on('keyup',function()
{
var type_llHjuZw = jQuery("#jform_type").val();
llHjuZw(type_llHjuZw);
var type_SSRqCog = jQuery("#jform_type").val();
SSRqCog(type_SSRqCog);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_llHjuZw = jQuery("#jform_type").val();
llHjuZw(type_llHjuZw);
var type_SSRqCog = jQuery("#jform_type").val();
SSRqCog(type_SSRqCog);
});
// #jform_target listeners for target_clywlAZ function
// #jform_target listeners for target_qdgfzre function
jQuery('#jform_target').on('keyup',function()
{
var target_clywlAZ = jQuery("#jform_target input[type='radio']:checked").val();
clywlAZ(target_clywlAZ);
var target_qdgfzre = jQuery("#jform_target input[type='radio']:checked").val();
qdgfzre(target_qdgfzre);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_clywlAZ = jQuery("#jform_target input[type='radio']:checked").val();
clywlAZ(target_clywlAZ);
var target_qdgfzre = jQuery("#jform_target input[type='radio']:checked").val();
qdgfzre(target_qdgfzre);
});

View File

@ -87,27 +87,27 @@ class SermondistributorViewHelp_document extends JViewLegacy
$isNew = $this->item->id == 0;
JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_NEW' : 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_EDIT'), 'pencil-2 article-add');
// [10263] Built the actions for new and existing records.
// [10262] Built the actions for new and existing records.
if ($this->refid || $this->ref)
{
if ($this->canDo->get('help_document.create') && $isNew)
{
// [10275] We can create the record.
// [10274] We can create the record.
JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
}
elseif ($this->canDo->get('help_document.edit'))
{
// [10287] We can save the record.
// [10286] We can save the record.
JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
}
if ($isNew)
{
// [10292] Do not creat but cancel.
// [10291] Do not creat but cancel.
JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CANCEL');
}
else
{
// [10297] We can close it.
// [10296] We can close it.
JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CLOSE');
}
}
@ -115,7 +115,7 @@ class SermondistributorViewHelp_document extends JViewLegacy
{
if ($isNew)
{
// [10305] For new records, check the create permission.
// [10304] For new records, check the create permission.
if ($this->canDo->get('help_document.create'))
{
JToolBarHelper::apply('help_document.apply', 'JTOOLBAR_APPLY');
@ -128,11 +128,11 @@ class SermondistributorViewHelp_document extends JViewLegacy
{
if ($this->canDo->get('help_document.edit'))
{
// [10332] We can save the new record
// [10331] We can save the new record
JToolBarHelper::apply('help_document.apply', 'JTOOLBAR_APPLY');
JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
// [10335] We can save this record, but check the create permission to see
// [10336] if we can return to make a new one.
// [10334] We can save this record, but check the create permission to see
// [10335] if we can return to make a new one.
if ($this->canDo->get('help_document.create'))
{
JToolBarHelper::custom('help_document.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
@ -151,7 +151,7 @@ class SermondistributorViewHelp_document extends JViewLegacy
}
}
JToolbarHelper::divider();
// [10372] set help url for this view if found
// [10371] set help url for this view if found
$help_url = SermondistributorHelper::getHelpUrl('help_document');
if (SermondistributorHelper::checkString($help_url))
{

View File

@ -197,11 +197,11 @@ class SermondistributorViewHelp_documents extends JViewLegacy
);
}
// [9135] Set Type Selection
// [9134] Set Type Selection
$this->typeOptions = $this->getTheTypeSelections();
if ($this->typeOptions)
{
// [9139] Type Filter
// [9138] Type Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL').' -',
'filter_type',
@ -210,7 +210,7 @@ class SermondistributorViewHelp_documents extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9148] Type Batch Selection
// [9147] Type Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TYPE_LABEL').' -',
'batch[type]',
@ -219,11 +219,11 @@ class SermondistributorViewHelp_documents extends JViewLegacy
}
}
// [9135] Set Location Selection
// [9134] Set Location Selection
$this->locationOptions = $this->getTheLocationSelections();
if ($this->locationOptions)
{
// [9139] Location Filter
// [9138] Location Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL').' -',
'filter_location',
@ -232,7 +232,7 @@ class SermondistributorViewHelp_documents extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9148] Location Batch Selection
// [9147] Location Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_LABEL').' -',
'batch[location]',
@ -241,11 +241,11 @@ class SermondistributorViewHelp_documents extends JViewLegacy
}
}
// [9135] Set Admin View Selection
// [9134] Set Admin View Selection
$this->admin_viewOptions = $this->getTheAdmin_viewSelections();
if ($this->admin_viewOptions)
{
// [9139] Admin View Filter
// [9138] Admin View Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL').' -',
'filter_admin_view',
@ -254,7 +254,7 @@ class SermondistributorViewHelp_documents extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9148] Admin View Batch Selection
// [9147] Admin View Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN_VIEW_LABEL').' -',
'batch[admin_view]',
@ -263,11 +263,11 @@ class SermondistributorViewHelp_documents extends JViewLegacy
}
}
// [9135] Set Site View Selection
// [9134] Set Site View Selection
$this->site_viewOptions = $this->getTheSite_viewSelections();
if ($this->site_viewOptions)
{
// [9139] Site View Filter
// [9138] Site View Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL').' -',
'filter_site_view',
@ -276,7 +276,7 @@ class SermondistributorViewHelp_documents extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9148] Site View Batch Selection
// [9147] Site View Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE_VIEW_LABEL').' -',
'batch[site_view]',
@ -337,33 +337,33 @@ class SermondistributorViewHelp_documents extends JViewLegacy
protected function getTheTypeSelections()
{
// [9011] Get a db connection.
// [9010] Get a db connection.
$db = JFactory::getDbo();
// [9013] Create a new query object.
// [9012] Create a new query object.
$query = $db->getQuery(true);
// [9015] Select the text.
// [9014] Select the text.
$query->select($db->quoteName('type'));
$query->from($db->quoteName('#__sermondistributor_help_document'));
$query->order($db->quoteName('type') . ' ASC');
// [9019] Reset the query using our newly populated query object.
// [9018] Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// [9027] get model
// [9026] get model
$model = $this->getModel();
$results = array_unique($results);
$filter = array();
foreach ($results as $type)
{
// [9038] Translate the type selection
// [9037] Translate the type selection
$text = $model->selectionTranslation($type,'type');
// [9040] Now add the type and its text to the options array
// [9039] Now add the type and its text to the options array
$filter[] = JHtml::_('select.option', $type, JText::_($text));
}
return $filter;
@ -373,33 +373,33 @@ class SermondistributorViewHelp_documents extends JViewLegacy
protected function getTheLocationSelections()
{
// [9011] Get a db connection.
// [9010] Get a db connection.
$db = JFactory::getDbo();
// [9013] Create a new query object.
// [9012] Create a new query object.
$query = $db->getQuery(true);
// [9015] Select the text.
// [9014] Select the text.
$query->select($db->quoteName('location'));
$query->from($db->quoteName('#__sermondistributor_help_document'));
$query->order($db->quoteName('location') . ' ASC');
// [9019] Reset the query using our newly populated query object.
// [9018] Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// [9027] get model
// [9026] get model
$model = $this->getModel();
$results = array_unique($results);
$filter = array();
foreach ($results as $location)
{
// [9038] Translate the location selection
// [9037] Translate the location selection
$text = $model->selectionTranslation($location,'location');
// [9040] Now add the location and its text to the options array
// [9039] Now add the location and its text to the options array
$filter[] = JHtml::_('select.option', $location, JText::_($text));
}
return $filter;
@ -409,18 +409,18 @@ class SermondistributorViewHelp_documents extends JViewLegacy
protected function getTheAdmin_viewSelections()
{
// [9011] Get a db connection.
// [9010] Get a db connection.
$db = JFactory::getDbo();
// [9013] Create a new query object.
// [9012] Create a new query object.
$query = $db->getQuery(true);
// [9015] Select the text.
// [9014] Select the text.
$query->select($db->quoteName('admin_view'));
$query->from($db->quoteName('#__sermondistributor_help_document'));
$query->order($db->quoteName('admin_view') . ' ASC');
// [9019] Reset the query using our newly populated query object.
// [9018] Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
@ -431,7 +431,7 @@ class SermondistributorViewHelp_documents extends JViewLegacy
$filter = array();
foreach ($results as $admin_view)
{
// [9045] Now add the admin_view and its text to the options array
// [9044] Now add the admin_view and its text to the options array
$filter[] = JHtml::_('select.option', $admin_view, $admin_view);
}
return $filter;
@ -441,18 +441,18 @@ class SermondistributorViewHelp_documents extends JViewLegacy
protected function getTheSite_viewSelections()
{
// [9011] Get a db connection.
// [9010] Get a db connection.
$db = JFactory::getDbo();
// [9013] Create a new query object.
// [9012] Create a new query object.
$query = $db->getQuery(true);
// [9015] Select the text.
// [9014] Select the text.
$query->select($db->quoteName('site_view'));
$query->from($db->quoteName('#__sermondistributor_help_document'));
$query->order($db->quoteName('site_view') . ' ASC');
// [9019] Reset the query using our newly populated query object.
// [9018] Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
@ -463,7 +463,7 @@ class SermondistributorViewHelp_documents extends JViewLegacy
$filter = array();
foreach ($results as $site_view)
{
// [9045] Now add the site_view and its text to the options array
// [9044] Now add the site_view and its text to the options array
$filter[] = JHtml::_('select.option', $site_view, $site_view);
}
return $filter;

View File

@ -65,8 +65,8 @@ class SermondistributorViewPreacher extends JViewLegacy
$this->referral = '&ref='.(string)$this->ref;
}
// [6473] Get Linked view data
$this->wcisermons = $this->get('Wcisermons');
// [6472] Get Linked view data
$this->riksermons = $this->get('Riksermons');
// Set the toolbar
$this->addToolBar();
@ -90,27 +90,27 @@ class SermondistributorViewPreacher extends JViewLegacy
$isNew = $this->item->id == 0;
JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_PREACHER_NEW' : 'COM_SERMONDISTRIBUTOR_PREACHER_EDIT'), 'pencil-2 article-add');
// [10263] Built the actions for new and existing records.
// [10262] Built the actions for new and existing records.
if ($this->refid || $this->ref)
{
if ($this->canDo->get('preacher.create') && $isNew)
{
// [10275] We can create the record.
// [10274] We can create the record.
JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE');
}
elseif ($this->canDo->get('preacher.edit'))
{
// [10287] We can save the record.
// [10286] We can save the record.
JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE');
}
if ($isNew)
{
// [10292] Do not creat but cancel.
// [10291] Do not creat but cancel.
JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CANCEL');
}
else
{
// [10297] We can close it.
// [10296] We can close it.
JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CLOSE');
}
}
@ -118,7 +118,7 @@ class SermondistributorViewPreacher extends JViewLegacy
{
if ($isNew)
{
// [10305] For new records, check the create permission.
// [10304] For new records, check the create permission.
if ($this->canDo->get('preacher.create'))
{
JToolBarHelper::apply('preacher.apply', 'JTOOLBAR_APPLY');
@ -131,11 +131,11 @@ class SermondistributorViewPreacher extends JViewLegacy
{
if ($this->canDo->get('preacher.edit'))
{
// [10332] We can save the new record
// [10331] We can save the new record
JToolBarHelper::apply('preacher.apply', 'JTOOLBAR_APPLY');
JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE');
// [10335] We can save this record, but check the create permission to see
// [10336] if we can return to make a new one.
// [10334] We can save this record, but check the create permission to see
// [10335] if we can return to make a new one.
if ($this->canDo->get('preacher.create'))
{
JToolBarHelper::custom('preacher.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
@ -154,7 +154,7 @@ class SermondistributorViewPreacher extends JViewLegacy
}
}
JToolbarHelper::divider();
// [10372] set help url for this view if found
// [10371] set help url for this view if found
$help_url = SermondistributorHelper::getHelpUrl('preacher');
if (SermondistributorHelper::checkString($help_url))
{
@ -192,21 +192,21 @@ class SermondistributorViewPreacher extends JViewLegacy
$document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_PREACHER_NEW' : 'COM_SERMONDISTRIBUTOR_PREACHER_EDIT'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/preacher.css");
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -65,8 +65,8 @@ class SermondistributorViewSeries extends JViewLegacy
$this->referral = '&ref='.(string)$this->ref;
}
// [6473] Get Linked view data
$this->kcesermons = $this->get('Kcesermons');
// [6472] Get Linked view data
$this->hvwsermons = $this->get('Hvwsermons');
// Set the toolbar
$this->addToolBar();
@ -90,27 +90,27 @@ class SermondistributorViewSeries extends JViewLegacy
$isNew = $this->item->id == 0;
JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERIES_NEW' : 'COM_SERMONDISTRIBUTOR_SERIES_EDIT'), 'pencil-2 article-add');
// [10263] Built the actions for new and existing records.
// [10262] Built the actions for new and existing records.
if ($this->refid || $this->ref)
{
if ($this->canDo->get('series.create') && $isNew)
{
// [10275] We can create the record.
// [10274] We can create the record.
JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE');
}
elseif ($this->canDo->get('series.edit'))
{
// [10287] We can save the record.
// [10286] We can save the record.
JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE');
}
if ($isNew)
{
// [10292] Do not creat but cancel.
// [10291] Do not creat but cancel.
JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CANCEL');
}
else
{
// [10297] We can close it.
// [10296] We can close it.
JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CLOSE');
}
}
@ -118,7 +118,7 @@ class SermondistributorViewSeries extends JViewLegacy
{
if ($isNew)
{
// [10305] For new records, check the create permission.
// [10304] For new records, check the create permission.
if ($this->canDo->get('series.create'))
{
JToolBarHelper::apply('series.apply', 'JTOOLBAR_APPLY');
@ -131,11 +131,11 @@ class SermondistributorViewSeries extends JViewLegacy
{
if ($this->canDo->get('series.edit'))
{
// [10332] We can save the new record
// [10331] We can save the new record
JToolBarHelper::apply('series.apply', 'JTOOLBAR_APPLY');
JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE');
// [10335] We can save this record, but check the create permission to see
// [10336] if we can return to make a new one.
// [10334] We can save this record, but check the create permission to see
// [10335] if we can return to make a new one.
if ($this->canDo->get('series.create'))
{
JToolBarHelper::custom('series.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
@ -154,7 +154,7 @@ class SermondistributorViewSeries extends JViewLegacy
}
}
JToolbarHelper::divider();
// [10372] set help url for this view if found
// [10371] set help url for this view if found
$help_url = SermondistributorHelper::getHelpUrl('series');
if (SermondistributorHelper::checkString($help_url))
{
@ -192,21 +192,21 @@ class SermondistributorViewSeries extends JViewLegacy
$document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERIES_NEW' : 'COM_SERMONDISTRIBUTOR_SERIES_EDIT'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/series.css");
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -115,180 +115,180 @@ $componentParams = JComponentHelper::getParams('com_sermondistributor');
<script type="text/javascript">
// #jform_source listeners for source_uZsflMf function
// #jform_source listeners for source_mWnyiWr function
jQuery('#jform_source').on('keyup',function()
{
var source_uZsflMf = jQuery("#jform_source").val();
uZsflMf(source_uZsflMf);
var source_mWnyiWr = jQuery("#jform_source").val();
mWnyiWr(source_mWnyiWr);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var source_uZsflMf = jQuery("#jform_source").val();
uZsflMf(source_uZsflMf);
var source_mWnyiWr = jQuery("#jform_source").val();
mWnyiWr(source_mWnyiWr);
});
// #jform_source listeners for source_BzXllfH function
// #jform_source listeners for source_qGZCbLd function
jQuery('#jform_source').on('keyup',function()
{
var source_BzXllfH = jQuery("#jform_source").val();
var build_BzXllfH = jQuery("#jform_build input[type='radio']:checked").val();
BzXllfH(source_BzXllfH,build_BzXllfH);
var source_qGZCbLd = jQuery("#jform_source").val();
var build_qGZCbLd = jQuery("#jform_build input[type='radio']:checked").val();
qGZCbLd(source_qGZCbLd,build_qGZCbLd);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var source_BzXllfH = jQuery("#jform_source").val();
var build_BzXllfH = jQuery("#jform_build input[type='radio']:checked").val();
BzXllfH(source_BzXllfH,build_BzXllfH);
var source_qGZCbLd = jQuery("#jform_source").val();
var build_qGZCbLd = jQuery("#jform_build input[type='radio']:checked").val();
qGZCbLd(source_qGZCbLd,build_qGZCbLd);
});
// #jform_build listeners for build_BzXllfH function
// #jform_build listeners for build_qGZCbLd function
jQuery('#jform_build').on('keyup',function()
{
var source_BzXllfH = jQuery("#jform_source").val();
var build_BzXllfH = jQuery("#jform_build input[type='radio']:checked").val();
BzXllfH(source_BzXllfH,build_BzXllfH);
var source_qGZCbLd = jQuery("#jform_source").val();
var build_qGZCbLd = jQuery("#jform_build input[type='radio']:checked").val();
qGZCbLd(source_qGZCbLd,build_qGZCbLd);
});
jQuery('#adminForm').on('change', '#jform_build',function (e)
{
e.preventDefault();
var source_BzXllfH = jQuery("#jform_source").val();
var build_BzXllfH = jQuery("#jform_build input[type='radio']:checked").val();
BzXllfH(source_BzXllfH,build_BzXllfH);
var source_qGZCbLd = jQuery("#jform_source").val();
var build_qGZCbLd = jQuery("#jform_build input[type='radio']:checked").val();
qGZCbLd(source_qGZCbLd,build_qGZCbLd);
});
// #jform_source listeners for source_CqfSUiF function
// #jform_source listeners for source_USEyiqH function
jQuery('#jform_source').on('keyup',function()
{
var source_CqfSUiF = jQuery("#jform_source").val();
var build_CqfSUiF = jQuery("#jform_build input[type='radio']:checked").val();
CqfSUiF(source_CqfSUiF,build_CqfSUiF);
var source_USEyiqH = jQuery("#jform_source").val();
var build_USEyiqH = jQuery("#jform_build input[type='radio']:checked").val();
USEyiqH(source_USEyiqH,build_USEyiqH);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var source_CqfSUiF = jQuery("#jform_source").val();
var build_CqfSUiF = jQuery("#jform_build input[type='radio']:checked").val();
CqfSUiF(source_CqfSUiF,build_CqfSUiF);
var source_USEyiqH = jQuery("#jform_source").val();
var build_USEyiqH = jQuery("#jform_build input[type='radio']:checked").val();
USEyiqH(source_USEyiqH,build_USEyiqH);
});
// #jform_build listeners for build_CqfSUiF function
// #jform_build listeners for build_USEyiqH function
jQuery('#jform_build').on('keyup',function()
{
var source_CqfSUiF = jQuery("#jform_source").val();
var build_CqfSUiF = jQuery("#jform_build input[type='radio']:checked").val();
CqfSUiF(source_CqfSUiF,build_CqfSUiF);
var source_USEyiqH = jQuery("#jform_source").val();
var build_USEyiqH = jQuery("#jform_build input[type='radio']:checked").val();
USEyiqH(source_USEyiqH,build_USEyiqH);
});
jQuery('#adminForm').on('change', '#jform_build',function (e)
{
e.preventDefault();
var source_CqfSUiF = jQuery("#jform_source").val();
var build_CqfSUiF = jQuery("#jform_build input[type='radio']:checked").val();
CqfSUiF(source_CqfSUiF,build_CqfSUiF);
var source_USEyiqH = jQuery("#jform_source").val();
var build_USEyiqH = jQuery("#jform_build input[type='radio']:checked").val();
USEyiqH(source_USEyiqH,build_USEyiqH);
});
// #jform_build listeners for build_uqyxvuO function
// #jform_build listeners for build_PuIkmmJ function
jQuery('#jform_build').on('keyup',function()
{
var build_uqyxvuO = jQuery("#jform_build input[type='radio']:checked").val();
var source_uqyxvuO = jQuery("#jform_source").val();
uqyxvuO(build_uqyxvuO,source_uqyxvuO);
var build_PuIkmmJ = jQuery("#jform_build input[type='radio']:checked").val();
var source_PuIkmmJ = jQuery("#jform_source").val();
PuIkmmJ(build_PuIkmmJ,source_PuIkmmJ);
});
jQuery('#adminForm').on('change', '#jform_build',function (e)
{
e.preventDefault();
var build_uqyxvuO = jQuery("#jform_build input[type='radio']:checked").val();
var source_uqyxvuO = jQuery("#jform_source").val();
uqyxvuO(build_uqyxvuO,source_uqyxvuO);
var build_PuIkmmJ = jQuery("#jform_build input[type='radio']:checked").val();
var source_PuIkmmJ = jQuery("#jform_source").val();
PuIkmmJ(build_PuIkmmJ,source_PuIkmmJ);
});
// #jform_source listeners for source_uqyxvuO function
// #jform_source listeners for source_PuIkmmJ function
jQuery('#jform_source').on('keyup',function()
{
var build_uqyxvuO = jQuery("#jform_build input[type='radio']:checked").val();
var source_uqyxvuO = jQuery("#jform_source").val();
uqyxvuO(build_uqyxvuO,source_uqyxvuO);
var build_PuIkmmJ = jQuery("#jform_build input[type='radio']:checked").val();
var source_PuIkmmJ = jQuery("#jform_source").val();
PuIkmmJ(build_PuIkmmJ,source_PuIkmmJ);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var build_uqyxvuO = jQuery("#jform_build input[type='radio']:checked").val();
var source_uqyxvuO = jQuery("#jform_source").val();
uqyxvuO(build_uqyxvuO,source_uqyxvuO);
var build_PuIkmmJ = jQuery("#jform_build input[type='radio']:checked").val();
var source_PuIkmmJ = jQuery("#jform_source").val();
PuIkmmJ(build_PuIkmmJ,source_PuIkmmJ);
});
// #jform_source listeners for source_uqVcAgS function
// #jform_source listeners for source_rZyqFpz function
jQuery('#jform_source').on('keyup',function()
{
var source_uqVcAgS = jQuery("#jform_source").val();
uqVcAgS(source_uqVcAgS);
var source_rZyqFpz = jQuery("#jform_source").val();
rZyqFpz(source_rZyqFpz);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var source_uqVcAgS = jQuery("#jform_source").val();
uqVcAgS(source_uqVcAgS);
var source_rZyqFpz = jQuery("#jform_source").val();
rZyqFpz(source_rZyqFpz);
});
// #jform_source listeners for source_HCeOmWW function
// #jform_source listeners for source_pwLZOSx function
jQuery('#jform_source').on('keyup',function()
{
var source_HCeOmWW = jQuery("#jform_source").val();
HCeOmWW(source_HCeOmWW);
var source_pwLZOSx = jQuery("#jform_source").val();
pwLZOSx(source_pwLZOSx);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var source_HCeOmWW = jQuery("#jform_source").val();
HCeOmWW(source_HCeOmWW);
var source_pwLZOSx = jQuery("#jform_source").val();
pwLZOSx(source_pwLZOSx);
});
// #jform_link_type listeners for link_type_MMtrqVI function
// #jform_link_type listeners for link_type_hfgQmzf function
jQuery('#jform_link_type').on('keyup',function()
{
var link_type_MMtrqVI = jQuery("#jform_link_type input[type='radio']:checked").val();
MMtrqVI(link_type_MMtrqVI);
var link_type_hfgQmzf = jQuery("#jform_link_type input[type='radio']:checked").val();
hfgQmzf(link_type_hfgQmzf);
});
jQuery('#adminForm').on('change', '#jform_link_type',function (e)
{
e.preventDefault();
var link_type_MMtrqVI = jQuery("#jform_link_type input[type='radio']:checked").val();
MMtrqVI(link_type_MMtrqVI);
var link_type_hfgQmzf = jQuery("#jform_link_type input[type='radio']:checked").val();
hfgQmzf(link_type_hfgQmzf);
});
// #jform_link_type listeners for link_type_cZNPuaM function
// #jform_link_type listeners for link_type_bdfNqfg function
jQuery('#jform_link_type').on('keyup',function()
{
var link_type_cZNPuaM = jQuery("#jform_link_type input[type='radio']:checked").val();
cZNPuaM(link_type_cZNPuaM);
var link_type_bdfNqfg = jQuery("#jform_link_type input[type='radio']:checked").val();
bdfNqfg(link_type_bdfNqfg);
});
jQuery('#adminForm').on('change', '#jform_link_type',function (e)
{
e.preventDefault();
var link_type_cZNPuaM = jQuery("#jform_link_type input[type='radio']:checked").val();
cZNPuaM(link_type_cZNPuaM);
var link_type_bdfNqfg = jQuery("#jform_link_type input[type='radio']:checked").val();
bdfNqfg(link_type_bdfNqfg);
});

View File

@ -65,8 +65,8 @@ class SermondistributorViewSermon extends JViewLegacy
$this->referral = '&ref='.(string)$this->ref;
}
// [6473] Get Linked view data
$this->xtqstastics = $this->get('Xtqstastics');
// [6472] Get Linked view data
$this->njdstastics = $this->get('Njdstastics');
// Set the toolbar
$this->addToolBar();
@ -90,27 +90,27 @@ class SermondistributorViewSermon extends JViewLegacy
$isNew = $this->item->id == 0;
JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERMON_NEW' : 'COM_SERMONDISTRIBUTOR_SERMON_EDIT'), 'pencil-2 article-add');
// [10263] Built the actions for new and existing records.
// [10262] Built the actions for new and existing records.
if ($this->refid || $this->ref)
{
if ($this->canDo->get('sermon.create') && $isNew)
{
// [10275] We can create the record.
// [10274] We can create the record.
JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE');
}
elseif ($this->canDo->get('sermon.edit'))
{
// [10287] We can save the record.
// [10286] We can save the record.
JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE');
}
if ($isNew)
{
// [10292] Do not creat but cancel.
// [10291] Do not creat but cancel.
JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CANCEL');
}
else
{
// [10297] We can close it.
// [10296] We can close it.
JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CLOSE');
}
}
@ -118,7 +118,7 @@ class SermondistributorViewSermon extends JViewLegacy
{
if ($isNew)
{
// [10305] For new records, check the create permission.
// [10304] For new records, check the create permission.
if ($this->canDo->get('sermon.create'))
{
JToolBarHelper::apply('sermon.apply', 'JTOOLBAR_APPLY');
@ -131,11 +131,11 @@ class SermondistributorViewSermon extends JViewLegacy
{
if ($this->canDo->get('sermon.edit'))
{
// [10332] We can save the new record
// [10331] We can save the new record
JToolBarHelper::apply('sermon.apply', 'JTOOLBAR_APPLY');
JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE');
// [10335] We can save this record, but check the create permission to see
// [10336] if we can return to make a new one.
// [10334] We can save this record, but check the create permission to see
// [10335] if we can return to make a new one.
if ($this->canDo->get('sermon.create'))
{
JToolBarHelper::custom('sermon.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
@ -154,7 +154,7 @@ class SermondistributorViewSermon extends JViewLegacy
}
}
JToolbarHelper::divider();
// [10372] set help url for this view if found
// [10371] set help url for this view if found
$help_url = SermondistributorHelper::getHelpUrl('sermon');
if (SermondistributorHelper::checkString($help_url))
{
@ -192,21 +192,21 @@ class SermondistributorViewSermon extends JViewLegacy
$document->setTitle(JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_SERMON_NEW' : 'COM_SERMONDISTRIBUTOR_SERMON_EDIT'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_sermondistributor/assets/css/sermon.css");
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -197,7 +197,7 @@ class SermondistributorViewSermons extends JViewLegacy
);
}
// [9186] Category Filter.
// [9185] Category Filter.
JHtmlSidebar::addFilter(
JText::_('JOPTION_SELECT_CATEGORY'),
'filter_category_id',
@ -206,7 +206,7 @@ class SermondistributorViewSermons extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9196] Category Batch selection.
// [9195] Category Batch selection.
JHtmlBatch_::addListSelection(
JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_CATEGORY'),
'batch[category]',
@ -214,11 +214,11 @@ class SermondistributorViewSermons extends JViewLegacy
);
}
// [9101] Set Preacher Name Selection
// [9100] Set Preacher Name Selection
$this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->getOptions();
if ($this->preacherNameOptions)
{
// [9105] Preacher Name Filter
// [9104] Preacher Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL').' -',
'filter_preacher',
@ -227,7 +227,7 @@ class SermondistributorViewSermons extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9114] Preacher Name Batch Selection
// [9113] Preacher Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL').' -',
'batch[preacher]',
@ -236,11 +236,11 @@ class SermondistributorViewSermons extends JViewLegacy
}
}
// [9101] Set Series Name Selection
// [9100] Set Series Name Selection
$this->seriesNameOptions = JFormHelper::loadFieldType('Series')->getOptions();
if ($this->seriesNameOptions)
{
// [9105] Series Name Filter
// [9104] Series Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL').' -',
'filter_series',
@ -249,7 +249,7 @@ class SermondistributorViewSermons extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9114] Series Name Batch Selection
// [9113] Series Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL').' -',
'batch[series]',
@ -258,11 +258,11 @@ class SermondistributorViewSermons extends JViewLegacy
}
}
// [9135] Set Link Type Selection
// [9134] Set Link Type Selection
$this->link_typeOptions = $this->getTheLink_typeSelections();
if ($this->link_typeOptions)
{
// [9139] Link Type Filter
// [9138] Link Type Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL').' -',
'filter_link_type',
@ -271,7 +271,7 @@ class SermondistributorViewSermons extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9148] Link Type Batch Selection
// [9147] Link Type Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_LINK_TYPE_LABEL').' -',
'batch[link_type]',
@ -280,11 +280,11 @@ class SermondistributorViewSermons extends JViewLegacy
}
}
// [9135] Set Source Selection
// [9134] Set Source Selection
$this->sourceOptions = $this->getTheSourceSelections();
if ($this->sourceOptions)
{
// [9139] Source Filter
// [9138] Source Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL').' -',
'filter_source',
@ -293,7 +293,7 @@ class SermondistributorViewSermons extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9148] Source Batch Selection
// [9147] Source Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SOURCE_LABEL').' -',
'batch[source]',
@ -356,33 +356,33 @@ class SermondistributorViewSermons extends JViewLegacy
protected function getTheLink_typeSelections()
{
// [9011] Get a db connection.
// [9010] Get a db connection.
$db = JFactory::getDbo();
// [9013] Create a new query object.
// [9012] Create a new query object.
$query = $db->getQuery(true);
// [9015] Select the text.
// [9014] Select the text.
$query->select($db->quoteName('link_type'));
$query->from($db->quoteName('#__sermondistributor_sermon'));
$query->order($db->quoteName('link_type') . ' ASC');
// [9019] Reset the query using our newly populated query object.
// [9018] Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// [9027] get model
// [9026] get model
$model = $this->getModel();
$results = array_unique($results);
$filter = array();
foreach ($results as $link_type)
{
// [9038] Translate the link_type selection
// [9037] Translate the link_type selection
$text = $model->selectionTranslation($link_type,'link_type');
// [9040] Now add the link_type and its text to the options array
// [9039] Now add the link_type and its text to the options array
$filter[] = JHtml::_('select.option', $link_type, JText::_($text));
}
return $filter;
@ -392,33 +392,33 @@ class SermondistributorViewSermons extends JViewLegacy
protected function getTheSourceSelections()
{
// [9011] Get a db connection.
// [9010] Get a db connection.
$db = JFactory::getDbo();
// [9013] Create a new query object.
// [9012] Create a new query object.
$query = $db->getQuery(true);
// [9015] Select the text.
// [9014] Select the text.
$query->select($db->quoteName('source'));
$query->from($db->quoteName('#__sermondistributor_sermon'));
$query->order($db->quoteName('source') . ' ASC');
// [9019] Reset the query using our newly populated query object.
// [9018] Reset the query using our newly populated query object.
$db->setQuery($query);
$results = $db->loadColumn();
if ($results)
{
// [9027] get model
// [9026] get model
$model = $this->getModel();
$results = array_unique($results);
$filter = array();
foreach ($results as $source)
{
// [9038] Translate the source selection
// [9037] Translate the source selection
$text = $model->selectionTranslation($source,'source');
// [9040] Now add the source and its text to the options array
// [9039] Now add the source and its text to the options array
$filter[] = JHtml::_('select.option', $source, JText::_($text));
}
return $filter;

View File

@ -87,27 +87,27 @@ class SermondistributorViewStatistic extends JViewLegacy
$isNew = $this->item->id == 0;
JToolbarHelper::title( JText::_($isNew ? 'COM_SERMONDISTRIBUTOR_STATISTIC_NEW' : 'COM_SERMONDISTRIBUTOR_STATISTIC_EDIT'), 'pencil-2 article-add');
// [10263] Built the actions for new and existing records.
// [10262] Built the actions for new and existing records.
if ($this->refid || $this->ref)
{
if ($this->canDo->get('statistic.create') && $isNew)
{
// [10275] We can create the record.
// [10274] We can create the record.
JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE');
}
elseif ($this->canDo->get('statistic.edit'))
{
// [10287] We can save the record.
// [10286] We can save the record.
JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE');
}
if ($isNew)
{
// [10292] Do not creat but cancel.
// [10291] Do not creat but cancel.
JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CANCEL');
}
else
{
// [10297] We can close it.
// [10296] We can close it.
JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CLOSE');
}
}
@ -115,7 +115,7 @@ class SermondistributorViewStatistic extends JViewLegacy
{
if ($isNew)
{
// [10305] For new records, check the create permission.
// [10304] For new records, check the create permission.
if ($this->canDo->get('statistic.create'))
{
JToolBarHelper::apply('statistic.apply', 'JTOOLBAR_APPLY');
@ -128,11 +128,11 @@ class SermondistributorViewStatistic extends JViewLegacy
{
if ($this->canDo->get('statistic.edit'))
{
// [10332] We can save the new record
// [10331] We can save the new record
JToolBarHelper::apply('statistic.apply', 'JTOOLBAR_APPLY');
JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE');
// [10335] We can save this record, but check the create permission to see
// [10336] if we can return to make a new one.
// [10334] We can save this record, but check the create permission to see
// [10335] if we can return to make a new one.
if ($this->canDo->get('statistic.create'))
{
JToolBarHelper::custom('statistic.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
@ -151,7 +151,7 @@ class SermondistributorViewStatistic extends JViewLegacy
}
}
JToolbarHelper::divider();
// [10372] set help url for this view if found
// [10371] set help url for this view if found
$help_url = SermondistributorHelper::getHelpUrl('statistic');
if (SermondistributorHelper::checkString($help_url))
{

View File

@ -197,11 +197,11 @@ class SermondistributorViewStatistics extends JViewLegacy
);
}
// [9101] Set Sermon Name Selection
// [9100] Set Sermon Name Selection
$this->sermonNameOptions = JFormHelper::loadFieldType('Sermon')->getOptions();
if ($this->sermonNameOptions)
{
// [9105] Sermon Name Filter
// [9104] Sermon Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL').' -',
'filter_sermon',
@ -210,7 +210,7 @@ class SermondistributorViewStatistics extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9114] Sermon Name Batch Selection
// [9113] Sermon Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL').' -',
'batch[sermon]',
@ -219,11 +219,11 @@ class SermondistributorViewStatistics extends JViewLegacy
}
}
// [9101] Set Preacher Name Selection
// [9100] Set Preacher Name Selection
$this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->getOptions();
if ($this->preacherNameOptions)
{
// [9105] Preacher Name Filter
// [9104] Preacher Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL').' -',
'filter_preacher',
@ -232,7 +232,7 @@ class SermondistributorViewStatistics extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9114] Preacher Name Batch Selection
// [9113] Preacher Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL').' -',
'batch[preacher]',
@ -241,11 +241,11 @@ class SermondistributorViewStatistics extends JViewLegacy
}
}
// [9101] Set Series Name Selection
// [9100] Set Series Name Selection
$this->seriesNameOptions = JFormHelper::loadFieldType('Series')->getOptions();
if ($this->seriesNameOptions)
{
// [9105] Series Name Filter
// [9104] Series Name Filter
JHtmlSidebar::addFilter(
'- Select '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL').' -',
'filter_series',
@ -254,7 +254,7 @@ class SermondistributorViewStatistics extends JViewLegacy
if ($this->canBatch && $this->canCreate && $this->canEdit)
{
// [9114] Series Name Batch Selection
// [9113] Series Name Batch Selection
JHtmlBatch_::addListSelection(
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL').' -',
'batch[series]',

View File

@ -742,8 +742,7 @@ class com_sermondistributorInstallerScript
echo '<a target="_blank" href="https://www.vdm.io/" title="Sermon Distributor">
<img src="components/com_sermondistributor/assets/images/component-300.jpg"/>
</a>
<h3>Upgrade to Version (1.2.9) Was Successful!</h3>
<p>';
<h3>Upgrade to Version (1.2.9) Was Successful!</h3>';
}
}
}

View File

@ -39,18 +39,18 @@ abstract class SermondistributorHelperRoute
{
if ($id > 0)
{
// [4572] Initialize the needel array.
// [4571] Initialize the needel array.
$needles = array(
'sermon' => array((int) $id)
);
// [4576] Create the link
// [4575] Create the link
$link = 'index.php?option=com_sermondistributor&view=sermon&id='. $id;
}
else
{
// [4581] Initialize the needel array.
// [4580] Initialize the needel array.
$needles = array();
// [4583]Create the link but don't add the id.
// [4582]Create the link but don't add the id.
$link = 'index.php?option=com_sermondistributor&view=sermon';
}
if ($catid > 1)
@ -80,18 +80,18 @@ abstract class SermondistributorHelperRoute
{
if ($id > 0)
{
// [4572] Initialize the needel array.
// [4571] Initialize the needel array.
$needles = array(
'preachers' => array((int) $id)
);
// [4576] Create the link
// [4575] Create the link
$link = 'index.php?option=com_sermondistributor&view=preachers&id='. $id;
}
else
{
// [4581] Initialize the needel array.
// [4580] Initialize the needel array.
$needles = array();
// [4583]Create the link but don't add the id.
// [4582]Create the link but don't add the id.
$link = 'index.php?option=com_sermondistributor&view=preachers';
}
if ($catid > 1)
@ -121,18 +121,18 @@ abstract class SermondistributorHelperRoute
{
if ($id > 0)
{
// [4572] Initialize the needel array.
// [4571] Initialize the needel array.
$needles = array(
'preacher' => array((int) $id)
);
// [4576] Create the link
// [4575] Create the link
$link = 'index.php?option=com_sermondistributor&view=preacher&id='. $id;
}
else
{
// [4581] Initialize the needel array.
// [4580] Initialize the needel array.
$needles = array();
// [4583]Create the link but don't add the id.
// [4582]Create the link but don't add the id.
$link = 'index.php?option=com_sermondistributor&view=preacher';
}
if ($catid > 1)
@ -162,18 +162,18 @@ abstract class SermondistributorHelperRoute
{
if ($id > 0)
{
// [4572] Initialize the needel array.
// [4571] Initialize the needel array.
$needles = array(
'categories' => array((int) $id)
);
// [4576] Create the link
// [4575] Create the link
$link = 'index.php?option=com_sermondistributor&view=categories&id='. $id;
}
else
{
// [4581] Initialize the needel array.
// [4580] Initialize the needel array.
$needles = array();
// [4583]Create the link but don't add the id.
// [4582]Create the link but don't add the id.
$link = 'index.php?option=com_sermondistributor&view=categories';
}
@ -192,18 +192,18 @@ abstract class SermondistributorHelperRoute
{
if ($id > 0)
{
// [4572] Initialize the needel array.
// [4571] Initialize the needel array.
$needles = array(
'category' => array((int) $id)
);
// [4576] Create the link
// [4575] Create the link
$link = 'index.php?option=com_sermondistributor&view=category&id='. $id;
}
else
{
// [4581] Initialize the needel array.
// [4580] Initialize the needel array.
$needles = array();
// [4583]Create the link but don't add the id.
// [4582]Create the link but don't add the id.
$link = 'index.php?option=com_sermondistributor&view=category';
}
@ -222,18 +222,18 @@ abstract class SermondistributorHelperRoute
{
if ($id > 0)
{
// [4572] Initialize the needel array.
// [4571] Initialize the needel array.
$needles = array(
'serieslist' => array((int) $id)
);
// [4576] Create the link
// [4575] Create the link
$link = 'index.php?option=com_sermondistributor&view=serieslist&id='. $id;
}
else
{
// [4581] Initialize the needel array.
// [4580] Initialize the needel array.
$needles = array();
// [4583]Create the link but don't add the id.
// [4582]Create the link but don't add the id.
$link = 'index.php?option=com_sermondistributor&view=serieslist';
}
if ($catid > 1)
@ -263,18 +263,18 @@ abstract class SermondistributorHelperRoute
{
if ($id > 0)
{
// [4572] Initialize the needel array.
// [4571] Initialize the needel array.
$needles = array(
'series' => array((int) $id)
);
// [4576] Create the link
// [4575] Create the link
$link = 'index.php?option=com_sermondistributor&view=series&id='. $id;
}
else
{
// [4581] Initialize the needel array.
// [4580] Initialize the needel array.
$needles = array();
// [4583]Create the link but don't add the id.
// [4582]Create the link but don't add the id.
$link = 'index.php?option=com_sermondistributor&view=series';
}
if ($catid > 1)

View File

@ -38,7 +38,7 @@ class SermondistributorModelAjax extends JModelList
}
// [8910] Used in sermon
// [8909] Used in sermon
/**
* Check and Set Dropbox local listing
**/

View File

@ -8,7 +8,7 @@
<!-- [1732] Adding page parameters -->
<fields name="params">
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
<!-- [11274] Categories_display Field. Type: Radio. (joomla) -->
<!-- [11273] Categories_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="categories_display"
@ -16,7 +16,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -26,7 +26,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_LIST</option>
</field>
<!-- [11274] Categories_list_style Field. Type: List. (joomla) -->
<!-- [11273] Categories_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="categories_list_style"
@ -36,7 +36,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -48,7 +48,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Categories_table_color Field. Type: List. (joomla) -->
<!-- [11273] Categories_table_color Field. Type: List. (joomla) -->
<field
type="list"
name="categories_table_color"
@ -58,7 +58,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -80,7 +80,7 @@
<option value="8">
COM_SERMONDISTRIBUTOR_CONFIG_NONE</option>
</field>
<!-- [11274] Categories_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Categories_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="categories_icon"
@ -88,7 +88,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -96,7 +96,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Categories_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Categories_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="categories_desc"
@ -104,7 +104,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -112,7 +112,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Categories_sermon_count Field. Type: Radio. (joomla) -->
<!-- [11273] Categories_sermon_count Field. Type: Radio. (joomla) -->
<field
type="radio"
name="categories_sermon_count"
@ -120,7 +120,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_SERMON_COUNT_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -128,7 +128,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Categories_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Categories_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="categories_hits"
@ -136,7 +136,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORIES_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">

View File

@ -146,21 +146,21 @@ class SermondistributorViewCategories extends JViewLegacy
}
}
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -10,7 +10,7 @@
<fieldset name="request"
addfieldpath="/administrator/components/com_sermondistributor/models/fields">
<!-- [11360] Category_request_id Field. Type: Category. (joomla) -->
<!-- [11359] Category_request_id Field. Type: Category. (joomla) -->
<field
type="category"
name="id"
@ -25,7 +25,7 @@
<!-- [1732] Adding page parameters -->
<fields name="params">
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
<!-- [11274] Category_display Field. Type: Radio. (joomla) -->
<!-- [11273] Category_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_display"
@ -33,7 +33,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -43,7 +43,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SMALL</option>
</field>
<!-- [11274] Category_box_contrast Field. Type: Radio. (joomla) -->
<!-- [11273] Category_box_contrast Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_box_contrast"
@ -51,7 +51,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_BOX_CONTRAST_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -59,7 +59,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_list_style Field. Type: List. (joomla) -->
<!-- [11273] Category_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="category_list_style"
@ -69,7 +69,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -81,7 +81,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Category_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Category_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_icon"
@ -89,7 +89,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -97,7 +97,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Category_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_desc"
@ -105,7 +105,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -113,7 +113,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermon_count Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermon_count Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermon_count"
@ -121,7 +121,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMON_COUNT_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -129,7 +129,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Category_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_hits"
@ -137,7 +137,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -145,9 +145,9 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11374] Spacer_hr_g Field. Type: Spacer. A None Database Field. (joomla) -->
<!-- [11373] Spacer_hr_g Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_g" hr="true" class="spacer_hr_g" />
<!-- [11274] Category_sermons_display Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_display"
@ -155,7 +155,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -165,7 +165,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_LIST</option>
</field>
<!-- [11274] Category_sermons_list_style Field. Type: List. (joomla) -->
<!-- [11273] Category_sermons_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="category_sermons_list_style"
@ -175,7 +175,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -187,7 +187,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Category_sermons_table_color Field. Type: List. (joomla) -->
<!-- [11273] Category_sermons_table_color Field. Type: List. (joomla) -->
<field
type="list"
name="category_sermons_table_color"
@ -197,7 +197,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -219,7 +219,7 @@
<option value="8">
COM_SERMONDISTRIBUTOR_CONFIG_NONE</option>
</field>
<!-- [11274] Category_sermons_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_icon"
@ -227,7 +227,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -235,7 +235,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermons_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_desc"
@ -243,7 +243,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -251,7 +251,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermons_preacher Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_preacher Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_preacher"
@ -259,7 +259,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_PREACHER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -267,7 +267,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermons_series Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_series Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_series"
@ -275,7 +275,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_SERIES_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -283,7 +283,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermons_download_counter Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_download_counter Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_download_counter"
@ -291,7 +291,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -299,7 +299,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermons_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_hits"
@ -307,7 +307,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -315,7 +315,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermons_downloads Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_downloads Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_downloads"
@ -323,7 +323,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_DOWNLOADS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -331,7 +331,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Category_sermons_open Field. Type: Radio. (joomla) -->
<!-- [11273] Category_sermons_open Field. Type: Radio. (joomla) -->
<field
type="radio"
name="category_sermons_open"
@ -339,7 +339,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_CATEGORY_SERMONS_OPEN_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">

View File

@ -208,21 +208,21 @@ class SermondistributorViewCategory extends JViewLegacy
}
}
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -10,7 +10,7 @@
<fieldset name="request"
addfieldpath="/administrator/components/com_sermondistributor/models/fields">
<!-- [11481] Preacher_request_id Field. Type: Preachers. (custom) -->
<!-- [11480] Preacher_request_id Field. Type: Preachers. (custom) -->
<field
type="preachers"
name="id"
@ -27,7 +27,7 @@
<!-- [1732] Adding page parameters -->
<fields name="params">
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
<!-- [11274] Preacher_display Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_display"
@ -35,7 +35,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -45,7 +45,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SMALL</option>
</field>
<!-- [11274] Preacher_box_contrast Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_box_contrast Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_box_contrast"
@ -53,7 +53,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_BOX_CONTRAST_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -61,7 +61,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_list_style Field. Type: List. (joomla) -->
<!-- [11273] Preacher_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="preacher_list_style"
@ -71,7 +71,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -83,7 +83,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Preacher_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_icon"
@ -91,7 +91,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -99,7 +99,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_desc"
@ -107,7 +107,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -115,7 +115,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermon_count Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermon_count Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermon_count"
@ -123,7 +123,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMON_COUNT_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -131,7 +131,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_hits"
@ -139,7 +139,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -147,7 +147,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_email Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_email Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_email"
@ -155,7 +155,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_EMAIL_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -163,7 +163,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_website Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_website Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_website"
@ -171,7 +171,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_WEBSITE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -179,9 +179,9 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11374] Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla) -->
<!-- [11373] Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_f" hr="true" class="spacer_hr_f" />
<!-- [11274] Preacher_sermons_display Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_display"
@ -189,7 +189,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -199,7 +199,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_LIST</option>
</field>
<!-- [11274] Preacher_sermons_list_style Field. Type: List. (joomla) -->
<!-- [11273] Preacher_sermons_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="preacher_sermons_list_style"
@ -209,7 +209,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -221,7 +221,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Preacher_sermons_table_color Field. Type: List. (joomla) -->
<!-- [11273] Preacher_sermons_table_color Field. Type: List. (joomla) -->
<field
type="list"
name="preacher_sermons_table_color"
@ -231,7 +231,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -253,7 +253,7 @@
<option value="8">
COM_SERMONDISTRIBUTOR_CONFIG_NONE</option>
</field>
<!-- [11274] Preacher_sermons_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_icon"
@ -261,7 +261,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -269,7 +269,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermons_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_desc"
@ -277,7 +277,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -285,7 +285,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermons_series Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_series Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_series"
@ -293,7 +293,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_SERIES_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -301,7 +301,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermons_category Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_category Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_category"
@ -309,7 +309,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_CATEGORY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -317,7 +317,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermons_download_counter Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_download_counter Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_download_counter"
@ -325,7 +325,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -333,7 +333,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermons_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_hits"
@ -341,7 +341,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -349,7 +349,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermons_downloads Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_downloads Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_downloads"
@ -357,7 +357,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_DOWNLOADS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -365,7 +365,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preacher_sermons_open Field. Type: Radio. (joomla) -->
<!-- [11273] Preacher_sermons_open Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preacher_sermons_open"
@ -373,7 +373,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHER_SERMONS_OPEN_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">

View File

@ -203,21 +203,21 @@ class SermondistributorViewPreacher extends JViewLegacy
}
}
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -8,7 +8,7 @@
<!-- [1732] Adding page parameters -->
<fields name="params">
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
<!-- [11274] Preachers_display Field. Type: Radio. (joomla) -->
<!-- [11273] Preachers_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preachers_display"
@ -16,7 +16,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -26,7 +26,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_LIST</option>
</field>
<!-- [11274] Preachers_list_style Field. Type: List. (joomla) -->
<!-- [11273] Preachers_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="preachers_list_style"
@ -36,7 +36,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -48,7 +48,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Preachers_table_color Field. Type: List. (joomla) -->
<!-- [11273] Preachers_table_color Field. Type: List. (joomla) -->
<field
type="list"
name="preachers_table_color"
@ -58,7 +58,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -80,7 +80,7 @@
<option value="8">
COM_SERMONDISTRIBUTOR_CONFIG_NONE</option>
</field>
<!-- [11274] Preachers_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Preachers_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preachers_icon"
@ -88,7 +88,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -96,7 +96,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preachers_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Preachers_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preachers_desc"
@ -104,7 +104,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -112,7 +112,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preachers_sermon_count Field. Type: Radio. (joomla) -->
<!-- [11273] Preachers_sermon_count Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preachers_sermon_count"
@ -120,7 +120,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_SERMON_COUNT_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -128,7 +128,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preachers_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Preachers_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preachers_hits"
@ -136,7 +136,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -144,7 +144,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preachers_website Field. Type: Radio. (joomla) -->
<!-- [11273] Preachers_website Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preachers_website"
@ -152,7 +152,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_WEBSITE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -160,7 +160,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Preachers_email Field. Type: Radio. (joomla) -->
<!-- [11273] Preachers_email Field. Type: Radio. (joomla) -->
<field
type="radio"
name="preachers_email"
@ -168,7 +168,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_PREACHERS_EMAIL_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">

View File

@ -161,21 +161,21 @@ class SermondistributorViewPreachers extends JViewLegacy
}
}
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -10,7 +10,7 @@
<fieldset name="request"
addfieldpath="/administrator/components/com_sermondistributor/models/fields">
<!-- [11481] Series_request_id Field. Type: Series. (custom) -->
<!-- [11480] Series_request_id Field. Type: Series. (custom) -->
<field
type="series"
name="id"
@ -26,7 +26,7 @@
<!-- [1732] Adding page parameters -->
<fields name="params">
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
<!-- [11274] Series_display Field. Type: Radio. (joomla) -->
<!-- [11273] Series_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_display"
@ -34,7 +34,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -44,7 +44,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SMALL</option>
</field>
<!-- [11274] Series_box_contrast Field. Type: Radio. (joomla) -->
<!-- [11273] Series_box_contrast Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_box_contrast"
@ -52,7 +52,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_BOX_CONTRAST_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -60,7 +60,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_list_style Field. Type: List. (joomla) -->
<!-- [11273] Series_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="series_list_style"
@ -70,7 +70,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -82,7 +82,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Series_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Series_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_icon"
@ -90,7 +90,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -98,7 +98,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Series_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_desc"
@ -106,7 +106,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -114,7 +114,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermon_count Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermon_count Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermon_count"
@ -122,7 +122,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMON_COUNT_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -130,7 +130,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Series_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_hits"
@ -138,7 +138,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -146,9 +146,9 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11374] Spacer_hr_h Field. Type: Spacer. A None Database Field. (joomla) -->
<!-- [11373] Spacer_hr_h Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_h" hr="true" class="spacer_hr_h" />
<!-- [11274] Series_sermons_display Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_display"
@ -156,7 +156,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -166,7 +166,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_LIST</option>
</field>
<!-- [11274] Series_sermons_list_style Field. Type: List. (joomla) -->
<!-- [11273] Series_sermons_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="series_sermons_list_style"
@ -176,7 +176,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -188,7 +188,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] Series_sermons_table_color Field. Type: List. (joomla) -->
<!-- [11273] Series_sermons_table_color Field. Type: List. (joomla) -->
<field
type="list"
name="series_sermons_table_color"
@ -198,7 +198,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -220,7 +220,7 @@
<option value="8">
COM_SERMONDISTRIBUTOR_CONFIG_NONE</option>
</field>
<!-- [11274] Series_sermons_icon Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_icon"
@ -228,7 +228,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -236,7 +236,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermons_desc Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_desc"
@ -244,7 +244,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -252,7 +252,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermons_preacher Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_preacher Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_preacher"
@ -260,7 +260,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_PREACHER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -268,7 +268,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermons_category Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_category Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_category"
@ -276,7 +276,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_CATEGORY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -284,7 +284,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermons_download_counter Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_download_counter Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_download_counter"
@ -292,7 +292,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOAD_COUNTER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -300,7 +300,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermons_hits Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_hits"
@ -308,7 +308,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -316,7 +316,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermons_downloads Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_downloads Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_downloads"
@ -324,7 +324,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_DOWNLOADS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -332,7 +332,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] Series_sermons_open Field. Type: Radio. (joomla) -->
<!-- [11273] Series_sermons_open Field. Type: Radio. (joomla) -->
<field
type="radio"
name="series_sermons_open"
@ -340,7 +340,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_SERIES_SERMONS_OPEN_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">

View File

@ -202,21 +202,21 @@ class SermondistributorViewSeries extends JViewLegacy
}
}
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');

View File

@ -8,7 +8,7 @@
<!-- [1732] Adding page parameters -->
<fields name="params">
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
<!-- [11274] List_series_display Field. Type: Radio. (joomla) -->
<!-- [11273] List_series_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="list_series_display"
@ -16,7 +16,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DISPLAY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -26,7 +26,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_LIST</option>
</field>
<!-- [11274] List_series_list_style Field. Type: List. (joomla) -->
<!-- [11273] List_series_list_style Field. Type: List. (joomla) -->
<field
type="list"
name="list_series_list_style"
@ -36,7 +36,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -48,7 +48,7 @@
<option value="3">
COM_SERMONDISTRIBUTOR_CONFIG_SPACED</option>
</field>
<!-- [11274] List_series_table_color Field. Type: List. (joomla) -->
<!-- [11273] List_series_table_color Field. Type: List. (joomla) -->
<field
type="list"
name="list_series_table_color"
@ -58,7 +58,7 @@
multiple="false"
filter="string"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="0">
@ -80,7 +80,7 @@
<option value="8">
COM_SERMONDISTRIBUTOR_CONFIG_NONE</option>
</field>
<!-- [11274] List_series_icon Field. Type: Radio. (joomla) -->
<!-- [11273] List_series_icon Field. Type: Radio. (joomla) -->
<field
type="radio"
name="list_series_icon"
@ -88,7 +88,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_ICON_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -96,7 +96,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] List_series_desc Field. Type: Radio. (joomla) -->
<!-- [11273] List_series_desc Field. Type: Radio. (joomla) -->
<field
type="radio"
name="list_series_desc"
@ -104,7 +104,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_DESC_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -112,7 +112,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] List_series_sermon_count Field. Type: Radio. (joomla) -->
<!-- [11273] List_series_sermon_count Field. Type: Radio. (joomla) -->
<field
type="radio"
name="list_series_sermon_count"
@ -120,7 +120,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_SERMON_COUNT_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">
@ -128,7 +128,7 @@
<option value="0">
COM_SERMONDISTRIBUTOR_CONFIG_NO</option>
</field>
<!-- [11274] List_series_hits Field. Type: Radio. (joomla) -->
<!-- [11273] List_series_hits Field. Type: Radio. (joomla) -->
<field
type="radio"
name="list_series_hits"
@ -136,7 +136,7 @@
description="COM_SERMONDISTRIBUTOR_CONFIG_LIST_SERIES_HITS_DESCRIPTION"
class="btn-group btn-group-yesno"
default="">
<!-- [11346] [1755] Global & Option Set. -->
<!-- [11345] [1755] Global & Option Set. -->
<option value="">
JGLOBAL_USE_GLOBAL</option>
<option value="1">

View File

@ -161,21 +161,21 @@ class SermondistributorViewSerieslist extends JViewLegacy
}
}
// [6508] Add the CSS for Footable.
// [6507] Add the CSS for Footable.
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
// [6510] Use the Metro Style
// [6509] Use the Metro Style
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
}
// [6515] Use the Legacy Style.
// [6514] Use the Legacy Style.
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
{
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
}
// [6520] Add the JavaScript for Footable
// [6519] Add the JavaScript for Footable
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.sort.js');
$this->document->addScript(JURI::root() .'media/com_sermondistributor/footable/js/footable.filter.js');