All changes are only random var changes (due to automation)
This commit is contained in:
parent
8ca3c8830d
commit
a41ab73d3f
468
admin/config.xml
468
admin/config.xml
File diff suppressed because it is too large
Load Diff
|
@ -55,13 +55,13 @@ class SermondistributorControllerHelp_document extends JControllerForm
|
|||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9312] Access check.
|
||||
// [9319] Access check.
|
||||
$access = JFactory::getUser()->authorise('help_document.access', 'com_sermondistributor');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9323] In the absense of better information, revert to the component permissions.
|
||||
// [9330] 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')
|
||||
{
|
||||
// [9466] get user object.
|
||||
// [9473] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9468] get record id.
|
||||
// [9475] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9475] Access check.
|
||||
// [9482] 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)
|
||||
{
|
||||
// [9484] The record has been set. Check the record permissions.
|
||||
// [9491] 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))
|
||||
{
|
||||
// [9506] Now test the owner is the user.
|
||||
// [9513] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9510] Need to do a lookup from the model.
|
||||
// [9517] 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;
|
||||
}
|
||||
|
||||
// [9518] If the owner matches 'me' then allow.
|
||||
// [9525] 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;
|
||||
}
|
||||
}
|
||||
// [9540] Since there is no permission, revert to the component permissions.
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('help_document.edit', $this->option);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,29 +43,29 @@ class SermondistributorControllerHelp_documents extends JControllerAdmin
|
|||
|
||||
public function exportData()
|
||||
{
|
||||
// [7262] Check for request forgeries
|
||||
// [7269] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7264] check if export is allowed for this user.
|
||||
// [7271] 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'))
|
||||
{
|
||||
// [7268] Get the input
|
||||
// [7275] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7271] Sanitize the input
|
||||
// [7278] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7273] Get the model
|
||||
// [7280] Get the model
|
||||
$model = $this->getModel('Help_documents');
|
||||
// [7275] get the data to export
|
||||
// [7282] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (SermondistributorHelper::checkArray($data))
|
||||
{
|
||||
// [7279] now set the data to the spreadsheet
|
||||
// [7286] 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');
|
||||
}
|
||||
}
|
||||
// [7284] Redirect to the list screen with error.
|
||||
// [7291] 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()
|
||||
{
|
||||
// [7293] Check for request forgeries
|
||||
// [7300] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7295] check if import is allowed for this user.
|
||||
// [7302] 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'))
|
||||
{
|
||||
// [7299] Get the import model
|
||||
// [7306] Get the import model
|
||||
$model = $this->getModel('Help_documents');
|
||||
// [7301] get the headers to import
|
||||
// [7308] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
// [7305] Load headers to session.
|
||||
// [7312] 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');
|
||||
// [7311] Redirect to import view.
|
||||
// [7318] 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;
|
||||
}
|
||||
}
|
||||
// [7323] Redirect to the list screen with error.
|
||||
// [7330] 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;
|
||||
|
|
|
@ -55,13 +55,13 @@ class SermondistributorControllerPreacher extends JControllerForm
|
|||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9312] Access check.
|
||||
// [9319] Access check.
|
||||
$access = JFactory::getUser()->authorise('preacher.access', 'com_sermondistributor');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9323] In the absense of better information, revert to the component permissions.
|
||||
// [9330] 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')
|
||||
{
|
||||
// [9466] get user object.
|
||||
// [9473] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9468] get record id.
|
||||
// [9475] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9475] Access check.
|
||||
// [9482] 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)
|
||||
{
|
||||
// [9484] The record has been set. Check the record permissions.
|
||||
// [9491] 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))
|
||||
{
|
||||
// [9506] Now test the owner is the user.
|
||||
// [9513] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9510] Need to do a lookup from the model.
|
||||
// [9517] 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;
|
||||
}
|
||||
|
||||
// [9518] If the owner matches 'me' then allow.
|
||||
// [9525] 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;
|
||||
}
|
||||
}
|
||||
// [9540] Since there is no permission, revert to the component permissions.
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('preacher.edit', $this->option);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,29 +43,29 @@ class SermondistributorControllerPreachers extends JControllerAdmin
|
|||
|
||||
public function exportData()
|
||||
{
|
||||
// [7262] Check for request forgeries
|
||||
// [7269] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7264] check if export is allowed for this user.
|
||||
// [7271] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('preacher.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||
{
|
||||
// [7268] Get the input
|
||||
// [7275] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7271] Sanitize the input
|
||||
// [7278] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7273] Get the model
|
||||
// [7280] Get the model
|
||||
$model = $this->getModel('Preachers');
|
||||
// [7275] get the data to export
|
||||
// [7282] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (SermondistributorHelper::checkArray($data))
|
||||
{
|
||||
// [7279] now set the data to the spreadsheet
|
||||
// [7286] 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');
|
||||
}
|
||||
}
|
||||
// [7284] Redirect to the list screen with error.
|
||||
// [7291] 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()
|
||||
{
|
||||
// [7293] Check for request forgeries
|
||||
// [7300] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7295] check if import is allowed for this user.
|
||||
// [7302] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('preacher.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||
{
|
||||
// [7299] Get the import model
|
||||
// [7306] Get the import model
|
||||
$model = $this->getModel('Preachers');
|
||||
// [7301] get the headers to import
|
||||
// [7308] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
// [7305] Load headers to session.
|
||||
// [7312] 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');
|
||||
// [7311] Redirect to import view.
|
||||
// [7318] 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;
|
||||
}
|
||||
}
|
||||
// [7323] Redirect to the list screen with error.
|
||||
// [7330] 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;
|
||||
|
|
|
@ -55,13 +55,13 @@ class SermondistributorControllerSeries extends JControllerForm
|
|||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9312] Access check.
|
||||
// [9319] Access check.
|
||||
$access = JFactory::getUser()->authorise('series.access', 'com_sermondistributor');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9323] In the absense of better information, revert to the component permissions.
|
||||
// [9330] 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')
|
||||
{
|
||||
// [9466] get user object.
|
||||
// [9473] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9468] get record id.
|
||||
// [9475] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9475] Access check.
|
||||
// [9482] 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)
|
||||
{
|
||||
// [9484] The record has been set. Check the record permissions.
|
||||
// [9491] 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))
|
||||
{
|
||||
// [9506] Now test the owner is the user.
|
||||
// [9513] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9510] Need to do a lookup from the model.
|
||||
// [9517] 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;
|
||||
}
|
||||
|
||||
// [9518] If the owner matches 'me' then allow.
|
||||
// [9525] 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;
|
||||
}
|
||||
}
|
||||
// [9540] Since there is no permission, revert to the component permissions.
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('series.edit', $this->option);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,29 +43,29 @@ class SermondistributorControllerSeries_list extends JControllerAdmin
|
|||
|
||||
public function exportData()
|
||||
{
|
||||
// [7262] Check for request forgeries
|
||||
// [7269] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7264] check if export is allowed for this user.
|
||||
// [7271] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('series.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||
{
|
||||
// [7268] Get the input
|
||||
// [7275] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7271] Sanitize the input
|
||||
// [7278] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7273] Get the model
|
||||
// [7280] Get the model
|
||||
$model = $this->getModel('Series_list');
|
||||
// [7275] get the data to export
|
||||
// [7282] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (SermondistributorHelper::checkArray($data))
|
||||
{
|
||||
// [7279] now set the data to the spreadsheet
|
||||
// [7286] 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');
|
||||
}
|
||||
}
|
||||
// [7284] Redirect to the list screen with error.
|
||||
// [7291] 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()
|
||||
{
|
||||
// [7293] Check for request forgeries
|
||||
// [7300] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7295] check if import is allowed for this user.
|
||||
// [7302] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('series.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||
{
|
||||
// [7299] Get the import model
|
||||
// [7306] Get the import model
|
||||
$model = $this->getModel('Series_list');
|
||||
// [7301] get the headers to import
|
||||
// [7308] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
// [7305] Load headers to session.
|
||||
// [7312] 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');
|
||||
// [7311] Redirect to import view.
|
||||
// [7318] 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;
|
||||
}
|
||||
}
|
||||
// [7323] Redirect to the list screen with error.
|
||||
// [7330] 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;
|
||||
|
|
|
@ -55,10 +55,10 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9267] get the user object
|
||||
// [9274] get the user object
|
||||
$user = JFactory::getUser();
|
||||
|
||||
// [9272] Access check.
|
||||
// [9279] Access check.
|
||||
$access = $user->authorise('sermon.access', 'com_sermondistributor');
|
||||
if (!$access)
|
||||
{
|
||||
|
@ -69,13 +69,13 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||
|
||||
if ($categoryId)
|
||||
{
|
||||
// [9283] If the category has been passed in the URL check it.
|
||||
// [9290] If the category has been passed in the URL check it.
|
||||
$allow = $user->authorise('core.create', $this->option . '.sermons.category.' . $categoryId);
|
||||
}
|
||||
|
||||
if ($allow === null)
|
||||
{
|
||||
// [9292] In the absense of better information, revert to the component permissions.
|
||||
// [9299] 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')
|
||||
{ // [9370] get user object.
|
||||
{ // [9377] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9372] get record id.
|
||||
// [9379] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9379] Access check.
|
||||
// [9386] 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)
|
||||
{
|
||||
// [9388] The record has been set. Check the record permissions.
|
||||
// [9395] 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))
|
||||
{
|
||||
// [9410] Fallback on edit.own. Now test the owner is the user.
|
||||
// [9417] Fallback on edit.own. Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9414] Need to do a lookup from the model.
|
||||
// [9421] 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;
|
||||
}
|
||||
|
||||
// [9422] If the owner matches 'me' then do the test.
|
||||
// [9429] 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)
|
||||
{
|
||||
// [9444] The category has been set. Check the category permissions.
|
||||
// [9451] 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
|
|||
}
|
||||
}
|
||||
}
|
||||
// [9454] Since there is no permission, revert to the component permissions.
|
||||
// [9461] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('sermon.edit', $this->option);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,29 +43,29 @@ class SermondistributorControllerSermons extends JControllerAdmin
|
|||
|
||||
public function exportData()
|
||||
{
|
||||
// [7262] Check for request forgeries
|
||||
// [7269] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7264] check if export is allowed for this user.
|
||||
// [7271] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('sermon.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||
{
|
||||
// [7268] Get the input
|
||||
// [7275] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7271] Sanitize the input
|
||||
// [7278] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7273] Get the model
|
||||
// [7280] Get the model
|
||||
$model = $this->getModel('Sermons');
|
||||
// [7275] get the data to export
|
||||
// [7282] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (SermondistributorHelper::checkArray($data))
|
||||
{
|
||||
// [7279] now set the data to the spreadsheet
|
||||
// [7286] 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');
|
||||
}
|
||||
}
|
||||
// [7284] Redirect to the list screen with error.
|
||||
// [7291] 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()
|
||||
{
|
||||
// [7293] Check for request forgeries
|
||||
// [7300] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7295] check if import is allowed for this user.
|
||||
// [7302] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('sermon.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||
{
|
||||
// [7299] Get the import model
|
||||
// [7306] Get the import model
|
||||
$model = $this->getModel('Sermons');
|
||||
// [7301] get the headers to import
|
||||
// [7308] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
// [7305] Load headers to session.
|
||||
// [7312] 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');
|
||||
// [7311] Redirect to import view.
|
||||
// [7318] 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;
|
||||
}
|
||||
}
|
||||
// [7323] Redirect to the list screen with error.
|
||||
// [7330] 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;
|
||||
|
|
|
@ -55,13 +55,13 @@ class SermondistributorControllerStatistic extends JControllerForm
|
|||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// [9312] Access check.
|
||||
// [9319] Access check.
|
||||
$access = JFactory::getUser()->authorise('statistic.access', 'com_sermondistributor');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// [9323] In the absense of better information, revert to the component permissions.
|
||||
// [9330] 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')
|
||||
{
|
||||
// [9466] get user object.
|
||||
// [9473] get user object.
|
||||
$user = JFactory::getUser();
|
||||
// [9468] get record id.
|
||||
// [9475] get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// [9475] Access check.
|
||||
// [9482] 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)
|
||||
{
|
||||
// [9484] The record has been set. Check the record permissions.
|
||||
// [9491] 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))
|
||||
{
|
||||
// [9506] Now test the owner is the user.
|
||||
// [9513] Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// [9510] Need to do a lookup from the model.
|
||||
// [9517] 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;
|
||||
}
|
||||
|
||||
// [9518] If the owner matches 'me' then allow.
|
||||
// [9525] 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;
|
||||
}
|
||||
}
|
||||
// [9540] Since there is no permission, revert to the component permissions.
|
||||
// [9547] Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('statistic.edit', $this->option);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,29 +43,29 @@ class SermondistributorControllerStatistics extends JControllerAdmin
|
|||
|
||||
public function exportData()
|
||||
{
|
||||
// [7262] Check for request forgeries
|
||||
// [7269] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7264] check if export is allowed for this user.
|
||||
// [7271] check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('statistic.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||
{
|
||||
// [7268] Get the input
|
||||
// [7275] Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// [7271] Sanitize the input
|
||||
// [7278] Sanitize the input
|
||||
JArrayHelper::toInteger($pks);
|
||||
// [7273] Get the model
|
||||
// [7280] Get the model
|
||||
$model = $this->getModel('Statistics');
|
||||
// [7275] get the data to export
|
||||
// [7282] get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (SermondistributorHelper::checkArray($data))
|
||||
{
|
||||
// [7279] now set the data to the spreadsheet
|
||||
// [7286] 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');
|
||||
}
|
||||
}
|
||||
// [7284] Redirect to the list screen with error.
|
||||
// [7291] 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()
|
||||
{
|
||||
// [7293] Check for request forgeries
|
||||
// [7300] Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// [7295] check if import is allowed for this user.
|
||||
// [7302] check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('statistic.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||
{
|
||||
// [7299] Get the import model
|
||||
// [7306] Get the import model
|
||||
$model = $this->getModel('Statistics');
|
||||
// [7301] get the headers to import
|
||||
// [7308] get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
// [7305] Load headers to session.
|
||||
// [7312] 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');
|
||||
// [7311] Redirect to import view.
|
||||
// [7318] 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;
|
||||
}
|
||||
}
|
||||
// [7323] Redirect to the list screen with error.
|
||||
// [7330] 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;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->iuwsermons;
|
||||
$items = $displayData->juisermons;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->mzrsermons;
|
||||
$items = $displayData->wxrsermons;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->scistastics;
|
||||
$items = $displayData->zgfstastics;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
$edit = "index.php?option=com_sermondistributor&view=statistics&task=statistic.edit";
|
||||
|
|
|
@ -38,7 +38,7 @@ class SermondistributorModelAjax extends JModelList
|
|||
|
||||
}
|
||||
|
||||
// [8909] Used in sermon
|
||||
// [8916] Used in sermon
|
||||
/**
|
||||
* Check and Set Dropbox local listing
|
||||
**/
|
||||
|
|
|
@ -45,36 +45,36 @@ class JFormFieldArticles extends JFormFieldList
|
|||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// [7684] see if we should add buttons
|
||||
// [7691] see if we should add buttons
|
||||
$setButton = $this->getAttribute('button');
|
||||
// [7686] get html
|
||||
// [7693] get html
|
||||
$html = parent::getInput();
|
||||
// [7688] if true set button
|
||||
// [7695] if true set button
|
||||
if ($setButton === 'true')
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
// [7692] only add if user allowed to create article
|
||||
// [7699] only add if user allowed to create article
|
||||
if ($user->authorise('core.create', 'com_sermondistributor'))
|
||||
{
|
||||
// [7710] get the input from url
|
||||
// [7717] get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// [7712] get the view name & id
|
||||
// [7719] get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// [7717] check if new item
|
||||
// [7724] check if new item
|
||||
$ref = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// [7721] only load referal if not new item.
|
||||
// [7728] only load referal if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
}
|
||||
// [7724] build the button
|
||||
// [7731] build the button
|
||||
$button = '<a class="btn btn-small btn-success"
|
||||
href="index.php?option=com_sermondistributor&view=article&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||
// [7728] return the button attached to input field
|
||||
// [7735] return the button attached to input field
|
||||
return $html . $button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,36 +45,36 @@ class JFormFieldDropboxfiles extends JFormFieldList
|
|||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// [7684] see if we should add buttons
|
||||
// [7691] see if we should add buttons
|
||||
$setButton = $this->getAttribute('button');
|
||||
// [7686] get html
|
||||
// [7693] get html
|
||||
$html = parent::getInput();
|
||||
// [7688] if true set button
|
||||
// [7695] if true set button
|
||||
if ($setButton === 'true')
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
// [7692] only add if user allowed to create
|
||||
// [7699] only add if user allowed to create
|
||||
if ($user->authorise('core.create', 'com_sermondistributor'))
|
||||
{
|
||||
// [7710] get the input from url
|
||||
// [7717] get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// [7712] get the view name & id
|
||||
// [7719] get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// [7717] check if new item
|
||||
// [7724] check if new item
|
||||
$ref = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// [7721] only load referal if not new item.
|
||||
// [7728] only load referal if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
}
|
||||
// [7724] build the button
|
||||
// [7731] build the button
|
||||
$button = '<a class="btn btn-small btn-success"
|
||||
href="index.php?option=com_sermondistributor&view=&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||
// [7728] return the button attached to input field
|
||||
// [7735] return the button attached to input field
|
||||
return $html . $button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,36 +45,36 @@ class JFormFieldLocalfiles extends JFormFieldList
|
|||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// [7684] see if we should add buttons
|
||||
// [7691] see if we should add buttons
|
||||
$setButton = $this->getAttribute('button');
|
||||
// [7686] get html
|
||||
// [7693] get html
|
||||
$html = parent::getInput();
|
||||
// [7688] if true set button
|
||||
// [7695] if true set button
|
||||
if ($setButton === 'true')
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
// [7692] only add if user allowed to create
|
||||
// [7699] only add if user allowed to create
|
||||
if ($user->authorise('core.create', 'com_sermondistributor'))
|
||||
{
|
||||
// [7710] get the input from url
|
||||
// [7717] get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// [7712] get the view name & id
|
||||
// [7719] get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// [7717] check if new item
|
||||
// [7724] check if new item
|
||||
$ref = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// [7721] only load referal if not new item.
|
||||
// [7728] only load referal if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
}
|
||||
// [7724] build the button
|
||||
// [7731] build the button
|
||||
$button = '<a class="btn btn-small btn-success"
|
||||
href="index.php?option=com_sermondistributor&view=&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||
// [7728] return the button attached to input field
|
||||
// [7735] return the button attached to input field
|
||||
return $html . $button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,36 +45,36 @@ class JFormFieldPreachers extends JFormFieldList
|
|||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// [7684] see if we should add buttons
|
||||
// [7691] see if we should add buttons
|
||||
$setButton = $this->getAttribute('button');
|
||||
// [7686] get html
|
||||
// [7693] get html
|
||||
$html = parent::getInput();
|
||||
// [7688] if true set button
|
||||
// [7695] if true set button
|
||||
if ($setButton === 'true')
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
// [7692] only add if user allowed to create preacher
|
||||
// [7699] only add if user allowed to create preacher
|
||||
if ($user->authorise('preacher.create', 'com_sermondistributor'))
|
||||
{
|
||||
// [7710] get the input from url
|
||||
// [7717] get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// [7712] get the view name & id
|
||||
// [7719] get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// [7717] check if new item
|
||||
// [7724] check if new item
|
||||
$ref = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// [7721] only load referal if not new item.
|
||||
// [7728] only load referal if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
}
|
||||
// [7724] build the button
|
||||
// [7731] build the button
|
||||
$button = '<a class="btn btn-small btn-success"
|
||||
href="index.php?option=com_sermondistributor&view=preacher&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||
// [7728] return the button attached to input field
|
||||
// [7735] return the button attached to input field
|
||||
return $html . $button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,36 +45,36 @@ class JFormFieldSeries extends JFormFieldList
|
|||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// [7684] see if we should add buttons
|
||||
// [7691] see if we should add buttons
|
||||
$setButton = $this->getAttribute('button');
|
||||
// [7686] get html
|
||||
// [7693] get html
|
||||
$html = parent::getInput();
|
||||
// [7688] if true set button
|
||||
// [7695] if true set button
|
||||
if ($setButton === 'true')
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
// [7692] only add if user allowed to create series
|
||||
// [7699] only add if user allowed to create series
|
||||
if ($user->authorise('series.create', 'com_sermondistributor'))
|
||||
{
|
||||
// [7710] get the input from url
|
||||
// [7717] get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// [7712] get the view name & id
|
||||
// [7719] get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// [7717] check if new item
|
||||
// [7724] check if new item
|
||||
$ref = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// [7721] only load referal if not new item.
|
||||
// [7728] only load referal if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
}
|
||||
// [7724] build the button
|
||||
// [7731] build the button
|
||||
$button = '<a class="btn btn-small btn-success"
|
||||
href="index.php?option=com_sermondistributor&view=series&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||
// [7728] return the button attached to input field
|
||||
// [7735] return the button attached to input field
|
||||
return $html . $button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,36 +45,36 @@ class JFormFieldSermon extends JFormFieldList
|
|||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// [7684] see if we should add buttons
|
||||
// [7691] see if we should add buttons
|
||||
$setButton = $this->getAttribute('button');
|
||||
// [7686] get html
|
||||
// [7693] get html
|
||||
$html = parent::getInput();
|
||||
// [7688] if true set button
|
||||
// [7695] if true set button
|
||||
if ($setButton === 'true')
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
// [7692] only add if user allowed to create sermon
|
||||
// [7699] only add if user allowed to create sermon
|
||||
if ($user->authorise('sermon.create', 'com_sermondistributor'))
|
||||
{
|
||||
// [7710] get the input from url
|
||||
// [7717] get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// [7712] get the view name & id
|
||||
// [7719] get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// [7717] check if new item
|
||||
// [7724] check if new item
|
||||
$ref = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// [7721] only load referal if not new item.
|
||||
// [7728] only load referal if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
}
|
||||
// [7724] build the button
|
||||
// [7731] build the button
|
||||
$button = '<a class="btn btn-small btn-success"
|
||||
href="index.php?option=com_sermondistributor&view=sermon&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||
// [7728] return the button attached to input field
|
||||
// [7735] return the button attached to input field
|
||||
return $html . $button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,38 +18,38 @@
|
|||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_oGAMfTbxuS_required = false;
|
||||
jform_LTWmzwABJL_required = false;
|
||||
jform_UCmYIbJcaV_required = false;
|
||||
jform_Opviezbfev_required = false;
|
||||
jform_RCpdpBjqah_required = false;
|
||||
jform_tzmdvkqrgG_required = false;
|
||||
jform_tOoDUnWPZO_required = false;
|
||||
jform_ZRloSvLdIL_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var location_bqdlaIg = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
bqdlaIg(location_bqdlaIg);
|
||||
var location_TUtVLEk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
TUtVLEk(location_TUtVLEk);
|
||||
|
||||
var location_YOOAZiI = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
YOOAZiI(location_YOOAZiI);
|
||||
var location_gUAUNQj = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
gUAUNQj(location_gUAUNQj);
|
||||
|
||||
var type_oGAMfTb = jQuery("#jform_type").val();
|
||||
oGAMfTb(type_oGAMfTb);
|
||||
var type_RCpdpBj = jQuery("#jform_type").val();
|
||||
RCpdpBj(type_RCpdpBj);
|
||||
|
||||
var type_LTWmzwA = jQuery("#jform_type").val();
|
||||
LTWmzwA(type_LTWmzwA);
|
||||
var type_tzmdvkq = jQuery("#jform_type").val();
|
||||
tzmdvkq(type_tzmdvkq);
|
||||
|
||||
var type_UCmYIbJ = jQuery("#jform_type").val();
|
||||
UCmYIbJ(type_UCmYIbJ);
|
||||
var type_tOoDUnW = jQuery("#jform_type").val();
|
||||
tOoDUnW(type_tOoDUnW);
|
||||
|
||||
var target_Opviezb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
Opviezb(target_Opviezb);
|
||||
var target_ZRloSvL = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
ZRloSvL(target_ZRloSvL);
|
||||
});
|
||||
|
||||
// the bqdlaIg function
|
||||
function bqdlaIg(location_bqdlaIg)
|
||||
// the TUtVLEk function
|
||||
function TUtVLEk(location_TUtVLEk)
|
||||
{
|
||||
// [8001] set the function logic
|
||||
if (location_bqdlaIg == 1)
|
||||
// [8008] set the function logic
|
||||
if (location_TUtVLEk == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
}
|
||||
|
@ -59,11 +59,11 @@ function bqdlaIg(location_bqdlaIg)
|
|||
}
|
||||
}
|
||||
|
||||
// the YOOAZiI function
|
||||
function YOOAZiI(location_YOOAZiI)
|
||||
// the gUAUNQj function
|
||||
function gUAUNQj(location_gUAUNQj)
|
||||
{
|
||||
// [8001] set the function logic
|
||||
if (location_YOOAZiI == 2)
|
||||
// [8008] set the function logic
|
||||
if (location_gUAUNQj == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
}
|
||||
|
@ -73,198 +73,198 @@ function YOOAZiI(location_YOOAZiI)
|
|||
}
|
||||
}
|
||||
|
||||
// the oGAMfTb function
|
||||
function oGAMfTb(type_oGAMfTb)
|
||||
// the RCpdpBj function
|
||||
function RCpdpBj(type_RCpdpBj)
|
||||
{
|
||||
if (isSet(type_oGAMfTb) && type_oGAMfTb.constructor !== Array)
|
||||
if (isSet(type_RCpdpBj) && type_RCpdpBj.constructor !== Array)
|
||||
{
|
||||
var temp_oGAMfTb = type_oGAMfTb;
|
||||
var type_oGAMfTb = [];
|
||||
type_oGAMfTb.push(temp_oGAMfTb);
|
||||
var temp_RCpdpBj = type_RCpdpBj;
|
||||
var type_RCpdpBj = [];
|
||||
type_RCpdpBj.push(temp_RCpdpBj);
|
||||
}
|
||||
else if (!isSet(type_oGAMfTb))
|
||||
else if (!isSet(type_RCpdpBj))
|
||||
{
|
||||
var type_oGAMfTb = [];
|
||||
var type_RCpdpBj = [];
|
||||
}
|
||||
var type = type_oGAMfTb.some(type_oGAMfTb_SomeFunc);
|
||||
var type = type_RCpdpBj.some(type_RCpdpBj_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
if (jform_oGAMfTbxuS_required)
|
||||
if (jform_RCpdpBjqah_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_oGAMfTbxuS_required = false;
|
||||
jform_RCpdpBjqah_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
if (!jform_oGAMfTbxuS_required)
|
||||
if (!jform_RCpdpBjqah_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_oGAMfTbxuS_required = true;
|
||||
jform_RCpdpBjqah_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the oGAMfTb Some function
|
||||
function type_oGAMfTb_SomeFunc(type_oGAMfTb)
|
||||
// the RCpdpBj Some function
|
||||
function type_RCpdpBj_SomeFunc(type_RCpdpBj)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (type_oGAMfTb == 3)
|
||||
// [7973] set the function logic
|
||||
if (type_RCpdpBj == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the LTWmzwA function
|
||||
function LTWmzwA(type_LTWmzwA)
|
||||
// the tzmdvkq function
|
||||
function tzmdvkq(type_tzmdvkq)
|
||||
{
|
||||
if (isSet(type_LTWmzwA) && type_LTWmzwA.constructor !== Array)
|
||||
if (isSet(type_tzmdvkq) && type_tzmdvkq.constructor !== Array)
|
||||
{
|
||||
var temp_LTWmzwA = type_LTWmzwA;
|
||||
var type_LTWmzwA = [];
|
||||
type_LTWmzwA.push(temp_LTWmzwA);
|
||||
var temp_tzmdvkq = type_tzmdvkq;
|
||||
var type_tzmdvkq = [];
|
||||
type_tzmdvkq.push(temp_tzmdvkq);
|
||||
}
|
||||
else if (!isSet(type_LTWmzwA))
|
||||
else if (!isSet(type_tzmdvkq))
|
||||
{
|
||||
var type_LTWmzwA = [];
|
||||
var type_tzmdvkq = [];
|
||||
}
|
||||
var type = type_LTWmzwA.some(type_LTWmzwA_SomeFunc);
|
||||
var type = type_tzmdvkq.some(type_tzmdvkq_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
if (jform_LTWmzwABJL_required)
|
||||
if (jform_tzmdvkqrgG_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_LTWmzwABJL_required = false;
|
||||
jform_tzmdvkqrgG_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
if (!jform_LTWmzwABJL_required)
|
||||
if (!jform_tzmdvkqrgG_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_LTWmzwABJL_required = true;
|
||||
jform_tzmdvkqrgG_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the LTWmzwA Some function
|
||||
function type_LTWmzwA_SomeFunc(type_LTWmzwA)
|
||||
// the tzmdvkq Some function
|
||||
function type_tzmdvkq_SomeFunc(type_tzmdvkq)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (type_LTWmzwA == 1)
|
||||
// [7973] set the function logic
|
||||
if (type_tzmdvkq == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the UCmYIbJ function
|
||||
function UCmYIbJ(type_UCmYIbJ)
|
||||
// the tOoDUnW function
|
||||
function tOoDUnW(type_tOoDUnW)
|
||||
{
|
||||
if (isSet(type_UCmYIbJ) && type_UCmYIbJ.constructor !== Array)
|
||||
if (isSet(type_tOoDUnW) && type_tOoDUnW.constructor !== Array)
|
||||
{
|
||||
var temp_UCmYIbJ = type_UCmYIbJ;
|
||||
var type_UCmYIbJ = [];
|
||||
type_UCmYIbJ.push(temp_UCmYIbJ);
|
||||
var temp_tOoDUnW = type_tOoDUnW;
|
||||
var type_tOoDUnW = [];
|
||||
type_tOoDUnW.push(temp_tOoDUnW);
|
||||
}
|
||||
else if (!isSet(type_UCmYIbJ))
|
||||
else if (!isSet(type_tOoDUnW))
|
||||
{
|
||||
var type_UCmYIbJ = [];
|
||||
var type_tOoDUnW = [];
|
||||
}
|
||||
var type = type_UCmYIbJ.some(type_UCmYIbJ_SomeFunc);
|
||||
var type = type_tOoDUnW.some(type_tOoDUnW_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
if (jform_UCmYIbJcaV_required)
|
||||
if (jform_tOoDUnWPZO_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_UCmYIbJcaV_required = false;
|
||||
jform_tOoDUnWPZO_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
if (!jform_UCmYIbJcaV_required)
|
||||
if (!jform_tOoDUnWPZO_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_UCmYIbJcaV_required = true;
|
||||
jform_tOoDUnWPZO_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the UCmYIbJ Some function
|
||||
function type_UCmYIbJ_SomeFunc(type_UCmYIbJ)
|
||||
// the tOoDUnW Some function
|
||||
function type_tOoDUnW_SomeFunc(type_tOoDUnW)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (type_UCmYIbJ == 2)
|
||||
// [7973] set the function logic
|
||||
if (type_tOoDUnW == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the Opviezb function
|
||||
function Opviezb(target_Opviezb)
|
||||
// the ZRloSvL function
|
||||
function ZRloSvL(target_ZRloSvL)
|
||||
{
|
||||
// [8001] set the function logic
|
||||
if (target_Opviezb == 1)
|
||||
// [8008] set the function logic
|
||||
if (target_ZRloSvL == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
if (jform_Opviezbfev_required)
|
||||
if (jform_ZRloSvLdIL_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_Opviezbfev_required = false;
|
||||
jform_ZRloSvLdIL_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
if (!jform_Opviezbfev_required)
|
||||
if (!jform_ZRloSvLdIL_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_Opviezbfev_required = true;
|
||||
jform_ZRloSvLdIL_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- [11012] Default Fields. -->
|
||||
<!-- [11013] Id Field. Type: Text (joomla) -->
|
||||
<!-- [11019] Default Fields. -->
|
||||
<!-- [11020] 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"
|
||||
/>
|
||||
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
|
||||
<!-- [11027] 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"
|
||||
/>
|
||||
<!-- [11031] User Created Field. Type: User (joomla) -->
|
||||
<!-- [11038] 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"
|
||||
/>
|
||||
<!-- [11039] Published Field. Type: List (joomla) -->
|
||||
<!-- [11046] 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>
|
||||
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
|
||||
<!-- [11061] 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" />
|
||||
<!-- [11058] User Modified Field. Type: User (joomla) -->
|
||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
|
||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
|
@ -61,7 +61,7 @@
|
|||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
|
||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
|
@ -72,7 +72,7 @@
|
|||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11090] Version Field. Type: Text (joomla) -->
|
||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
|
@ -83,7 +83,7 @@
|
|||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
|
||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metakey"
|
||||
type="textarea"
|
||||
|
@ -92,7 +92,7 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metadesc"
|
||||
type="textarea"
|
||||
|
@ -101,8 +101,8 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11123] Dynamic Fields. -->
|
||||
<!-- [11359] Title Field. Type: Text. (joomla) -->
|
||||
<!-- [11130] Dynamic Fields. -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11273] Type Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Type Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="type"
|
||||
|
@ -127,7 +127,7 @@
|
|||
class="list_class"
|
||||
multiple="false"
|
||||
required="true">
|
||||
<!-- [11345] Option Set. -->
|
||||
<!-- [11352] 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>
|
||||
<!-- [11359] Groups Field. Type: Usergroup. (joomla) -->
|
||||
<!-- [11366] Groups Field. Type: Usergroup. (joomla) -->
|
||||
<field
|
||||
type="usergroup"
|
||||
name="groups"
|
||||
|
@ -146,7 +146,7 @@
|
|||
required="true"
|
||||
multiple="true"
|
||||
/>
|
||||
<!-- [11273] Location Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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">
|
||||
<!-- [11345] Option Set. -->
|
||||
<!-- [11352] Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE</option>
|
||||
</field>
|
||||
<!-- [11359] Admin_view Field. Type: Folderlist. (joomla) -->
|
||||
<!-- [11366] Admin_view Field. Type: Folderlist. (joomla) -->
|
||||
<field
|
||||
type="folderlist"
|
||||
name="admin_view"
|
||||
|
@ -170,7 +170,7 @@
|
|||
hide_none="true"
|
||||
hide_default="true"
|
||||
/>
|
||||
<!-- [11359] Site_view Field. Type: Folderlist. (joomla) -->
|
||||
<!-- [11366] Site_view Field. Type: Folderlist. (joomla) -->
|
||||
<field
|
||||
type="folderlist"
|
||||
name="site_view"
|
||||
|
@ -180,7 +180,7 @@
|
|||
hide_none="true"
|
||||
hide_default="true"
|
||||
/>
|
||||
<!-- [11273] Target Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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">
|
||||
<!-- [11345] Option Set. -->
|
||||
<!-- [11352] Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SOME</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALL</option>
|
||||
</field>
|
||||
<!-- [11359] Content Field. Type: Editor. (joomla) -->
|
||||
<!-- [11366] Content Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="content"
|
||||
|
@ -205,7 +205,7 @@
|
|||
filter="safehtml"
|
||||
required="true"
|
||||
/>
|
||||
<!-- [11359] Alias Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="alias"
|
||||
|
@ -214,7 +214,7 @@
|
|||
filter="STRING"
|
||||
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALIAS_HINT"
|
||||
/>
|
||||
<!-- [11480] Article Field. Type: Articles. (custom) -->
|
||||
<!-- [11487] Article Field. Type: Articles. (custom) -->
|
||||
<field
|
||||
type="articles"
|
||||
name="article"
|
||||
|
@ -224,7 +224,7 @@
|
|||
default="0"
|
||||
required="true"
|
||||
/>
|
||||
<!-- [11359] Url Field. Type: Url. (joomla) -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11359] Not_required Field. Type: Hidden. (joomla) -->
|
||||
<!-- [11366] Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="not_required"
|
||||
|
@ -247,11 +247,11 @@
|
|||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- [11142] Metadata Fields. -->
|
||||
<!-- [11149] Metadata Fields. -->
|
||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<fieldset name="vdmmetadata"
|
||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<!-- [11146] Robots Field. Type: List (joomla) -->
|
||||
<!-- [11153] 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>
|
||||
<!-- [11157] Author Field. Type: Text (joomla) -->
|
||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
||||
<field name="author"
|
||||
type="text"
|
||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||
size="20"
|
||||
/>
|
||||
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
|
||||
<!-- [11170] 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>
|
||||
|
||||
<!-- [10046] Access Control Fields. -->
|
||||
<!-- [10053] Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [10054] Rules Field. Type: Rules (joomla) -->
|
||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- [11012] Default Fields. -->
|
||||
<!-- [11013] Id Field. Type: Text (joomla) -->
|
||||
<!-- [11019] Default Fields. -->
|
||||
<!-- [11020] 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"
|
||||
/>
|
||||
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
|
||||
<!-- [11027] 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"
|
||||
/>
|
||||
<!-- [11031] User Created Field. Type: User (joomla) -->
|
||||
<!-- [11038] 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"
|
||||
/>
|
||||
<!-- [11039] Published Field. Type: List (joomla) -->
|
||||
<!-- [11046] 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>
|
||||
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
|
||||
<!-- [11061] 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" />
|
||||
<!-- [11058] User Modified Field. Type: User (joomla) -->
|
||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
|
||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
|
@ -61,7 +61,7 @@
|
|||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
|
||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
|
@ -72,7 +72,7 @@
|
|||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11090] Version Field. Type: Text (joomla) -->
|
||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
|
@ -83,7 +83,7 @@
|
|||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
|
||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metakey"
|
||||
type="textarea"
|
||||
|
@ -92,7 +92,7 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metadesc"
|
||||
type="textarea"
|
||||
|
@ -101,8 +101,8 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11123] Dynamic Fields. -->
|
||||
<!-- [11359] Name Field. Type: Text. (joomla) -->
|
||||
<!-- [11130] Dynamic Fields. -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11359] Description Field. Type: Editor. (joomla) -->
|
||||
<!-- [11366] Description Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="description"
|
||||
|
@ -130,7 +130,7 @@
|
|||
buttons="false"
|
||||
filter="safehtml"
|
||||
/>
|
||||
<!-- [11359] Alias Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="alias"
|
||||
|
@ -139,7 +139,7 @@
|
|||
filter="STRING"
|
||||
hint="COM_SERMONDISTRIBUTOR_PREACHER_ALIAS_HINT"
|
||||
/>
|
||||
<!-- [11359] Email Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11359] Website Field. Type: Url. (joomla) -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11359] Icon Field. Type: Media. (joomla) -->
|
||||
<!-- [11366] Icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="icon"
|
||||
|
@ -178,11 +178,11 @@
|
|||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- [11142] Metadata Fields. -->
|
||||
<!-- [11149] Metadata Fields. -->
|
||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<fieldset name="vdmmetadata"
|
||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<!-- [11146] Robots Field. Type: List (joomla) -->
|
||||
<!-- [11153] 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>
|
||||
<!-- [11157] Author Field. Type: Text (joomla) -->
|
||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
||||
<field name="author"
|
||||
type="text"
|
||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||
size="20"
|
||||
/>
|
||||
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
|
||||
<!-- [11170] 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>
|
||||
|
||||
<!-- [10046] Access Control Fields. -->
|
||||
<!-- [10053] Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [10054] Rules Field. Type: Rules (joomla) -->
|
||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- [11012] Default Fields. -->
|
||||
<!-- [11013] Id Field. Type: Text (joomla) -->
|
||||
<!-- [11019] Default Fields. -->
|
||||
<!-- [11020] 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"
|
||||
/>
|
||||
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
|
||||
<!-- [11027] 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"
|
||||
/>
|
||||
<!-- [11031] User Created Field. Type: User (joomla) -->
|
||||
<!-- [11038] 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"
|
||||
/>
|
||||
<!-- [11039] Published Field. Type: List (joomla) -->
|
||||
<!-- [11046] 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>
|
||||
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
|
||||
<!-- [11061] 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" />
|
||||
<!-- [11058] User Modified Field. Type: User (joomla) -->
|
||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
|
||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
|
@ -61,7 +61,7 @@
|
|||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
|
||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
|
@ -72,7 +72,7 @@
|
|||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11090] Version Field. Type: Text (joomla) -->
|
||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
|
@ -83,7 +83,7 @@
|
|||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
|
||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metakey"
|
||||
type="textarea"
|
||||
|
@ -92,7 +92,7 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metadesc"
|
||||
type="textarea"
|
||||
|
@ -101,8 +101,8 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11123] Dynamic Fields. -->
|
||||
<!-- [11359] Name Field. Type: Text. (joomla) -->
|
||||
<!-- [11130] Dynamic Fields. -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11359] Description Field. Type: Editor. (joomla) -->
|
||||
<!-- [11366] Description Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="description"
|
||||
|
@ -130,7 +130,7 @@
|
|||
buttons="false"
|
||||
filter="safehtml"
|
||||
/>
|
||||
<!-- [11359] Alias Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="alias"
|
||||
|
@ -139,7 +139,7 @@
|
|||
filter="STRING"
|
||||
hint="COM_SERMONDISTRIBUTOR_SERIES_ALIAS_HINT"
|
||||
/>
|
||||
<!-- [11359] Icon Field. Type: Media. (joomla) -->
|
||||
<!-- [11366] Icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="icon"
|
||||
|
@ -147,7 +147,7 @@
|
|||
description="COM_SERMONDISTRIBUTOR_SERIES_ICON_DESCRIPTION"
|
||||
directory=""
|
||||
/>
|
||||
<!-- [11359] Scripture Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] Scripture Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="scripture"
|
||||
|
@ -165,11 +165,11 @@
|
|||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- [11142] Metadata Fields. -->
|
||||
<!-- [11149] Metadata Fields. -->
|
||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<fieldset name="vdmmetadata"
|
||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<!-- [11146] Robots Field. Type: List (joomla) -->
|
||||
<!-- [11153] 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>
|
||||
<!-- [11157] Author Field. Type: Text (joomla) -->
|
||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
||||
<field name="author"
|
||||
type="text"
|
||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||
size="20"
|
||||
/>
|
||||
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
|
||||
<!-- [11170] 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>
|
||||
|
||||
<!-- [10046] Access Control Fields. -->
|
||||
<!-- [10053] Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [10054] Rules Field. Type: Rules (joomla) -->
|
||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
|
|
|
@ -18,127 +18,127 @@
|
|||
/------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_krBYtbjBSg_required = false;
|
||||
jform_fTVMCkKOvd_required = false;
|
||||
jform_NPhYsagIYW_required = false;
|
||||
jform_kEIQntmwGo_required = false;
|
||||
jform_RQkNwSYiKv_required = false;
|
||||
jform_NKOinBhjcR_required = false;
|
||||
jform_tcPmpLTZoG_required = false;
|
||||
jform_gxilNjehSq_required = false;
|
||||
jform_oQgboDxRIY_required = false;
|
||||
jform_YcaNoltkqP_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var source_krBYtbj = jQuery("#jform_source").val();
|
||||
krBYtbj(source_krBYtbj);
|
||||
var source_NKOinBh = jQuery("#jform_source").val();
|
||||
NKOinBh(source_NKOinBh);
|
||||
|
||||
var source_sYPBGNJ = jQuery("#jform_source").val();
|
||||
var build_sYPBGNJ = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
sYPBGNJ(source_sYPBGNJ,build_sYPBGNJ);
|
||||
var source_ALgjVVL = jQuery("#jform_source").val();
|
||||
var build_ALgjVVL = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
ALgjVVL(source_ALgjVVL,build_ALgjVVL);
|
||||
|
||||
var source_fTVMCkK = jQuery("#jform_source").val();
|
||||
var build_fTVMCkK = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
fTVMCkK(source_fTVMCkK,build_fTVMCkK);
|
||||
var source_tcPmpLT = jQuery("#jform_source").val();
|
||||
var build_tcPmpLT = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
tcPmpLT(source_tcPmpLT,build_tcPmpLT);
|
||||
|
||||
var build_NPhYsag = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_NPhYsag = jQuery("#jform_source").val();
|
||||
NPhYsag(build_NPhYsag,source_NPhYsag);
|
||||
var build_gxilNje = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_gxilNje = jQuery("#jform_source").val();
|
||||
gxilNje(build_gxilNje,source_gxilNje);
|
||||
|
||||
var source_kEIQntm = jQuery("#jform_source").val();
|
||||
kEIQntm(source_kEIQntm);
|
||||
var source_oQgboDx = jQuery("#jform_source").val();
|
||||
oQgboDx(source_oQgboDx);
|
||||
|
||||
var source_RQkNwSY = jQuery("#jform_source").val();
|
||||
RQkNwSY(source_RQkNwSY);
|
||||
var source_YcaNolt = jQuery("#jform_source").val();
|
||||
YcaNolt(source_YcaNolt);
|
||||
|
||||
var link_type_lzmprMp = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
lzmprMp(link_type_lzmprMp);
|
||||
var link_type_VrtcKcp = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
VrtcKcp(link_type_VrtcKcp);
|
||||
|
||||
var link_type_wAnuIRh = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
wAnuIRh(link_type_wAnuIRh);
|
||||
var link_type_KohbyVh = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
KohbyVh(link_type_KohbyVh);
|
||||
});
|
||||
|
||||
// the krBYtbj function
|
||||
function krBYtbj(source_krBYtbj)
|
||||
// the NKOinBh function
|
||||
function NKOinBh(source_NKOinBh)
|
||||
{
|
||||
if (isSet(source_krBYtbj) && source_krBYtbj.constructor !== Array)
|
||||
if (isSet(source_NKOinBh) && source_NKOinBh.constructor !== Array)
|
||||
{
|
||||
var temp_krBYtbj = source_krBYtbj;
|
||||
var source_krBYtbj = [];
|
||||
source_krBYtbj.push(temp_krBYtbj);
|
||||
var temp_NKOinBh = source_NKOinBh;
|
||||
var source_NKOinBh = [];
|
||||
source_NKOinBh.push(temp_NKOinBh);
|
||||
}
|
||||
else if (!isSet(source_krBYtbj))
|
||||
else if (!isSet(source_NKOinBh))
|
||||
{
|
||||
var source_krBYtbj = [];
|
||||
var source_NKOinBh = [];
|
||||
}
|
||||
var source = source_krBYtbj.some(source_krBYtbj_SomeFunc);
|
||||
var source = source_NKOinBh.some(source_NKOinBh_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (source)
|
||||
{
|
||||
jQuery('#jform_build').closest('.control-group').show();
|
||||
if (jform_krBYtbjBSg_required)
|
||||
if (jform_NKOinBhjcR_required)
|
||||
{
|
||||
updateFieldRequired('build',0);
|
||||
jQuery('#jform_build').prop('required','required');
|
||||
jQuery('#jform_build').attr('aria-required',true);
|
||||
jQuery('#jform_build').addClass('required');
|
||||
jform_krBYtbjBSg_required = false;
|
||||
jform_NKOinBhjcR_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_build').closest('.control-group').hide();
|
||||
if (!jform_krBYtbjBSg_required)
|
||||
if (!jform_NKOinBhjcR_required)
|
||||
{
|
||||
updateFieldRequired('build',1);
|
||||
jQuery('#jform_build').removeAttr('required');
|
||||
jQuery('#jform_build').removeAttr('aria-required');
|
||||
jQuery('#jform_build').removeClass('required');
|
||||
jform_krBYtbjBSg_required = true;
|
||||
jform_NKOinBhjcR_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the krBYtbj Some function
|
||||
function source_krBYtbj_SomeFunc(source_krBYtbj)
|
||||
// the NKOinBh Some function
|
||||
function source_NKOinBh_SomeFunc(source_NKOinBh)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (source_krBYtbj == 2)
|
||||
// [7973] set the function logic
|
||||
if (source_NKOinBh == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the sYPBGNJ function
|
||||
function sYPBGNJ(source_sYPBGNJ,build_sYPBGNJ)
|
||||
// the ALgjVVL function
|
||||
function ALgjVVL(source_ALgjVVL,build_ALgjVVL)
|
||||
{
|
||||
if (isSet(source_sYPBGNJ) && source_sYPBGNJ.constructor !== Array)
|
||||
if (isSet(source_ALgjVVL) && source_ALgjVVL.constructor !== Array)
|
||||
{
|
||||
var temp_sYPBGNJ = source_sYPBGNJ;
|
||||
var source_sYPBGNJ = [];
|
||||
source_sYPBGNJ.push(temp_sYPBGNJ);
|
||||
var temp_ALgjVVL = source_ALgjVVL;
|
||||
var source_ALgjVVL = [];
|
||||
source_ALgjVVL.push(temp_ALgjVVL);
|
||||
}
|
||||
else if (!isSet(source_sYPBGNJ))
|
||||
else if (!isSet(source_ALgjVVL))
|
||||
{
|
||||
var source_sYPBGNJ = [];
|
||||
var source_ALgjVVL = [];
|
||||
}
|
||||
var source = source_sYPBGNJ.some(source_sYPBGNJ_SomeFunc);
|
||||
var source = source_ALgjVVL.some(source_ALgjVVL_SomeFunc);
|
||||
|
||||
if (isSet(build_sYPBGNJ) && build_sYPBGNJ.constructor !== Array)
|
||||
if (isSet(build_ALgjVVL) && build_ALgjVVL.constructor !== Array)
|
||||
{
|
||||
var temp_sYPBGNJ = build_sYPBGNJ;
|
||||
var build_sYPBGNJ = [];
|
||||
build_sYPBGNJ.push(temp_sYPBGNJ);
|
||||
var temp_ALgjVVL = build_ALgjVVL;
|
||||
var build_ALgjVVL = [];
|
||||
build_ALgjVVL.push(temp_ALgjVVL);
|
||||
}
|
||||
else if (!isSet(build_sYPBGNJ))
|
||||
else if (!isSet(build_ALgjVVL))
|
||||
{
|
||||
var build_sYPBGNJ = [];
|
||||
var build_ALgjVVL = [];
|
||||
}
|
||||
var build = build_sYPBGNJ.some(build_sYPBGNJ_SomeFunc);
|
||||
var build = build_ALgjVVL.some(build_ALgjVVL_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (source && build)
|
||||
{
|
||||
jQuery('.note_auto_dropbox').closest('.control-group').show();
|
||||
|
@ -149,67 +149,67 @@ function sYPBGNJ(source_sYPBGNJ,build_sYPBGNJ)
|
|||
}
|
||||
}
|
||||
|
||||
// the sYPBGNJ Some function
|
||||
function source_sYPBGNJ_SomeFunc(source_sYPBGNJ)
|
||||
// the ALgjVVL Some function
|
||||
function source_ALgjVVL_SomeFunc(source_ALgjVVL)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (source_sYPBGNJ == 2)
|
||||
// [7973] set the function logic
|
||||
if (source_ALgjVVL == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the sYPBGNJ Some function
|
||||
function build_sYPBGNJ_SomeFunc(build_sYPBGNJ)
|
||||
// the ALgjVVL Some function
|
||||
function build_ALgjVVL_SomeFunc(build_ALgjVVL)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (build_sYPBGNJ == 2)
|
||||
// [7973] set the function logic
|
||||
if (build_ALgjVVL == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the fTVMCkK function
|
||||
function fTVMCkK(source_fTVMCkK,build_fTVMCkK)
|
||||
// the tcPmpLT function
|
||||
function tcPmpLT(source_tcPmpLT,build_tcPmpLT)
|
||||
{
|
||||
if (isSet(source_fTVMCkK) && source_fTVMCkK.constructor !== Array)
|
||||
if (isSet(source_tcPmpLT) && source_tcPmpLT.constructor !== Array)
|
||||
{
|
||||
var temp_fTVMCkK = source_fTVMCkK;
|
||||
var source_fTVMCkK = [];
|
||||
source_fTVMCkK.push(temp_fTVMCkK);
|
||||
var temp_tcPmpLT = source_tcPmpLT;
|
||||
var source_tcPmpLT = [];
|
||||
source_tcPmpLT.push(temp_tcPmpLT);
|
||||
}
|
||||
else if (!isSet(source_fTVMCkK))
|
||||
else if (!isSet(source_tcPmpLT))
|
||||
{
|
||||
var source_fTVMCkK = [];
|
||||
var source_tcPmpLT = [];
|
||||
}
|
||||
var source = source_fTVMCkK.some(source_fTVMCkK_SomeFunc);
|
||||
var source = source_tcPmpLT.some(source_tcPmpLT_SomeFunc);
|
||||
|
||||
if (isSet(build_fTVMCkK) && build_fTVMCkK.constructor !== Array)
|
||||
if (isSet(build_tcPmpLT) && build_tcPmpLT.constructor !== Array)
|
||||
{
|
||||
var temp_fTVMCkK = build_fTVMCkK;
|
||||
var build_fTVMCkK = [];
|
||||
build_fTVMCkK.push(temp_fTVMCkK);
|
||||
var temp_tcPmpLT = build_tcPmpLT;
|
||||
var build_tcPmpLT = [];
|
||||
build_tcPmpLT.push(temp_tcPmpLT);
|
||||
}
|
||||
else if (!isSet(build_fTVMCkK))
|
||||
else if (!isSet(build_tcPmpLT))
|
||||
{
|
||||
var build_fTVMCkK = [];
|
||||
var build_tcPmpLT = [];
|
||||
}
|
||||
var build = build_fTVMCkK.some(build_fTVMCkK_SomeFunc);
|
||||
var build = build_tcPmpLT.some(build_tcPmpLT_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (source && build)
|
||||
{
|
||||
jQuery('#jform_manual_files').closest('.control-group').show();
|
||||
if (jform_fTVMCkKOvd_required)
|
||||
if (jform_tcPmpLTZoG_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_fTVMCkKOvd_required = false;
|
||||
jform_tcPmpLTZoG_required = false;
|
||||
}
|
||||
|
||||
jQuery('.note_manual_dropbox').closest('.control-group').show();
|
||||
|
@ -217,79 +217,79 @@ function fTVMCkK(source_fTVMCkK,build_fTVMCkK)
|
|||
else
|
||||
{
|
||||
jQuery('#jform_manual_files').closest('.control-group').hide();
|
||||
if (!jform_fTVMCkKOvd_required)
|
||||
if (!jform_tcPmpLTZoG_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_fTVMCkKOvd_required = true;
|
||||
jform_tcPmpLTZoG_required = true;
|
||||
}
|
||||
jQuery('.note_manual_dropbox').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the fTVMCkK Some function
|
||||
function source_fTVMCkK_SomeFunc(source_fTVMCkK)
|
||||
// the tcPmpLT Some function
|
||||
function source_tcPmpLT_SomeFunc(source_tcPmpLT)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (source_fTVMCkK == 2)
|
||||
// [7973] set the function logic
|
||||
if (source_tcPmpLT == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the fTVMCkK Some function
|
||||
function build_fTVMCkK_SomeFunc(build_fTVMCkK)
|
||||
// the tcPmpLT Some function
|
||||
function build_tcPmpLT_SomeFunc(build_tcPmpLT)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (build_fTVMCkK == 1)
|
||||
// [7973] set the function logic
|
||||
if (build_tcPmpLT == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the NPhYsag function
|
||||
function NPhYsag(build_NPhYsag,source_NPhYsag)
|
||||
// the gxilNje function
|
||||
function gxilNje(build_gxilNje,source_gxilNje)
|
||||
{
|
||||
if (isSet(build_NPhYsag) && build_NPhYsag.constructor !== Array)
|
||||
if (isSet(build_gxilNje) && build_gxilNje.constructor !== Array)
|
||||
{
|
||||
var temp_NPhYsag = build_NPhYsag;
|
||||
var build_NPhYsag = [];
|
||||
build_NPhYsag.push(temp_NPhYsag);
|
||||
var temp_gxilNje = build_gxilNje;
|
||||
var build_gxilNje = [];
|
||||
build_gxilNje.push(temp_gxilNje);
|
||||
}
|
||||
else if (!isSet(build_NPhYsag))
|
||||
else if (!isSet(build_gxilNje))
|
||||
{
|
||||
var build_NPhYsag = [];
|
||||
var build_gxilNje = [];
|
||||
}
|
||||
var build = build_NPhYsag.some(build_NPhYsag_SomeFunc);
|
||||
var build = build_gxilNje.some(build_gxilNje_SomeFunc);
|
||||
|
||||
if (isSet(source_NPhYsag) && source_NPhYsag.constructor !== Array)
|
||||
if (isSet(source_gxilNje) && source_gxilNje.constructor !== Array)
|
||||
{
|
||||
var temp_NPhYsag = source_NPhYsag;
|
||||
var source_NPhYsag = [];
|
||||
source_NPhYsag.push(temp_NPhYsag);
|
||||
var temp_gxilNje = source_gxilNje;
|
||||
var source_gxilNje = [];
|
||||
source_gxilNje.push(temp_gxilNje);
|
||||
}
|
||||
else if (!isSet(source_NPhYsag))
|
||||
else if (!isSet(source_gxilNje))
|
||||
{
|
||||
var source_NPhYsag = [];
|
||||
var source_gxilNje = [];
|
||||
}
|
||||
var source = source_NPhYsag.some(source_NPhYsag_SomeFunc);
|
||||
var source = source_gxilNje.some(source_gxilNje_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (build && source)
|
||||
{
|
||||
jQuery('#jform_manual_files').closest('.control-group').show();
|
||||
if (jform_NPhYsagIYW_required)
|
||||
if (jform_gxilNjehSq_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_NPhYsagIYW_required = false;
|
||||
jform_gxilNjehSq_required = false;
|
||||
}
|
||||
|
||||
jQuery('.note_manual_dropbox').closest('.control-group').show();
|
||||
|
@ -297,155 +297,155 @@ function NPhYsag(build_NPhYsag,source_NPhYsag)
|
|||
else
|
||||
{
|
||||
jQuery('#jform_manual_files').closest('.control-group').hide();
|
||||
if (!jform_NPhYsagIYW_required)
|
||||
if (!jform_gxilNjehSq_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_NPhYsagIYW_required = true;
|
||||
jform_gxilNjehSq_required = true;
|
||||
}
|
||||
jQuery('.note_manual_dropbox').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the NPhYsag Some function
|
||||
function build_NPhYsag_SomeFunc(build_NPhYsag)
|
||||
// the gxilNje Some function
|
||||
function build_gxilNje_SomeFunc(build_gxilNje)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (build_NPhYsag == 1)
|
||||
// [7973] set the function logic
|
||||
if (build_gxilNje == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the NPhYsag Some function
|
||||
function source_NPhYsag_SomeFunc(source_NPhYsag)
|
||||
// the gxilNje Some function
|
||||
function source_gxilNje_SomeFunc(source_gxilNje)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (source_NPhYsag == 2)
|
||||
// [7973] set the function logic
|
||||
if (source_gxilNje == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the kEIQntm function
|
||||
function kEIQntm(source_kEIQntm)
|
||||
// the oQgboDx function
|
||||
function oQgboDx(source_oQgboDx)
|
||||
{
|
||||
if (isSet(source_kEIQntm) && source_kEIQntm.constructor !== Array)
|
||||
if (isSet(source_oQgboDx) && source_oQgboDx.constructor !== Array)
|
||||
{
|
||||
var temp_kEIQntm = source_kEIQntm;
|
||||
var source_kEIQntm = [];
|
||||
source_kEIQntm.push(temp_kEIQntm);
|
||||
var temp_oQgboDx = source_oQgboDx;
|
||||
var source_oQgboDx = [];
|
||||
source_oQgboDx.push(temp_oQgboDx);
|
||||
}
|
||||
else if (!isSet(source_kEIQntm))
|
||||
else if (!isSet(source_oQgboDx))
|
||||
{
|
||||
var source_kEIQntm = [];
|
||||
var source_oQgboDx = [];
|
||||
}
|
||||
var source = source_kEIQntm.some(source_kEIQntm_SomeFunc);
|
||||
var source = source_oQgboDx.some(source_oQgboDx_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (source)
|
||||
{
|
||||
jQuery('#jform_local_files').closest('.control-group').show();
|
||||
if (jform_kEIQntmwGo_required)
|
||||
if (jform_oQgboDxRIY_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_kEIQntmwGo_required = false;
|
||||
jform_oQgboDxRIY_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_local_files').closest('.control-group').hide();
|
||||
if (!jform_kEIQntmwGo_required)
|
||||
if (!jform_oQgboDxRIY_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_kEIQntmwGo_required = true;
|
||||
jform_oQgboDxRIY_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the kEIQntm Some function
|
||||
function source_kEIQntm_SomeFunc(source_kEIQntm)
|
||||
// the oQgboDx Some function
|
||||
function source_oQgboDx_SomeFunc(source_oQgboDx)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (source_kEIQntm == 1)
|
||||
// [7973] set the function logic
|
||||
if (source_oQgboDx == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the RQkNwSY function
|
||||
function RQkNwSY(source_RQkNwSY)
|
||||
// the YcaNolt function
|
||||
function YcaNolt(source_YcaNolt)
|
||||
{
|
||||
if (isSet(source_RQkNwSY) && source_RQkNwSY.constructor !== Array)
|
||||
if (isSet(source_YcaNolt) && source_YcaNolt.constructor !== Array)
|
||||
{
|
||||
var temp_RQkNwSY = source_RQkNwSY;
|
||||
var source_RQkNwSY = [];
|
||||
source_RQkNwSY.push(temp_RQkNwSY);
|
||||
var temp_YcaNolt = source_YcaNolt;
|
||||
var source_YcaNolt = [];
|
||||
source_YcaNolt.push(temp_YcaNolt);
|
||||
}
|
||||
else if (!isSet(source_RQkNwSY))
|
||||
else if (!isSet(source_YcaNolt))
|
||||
{
|
||||
var source_RQkNwSY = [];
|
||||
var source_YcaNolt = [];
|
||||
}
|
||||
var source = source_RQkNwSY.some(source_RQkNwSY_SomeFunc);
|
||||
var source = source_YcaNolt.some(source_YcaNolt_SomeFunc);
|
||||
|
||||
|
||||
// [7979] set this function logic
|
||||
// [7986] set this function logic
|
||||
if (source)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
if (jform_RQkNwSYiKv_required)
|
||||
if (jform_YcaNoltkqP_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_RQkNwSYiKv_required = false;
|
||||
jform_YcaNoltkqP_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
if (!jform_RQkNwSYiKv_required)
|
||||
if (!jform_YcaNoltkqP_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_RQkNwSYiKv_required = true;
|
||||
jform_YcaNoltkqP_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the RQkNwSY Some function
|
||||
function source_RQkNwSY_SomeFunc(source_RQkNwSY)
|
||||
// the YcaNolt Some function
|
||||
function source_YcaNolt_SomeFunc(source_YcaNolt)
|
||||
{
|
||||
// [7966] set the function logic
|
||||
if (source_RQkNwSY == 3)
|
||||
// [7973] set the function logic
|
||||
if (source_YcaNolt == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the lzmprMp function
|
||||
function lzmprMp(link_type_lzmprMp)
|
||||
// the VrtcKcp function
|
||||
function VrtcKcp(link_type_VrtcKcp)
|
||||
{
|
||||
// [8001] set the function logic
|
||||
if (link_type_lzmprMp == 2)
|
||||
// [8008] set the function logic
|
||||
if (link_type_VrtcKcp == 2)
|
||||
{
|
||||
jQuery('.note_link_directed').closest('.control-group').show();
|
||||
}
|
||||
|
@ -455,11 +455,11 @@ function lzmprMp(link_type_lzmprMp)
|
|||
}
|
||||
}
|
||||
|
||||
// the wAnuIRh function
|
||||
function wAnuIRh(link_type_wAnuIRh)
|
||||
// the KohbyVh function
|
||||
function KohbyVh(link_type_KohbyVh)
|
||||
{
|
||||
// [8001] set the function logic
|
||||
if (link_type_wAnuIRh == 1)
|
||||
// [8008] set the function logic
|
||||
if (link_type_KohbyVh == 1)
|
||||
{
|
||||
jQuery('.note_link_encrypted').closest('.control-group').show();
|
||||
}
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- [11012] Default Fields. -->
|
||||
<!-- [11013] Id Field. Type: Text (joomla) -->
|
||||
<!-- [11019] Default Fields. -->
|
||||
<!-- [11020] 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"
|
||||
/>
|
||||
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
|
||||
<!-- [11027] 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"
|
||||
/>
|
||||
<!-- [11031] User Created Field. Type: User (joomla) -->
|
||||
<!-- [11038] 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"
|
||||
/>
|
||||
<!-- [11039] Published Field. Type: List (joomla) -->
|
||||
<!-- [11046] 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>
|
||||
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
|
||||
<!-- [11061] 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" />
|
||||
<!-- [11058] User Modified Field. Type: User (joomla) -->
|
||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
|
||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
|
@ -61,7 +61,7 @@
|
|||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
|
||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
|
@ -72,7 +72,7 @@
|
|||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11090] Version Field. Type: Text (joomla) -->
|
||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
|
@ -83,7 +83,7 @@
|
|||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
|
||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metakey"
|
||||
type="textarea"
|
||||
|
@ -92,7 +92,7 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metadesc"
|
||||
type="textarea"
|
||||
|
@ -101,8 +101,8 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11123] Dynamic Fields. -->
|
||||
<!-- [11359] Name Field. Type: Text. (joomla) -->
|
||||
<!-- [11130] Dynamic Fields. -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11480] Preacher Field. Type: Preachers. (custom) -->
|
||||
<!-- [11487] Preacher Field. Type: Preachers. (custom) -->
|
||||
<field
|
||||
type="preachers"
|
||||
name="preacher"
|
||||
|
@ -129,7 +129,7 @@
|
|||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- [11480] Series Field. Type: Series. (custom) -->
|
||||
<!-- [11487] Series Field. Type: Series. (custom) -->
|
||||
<field
|
||||
type="series"
|
||||
name="series"
|
||||
|
@ -140,7 +140,7 @@
|
|||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- [11359] Short_description Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11359] Catid Field. Type: Category. (joomla) -->
|
||||
<!-- [11366] Catid Field. Type: Category. (joomla) -->
|
||||
<field
|
||||
type="category"
|
||||
name="catid"
|
||||
|
@ -164,7 +164,7 @@
|
|||
description="COM_SERMONDISTRIBUTOR_SERMON_CATID_DESCRIPTION"
|
||||
class="inputbox"
|
||||
/>
|
||||
<!-- [11273] Link_type Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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">
|
||||
<!-- [11345] Option Set. -->
|
||||
<!-- [11352] Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_SERMON_DIRECT</option>
|
||||
</field>
|
||||
<!-- [11273] Source Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Source Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="source"
|
||||
|
@ -189,7 +189,7 @@
|
|||
multiple="false"
|
||||
filter="INT"
|
||||
required="true">
|
||||
<!-- [11345] Option Set. -->
|
||||
<!-- [11352] 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>
|
||||
<!-- [11359] Icon Field. Type: Media. (joomla) -->
|
||||
<!-- [11366] Icon Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="icon"
|
||||
|
@ -207,7 +207,7 @@
|
|||
description="COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION"
|
||||
directory=""
|
||||
/>
|
||||
<!-- [11359] Tags Field. Type: Tag. (joomla) -->
|
||||
<!-- [11366] Tags Field. Type: Tag. (joomla) -->
|
||||
<field
|
||||
type="tag"
|
||||
name="tags"
|
||||
|
@ -218,7 +218,7 @@
|
|||
published="true"
|
||||
multiple="true"
|
||||
/>
|
||||
<!-- [11480] Local_files Field. Type: Localfiles. (custom) -->
|
||||
<!-- [11487] Local_files Field. Type: Localfiles. (custom) -->
|
||||
<field
|
||||
type="localfiles"
|
||||
name="local_files"
|
||||
|
@ -230,7 +230,7 @@
|
|||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- [11359] Description Field. Type: Editor. (joomla) -->
|
||||
<!-- [11366] Description Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="description"
|
||||
|
@ -242,9 +242,9 @@
|
|||
buttons="false"
|
||||
filter="safehtml"
|
||||
/>
|
||||
<!-- [11373] Note_auto_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<!-- [11380] 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" />
|
||||
<!-- [11359] Alias Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="alias"
|
||||
|
@ -253,19 +253,19 @@
|
|||
filter="STRING"
|
||||
hint="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT"
|
||||
/>
|
||||
<!-- [11359] Not_required Field. Type: Hidden. (joomla) -->
|
||||
<!-- [11366] Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="not_required"
|
||||
default="[]"
|
||||
/>
|
||||
<!-- [11373] Note_link_directed Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<!-- [11380] 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" />
|
||||
<!-- [11373] Note_manual_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<!-- [11380] 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" />
|
||||
<!-- [11373] Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<!-- [11380] 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" />
|
||||
<!-- [11480] Manual_files Field. Type: Dropboxfiles. (custom) -->
|
||||
<!-- [11487] Manual_files Field. Type: Dropboxfiles. (custom) -->
|
||||
<field
|
||||
type="dropboxfiles"
|
||||
name="manual_files"
|
||||
|
@ -277,7 +277,7 @@
|
|||
required="true"
|
||||
button="false"
|
||||
/>
|
||||
<!-- [11359] Scripture Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11359] Url Field. Type: Url. (joomla) -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11273] Build Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] Build Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="build"
|
||||
|
@ -317,13 +317,13 @@
|
|||
class="btn-group btn-group-yesno"
|
||||
default="1"
|
||||
required="true">
|
||||
<!-- [11345] Option Set. -->
|
||||
<!-- [11352] Option Set. -->
|
||||
<option value="1">
|
||||
COM_SERMONDISTRIBUTOR_SERMON_MANUAL</option>
|
||||
<option value="2">
|
||||
COM_SERMONDISTRIBUTOR_SERMON_AUTOMATIC</option>
|
||||
</field>
|
||||
<!-- [11359] Auto_sermons Field. Type: Hidden. (joomla) -->
|
||||
<!-- [11366] Auto_sermons Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="auto_sermons"
|
||||
|
@ -331,11 +331,11 @@
|
|||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- [11142] Metadata Fields. -->
|
||||
<!-- [11149] Metadata Fields. -->
|
||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<fieldset name="vdmmetadata"
|
||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<!-- [11146] Robots Field. Type: List (joomla) -->
|
||||
<!-- [11153] 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>
|
||||
<!-- [11157] Author Field. Type: Text (joomla) -->
|
||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
||||
<field name="author"
|
||||
type="text"
|
||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||
size="20"
|
||||
/>
|
||||
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
|
||||
<!-- [11170] 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>
|
||||
|
||||
<!-- [10046] Access Control Fields. -->
|
||||
<!-- [10053] Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [10054] Rules Field. Type: Rules (joomla) -->
|
||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- [11012] Default Fields. -->
|
||||
<!-- [11013] Id Field. Type: Text (joomla) -->
|
||||
<!-- [11019] Default Fields. -->
|
||||
<!-- [11020] 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"
|
||||
/>
|
||||
<!-- [11020] Date Created Field. Type: Calendar (joomla) -->
|
||||
<!-- [11027] 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"
|
||||
/>
|
||||
<!-- [11031] User Created Field. Type: User (joomla) -->
|
||||
<!-- [11038] 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"
|
||||
/>
|
||||
<!-- [11039] Published Field. Type: List (joomla) -->
|
||||
<!-- [11046] 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>
|
||||
<!-- [11054] Date Modified Field. Type: Calendar (joomla) -->
|
||||
<!-- [11061] 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" />
|
||||
<!-- [11058] User Modified Field. Type: User (joomla) -->
|
||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11068] Access Field. Type: Accesslevel (joomla) -->
|
||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
|
@ -61,7 +61,7 @@
|
|||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11078] Ordering Field. Type: Numbers (joomla) -->
|
||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
|
@ -72,7 +72,7 @@
|
|||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- [11090] Version Field. Type: Text (joomla) -->
|
||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
|
@ -83,7 +83,7 @@
|
|||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [11104] Metakey Field. Type: Textarea (joomla) -->
|
||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metakey"
|
||||
type="textarea"
|
||||
|
@ -92,7 +92,7 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11113] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
||||
<field
|
||||
name="metadesc"
|
||||
type="textarea"
|
||||
|
@ -101,8 +101,8 @@
|
|||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
<!-- [11123] Dynamic Fields. -->
|
||||
<!-- [11359] Filename Field. Type: Text. (joomla) -->
|
||||
<!-- [11130] Dynamic Fields. -->
|
||||
<!-- [11366] 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"
|
||||
/>
|
||||
<!-- [11480] Sermon Field. Type: Sermon. (custom) -->
|
||||
<!-- [11487] Sermon Field. Type: Sermon. (custom) -->
|
||||
<field
|
||||
type="sermon"
|
||||
name="sermon"
|
||||
|
@ -127,7 +127,7 @@
|
|||
required="true"
|
||||
button="true"
|
||||
/>
|
||||
<!-- [11480] Preacher Field. Type: Preachers. (custom) -->
|
||||
<!-- [11487] Preacher Field. Type: Preachers. (custom) -->
|
||||
<field
|
||||
type="preachers"
|
||||
name="preacher"
|
||||
|
@ -138,7 +138,7 @@
|
|||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- [11480] Series Field. Type: Series. (custom) -->
|
||||
<!-- [11487] Series Field. Type: Series. (custom) -->
|
||||
<field
|
||||
type="series"
|
||||
name="series"
|
||||
|
@ -149,7 +149,7 @@
|
|||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- [11359] Counter Field. Type: Text. (joomla) -->
|
||||
<!-- [11366] Counter Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="counter"
|
||||
|
@ -165,11 +165,11 @@
|
|||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- [11142] Metadata Fields. -->
|
||||
<!-- [11149] Metadata Fields. -->
|
||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<fieldset name="vdmmetadata"
|
||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||
<!-- [11146] Robots Field. Type: List (joomla) -->
|
||||
<!-- [11153] 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>
|
||||
<!-- [11157] Author Field. Type: Text (joomla) -->
|
||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
||||
<field name="author"
|
||||
type="text"
|
||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||
size="20"
|
||||
/>
|
||||
<!-- [11163] Rights Field. Type: Textarea (joomla) -->
|
||||
<!-- [11170] 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>
|
||||
|
||||
<!-- [10046] Access Control Fields. -->
|
||||
<!-- [10053] Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- [10048] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- [10054] Rules Field. Type: Rules (joomla) -->
|
||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
|
|
|
@ -92,7 +92,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
|
||||
if (!empty($item->groups))
|
||||
{
|
||||
// [3989] JSON Decode groups.
|
||||
// [3996] JSON Decode groups.
|
||||
$item->groups = json_decode($item->groups,true);
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
* @since 1.6
|
||||
*/
|
||||
public function getForm($data = array(), $loadData = true)
|
||||
{ // [9559] Get the form.
|
||||
{ // [9566] 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;
|
||||
|
||||
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||
// [9651] 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');
|
||||
}
|
||||
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||
// [9656] 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();
|
||||
|
||||
// [9655] Check for existing item.
|
||||
// [9656] Modify the form based on Edit State access controls.
|
||||
// [9662] Check for existing item.
|
||||
// [9663] 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')))
|
||||
{
|
||||
// [9669] Disable fields for display.
|
||||
// [9676] Disable fields for display.
|
||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||
// [9672] Disable fields while saving.
|
||||
// [9679] Disable fields while saving.
|
||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||
}
|
||||
// [9677] Modify the form based on Edit Creaded By access controls.
|
||||
// [9684] Modify the form based on Edit Creaded By access controls.
|
||||
if (!$user->authorise('core.edit.created_by', 'com_sermondistributor'))
|
||||
{
|
||||
// [9689] Disable fields for display.
|
||||
// [9696] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||
// [9691] Disable fields for display.
|
||||
// [9698] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||
// [9693] Disable fields while saving.
|
||||
// [9700] Disable fields while saving.
|
||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||
}
|
||||
// [9696] Modify the form based on Edit Creaded Date access controls.
|
||||
// [9703] Modify the form based on Edit Creaded Date access controls.
|
||||
if (!$user->authorise('core.edit.created', 'com_sermondistributor'))
|
||||
{
|
||||
// [9708] Disable fields for display.
|
||||
// [9715] Disable fields for display.
|
||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||
// [9710] Disable fields while saving.
|
||||
// [9717] Disable fields while saving.
|
||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
}
|
||||
|
||||
$user = JFactory::getUser();
|
||||
// [9860] The record has been set. Check the record permissions.
|
||||
// [9867] 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)
|
||||
{
|
||||
// [9947] The record has been set. Check the record permissions.
|
||||
// [9954] 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;
|
||||
}
|
||||
}
|
||||
// [9964] In the absense of better information, revert to the component permissions.
|
||||
// [9971] 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')
|
||||
{
|
||||
// [9772] Check specific edit permission then general edit permission.
|
||||
// [9779] 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)
|
||||
{
|
||||
// [8763] check if the not_required field is set
|
||||
// [8770] 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);
|
||||
// [8768] now change the required field attributes value
|
||||
// [8775] now change the required field attributes value
|
||||
foreach ($requiredFields as $requiredField)
|
||||
{
|
||||
// [8771] make sure there is a string value
|
||||
// [8778] make sure there is a string value
|
||||
if (SermondistributorHelper::checkString($requiredField))
|
||||
{
|
||||
// [8774] change to false
|
||||
// [8781] change to false
|
||||
$form->setFieldAttribute($requiredField, 'required', 'false');
|
||||
// [8776] also clear the data set
|
||||
// [8783] also clear the data set
|
||||
$data[$requiredField] = '';
|
||||
}
|
||||
}
|
||||
|
@ -490,7 +490,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// [4925] Set some needed variables.
|
||||
// [4932] 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;
|
||||
}
|
||||
|
||||
// [4945] get list of uniqe fields
|
||||
// [4952] get list of uniqe fields
|
||||
$uniqeFields = $this->getUniqeFields();
|
||||
// [4947] remove move_copy from array
|
||||
// [4954] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4950] make sure published is set
|
||||
// [4957] make sure published is set
|
||||
if (!isset($values['published']))
|
||||
{
|
||||
$values['published'] = 0;
|
||||
|
@ -521,21 +521,21 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
|
||||
$newIds = array();
|
||||
|
||||
// [4987] Parent exists so let's proceed
|
||||
// [4994] Parent exists so let's proceed
|
||||
while (!empty($pks))
|
||||
{
|
||||
// [4990] Pop the first ID off the stack
|
||||
// [4997] Pop the first ID off the stack
|
||||
$pk = array_shift($pks);
|
||||
|
||||
$this->table->reset();
|
||||
|
||||
// [4995] only allow copy if user may edit this item.
|
||||
// [5002] only allow copy if user may edit this item.
|
||||
|
||||
if (!$this->user->authorise('help_document.edit', $contexts[$pk]))
|
||||
|
||||
{
|
||||
|
||||
// [5005] Not fatal error
|
||||
// [5012] 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
|
|||
|
||||
}
|
||||
|
||||
// [5010] Check that the row actually exists
|
||||
// [5017] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [5015] Fatal error
|
||||
// [5022] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [5022] Not fatal error
|
||||
// [5029] 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);
|
||||
|
||||
// [5058] insert all set values
|
||||
// [5065] insert all set values
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
|
@ -575,7 +575,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5070] update all uniqe fields
|
||||
// [5077] update all uniqe fields
|
||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||
{
|
||||
foreach ($uniqeFields as $uniqeField)
|
||||
|
@ -584,13 +584,13 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5079] Reset the ID because we are making a copy
|
||||
// [5086] Reset the ID because we are making a copy
|
||||
$this->table->id = 0;
|
||||
|
||||
// [5082] TODO: Deal with ordering?
|
||||
// [5083] $this->table->ordering = 1;
|
||||
// [5089] TODO: Deal with ordering?
|
||||
// [5090] $this->table->ordering = 1;
|
||||
|
||||
// [5085] Check the row.
|
||||
// [5092] 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);
|
||||
}
|
||||
|
||||
// [5098] Store the row.
|
||||
// [5105] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -611,14 +611,14 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
return false;
|
||||
}
|
||||
|
||||
// [5106] Get the new item ID
|
||||
// [5113] Get the new item ID
|
||||
$newId = $this->table->get('id');
|
||||
|
||||
// [5109] Add the new ID to the array
|
||||
// [5116] Add the new ID to the array
|
||||
$newIds[$pk] = $newId;
|
||||
}
|
||||
|
||||
// [5113] Clean the cache
|
||||
// [5120] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return $newIds;
|
||||
|
@ -639,7 +639,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// [4727] Set some needed variables.
|
||||
// [4734] 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;
|
||||
}
|
||||
|
||||
// [4749] make sure published only updates if user has the permission.
|
||||
// [4756] make sure published only updates if user has the permission.
|
||||
if (isset($values['published']) && !$this->canDo->get('help_document.edit.state'))
|
||||
{
|
||||
unset($values['published']);
|
||||
}
|
||||
// [4762] remove move_copy from array
|
||||
// [4769] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4783] Parent exists so we proceed
|
||||
// [4790] 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;
|
||||
}
|
||||
|
||||
// [4800] Check that the row actually exists
|
||||
// [4807] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [4805] Fatal error
|
||||
// [4812] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4812] Not fatal error
|
||||
// [4819] Not fatal error
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// [4818] insert all set values.
|
||||
// [4825] insert all set values.
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
{
|
||||
// [4823] Do special action for access.
|
||||
// [4830] Do special action for access.
|
||||
if ('access' == $key && strlen($value) > 0)
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
|
@ -708,7 +708,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
}
|
||||
|
||||
|
||||
// [4835] Check the row.
|
||||
// [4842] 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);
|
||||
}
|
||||
|
||||
// [4848] Store the row.
|
||||
// [4855] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -730,7 +730,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [4857] Clean the cache
|
||||
// [4864] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return true;
|
||||
|
@ -760,7 +760,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
// [4099] Set the groups string to JSON string.
|
||||
// [4106] Set the groups string to JSON string.
|
||||
if (isset($data['groups']))
|
||||
{
|
||||
$data['groups'] = (string) json_encode($data['groups']);
|
||||
|
@ -774,7 +774,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||
$data['params'] = (string) $params;
|
||||
}
|
||||
|
||||
// [5139] Alter the title for save as copy
|
||||
// [5146] 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;
|
||||
}
|
||||
|
||||
// [5166] Automatic handling of alias for empty fields
|
||||
// [5173] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [5205] Alter the uniqe field for save as copy
|
||||
// [5212] Alter the uniqe field for save as copy
|
||||
if ($input->get('task') == 'save2copy')
|
||||
{
|
||||
// [5208] Automatic handling of other uniqe fields
|
||||
// [5215] 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)
|
||||
{
|
||||
|
||||
// [5239] Alter the title & alias
|
||||
// [5246] Alter the title & alias
|
||||
$table = $this->getTable();
|
||||
|
||||
while ($table->load(array('alias' => $alias)))
|
||||
|
|
|
@ -108,16 +108,16 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||
*/
|
||||
public function getItems()
|
||||
{
|
||||
// [10529] check in items
|
||||
// [10536] check in items
|
||||
$this->checkInNow();
|
||||
|
||||
// load parent items
|
||||
$items = parent::getItems();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -128,7 +128,7 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||
continue;
|
||||
}
|
||||
|
||||
// [10675] decode groups
|
||||
// [10682] decode groups
|
||||
$groupsArray = json_decode($item->groups, true);
|
||||
if (SermondistributorHelper::checkArray($groupsArray))
|
||||
{
|
||||
|
@ -151,14 +151,14 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||
}
|
||||
}
|
||||
|
||||
// [10870] set selection value to a translatable value
|
||||
// [10877] set selection value to a translatable value
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// [10877] convert type
|
||||
// [10884] convert type
|
||||
$item->type = $this->selectionTranslation($item->type, 'type');
|
||||
// [10877] convert location
|
||||
// [10884] convert location
|
||||
$item->location = $this->selectionTranslation($item->location, 'location');
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||
*/
|
||||
public function selectionTranslation($value,$name)
|
||||
{
|
||||
// [10903] Array of type language strings
|
||||
// [10910] 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'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] Now check if value is found in this array
|
||||
if (isset($typeArray[$value]) && SermondistributorHelper::checkString($typeArray[$value]))
|
||||
{
|
||||
return $typeArray[$value];
|
||||
}
|
||||
}
|
||||
// [10903] Array of location language strings
|
||||
// [10910] Array of location language strings
|
||||
if ($name == 'location')
|
||||
{
|
||||
$locationArray = array(
|
||||
1 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN',
|
||||
2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] 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()
|
||||
{
|
||||
// [7390] Get the user object.
|
||||
// [7397] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7392] Create a new query object.
|
||||
// [7399] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7395] Select some fields
|
||||
// [7402] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7402] From the sermondistributor_item table
|
||||
// [7409] From the sermondistributor_item table
|
||||
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
|
||||
|
||||
// [7416] Filter by published state
|
||||
// [7423] 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)');
|
||||
}
|
||||
|
||||
// [7428] Join over the asset groups.
|
||||
// [7435] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [7431] Filter by access level.
|
||||
// [7438] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [7436] Implement View Level Access
|
||||
// [7443] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
// [7513] Filter by search.
|
||||
// [7520] Filter by search.
|
||||
$search = $this->getState('filter.search');
|
||||
if (!empty($search))
|
||||
{
|
||||
|
@ -265,28 +265,28 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||
}
|
||||
}
|
||||
|
||||
// [7756] Filter by Type.
|
||||
// [7763] Filter by Type.
|
||||
if ($type = $this->getState('filter.type'))
|
||||
{
|
||||
$query->where('a.type = ' . $db->quote($db->escape($type, true)));
|
||||
}
|
||||
// [7756] Filter by Location.
|
||||
// [7763] Filter by Location.
|
||||
if ($location = $this->getState('filter.location'))
|
||||
{
|
||||
$query->where('a.location = ' . $db->quote($db->escape($location, true)));
|
||||
}
|
||||
// [7756] Filter by Admin_view.
|
||||
// [7763] Filter by Admin_view.
|
||||
if ($admin_view = $this->getState('filter.admin_view'))
|
||||
{
|
||||
$query->where('a.admin_view = ' . $db->quote($db->escape($admin_view, true)));
|
||||
}
|
||||
// [7756] Filter by Site_view.
|
||||
// [7763] Filter by Site_view.
|
||||
if ($site_view = $this->getState('filter.site_view'))
|
||||
{
|
||||
$query->where('a.site_view = ' . $db->quote($db->escape($site_view, true)));
|
||||
}
|
||||
|
||||
// [7472] Add the list ordering clause.
|
||||
// [7479] 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)
|
||||
{
|
||||
// [7180] setup the query
|
||||
// [7187] setup the query
|
||||
if (SermondistributorHelper::checkArray($pks))
|
||||
{
|
||||
// [7183] Get the user object.
|
||||
// [7190] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7185] Create a new query object.
|
||||
// [7192] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7188] Select some fields
|
||||
// [7195] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7190] From the sermondistributor_help_document table
|
||||
// [7197] From the sermondistributor_help_document table
|
||||
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
// [7200] Implement View Level Access
|
||||
// [7207] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [7207] Order the results by ordering
|
||||
// [7214] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7209] Load the items
|
||||
// [7216] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -350,13 +350,13 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||
continue;
|
||||
}
|
||||
|
||||
// [10817] unset the values we don't want exported.
|
||||
// [10824] unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
unset($item->checked_out_time);
|
||||
}
|
||||
}
|
||||
// [10826] Add headers to items array.
|
||||
// [10833] Add headers to items array.
|
||||
$headers = $this->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
|
@ -375,13 +375,13 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// [7229] Get a db connection.
|
||||
// [7236] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [7231] get the columns
|
||||
// [7238] get the columns
|
||||
$columns = $db->getTableColumns("#__sermondistributor_help_document");
|
||||
if (SermondistributorHelper::checkArray($columns))
|
||||
{
|
||||
// [7235] remove the headers you don't import/export.
|
||||
// [7242] 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 = '')
|
||||
{
|
||||
// [10152] Compile the store id.
|
||||
// [10159] 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()
|
||||
{
|
||||
// [10545] Get set check in time
|
||||
// [10552] Get set check in time
|
||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||
|
||||
if ($time)
|
||||
{
|
||||
|
||||
// [10550] Get a db connection.
|
||||
// [10557] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [10552] reset query
|
||||
// [10559] 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())
|
||||
{
|
||||
// [10560] Get Yesterdays date
|
||||
// [10567] Get Yesterdays date
|
||||
$date = JFactory::getDate()->modify($time)->toSql();
|
||||
// [10562] reset query
|
||||
// [10569] reset query
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [10564] Fields to update.
|
||||
// [10571] Fields to update.
|
||||
$fields = array(
|
||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||
$db->quoteName('checked_out') . '=0'
|
||||
);
|
||||
|
||||
// [10569] Conditions for which records should be updated.
|
||||
// [10576] Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('checked_out') . '!=0',
|
||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||
);
|
||||
|
||||
// [10574] Check table
|
||||
// [10581] Check table
|
||||
$query->update($db->quoteName('#__sermondistributor_help_document'))->set($fields)->where($conditions);
|
||||
|
||||
$db->setQuery($query);
|
||||
|
|
|
@ -96,7 +96,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
$item->tags->getTagIds($item->id, 'com_sermondistributor.preacher');
|
||||
}
|
||||
}
|
||||
$this->preacherynwu = $item->id;
|
||||
$this->preacherjhqc = $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 getIuwsermons()
|
||||
public function getJuisermons()
|
||||
{
|
||||
// [6938] Get the user object.
|
||||
// [6945] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [6940] Create a new query object.
|
||||
// [6947] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [6943] Select some fields
|
||||
// [6950] Select some fields
|
||||
$query->select('a.*');
|
||||
$query->select($db->quoteName('c.title','category_title'));
|
||||
|
||||
// [6950] From the sermondistributor_sermon table
|
||||
// [6957] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_preacher table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_series table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [6966] Filter by preacherynwu global.
|
||||
$preacherynwu = $this->preacherynwu;
|
||||
if (is_numeric($preacherynwu ))
|
||||
// [6973] Filter by preacherjhqc global.
|
||||
$preacherjhqc = $this->preacherjhqc;
|
||||
if (is_numeric($preacherjhqc ))
|
||||
{
|
||||
$query->where('a.preacher = ' . (int) $preacherynwu );
|
||||
$query->where('a.preacher = ' . (int) $preacherjhqc );
|
||||
}
|
||||
elseif (is_string($preacherynwu))
|
||||
elseif (is_string($preacherjhqc))
|
||||
{
|
||||
$query->where('a.preacher = ' . $db->quote($preacherynwu));
|
||||
$query->where('a.preacher = ' . $db->quote($preacherjhqc));
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.preacher = -5');
|
||||
}
|
||||
|
||||
// [6983] Join over the asset groups.
|
||||
// [6990] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [6986] Filter by access level.
|
||||
// [6993] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [6991] Implement View Level Access
|
||||
// [6998] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [6998] Order the results by ordering
|
||||
// [7005] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7000] Load the items
|
||||
// [7007] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -187,15 +187,15 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [10870] set selection value to a translatable value
|
||||
// [10877] set selection value to a translatable value
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// [10877] convert link_type
|
||||
$item->link_type = $this->selectionTranslationIuwsermons($item->link_type, 'link_type');
|
||||
// [10877] convert source
|
||||
$item->source = $this->selectionTranslationIuwsermons($item->source, 'source');
|
||||
// [10884] convert link_type
|
||||
$item->link_type = $this->selectionTranslationJuisermons($item->link_type, 'link_type');
|
||||
// [10884] convert source
|
||||
$item->source = $this->selectionTranslationJuisermons($item->source, 'source');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -209,22 +209,22 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationIuwsermons($value,$name)
|
||||
public function selectionTranslationJuisermons($value,$name)
|
||||
{
|
||||
// [10903] Array of link_type language strings
|
||||
// [10910] Array of link_type language strings
|
||||
if ($name == 'link_type')
|
||||
{
|
||||
$link_typeArray = array(
|
||||
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] Now check if value is found in this array
|
||||
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
||||
{
|
||||
return $link_typeArray[$value];
|
||||
}
|
||||
}
|
||||
// [10903] Array of source language strings
|
||||
// [10910] 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'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] 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)
|
||||
{ // [9559] Get the form.
|
||||
{ // [9566] 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;
|
||||
|
||||
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||
// [9651] 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');
|
||||
}
|
||||
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||
// [9656] 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();
|
||||
|
||||
// [9655] Check for existing item.
|
||||
// [9656] Modify the form based on Edit State access controls.
|
||||
// [9662] Check for existing item.
|
||||
// [9663] 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')))
|
||||
{
|
||||
// [9669] Disable fields for display.
|
||||
// [9676] Disable fields for display.
|
||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||
// [9672] Disable fields while saving.
|
||||
// [9679] Disable fields while saving.
|
||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||
}
|
||||
// [9677] Modify the form based on Edit Creaded By access controls.
|
||||
// [9684] 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')))
|
||||
{
|
||||
// [9689] Disable fields for display.
|
||||
// [9696] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||
// [9691] Disable fields for display.
|
||||
// [9698] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||
// [9693] Disable fields while saving.
|
||||
// [9700] Disable fields while saving.
|
||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||
}
|
||||
// [9696] Modify the form based on Edit Creaded Date access controls.
|
||||
// [9703] 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')))
|
||||
{
|
||||
// [9708] Disable fields for display.
|
||||
// [9715] Disable fields for display.
|
||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||
// [9710] Disable fields while saving.
|
||||
// [9717] Disable fields while saving.
|
||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||
}
|
||||
|
||||
|
@ -341,7 +341,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
}
|
||||
|
||||
$user = JFactory::getUser();
|
||||
// [9860] The record has been set. Check the record permissions.
|
||||
// [9867] 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)
|
||||
{
|
||||
// [9947] The record has been set. Check the record permissions.
|
||||
// [9954] 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;
|
||||
}
|
||||
}
|
||||
// [9964] In the absense of better information, revert to the component permissions.
|
||||
// [9971] 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')
|
||||
{
|
||||
// [9772] Check specific edit permission then general edit permission.
|
||||
// [9779] 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))
|
||||
{
|
||||
// [4925] Set some needed variables.
|
||||
// [4932] 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;
|
||||
}
|
||||
|
||||
// [4945] get list of uniqe fields
|
||||
// [4952] get list of uniqe fields
|
||||
$uniqeFields = $this->getUniqeFields();
|
||||
// [4947] remove move_copy from array
|
||||
// [4954] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4950] make sure published is set
|
||||
// [4957] make sure published is set
|
||||
if (!isset($values['published']))
|
||||
{
|
||||
$values['published'] = 0;
|
||||
|
@ -623,21 +623,21 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
|
||||
$newIds = array();
|
||||
|
||||
// [4987] Parent exists so let's proceed
|
||||
// [4994] Parent exists so let's proceed
|
||||
while (!empty($pks))
|
||||
{
|
||||
// [4990] Pop the first ID off the stack
|
||||
// [4997] Pop the first ID off the stack
|
||||
$pk = array_shift($pks);
|
||||
|
||||
$this->table->reset();
|
||||
|
||||
// [4995] only allow copy if user may edit this item.
|
||||
// [5002] only allow copy if user may edit this item.
|
||||
|
||||
if (!$this->user->authorise('preacher.edit', $contexts[$pk]))
|
||||
|
||||
{
|
||||
|
||||
// [5005] Not fatal error
|
||||
// [5012] Not fatal error
|
||||
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
|
||||
|
@ -645,19 +645,19 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
|
||||
}
|
||||
|
||||
// [5010] Check that the row actually exists
|
||||
// [5017] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [5015] Fatal error
|
||||
// [5022] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [5022] Not fatal error
|
||||
// [5029] 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);
|
||||
|
||||
// [5058] insert all set values
|
||||
// [5065] insert all set values
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
|
@ -677,7 +677,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5070] update all uniqe fields
|
||||
// [5077] update all uniqe fields
|
||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||
{
|
||||
foreach ($uniqeFields as $uniqeField)
|
||||
|
@ -686,13 +686,13 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5079] Reset the ID because we are making a copy
|
||||
// [5086] Reset the ID because we are making a copy
|
||||
$this->table->id = 0;
|
||||
|
||||
// [5082] TODO: Deal with ordering?
|
||||
// [5083] $this->table->ordering = 1;
|
||||
// [5089] TODO: Deal with ordering?
|
||||
// [5090] $this->table->ordering = 1;
|
||||
|
||||
// [5085] Check the row.
|
||||
// [5092] 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);
|
||||
}
|
||||
|
||||
// [5098] Store the row.
|
||||
// [5105] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -713,14 +713,14 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
return false;
|
||||
}
|
||||
|
||||
// [5106] Get the new item ID
|
||||
// [5113] Get the new item ID
|
||||
$newId = $this->table->get('id');
|
||||
|
||||
// [5109] Add the new ID to the array
|
||||
// [5116] Add the new ID to the array
|
||||
$newIds[$pk] = $newId;
|
||||
}
|
||||
|
||||
// [5113] Clean the cache
|
||||
// [5120] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return $newIds;
|
||||
|
@ -741,7 +741,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// [4727] Set some needed variables.
|
||||
// [4734] 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;
|
||||
}
|
||||
|
||||
// [4749] make sure published only updates if user has the permission.
|
||||
// [4756] make sure published only updates if user has the permission.
|
||||
if (isset($values['published']) && !$this->canDo->get('preacher.edit.state'))
|
||||
{
|
||||
unset($values['published']);
|
||||
}
|
||||
// [4762] remove move_copy from array
|
||||
// [4769] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4783] Parent exists so we proceed
|
||||
// [4790] 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;
|
||||
}
|
||||
|
||||
// [4800] Check that the row actually exists
|
||||
// [4807] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [4805] Fatal error
|
||||
// [4812] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4812] Not fatal error
|
||||
// [4819] Not fatal error
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// [4818] insert all set values.
|
||||
// [4825] insert all set values.
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
{
|
||||
// [4823] Do special action for access.
|
||||
// [4830] Do special action for access.
|
||||
if ('access' == $key && strlen($value) > 0)
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
|
@ -810,7 +810,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
}
|
||||
|
||||
|
||||
// [4835] Check the row.
|
||||
// [4842] 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);
|
||||
}
|
||||
|
||||
// [4848] Store the row.
|
||||
// [4855] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -832,7 +832,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [4857] Clean the cache
|
||||
// [4864] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return true;
|
||||
|
@ -870,7 +870,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||
$data['params'] = (string) $params;
|
||||
}
|
||||
|
||||
// [5139] Alter the name for save as copy
|
||||
// [5146] 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;
|
||||
}
|
||||
|
||||
// [5166] Automatic handling of alias for empty fields
|
||||
// [5173] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [5205] Alter the uniqe field for save as copy
|
||||
// [5212] Alter the uniqe field for save as copy
|
||||
if ($input->get('task') == 'save2copy')
|
||||
{
|
||||
// [5208] Automatic handling of other uniqe fields
|
||||
// [5215] 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)
|
||||
{
|
||||
|
||||
// [5239] Alter the title & alias
|
||||
// [5246] Alter the title & alias
|
||||
$table = $this->getTable();
|
||||
|
||||
while ($table->load(array('alias' => $alias)))
|
||||
|
|
|
@ -96,16 +96,16 @@ class SermondistributorModelPreachers extends JModelList
|
|||
*/
|
||||
public function getItems()
|
||||
{
|
||||
// [10529] check in items
|
||||
// [10536] check in items
|
||||
$this->checkInNow();
|
||||
|
||||
// load parent items
|
||||
$items = parent::getItems();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -130,19 +130,19 @@ class SermondistributorModelPreachers extends JModelList
|
|||
*/
|
||||
protected function getListQuery()
|
||||
{
|
||||
// [7390] Get the user object.
|
||||
// [7397] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7392] Create a new query object.
|
||||
// [7399] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7395] Select some fields
|
||||
// [7402] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7402] From the sermondistributor_item table
|
||||
// [7409] From the sermondistributor_item table
|
||||
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
|
||||
|
||||
// [7416] Filter by published state
|
||||
// [7423] 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)');
|
||||
}
|
||||
|
||||
// [7428] Join over the asset groups.
|
||||
// [7435] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [7431] Filter by access level.
|
||||
// [7438] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [7436] Implement View Level Access
|
||||
// [7443] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
// [7513] Filter by search.
|
||||
// [7520] Filter by search.
|
||||
$search = $this->getState('filter.search');
|
||||
if (!empty($search))
|
||||
{
|
||||
|
@ -183,7 +183,7 @@ class SermondistributorModelPreachers extends JModelList
|
|||
}
|
||||
|
||||
|
||||
// [7472] Add the list ordering clause.
|
||||
// [7479] 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)
|
||||
{
|
||||
// [7180] setup the query
|
||||
// [7187] setup the query
|
||||
if (SermondistributorHelper::checkArray($pks))
|
||||
{
|
||||
// [7183] Get the user object.
|
||||
// [7190] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7185] Create a new query object.
|
||||
// [7192] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7188] Select some fields
|
||||
// [7195] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7190] From the sermondistributor_preacher table
|
||||
// [7197] From the sermondistributor_preacher table
|
||||
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
// [7200] Implement View Level Access
|
||||
// [7207] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [7207] Order the results by ordering
|
||||
// [7214] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7209] Load the items
|
||||
// [7216] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -247,13 +247,13 @@ class SermondistributorModelPreachers extends JModelList
|
|||
continue;
|
||||
}
|
||||
|
||||
// [10817] unset the values we don't want exported.
|
||||
// [10824] unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
unset($item->checked_out_time);
|
||||
}
|
||||
}
|
||||
// [10826] Add headers to items array.
|
||||
// [10833] Add headers to items array.
|
||||
$headers = $this->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
|
@ -272,13 +272,13 @@ class SermondistributorModelPreachers extends JModelList
|
|||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// [7229] Get a db connection.
|
||||
// [7236] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [7231] get the columns
|
||||
// [7238] get the columns
|
||||
$columns = $db->getTableColumns("#__sermondistributor_preacher");
|
||||
if (SermondistributorHelper::checkArray($columns))
|
||||
{
|
||||
// [7235] remove the headers you don't import/export.
|
||||
// [7242] 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 = '')
|
||||
{
|
||||
// [10152] Compile the store id.
|
||||
// [10159] 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()
|
||||
{
|
||||
// [10545] Get set check in time
|
||||
// [10552] Get set check in time
|
||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||
|
||||
if ($time)
|
||||
{
|
||||
|
||||
// [10550] Get a db connection.
|
||||
// [10557] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [10552] reset query
|
||||
// [10559] 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())
|
||||
{
|
||||
// [10560] Get Yesterdays date
|
||||
// [10567] Get Yesterdays date
|
||||
$date = JFactory::getDate()->modify($time)->toSql();
|
||||
// [10562] reset query
|
||||
// [10569] reset query
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [10564] Fields to update.
|
||||
// [10571] Fields to update.
|
||||
$fields = array(
|
||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||
$db->quoteName('checked_out') . '=0'
|
||||
);
|
||||
|
||||
// [10569] Conditions for which records should be updated.
|
||||
// [10576] Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('checked_out') . '!=0',
|
||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||
);
|
||||
|
||||
// [10574] Check table
|
||||
// [10581] Check table
|
||||
$query->update($db->quoteName('#__sermondistributor_preacher'))->set($fields)->where($conditions);
|
||||
|
||||
$db->setQuery($query);
|
||||
|
|
|
@ -96,7 +96,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
$item->tags->getTagIds($item->id, 'com_sermondistributor.series');
|
||||
}
|
||||
}
|
||||
$this->serieswuoy = $item->id;
|
||||
$this->serieshsnv = $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 getMzrsermons()
|
||||
public function getWxrsermons()
|
||||
{
|
||||
// [6938] Get the user object.
|
||||
// [6945] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [6940] Create a new query object.
|
||||
// [6947] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [6943] Select some fields
|
||||
// [6950] Select some fields
|
||||
$query->select('a.*');
|
||||
$query->select($db->quoteName('c.title','category_title'));
|
||||
|
||||
// [6950] From the sermondistributor_sermon table
|
||||
// [6957] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_preacher table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_series table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [6966] Filter by serieswuoy global.
|
||||
$serieswuoy = $this->serieswuoy;
|
||||
if (is_numeric($serieswuoy ))
|
||||
// [6973] Filter by serieshsnv global.
|
||||
$serieshsnv = $this->serieshsnv;
|
||||
if (is_numeric($serieshsnv ))
|
||||
{
|
||||
$query->where('a.series = ' . (int) $serieswuoy );
|
||||
$query->where('a.series = ' . (int) $serieshsnv );
|
||||
}
|
||||
elseif (is_string($serieswuoy))
|
||||
elseif (is_string($serieshsnv))
|
||||
{
|
||||
$query->where('a.series = ' . $db->quote($serieswuoy));
|
||||
$query->where('a.series = ' . $db->quote($serieshsnv));
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.series = -5');
|
||||
}
|
||||
|
||||
// [6983] Join over the asset groups.
|
||||
// [6990] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [6986] Filter by access level.
|
||||
// [6993] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [6991] Implement View Level Access
|
||||
// [6998] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [6998] Order the results by ordering
|
||||
// [7005] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7000] Load the items
|
||||
// [7007] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -187,15 +187,15 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [10870] set selection value to a translatable value
|
||||
// [10877] set selection value to a translatable value
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// [10877] convert link_type
|
||||
$item->link_type = $this->selectionTranslationMzrsermons($item->link_type, 'link_type');
|
||||
// [10877] convert source
|
||||
$item->source = $this->selectionTranslationMzrsermons($item->source, 'source');
|
||||
// [10884] convert link_type
|
||||
$item->link_type = $this->selectionTranslationWxrsermons($item->link_type, 'link_type');
|
||||
// [10884] convert source
|
||||
$item->source = $this->selectionTranslationWxrsermons($item->source, 'source');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -209,22 +209,22 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationMzrsermons($value,$name)
|
||||
public function selectionTranslationWxrsermons($value,$name)
|
||||
{
|
||||
// [10903] Array of link_type language strings
|
||||
// [10910] Array of link_type language strings
|
||||
if ($name == 'link_type')
|
||||
{
|
||||
$link_typeArray = array(
|
||||
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] Now check if value is found in this array
|
||||
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
||||
{
|
||||
return $link_typeArray[$value];
|
||||
}
|
||||
}
|
||||
// [10903] Array of source language strings
|
||||
// [10910] 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'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] 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)
|
||||
{ // [9559] Get the form.
|
||||
{ // [9566] 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;
|
||||
|
||||
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||
// [9651] 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');
|
||||
}
|
||||
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||
// [9656] 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();
|
||||
|
||||
// [9655] Check for existing item.
|
||||
// [9656] Modify the form based on Edit State access controls.
|
||||
// [9662] Check for existing item.
|
||||
// [9663] 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')))
|
||||
{
|
||||
// [9669] Disable fields for display.
|
||||
// [9676] Disable fields for display.
|
||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||
// [9672] Disable fields while saving.
|
||||
// [9679] Disable fields while saving.
|
||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||
}
|
||||
// [9677] Modify the form based on Edit Creaded By access controls.
|
||||
// [9684] 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')))
|
||||
{
|
||||
// [9689] Disable fields for display.
|
||||
// [9696] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||
// [9691] Disable fields for display.
|
||||
// [9698] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||
// [9693] Disable fields while saving.
|
||||
// [9700] Disable fields while saving.
|
||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||
}
|
||||
// [9696] Modify the form based on Edit Creaded Date access controls.
|
||||
// [9703] 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')))
|
||||
{
|
||||
// [9708] Disable fields for display.
|
||||
// [9715] Disable fields for display.
|
||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||
// [9710] Disable fields while saving.
|
||||
// [9717] Disable fields while saving.
|
||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||
}
|
||||
|
||||
|
@ -341,7 +341,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
}
|
||||
|
||||
$user = JFactory::getUser();
|
||||
// [9860] The record has been set. Check the record permissions.
|
||||
// [9867] 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)
|
||||
{
|
||||
// [9947] The record has been set. Check the record permissions.
|
||||
// [9954] 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;
|
||||
}
|
||||
}
|
||||
// [9964] In the absense of better information, revert to the component permissions.
|
||||
// [9971] 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')
|
||||
{
|
||||
// [9772] Check specific edit permission then general edit permission.
|
||||
// [9779] 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))
|
||||
{
|
||||
// [4925] Set some needed variables.
|
||||
// [4932] 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;
|
||||
}
|
||||
|
||||
// [4945] get list of uniqe fields
|
||||
// [4952] get list of uniqe fields
|
||||
$uniqeFields = $this->getUniqeFields();
|
||||
// [4947] remove move_copy from array
|
||||
// [4954] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4950] make sure published is set
|
||||
// [4957] make sure published is set
|
||||
if (!isset($values['published']))
|
||||
{
|
||||
$values['published'] = 0;
|
||||
|
@ -623,21 +623,21 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
|
||||
$newIds = array();
|
||||
|
||||
// [4987] Parent exists so let's proceed
|
||||
// [4994] Parent exists so let's proceed
|
||||
while (!empty($pks))
|
||||
{
|
||||
// [4990] Pop the first ID off the stack
|
||||
// [4997] Pop the first ID off the stack
|
||||
$pk = array_shift($pks);
|
||||
|
||||
$this->table->reset();
|
||||
|
||||
// [4995] only allow copy if user may edit this item.
|
||||
// [5002] only allow copy if user may edit this item.
|
||||
|
||||
if (!$this->user->authorise('series.edit', $contexts[$pk]))
|
||||
|
||||
{
|
||||
|
||||
// [5005] Not fatal error
|
||||
// [5012] Not fatal error
|
||||
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
|
||||
|
@ -645,19 +645,19 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
|
||||
}
|
||||
|
||||
// [5010] Check that the row actually exists
|
||||
// [5017] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [5015] Fatal error
|
||||
// [5022] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [5022] Not fatal error
|
||||
// [5029] 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);
|
||||
|
||||
// [5058] insert all set values
|
||||
// [5065] insert all set values
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
|
@ -677,7 +677,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5070] update all uniqe fields
|
||||
// [5077] update all uniqe fields
|
||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||
{
|
||||
foreach ($uniqeFields as $uniqeField)
|
||||
|
@ -686,13 +686,13 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5079] Reset the ID because we are making a copy
|
||||
// [5086] Reset the ID because we are making a copy
|
||||
$this->table->id = 0;
|
||||
|
||||
// [5082] TODO: Deal with ordering?
|
||||
// [5083] $this->table->ordering = 1;
|
||||
// [5089] TODO: Deal with ordering?
|
||||
// [5090] $this->table->ordering = 1;
|
||||
|
||||
// [5085] Check the row.
|
||||
// [5092] 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);
|
||||
}
|
||||
|
||||
// [5098] Store the row.
|
||||
// [5105] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -713,14 +713,14 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
return false;
|
||||
}
|
||||
|
||||
// [5106] Get the new item ID
|
||||
// [5113] Get the new item ID
|
||||
$newId = $this->table->get('id');
|
||||
|
||||
// [5109] Add the new ID to the array
|
||||
// [5116] Add the new ID to the array
|
||||
$newIds[$pk] = $newId;
|
||||
}
|
||||
|
||||
// [5113] Clean the cache
|
||||
// [5120] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return $newIds;
|
||||
|
@ -741,7 +741,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// [4727] Set some needed variables.
|
||||
// [4734] 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;
|
||||
}
|
||||
|
||||
// [4749] make sure published only updates if user has the permission.
|
||||
// [4756] make sure published only updates if user has the permission.
|
||||
if (isset($values['published']) && !$this->canDo->get('series.edit.state'))
|
||||
{
|
||||
unset($values['published']);
|
||||
}
|
||||
// [4762] remove move_copy from array
|
||||
// [4769] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4783] Parent exists so we proceed
|
||||
// [4790] 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;
|
||||
}
|
||||
|
||||
// [4800] Check that the row actually exists
|
||||
// [4807] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [4805] Fatal error
|
||||
// [4812] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4812] Not fatal error
|
||||
// [4819] Not fatal error
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// [4818] insert all set values.
|
||||
// [4825] insert all set values.
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
{
|
||||
// [4823] Do special action for access.
|
||||
// [4830] Do special action for access.
|
||||
if ('access' == $key && strlen($value) > 0)
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
|
@ -810,7 +810,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
}
|
||||
|
||||
|
||||
// [4835] Check the row.
|
||||
// [4842] 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);
|
||||
}
|
||||
|
||||
// [4848] Store the row.
|
||||
// [4855] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -832,7 +832,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [4857] Clean the cache
|
||||
// [4864] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return true;
|
||||
|
@ -870,7 +870,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||
$data['params'] = (string) $params;
|
||||
}
|
||||
|
||||
// [5139] Alter the name for save as copy
|
||||
// [5146] 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;
|
||||
}
|
||||
|
||||
// [5166] Automatic handling of alias for empty fields
|
||||
// [5173] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [5205] Alter the uniqe field for save as copy
|
||||
// [5212] Alter the uniqe field for save as copy
|
||||
if ($input->get('task') == 'save2copy')
|
||||
{
|
||||
// [5208] Automatic handling of other uniqe fields
|
||||
// [5215] 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)
|
||||
{
|
||||
|
||||
// [5239] Alter the title & alias
|
||||
// [5246] Alter the title & alias
|
||||
$table = $this->getTable();
|
||||
|
||||
while ($table->load(array('alias' => $alias)))
|
||||
|
|
|
@ -92,16 +92,16 @@ class SermondistributorModelSeries_list extends JModelList
|
|||
*/
|
||||
public function getItems()
|
||||
{
|
||||
// [10529] check in items
|
||||
// [10536] check in items
|
||||
$this->checkInNow();
|
||||
|
||||
// load parent items
|
||||
$items = parent::getItems();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -126,19 +126,19 @@ class SermondistributorModelSeries_list extends JModelList
|
|||
*/
|
||||
protected function getListQuery()
|
||||
{
|
||||
// [7390] Get the user object.
|
||||
// [7397] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7392] Create a new query object.
|
||||
// [7399] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7395] Select some fields
|
||||
// [7402] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7402] From the sermondistributor_item table
|
||||
// [7409] From the sermondistributor_item table
|
||||
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
|
||||
|
||||
// [7416] Filter by published state
|
||||
// [7423] 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)');
|
||||
}
|
||||
|
||||
// [7428] Join over the asset groups.
|
||||
// [7435] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [7431] Filter by access level.
|
||||
// [7438] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [7436] Implement View Level Access
|
||||
// [7443] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
// [7513] Filter by search.
|
||||
// [7520] Filter by search.
|
||||
$search = $this->getState('filter.search');
|
||||
if (!empty($search))
|
||||
{
|
||||
|
@ -179,7 +179,7 @@ class SermondistributorModelSeries_list extends JModelList
|
|||
}
|
||||
|
||||
|
||||
// [7472] Add the list ordering clause.
|
||||
// [7479] 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)
|
||||
{
|
||||
// [7180] setup the query
|
||||
// [7187] setup the query
|
||||
if (SermondistributorHelper::checkArray($pks))
|
||||
{
|
||||
// [7183] Get the user object.
|
||||
// [7190] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7185] Create a new query object.
|
||||
// [7192] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7188] Select some fields
|
||||
// [7195] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7190] From the sermondistributor_series table
|
||||
// [7197] From the sermondistributor_series table
|
||||
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
// [7200] Implement View Level Access
|
||||
// [7207] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [7207] Order the results by ordering
|
||||
// [7214] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7209] Load the items
|
||||
// [7216] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -243,13 +243,13 @@ class SermondistributorModelSeries_list extends JModelList
|
|||
continue;
|
||||
}
|
||||
|
||||
// [10817] unset the values we don't want exported.
|
||||
// [10824] unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
unset($item->checked_out_time);
|
||||
}
|
||||
}
|
||||
// [10826] Add headers to items array.
|
||||
// [10833] Add headers to items array.
|
||||
$headers = $this->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
|
@ -268,13 +268,13 @@ class SermondistributorModelSeries_list extends JModelList
|
|||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// [7229] Get a db connection.
|
||||
// [7236] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [7231] get the columns
|
||||
// [7238] get the columns
|
||||
$columns = $db->getTableColumns("#__sermondistributor_series");
|
||||
if (SermondistributorHelper::checkArray($columns))
|
||||
{
|
||||
// [7235] remove the headers you don't import/export.
|
||||
// [7242] 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 = '')
|
||||
{
|
||||
// [10152] Compile the store id.
|
||||
// [10159] 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()
|
||||
{
|
||||
// [10545] Get set check in time
|
||||
// [10552] Get set check in time
|
||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||
|
||||
if ($time)
|
||||
{
|
||||
|
||||
// [10550] Get a db connection.
|
||||
// [10557] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [10552] reset query
|
||||
// [10559] 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())
|
||||
{
|
||||
// [10560] Get Yesterdays date
|
||||
// [10567] Get Yesterdays date
|
||||
$date = JFactory::getDate()->modify($time)->toSql();
|
||||
// [10562] reset query
|
||||
// [10569] reset query
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [10564] Fields to update.
|
||||
// [10571] Fields to update.
|
||||
$fields = array(
|
||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||
$db->quoteName('checked_out') . '=0'
|
||||
);
|
||||
|
||||
// [10569] Conditions for which records should be updated.
|
||||
// [10576] Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('checked_out') . '!=0',
|
||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||
);
|
||||
|
||||
// [10574] Check table
|
||||
// [10581] Check table
|
||||
$query->update($db->quoteName('#__sermondistributor_series'))->set($fields)->where($conditions);
|
||||
|
||||
$db->setQuery($query);
|
||||
|
|
|
@ -92,13 +92,13 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
|
||||
if (!empty($item->local_files))
|
||||
{
|
||||
// [3989] JSON Decode local_files.
|
||||
// [3996] JSON Decode local_files.
|
||||
$item->local_files = json_decode($item->local_files);
|
||||
}
|
||||
|
||||
if (!empty($item->manual_files))
|
||||
{
|
||||
// [3989] JSON Decode manual_files.
|
||||
// [3996] JSON Decode manual_files.
|
||||
$item->manual_files = json_decode($item->manual_files);
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
$item->tags->getTagIds($item->id, 'com_sermondistributor.sermon');
|
||||
}
|
||||
}
|
||||
$this->sermonduql = $item->id;
|
||||
$this->sermonqkhc = $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 getScistastics()
|
||||
public function getZgfstastics()
|
||||
{
|
||||
// [6938] Get the user object.
|
||||
// [6945] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [6940] Create a new query object.
|
||||
// [6947] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [6943] Select some fields
|
||||
// [6950] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [6950] From the sermondistributor_statistic table
|
||||
// [6957] From the sermondistributor_statistic table
|
||||
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
||||
|
||||
// [7543] From the sermondistributor_sermon table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_preacher table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_series table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [6966] Filter by sermonduql global.
|
||||
$sermonduql = $this->sermonduql;
|
||||
if (is_numeric($sermonduql ))
|
||||
// [6973] Filter by sermonqkhc global.
|
||||
$sermonqkhc = $this->sermonqkhc;
|
||||
if (is_numeric($sermonqkhc ))
|
||||
{
|
||||
$query->where('a.sermon = ' . (int) $sermonduql );
|
||||
$query->where('a.sermon = ' . (int) $sermonqkhc );
|
||||
}
|
||||
elseif (is_string($sermonduql))
|
||||
elseif (is_string($sermonqkhc))
|
||||
{
|
||||
$query->where('a.sermon = ' . $db->quote($sermonduql));
|
||||
$query->where('a.sermon = ' . $db->quote($sermonqkhc));
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.sermon = -5');
|
||||
}
|
||||
|
||||
// [6983] Join over the asset groups.
|
||||
// [6990] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [6986] Filter by access level.
|
||||
// [6993] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [6991] Implement View Level Access
|
||||
// [6998] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [6998] Order the results by ordering
|
||||
// [7005] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7000] Load the items
|
||||
// [7007] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] 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)
|
||||
{ // [9559] Get the form.
|
||||
{ // [9566] 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;
|
||||
|
||||
// [9586] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||
// [9593] 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');
|
||||
}
|
||||
// [9591] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||
// [9598] 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');
|
||||
}
|
||||
// [9596] Determine correct permissions to check.
|
||||
// [9603] 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))
|
||||
{
|
||||
// [9603] set catagory id
|
||||
// [9610] set catagory id
|
||||
$catid = $this->getItem($id)->catid;
|
||||
|
||||
// [9605] Existing record. Can only edit in selected categories.
|
||||
// [9612] Existing record. Can only edit in selected categories.
|
||||
$form->setFieldAttribute('catid', 'action', 'core.edit');
|
||||
|
||||
// [9607] Existing record. Can only edit own items in selected categories.
|
||||
// [9614] Existing record. Can only edit own items in selected categories.
|
||||
$form->setFieldAttribute('catid', 'action', 'core.edit.own');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// [9613] New record. Can only create in selected categories.
|
||||
// [9620] New record. Can only create in selected categories.
|
||||
$form->setFieldAttribute('catid', 'action', 'core.create');
|
||||
}
|
||||
|
||||
$user = JFactory::getUser();
|
||||
|
||||
// [9617] Check for existing item.
|
||||
// [9618] Modify the form based on Edit State access controls.
|
||||
// [9624] Check for existing item.
|
||||
// [9625] 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')))
|
||||
{
|
||||
// [9633] Disable fields for display.
|
||||
// [9640] Disable fields for display.
|
||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||
|
||||
// [9636] Disable fields while saving.
|
||||
// [9643] Disable fields while saving.
|
||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||
}
|
||||
// [9677] Modify the form based on Edit Creaded By access controls.
|
||||
// [9684] 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')))
|
||||
{
|
||||
// [9689] Disable fields for display.
|
||||
// [9696] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||
// [9691] Disable fields for display.
|
||||
// [9698] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||
// [9693] Disable fields while saving.
|
||||
// [9700] Disable fields while saving.
|
||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||
}
|
||||
// [9696] Modify the form based on Edit Creaded Date access controls.
|
||||
// [9703] 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')))
|
||||
{
|
||||
// [9708] Disable fields for display.
|
||||
// [9715] Disable fields for display.
|
||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||
// [9710] Disable fields while saving.
|
||||
// [9717] Disable fields while saving.
|
||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||
}
|
||||
|
||||
|
@ -333,7 +333,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
|
||||
if ($allow)
|
||||
{
|
||||
// [9831] The record has been set. Check the record permissions.
|
||||
// [9838] 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)
|
||||
{
|
||||
// [9904] The record has been set. Check the record permissions.
|
||||
// [9911] 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;
|
||||
}
|
||||
}
|
||||
// [9920] Check against the category.
|
||||
// [9927] 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;
|
||||
}
|
||||
}
|
||||
// [9931] In the absense of better information, revert to the component permissions.
|
||||
// [9938] 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')
|
||||
{
|
||||
// [9772] Check specific edit permission then general edit permission.
|
||||
// [9779] 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)
|
||||
{
|
||||
// [8763] check if the not_required field is set
|
||||
// [8770] 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);
|
||||
// [8768] now change the required field attributes value
|
||||
// [8775] now change the required field attributes value
|
||||
foreach ($requiredFields as $requiredField)
|
||||
{
|
||||
// [8771] make sure there is a string value
|
||||
// [8778] make sure there is a string value
|
||||
if (SermondistributorHelper::checkString($requiredField))
|
||||
{
|
||||
// [8774] change to false
|
||||
// [8781] change to false
|
||||
$form->setFieldAttribute($requiredField, 'required', 'false');
|
||||
// [8776] also clear the data set
|
||||
// [8783] also clear the data set
|
||||
$data[$requiredField] = '';
|
||||
}
|
||||
}
|
||||
|
@ -631,7 +631,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// [4925] Set some needed variables.
|
||||
// [4932] 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;
|
||||
}
|
||||
|
||||
// [4945] get list of uniqe fields
|
||||
// [4952] get list of uniqe fields
|
||||
$uniqeFields = $this->getUniqeFields();
|
||||
// [4947] remove move_copy from array
|
||||
// [4954] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4950] make sure published is set
|
||||
// [4957] 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)
|
||||
{
|
||||
// [4975] move the category value to correct field name
|
||||
// [4982] 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();
|
||||
|
||||
// [4987] Parent exists so let's proceed
|
||||
// [4994] Parent exists so let's proceed
|
||||
while (!empty($pks))
|
||||
{
|
||||
// [4990] Pop the first ID off the stack
|
||||
// [4997] Pop the first ID off the stack
|
||||
$pk = array_shift($pks);
|
||||
|
||||
$this->table->reset();
|
||||
|
||||
// [4995] only allow copy if user may edit this item.
|
||||
// [5002] only allow copy if user may edit this item.
|
||||
|
||||
if (!$this->user->authorise('sermon.edit', $contexts[$pk]))
|
||||
|
||||
{
|
||||
|
||||
// [5005] Not fatal error
|
||||
// [5012] Not fatal error
|
||||
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
|
||||
|
@ -699,19 +699,19 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
|
||||
}
|
||||
|
||||
// [5010] Check that the row actually exists
|
||||
// [5017] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [5015] Fatal error
|
||||
// [5022] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [5022] Not fatal error
|
||||
// [5029] 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);
|
||||
}
|
||||
|
||||
// [5058] insert all set values
|
||||
// [5065] insert all set values
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
|
@ -738,7 +738,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5070] update all uniqe fields
|
||||
// [5077] update all uniqe fields
|
||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||
{
|
||||
foreach ($uniqeFields as $uniqeField)
|
||||
|
@ -747,13 +747,13 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5079] Reset the ID because we are making a copy
|
||||
// [5086] Reset the ID because we are making a copy
|
||||
$this->table->id = 0;
|
||||
|
||||
// [5082] TODO: Deal with ordering?
|
||||
// [5083] $this->table->ordering = 1;
|
||||
// [5089] TODO: Deal with ordering?
|
||||
// [5090] $this->table->ordering = 1;
|
||||
|
||||
// [5085] Check the row.
|
||||
// [5092] 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);
|
||||
}
|
||||
|
||||
// [5098] Store the row.
|
||||
// [5105] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -774,14 +774,14 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
return false;
|
||||
}
|
||||
|
||||
// [5106] Get the new item ID
|
||||
// [5113] Get the new item ID
|
||||
$newId = $this->table->get('id');
|
||||
|
||||
// [5109] Add the new ID to the array
|
||||
// [5116] Add the new ID to the array
|
||||
$newIds[$pk] = $newId;
|
||||
}
|
||||
|
||||
// [5113] Clean the cache
|
||||
// [5120] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return $newIds;
|
||||
|
@ -802,7 +802,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// [4727] Set some needed variables.
|
||||
// [4734] 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;
|
||||
}
|
||||
|
||||
// [4749] make sure published only updates if user has the permission.
|
||||
// [4756] make sure published only updates if user has the permission.
|
||||
if (isset($values['published']) && !$this->canDo->get('sermon.edit.state'))
|
||||
{
|
||||
unset($values['published']);
|
||||
}
|
||||
// [4762] remove move_copy from array
|
||||
// [4769] 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)
|
||||
{
|
||||
// [4773] move the category value to correct field name
|
||||
// [4780] move the category value to correct field name
|
||||
$values['catid'] = $values['category'];
|
||||
unset($values['category']);
|
||||
}
|
||||
|
@ -841,7 +841,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
}
|
||||
|
||||
|
||||
// [4783] Parent exists so we proceed
|
||||
// [4790] 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;
|
||||
}
|
||||
|
||||
// [4800] Check that the row actually exists
|
||||
// [4807] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [4805] Fatal error
|
||||
// [4812] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4812] Not fatal error
|
||||
// [4819] Not fatal error
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// [4818] insert all set values.
|
||||
// [4825] insert all set values.
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
{
|
||||
// [4823] Do special action for access.
|
||||
// [4830] Do special action for access.
|
||||
if ('access' == $key && strlen($value) > 0)
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
|
@ -887,7 +887,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
}
|
||||
|
||||
|
||||
// [4835] Check the row.
|
||||
// [4842] 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);
|
||||
}
|
||||
|
||||
// [4848] Store the row.
|
||||
// [4855] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -909,7 +909,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [4857] Clean the cache
|
||||
// [4864] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return true;
|
||||
|
@ -939,13 +939,13 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
// [4099] Set the local_files string to JSON string.
|
||||
// [4106] Set the local_files string to JSON string.
|
||||
if (isset($data['local_files']))
|
||||
{
|
||||
$data['local_files'] = (string) json_encode($data['local_files']);
|
||||
}
|
||||
|
||||
// [4099] Set the manual_files string to JSON string.
|
||||
// [4106] Set the manual_files string to JSON string.
|
||||
if (isset($data['manual_files']))
|
||||
{
|
||||
$data['manual_files'] = (string) json_encode($data['manual_files']);
|
||||
|
@ -959,7 +959,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||
$data['params'] = (string) $params;
|
||||
}
|
||||
|
||||
// [5139] Alter the name for save as copy
|
||||
// [5146] 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;
|
||||
}
|
||||
|
||||
// [5166] Automatic handling of alias for empty fields
|
||||
// [5173] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [5205] Alter the uniqe field for save as copy
|
||||
// [5212] Alter the uniqe field for save as copy
|
||||
if ($input->get('task') == 'save2copy')
|
||||
{
|
||||
// [5208] Automatic handling of other uniqe fields
|
||||
// [5215] 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)
|
||||
{
|
||||
|
||||
// [5239] Alter the title & alias
|
||||
// [5246] Alter the title & alias
|
||||
$table = $this->getTable();
|
||||
|
||||
while ($table->load(array('alias' => $alias)))
|
||||
|
|
|
@ -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')
|
||||
);
|
||||
// [12175] view access array
|
||||
// [12182] view access array
|
||||
$viewAccess = array(
|
||||
'preacher.create' => 'preacher.create',
|
||||
'preachers.access' => 'preacher.access',
|
||||
|
|
|
@ -124,16 +124,16 @@ class SermondistributorModelSermons extends JModelList
|
|||
*/
|
||||
public function getItems()
|
||||
{
|
||||
// [10529] check in items
|
||||
// [10536] check in items
|
||||
$this->checkInNow();
|
||||
|
||||
// load parent items
|
||||
$items = parent::getItems();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -147,14 +147,14 @@ class SermondistributorModelSermons extends JModelList
|
|||
}
|
||||
}
|
||||
|
||||
// [10870] set selection value to a translatable value
|
||||
// [10877] set selection value to a translatable value
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// [10877] convert link_type
|
||||
// [10884] convert link_type
|
||||
$item->link_type = $this->selectionTranslation($item->link_type, 'link_type');
|
||||
// [10877] convert source
|
||||
// [10884] convert source
|
||||
$item->source = $this->selectionTranslation($item->source, 'source');
|
||||
}
|
||||
}
|
||||
|
@ -171,20 +171,20 @@ class SermondistributorModelSermons extends JModelList
|
|||
*/
|
||||
public function selectionTranslation($value,$name)
|
||||
{
|
||||
// [10903] Array of link_type language strings
|
||||
// [10910] Array of link_type language strings
|
||||
if ($name == 'link_type')
|
||||
{
|
||||
$link_typeArray = array(
|
||||
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] Now check if value is found in this array
|
||||
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
||||
{
|
||||
return $link_typeArray[$value];
|
||||
}
|
||||
}
|
||||
// [10903] Array of source language strings
|
||||
// [10910] 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'
|
||||
);
|
||||
// [10934] Now check if value is found in this array
|
||||
// [10941] 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()
|
||||
{
|
||||
// [7390] Get the user object.
|
||||
// [7397] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7392] Create a new query object.
|
||||
// [7399] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7395] Select some fields
|
||||
// [7402] Select some fields
|
||||
$query->select('a.*');
|
||||
$query->select($db->quoteName('c.title','category_title'));
|
||||
|
||||
// [7402] From the sermondistributor_item table
|
||||
// [7409] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_preacher table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_series table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7416] Filter by published state
|
||||
// [7423] 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)');
|
||||
}
|
||||
|
||||
// [7428] Join over the asset groups.
|
||||
// [7435] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [7431] Filter by access level.
|
||||
// [7438] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [7436] Implement View Level Access
|
||||
// [7443] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
// [7513] Filter by search.
|
||||
// [7520] Filter by search.
|
||||
$search = $this->getState('filter.search');
|
||||
if (!empty($search))
|
||||
{
|
||||
|
@ -271,28 +271,28 @@ class SermondistributorModelSermons extends JModelList
|
|||
}
|
||||
}
|
||||
|
||||
// [7747] Filter by preacher.
|
||||
// [7754] Filter by preacher.
|
||||
if ($preacher = $this->getState('filter.preacher'))
|
||||
{
|
||||
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
|
||||
}
|
||||
// [7747] Filter by series.
|
||||
// [7754] Filter by series.
|
||||
if ($series = $this->getState('filter.series'))
|
||||
{
|
||||
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
|
||||
}
|
||||
// [7756] Filter by Link_type.
|
||||
// [7763] Filter by Link_type.
|
||||
if ($link_type = $this->getState('filter.link_type'))
|
||||
{
|
||||
$query->where('a.link_type = ' . $db->quote($db->escape($link_type, true)));
|
||||
}
|
||||
// [7756] Filter by Source.
|
||||
// [7763] Filter by Source.
|
||||
if ($source = $this->getState('filter.source'))
|
||||
{
|
||||
$query->where('a.source = ' . $db->quote($db->escape($source, true)));
|
||||
}
|
||||
|
||||
// [7450] Filter by a single or group of categories.
|
||||
// [7457] Filter by a single or group of categories.
|
||||
$baselevel = 1;
|
||||
$categoryId = $this->getState('filter.category_id');
|
||||
|
||||
|
@ -314,7 +314,7 @@ class SermondistributorModelSermons extends JModelList
|
|||
}
|
||||
|
||||
|
||||
// [7472] Add the list ordering clause.
|
||||
// [7479] 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)
|
||||
{
|
||||
// [7180] setup the query
|
||||
// [7187] setup the query
|
||||
if (SermondistributorHelper::checkArray($pks))
|
||||
{
|
||||
// [7183] Get the user object.
|
||||
// [7190] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7185] Create a new query object.
|
||||
// [7192] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7188] Select some fields
|
||||
// [7195] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7190] From the sermondistributor_sermon table
|
||||
// [7197] From the sermondistributor_sermon table
|
||||
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
// [7200] Implement View Level Access
|
||||
// [7207] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [7207] Order the results by ordering
|
||||
// [7214] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7209] Load the items
|
||||
// [7216] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -378,13 +378,13 @@ class SermondistributorModelSermons extends JModelList
|
|||
continue;
|
||||
}
|
||||
|
||||
// [10817] unset the values we don't want exported.
|
||||
// [10824] unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
unset($item->checked_out_time);
|
||||
}
|
||||
}
|
||||
// [10826] Add headers to items array.
|
||||
// [10833] Add headers to items array.
|
||||
$headers = $this->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
|
@ -403,13 +403,13 @@ class SermondistributorModelSermons extends JModelList
|
|||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// [7229] Get a db connection.
|
||||
// [7236] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [7231] get the columns
|
||||
// [7238] get the columns
|
||||
$columns = $db->getTableColumns("#__sermondistributor_sermon");
|
||||
if (SermondistributorHelper::checkArray($columns))
|
||||
{
|
||||
// [7235] remove the headers you don't import/export.
|
||||
// [7242] 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 = '')
|
||||
{
|
||||
// [10152] Compile the store id.
|
||||
// [10159] 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()
|
||||
{
|
||||
// [10545] Get set check in time
|
||||
// [10552] Get set check in time
|
||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||
|
||||
if ($time)
|
||||
{
|
||||
|
||||
// [10550] Get a db connection.
|
||||
// [10557] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [10552] reset query
|
||||
// [10559] 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())
|
||||
{
|
||||
// [10560] Get Yesterdays date
|
||||
// [10567] Get Yesterdays date
|
||||
$date = JFactory::getDate()->modify($time)->toSql();
|
||||
// [10562] reset query
|
||||
// [10569] reset query
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [10564] Fields to update.
|
||||
// [10571] Fields to update.
|
||||
$fields = array(
|
||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||
$db->quoteName('checked_out') . '=0'
|
||||
);
|
||||
|
||||
// [10569] Conditions for which records should be updated.
|
||||
// [10576] Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('checked_out') . '!=0',
|
||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||
);
|
||||
|
||||
// [10574] Check table
|
||||
// [10581] Check table
|
||||
$query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions);
|
||||
|
||||
$db->setQuery($query);
|
||||
|
|
|
@ -111,7 +111,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
* @since 1.6
|
||||
*/
|
||||
public function getForm($data = array(), $loadData = true)
|
||||
{ // [9559] Get the form.
|
||||
{ // [9566] 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;
|
||||
|
||||
// [9644] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||
// [9651] 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');
|
||||
}
|
||||
// [9649] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||
// [9656] 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();
|
||||
|
||||
// [9655] Check for existing item.
|
||||
// [9656] Modify the form based on Edit State access controls.
|
||||
// [9662] Check for existing item.
|
||||
// [9663] 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')))
|
||||
{
|
||||
// [9669] Disable fields for display.
|
||||
// [9676] Disable fields for display.
|
||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||
// [9672] Disable fields while saving.
|
||||
// [9679] Disable fields while saving.
|
||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||
}
|
||||
// [9677] Modify the form based on Edit Creaded By access controls.
|
||||
// [9684] 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')))
|
||||
{
|
||||
// [9689] Disable fields for display.
|
||||
// [9696] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||
// [9691] Disable fields for display.
|
||||
// [9698] Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||
// [9693] Disable fields while saving.
|
||||
// [9700] Disable fields while saving.
|
||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||
}
|
||||
// [9696] Modify the form based on Edit Creaded Date access controls.
|
||||
// [9703] 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')))
|
||||
{
|
||||
// [9708] Disable fields for display.
|
||||
// [9715] Disable fields for display.
|
||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||
// [9710] Disable fields while saving.
|
||||
// [9717] Disable fields while saving.
|
||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
}
|
||||
|
||||
$user = JFactory::getUser();
|
||||
// [9860] The record has been set. Check the record permissions.
|
||||
// [9867] 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)
|
||||
{
|
||||
// [9947] The record has been set. Check the record permissions.
|
||||
// [9954] 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;
|
||||
}
|
||||
}
|
||||
// [9964] In the absense of better information, revert to the component permissions.
|
||||
// [9971] 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')
|
||||
{
|
||||
// [9772] Check specific edit permission then general edit permission.
|
||||
// [9779] 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))
|
||||
{
|
||||
// [4925] Set some needed variables.
|
||||
// [4932] 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;
|
||||
}
|
||||
|
||||
// [4945] get list of uniqe fields
|
||||
// [4952] get list of uniqe fields
|
||||
$uniqeFields = $this->getUniqeFields();
|
||||
// [4947] remove move_copy from array
|
||||
// [4954] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4950] make sure published is set
|
||||
// [4957] make sure published is set
|
||||
if (!isset($values['published']))
|
||||
{
|
||||
$values['published'] = 0;
|
||||
|
@ -481,21 +481,21 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
|
||||
$newIds = array();
|
||||
|
||||
// [4987] Parent exists so let's proceed
|
||||
// [4994] Parent exists so let's proceed
|
||||
while (!empty($pks))
|
||||
{
|
||||
// [4990] Pop the first ID off the stack
|
||||
// [4997] Pop the first ID off the stack
|
||||
$pk = array_shift($pks);
|
||||
|
||||
$this->table->reset();
|
||||
|
||||
// [4995] only allow copy if user may edit this item.
|
||||
// [5002] only allow copy if user may edit this item.
|
||||
|
||||
if (!$this->user->authorise('statistic.edit', $contexts[$pk]))
|
||||
|
||||
{
|
||||
|
||||
// [5005] Not fatal error
|
||||
// [5012] Not fatal error
|
||||
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
|
||||
|
@ -503,19 +503,19 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
|
||||
}
|
||||
|
||||
// [5010] Check that the row actually exists
|
||||
// [5017] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [5015] Fatal error
|
||||
// [5022] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [5022] Not fatal error
|
||||
// [5029] 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);
|
||||
|
||||
// [5058] insert all set values
|
||||
// [5065] insert all set values
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
|
@ -535,7 +535,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5070] update all uniqe fields
|
||||
// [5077] update all uniqe fields
|
||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||
{
|
||||
foreach ($uniqeFields as $uniqeField)
|
||||
|
@ -544,13 +544,13 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [5079] Reset the ID because we are making a copy
|
||||
// [5086] Reset the ID because we are making a copy
|
||||
$this->table->id = 0;
|
||||
|
||||
// [5082] TODO: Deal with ordering?
|
||||
// [5083] $this->table->ordering = 1;
|
||||
// [5089] TODO: Deal with ordering?
|
||||
// [5090] $this->table->ordering = 1;
|
||||
|
||||
// [5085] Check the row.
|
||||
// [5092] 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);
|
||||
}
|
||||
|
||||
// [5098] Store the row.
|
||||
// [5105] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -571,14 +571,14 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
return false;
|
||||
}
|
||||
|
||||
// [5106] Get the new item ID
|
||||
// [5113] Get the new item ID
|
||||
$newId = $this->table->get('id');
|
||||
|
||||
// [5109] Add the new ID to the array
|
||||
// [5116] Add the new ID to the array
|
||||
$newIds[$pk] = $newId;
|
||||
}
|
||||
|
||||
// [5113] Clean the cache
|
||||
// [5120] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return $newIds;
|
||||
|
@ -599,7 +599,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// [4727] Set some needed variables.
|
||||
// [4734] 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;
|
||||
}
|
||||
|
||||
// [4749] make sure published only updates if user has the permission.
|
||||
// [4756] make sure published only updates if user has the permission.
|
||||
if (isset($values['published']) && !$this->canDo->get('statistic.edit.state'))
|
||||
{
|
||||
unset($values['published']);
|
||||
}
|
||||
// [4762] remove move_copy from array
|
||||
// [4769] remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// [4783] Parent exists so we proceed
|
||||
// [4790] 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;
|
||||
}
|
||||
|
||||
// [4800] Check that the row actually exists
|
||||
// [4807] Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// [4805] Fatal error
|
||||
// [4812] Fatal error
|
||||
$this->setError($error);
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4812] Not fatal error
|
||||
// [4819] Not fatal error
|
||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// [4818] insert all set values.
|
||||
// [4825] insert all set values.
|
||||
if (SermondistributorHelper::checkArray($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
{
|
||||
// [4823] Do special action for access.
|
||||
// [4830] Do special action for access.
|
||||
if ('access' == $key && strlen($value) > 0)
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
|
@ -668,7 +668,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
}
|
||||
|
||||
|
||||
// [4835] Check the row.
|
||||
// [4842] 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);
|
||||
}
|
||||
|
||||
// [4848] Store the row.
|
||||
// [4855] Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
@ -690,7 +690,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
}
|
||||
}
|
||||
|
||||
// [4857] Clean the cache
|
||||
// [4864] Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return true;
|
||||
|
@ -728,10 +728,10 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||
$data['params'] = (string) $params;
|
||||
}
|
||||
|
||||
// [5205] Alter the uniqe field for save as copy
|
||||
// [5212] Alter the uniqe field for save as copy
|
||||
if ($input->get('task') == 'save2copy')
|
||||
{
|
||||
// [5208] Automatic handling of other uniqe fields
|
||||
// [5215] 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)
|
||||
{
|
||||
|
||||
// [5263] Alter the title
|
||||
// [5270] Alter the title
|
||||
$table = $this->getTable();
|
||||
|
||||
while ($table->load(array('title' => $title)))
|
||||
|
|
|
@ -108,16 +108,16 @@ class SermondistributorModelStatistics extends JModelList
|
|||
*/
|
||||
public function getItems()
|
||||
{
|
||||
// [10529] check in items
|
||||
// [10536] check in items
|
||||
$this->checkInNow();
|
||||
|
||||
// load parent items
|
||||
$items = parent::getItems();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -142,31 +142,31 @@ class SermondistributorModelStatistics extends JModelList
|
|||
*/
|
||||
protected function getListQuery()
|
||||
{
|
||||
// [7390] Get the user object.
|
||||
// [7397] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7392] Create a new query object.
|
||||
// [7399] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7395] Select some fields
|
||||
// [7402] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7402] From the sermondistributor_item table
|
||||
// [7409] From the sermondistributor_item table
|
||||
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
||||
|
||||
// [7543] From the sermondistributor_sermon table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_preacher table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7543] From the sermondistributor_series table.
|
||||
// [7550] 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') . ')');
|
||||
|
||||
// [7416] Filter by published state
|
||||
// [7423] 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)');
|
||||
}
|
||||
|
||||
// [7428] Join over the asset groups.
|
||||
// [7435] Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// [7431] Filter by access level.
|
||||
// [7438] Filter by access level.
|
||||
if ($access = $this->getState('filter.access'))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $access);
|
||||
}
|
||||
// [7436] Implement View Level Access
|
||||
// [7443] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
// [7513] Filter by search.
|
||||
// [7520] Filter by search.
|
||||
$search = $this->getState('filter.search');
|
||||
if (!empty($search))
|
||||
{
|
||||
|
@ -206,23 +206,23 @@ class SermondistributorModelStatistics extends JModelList
|
|||
}
|
||||
}
|
||||
|
||||
// [7747] Filter by sermon.
|
||||
// [7754] Filter by sermon.
|
||||
if ($sermon = $this->getState('filter.sermon'))
|
||||
{
|
||||
$query->where('a.sermon = ' . $db->quote($db->escape($sermon, true)));
|
||||
}
|
||||
// [7747] Filter by preacher.
|
||||
// [7754] Filter by preacher.
|
||||
if ($preacher = $this->getState('filter.preacher'))
|
||||
{
|
||||
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
|
||||
}
|
||||
// [7747] Filter by series.
|
||||
// [7754] Filter by series.
|
||||
if ($series = $this->getState('filter.series'))
|
||||
{
|
||||
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
|
||||
}
|
||||
|
||||
// [7472] Add the list ordering clause.
|
||||
// [7479] 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)
|
||||
{
|
||||
// [7180] setup the query
|
||||
// [7187] setup the query
|
||||
if (SermondistributorHelper::checkArray($pks))
|
||||
{
|
||||
// [7183] Get the user object.
|
||||
// [7190] Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// [7185] Create a new query object.
|
||||
// [7192] Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [7188] Select some fields
|
||||
// [7195] Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// [7190] From the sermondistributor_statistic table
|
||||
// [7197] From the sermondistributor_statistic table
|
||||
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
// [7200] Implement View Level Access
|
||||
// [7207] Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// [7207] Order the results by ordering
|
||||
// [7214] Order the results by ordering
|
||||
$query->order('a.ordering ASC');
|
||||
|
||||
// [7209] Load the items
|
||||
// [7216] Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// [10604] set values to display correctly.
|
||||
// [10611] set values to display correctly.
|
||||
if (SermondistributorHelper::checkArray($items))
|
||||
{
|
||||
// [10607] get user object.
|
||||
// [10614] get user object.
|
||||
$user = JFactory::getUser();
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
|
@ -286,13 +286,13 @@ class SermondistributorModelStatistics extends JModelList
|
|||
continue;
|
||||
}
|
||||
|
||||
// [10817] unset the values we don't want exported.
|
||||
// [10824] unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
unset($item->checked_out_time);
|
||||
}
|
||||
}
|
||||
// [10826] Add headers to items array.
|
||||
// [10833] Add headers to items array.
|
||||
$headers = $this->getExImPortHeaders();
|
||||
if (SermondistributorHelper::checkObject($headers))
|
||||
{
|
||||
|
@ -311,13 +311,13 @@ class SermondistributorModelStatistics extends JModelList
|
|||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// [7229] Get a db connection.
|
||||
// [7236] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [7231] get the columns
|
||||
// [7238] get the columns
|
||||
$columns = $db->getTableColumns("#__sermondistributor_statistic");
|
||||
if (SermondistributorHelper::checkArray($columns))
|
||||
{
|
||||
// [7235] remove the headers you don't import/export.
|
||||
// [7242] 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 = '')
|
||||
{
|
||||
// [10152] Compile the store id.
|
||||
// [10159] 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()
|
||||
{
|
||||
// [10545] Get set check in time
|
||||
// [10552] Get set check in time
|
||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||
|
||||
if ($time)
|
||||
{
|
||||
|
||||
// [10550] Get a db connection.
|
||||
// [10557] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// [10552] reset query
|
||||
// [10559] 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())
|
||||
{
|
||||
// [10560] Get Yesterdays date
|
||||
// [10567] Get Yesterdays date
|
||||
$date = JFactory::getDate()->modify($time)->toSql();
|
||||
// [10562] reset query
|
||||
// [10569] reset query
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [10564] Fields to update.
|
||||
// [10571] Fields to update.
|
||||
$fields = array(
|
||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||
$db->quoteName('checked_out') . '=0'
|
||||
);
|
||||
|
||||
// [10569] Conditions for which records should be updated.
|
||||
// [10576] Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('checked_out') . '!=0',
|
||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||
);
|
||||
|
||||
// [10574] Check table
|
||||
// [10581] Check table
|
||||
$query->update($db->quoteName('#__sermondistributor_statistic'))->set($fields)->where($conditions);
|
||||
|
||||
$db->setQuery($query);
|
||||
|
|
|
@ -48,7 +48,7 @@ class SermondistributorTableHelp_document extends JTable
|
|||
{
|
||||
parent::__construct('#__sermondistributor_help_document', 'id', $db);
|
||||
|
||||
// [4187] Adding History Options
|
||||
// [4194] Adding History Options
|
||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.help_document'));
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ class SermondistributorTablePreacher extends JTable
|
|||
{
|
||||
parent::__construct('#__sermondistributor_preacher', 'id', $db);
|
||||
|
||||
// [4187] Adding History Options
|
||||
// [4194] Adding History Options
|
||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.preacher'));
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ class SermondistributorTableSeries extends JTable
|
|||
{
|
||||
parent::__construct('#__sermondistributor_series', 'id', $db);
|
||||
|
||||
// [4187] Adding History Options
|
||||
// [4194] Adding History Options
|
||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.series'));
|
||||
}
|
||||
|
||||
|
|
|
@ -48,10 +48,10 @@ class SermondistributorTableSermon extends JTable
|
|||
{
|
||||
parent::__construct('#__sermondistributor_sermon', 'id', $db);
|
||||
|
||||
// [4181] Adding Tag Options
|
||||
// [4188] Adding Tag Options
|
||||
JTableObserverTags::createObserver($this, array('typeAlias' => 'com_sermondistributor.sermon'));
|
||||
|
||||
// [4187] Adding History Options
|
||||
// [4194] Adding History Options
|
||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.sermon'));
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ class SermondistributorTableStatistic extends JTable
|
|||
{
|
||||
parent::__construct('#__sermondistributor_statistic', 'id', $db);
|
||||
|
||||
// [4187] Adding History Options
|
||||
// [4194] Adding History Options
|
||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.statistic'));
|
||||
}
|
||||
|
||||
|
|
|
@ -95,93 +95,93 @@ $componentParams = JComponentHelper::getParams('com_sermondistributor');
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_location listeners for location_bqdlaIg function
|
||||
// #jform_location listeners for location_TUtVLEk function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_bqdlaIg = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
bqdlaIg(location_bqdlaIg);
|
||||
var location_TUtVLEk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
TUtVLEk(location_TUtVLEk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_bqdlaIg = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
bqdlaIg(location_bqdlaIg);
|
||||
var location_TUtVLEk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
TUtVLEk(location_TUtVLEk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_location listeners for location_YOOAZiI function
|
||||
// #jform_location listeners for location_gUAUNQj function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_YOOAZiI = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
YOOAZiI(location_YOOAZiI);
|
||||
var location_gUAUNQj = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
gUAUNQj(location_gUAUNQj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_YOOAZiI = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
YOOAZiI(location_YOOAZiI);
|
||||
var location_gUAUNQj = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
gUAUNQj(location_gUAUNQj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_oGAMfTb function
|
||||
// #jform_type listeners for type_RCpdpBj function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_oGAMfTb = jQuery("#jform_type").val();
|
||||
oGAMfTb(type_oGAMfTb);
|
||||
var type_RCpdpBj = jQuery("#jform_type").val();
|
||||
RCpdpBj(type_RCpdpBj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_oGAMfTb = jQuery("#jform_type").val();
|
||||
oGAMfTb(type_oGAMfTb);
|
||||
var type_RCpdpBj = jQuery("#jform_type").val();
|
||||
RCpdpBj(type_RCpdpBj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_LTWmzwA function
|
||||
// #jform_type listeners for type_tzmdvkq function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_LTWmzwA = jQuery("#jform_type").val();
|
||||
LTWmzwA(type_LTWmzwA);
|
||||
var type_tzmdvkq = jQuery("#jform_type").val();
|
||||
tzmdvkq(type_tzmdvkq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_LTWmzwA = jQuery("#jform_type").val();
|
||||
LTWmzwA(type_LTWmzwA);
|
||||
var type_tzmdvkq = jQuery("#jform_type").val();
|
||||
tzmdvkq(type_tzmdvkq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_UCmYIbJ function
|
||||
// #jform_type listeners for type_tOoDUnW function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_UCmYIbJ = jQuery("#jform_type").val();
|
||||
UCmYIbJ(type_UCmYIbJ);
|
||||
var type_tOoDUnW = jQuery("#jform_type").val();
|
||||
tOoDUnW(type_tOoDUnW);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_UCmYIbJ = jQuery("#jform_type").val();
|
||||
UCmYIbJ(type_UCmYIbJ);
|
||||
var type_tOoDUnW = jQuery("#jform_type").val();
|
||||
tOoDUnW(type_tOoDUnW);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_Opviezb function
|
||||
// #jform_target listeners for target_ZRloSvL function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_Opviezb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
Opviezb(target_Opviezb);
|
||||
var target_ZRloSvL = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
ZRloSvL(target_ZRloSvL);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_Opviezb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
Opviezb(target_Opviezb);
|
||||
var target_ZRloSvL = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
ZRloSvL(target_ZRloSvL);
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -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');
|
||||
// [10262] Built the actions for new and existing records.
|
||||
// [10269] Built the actions for new and existing records.
|
||||
if ($this->refid || $this->ref)
|
||||
{
|
||||
if ($this->canDo->get('help_document.create') && $isNew)
|
||||
{
|
||||
// [10274] We can create the record.
|
||||
// [10281] We can create the record.
|
||||
JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('help_document.edit'))
|
||||
{
|
||||
// [10286] We can save the record.
|
||||
// [10293] We can save the record.
|
||||
JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
if ($isNew)
|
||||
{
|
||||
// [10291] Do not creat but cancel.
|
||||
// [10298] Do not creat but cancel.
|
||||
JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
// [10296] We can close it.
|
||||
// [10303] We can close it.
|
||||
JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ class SermondistributorViewHelp_document extends JViewLegacy
|
|||
{
|
||||
if ($isNew)
|
||||
{
|
||||
// [10304] For new records, check the create permission.
|
||||
// [10311] 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'))
|
||||
{
|
||||
// [10331] We can save the new record
|
||||
// [10338] We can save the new record
|
||||
JToolBarHelper::apply('help_document.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
|
||||
// [10334] We can save this record, but check the create permission to see
|
||||
// [10335] if we can return to make a new one.
|
||||
// [10341] We can save this record, but check the create permission to see
|
||||
// [10342] 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();
|
||||
// [10371] set help url for this view if found
|
||||
// [10378] set help url for this view if found
|
||||
$help_url = SermondistributorHelper::getHelpUrl('help_document');
|
||||
if (SermondistributorHelper::checkString($help_url))
|
||||
{
|
||||
|
|
|
@ -197,11 +197,11 @@ class SermondistributorViewHelp_documents extends JViewLegacy
|
|||
);
|
||||
}
|
||||
|
||||
// [9134] Set Type Selection
|
||||
// [9141] Set Type Selection
|
||||
$this->typeOptions = $this->getTheTypeSelections();
|
||||
if ($this->typeOptions)
|
||||
{
|
||||
// [9138] Type Filter
|
||||
// [9145] 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)
|
||||
{
|
||||
// [9147] Type Batch Selection
|
||||
// [9154] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [9134] Set Location Selection
|
||||
// [9141] Set Location Selection
|
||||
$this->locationOptions = $this->getTheLocationSelections();
|
||||
if ($this->locationOptions)
|
||||
{
|
||||
// [9138] Location Filter
|
||||
// [9145] 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)
|
||||
{
|
||||
// [9147] Location Batch Selection
|
||||
// [9154] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [9134] Set Admin View Selection
|
||||
// [9141] Set Admin View Selection
|
||||
$this->admin_viewOptions = $this->getTheAdmin_viewSelections();
|
||||
if ($this->admin_viewOptions)
|
||||
{
|
||||
// [9138] Admin View Filter
|
||||
// [9145] 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)
|
||||
{
|
||||
// [9147] Admin View Batch Selection
|
||||
// [9154] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [9134] Set Site View Selection
|
||||
// [9141] Set Site View Selection
|
||||
$this->site_viewOptions = $this->getTheSite_viewSelections();
|
||||
if ($this->site_viewOptions)
|
||||
{
|
||||
// [9138] Site View Filter
|
||||
// [9145] 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)
|
||||
{
|
||||
// [9147] Site View Batch Selection
|
||||
// [9154] 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()
|
||||
{
|
||||
// [9010] Get a db connection.
|
||||
// [9017] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [9012] Create a new query object.
|
||||
// [9019] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [9014] Select the text.
|
||||
// [9021] Select the text.
|
||||
$query->select($db->quoteName('type'));
|
||||
$query->from($db->quoteName('#__sermondistributor_help_document'));
|
||||
$query->order($db->quoteName('type') . ' ASC');
|
||||
|
||||
// [9018] Reset the query using our newly populated query object.
|
||||
// [9025] Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// [9026] get model
|
||||
// [9033] get model
|
||||
$model = $this->getModel();
|
||||
$results = array_unique($results);
|
||||
$filter = array();
|
||||
foreach ($results as $type)
|
||||
{
|
||||
// [9037] Translate the type selection
|
||||
// [9044] Translate the type selection
|
||||
$text = $model->selectionTranslation($type,'type');
|
||||
// [9039] Now add the type and its text to the options array
|
||||
// [9046] 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()
|
||||
{
|
||||
// [9010] Get a db connection.
|
||||
// [9017] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [9012] Create a new query object.
|
||||
// [9019] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [9014] Select the text.
|
||||
// [9021] Select the text.
|
||||
$query->select($db->quoteName('location'));
|
||||
$query->from($db->quoteName('#__sermondistributor_help_document'));
|
||||
$query->order($db->quoteName('location') . ' ASC');
|
||||
|
||||
// [9018] Reset the query using our newly populated query object.
|
||||
// [9025] Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// [9026] get model
|
||||
// [9033] get model
|
||||
$model = $this->getModel();
|
||||
$results = array_unique($results);
|
||||
$filter = array();
|
||||
foreach ($results as $location)
|
||||
{
|
||||
// [9037] Translate the location selection
|
||||
// [9044] Translate the location selection
|
||||
$text = $model->selectionTranslation($location,'location');
|
||||
// [9039] Now add the location and its text to the options array
|
||||
// [9046] 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()
|
||||
{
|
||||
// [9010] Get a db connection.
|
||||
// [9017] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [9012] Create a new query object.
|
||||
// [9019] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [9014] Select the text.
|
||||
// [9021] Select the text.
|
||||
$query->select($db->quoteName('admin_view'));
|
||||
$query->from($db->quoteName('#__sermondistributor_help_document'));
|
||||
$query->order($db->quoteName('admin_view') . ' ASC');
|
||||
|
||||
// [9018] Reset the query using our newly populated query object.
|
||||
// [9025] 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)
|
||||
{
|
||||
// [9044] Now add the admin_view and its text to the options array
|
||||
// [9051] 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()
|
||||
{
|
||||
// [9010] Get a db connection.
|
||||
// [9017] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [9012] Create a new query object.
|
||||
// [9019] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [9014] Select the text.
|
||||
// [9021] Select the text.
|
||||
$query->select($db->quoteName('site_view'));
|
||||
$query->from($db->quoteName('#__sermondistributor_help_document'));
|
||||
$query->order($db->quoteName('site_view') . ' ASC');
|
||||
|
||||
// [9018] Reset the query using our newly populated query object.
|
||||
// [9025] 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)
|
||||
{
|
||||
// [9044] Now add the site_view and its text to the options array
|
||||
// [9051] Now add the site_view and its text to the options array
|
||||
$filter[] = JHtml::_('select.option', $site_view, $site_view);
|
||||
}
|
||||
return $filter;
|
||||
|
|
|
@ -65,8 +65,8 @@ class SermondistributorViewPreacher extends JViewLegacy
|
|||
$this->referral = '&ref='.(string)$this->ref;
|
||||
}
|
||||
|
||||
// [6472] Get Linked view data
|
||||
$this->iuwsermons = $this->get('Iuwsermons');
|
||||
// [6479] Get Linked view data
|
||||
$this->juisermons = $this->get('Juisermons');
|
||||
|
||||
// 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');
|
||||
// [10262] Built the actions for new and existing records.
|
||||
// [10269] Built the actions for new and existing records.
|
||||
if ($this->refid || $this->ref)
|
||||
{
|
||||
if ($this->canDo->get('preacher.create') && $isNew)
|
||||
{
|
||||
// [10274] We can create the record.
|
||||
// [10281] We can create the record.
|
||||
JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('preacher.edit'))
|
||||
{
|
||||
// [10286] We can save the record.
|
||||
// [10293] We can save the record.
|
||||
JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
if ($isNew)
|
||||
{
|
||||
// [10291] Do not creat but cancel.
|
||||
// [10298] Do not creat but cancel.
|
||||
JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
// [10296] We can close it.
|
||||
// [10303] We can close it.
|
||||
JToolBarHelper::cancel('preacher.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ class SermondistributorViewPreacher extends JViewLegacy
|
|||
{
|
||||
if ($isNew)
|
||||
{
|
||||
// [10304] For new records, check the create permission.
|
||||
// [10311] 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'))
|
||||
{
|
||||
// [10331] We can save the new record
|
||||
// [10338] We can save the new record
|
||||
JToolBarHelper::apply('preacher.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('preacher.save', 'JTOOLBAR_SAVE');
|
||||
// [10334] We can save this record, but check the create permission to see
|
||||
// [10335] if we can return to make a new one.
|
||||
// [10341] We can save this record, but check the create permission to see
|
||||
// [10342] 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();
|
||||
// [10371] set help url for this view if found
|
||||
// [10378] 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");
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] Use the Metro Style
|
||||
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
|
||||
{
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] Use the Legacy Style.
|
||||
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
|
||||
{
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -65,8 +65,8 @@ class SermondistributorViewSeries extends JViewLegacy
|
|||
$this->referral = '&ref='.(string)$this->ref;
|
||||
}
|
||||
|
||||
// [6472] Get Linked view data
|
||||
$this->mzrsermons = $this->get('Mzrsermons');
|
||||
// [6479] Get Linked view data
|
||||
$this->wxrsermons = $this->get('Wxrsermons');
|
||||
|
||||
// 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');
|
||||
// [10262] Built the actions for new and existing records.
|
||||
// [10269] Built the actions for new and existing records.
|
||||
if ($this->refid || $this->ref)
|
||||
{
|
||||
if ($this->canDo->get('series.create') && $isNew)
|
||||
{
|
||||
// [10274] We can create the record.
|
||||
// [10281] We can create the record.
|
||||
JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('series.edit'))
|
||||
{
|
||||
// [10286] We can save the record.
|
||||
// [10293] We can save the record.
|
||||
JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
if ($isNew)
|
||||
{
|
||||
// [10291] Do not creat but cancel.
|
||||
// [10298] Do not creat but cancel.
|
||||
JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
// [10296] We can close it.
|
||||
// [10303] We can close it.
|
||||
JToolBarHelper::cancel('series.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ class SermondistributorViewSeries extends JViewLegacy
|
|||
{
|
||||
if ($isNew)
|
||||
{
|
||||
// [10304] For new records, check the create permission.
|
||||
// [10311] 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'))
|
||||
{
|
||||
// [10331] We can save the new record
|
||||
// [10338] We can save the new record
|
||||
JToolBarHelper::apply('series.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('series.save', 'JTOOLBAR_SAVE');
|
||||
// [10334] We can save this record, but check the create permission to see
|
||||
// [10335] if we can return to make a new one.
|
||||
// [10341] We can save this record, but check the create permission to see
|
||||
// [10342] 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();
|
||||
// [10371] set help url for this view if found
|
||||
// [10378] 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");
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] Use the Metro Style
|
||||
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
|
||||
{
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] Use the Legacy Style.
|
||||
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
|
||||
{
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -115,180 +115,180 @@ $componentParams = JComponentHelper::getParams('com_sermondistributor');
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_source listeners for source_krBYtbj function
|
||||
// #jform_source listeners for source_NKOinBh function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_krBYtbj = jQuery("#jform_source").val();
|
||||
krBYtbj(source_krBYtbj);
|
||||
var source_NKOinBh = jQuery("#jform_source").val();
|
||||
NKOinBh(source_NKOinBh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_krBYtbj = jQuery("#jform_source").val();
|
||||
krBYtbj(source_krBYtbj);
|
||||
var source_NKOinBh = jQuery("#jform_source").val();
|
||||
NKOinBh(source_NKOinBh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_sYPBGNJ function
|
||||
// #jform_source listeners for source_ALgjVVL function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_sYPBGNJ = jQuery("#jform_source").val();
|
||||
var build_sYPBGNJ = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
sYPBGNJ(source_sYPBGNJ,build_sYPBGNJ);
|
||||
var source_ALgjVVL = jQuery("#jform_source").val();
|
||||
var build_ALgjVVL = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
ALgjVVL(source_ALgjVVL,build_ALgjVVL);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_sYPBGNJ = jQuery("#jform_source").val();
|
||||
var build_sYPBGNJ = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
sYPBGNJ(source_sYPBGNJ,build_sYPBGNJ);
|
||||
var source_ALgjVVL = jQuery("#jform_source").val();
|
||||
var build_ALgjVVL = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
ALgjVVL(source_ALgjVVL,build_ALgjVVL);
|
||||
|
||||
});
|
||||
|
||||
// #jform_build listeners for build_sYPBGNJ function
|
||||
// #jform_build listeners for build_ALgjVVL function
|
||||
jQuery('#jform_build').on('keyup',function()
|
||||
{
|
||||
var source_sYPBGNJ = jQuery("#jform_source").val();
|
||||
var build_sYPBGNJ = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
sYPBGNJ(source_sYPBGNJ,build_sYPBGNJ);
|
||||
var source_ALgjVVL = jQuery("#jform_source").val();
|
||||
var build_ALgjVVL = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
ALgjVVL(source_ALgjVVL,build_ALgjVVL);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_build',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_sYPBGNJ = jQuery("#jform_source").val();
|
||||
var build_sYPBGNJ = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
sYPBGNJ(source_sYPBGNJ,build_sYPBGNJ);
|
||||
var source_ALgjVVL = jQuery("#jform_source").val();
|
||||
var build_ALgjVVL = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
ALgjVVL(source_ALgjVVL,build_ALgjVVL);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_fTVMCkK function
|
||||
// #jform_source listeners for source_tcPmpLT function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_fTVMCkK = jQuery("#jform_source").val();
|
||||
var build_fTVMCkK = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
fTVMCkK(source_fTVMCkK,build_fTVMCkK);
|
||||
var source_tcPmpLT = jQuery("#jform_source").val();
|
||||
var build_tcPmpLT = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
tcPmpLT(source_tcPmpLT,build_tcPmpLT);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_fTVMCkK = jQuery("#jform_source").val();
|
||||
var build_fTVMCkK = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
fTVMCkK(source_fTVMCkK,build_fTVMCkK);
|
||||
var source_tcPmpLT = jQuery("#jform_source").val();
|
||||
var build_tcPmpLT = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
tcPmpLT(source_tcPmpLT,build_tcPmpLT);
|
||||
|
||||
});
|
||||
|
||||
// #jform_build listeners for build_fTVMCkK function
|
||||
// #jform_build listeners for build_tcPmpLT function
|
||||
jQuery('#jform_build').on('keyup',function()
|
||||
{
|
||||
var source_fTVMCkK = jQuery("#jform_source").val();
|
||||
var build_fTVMCkK = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
fTVMCkK(source_fTVMCkK,build_fTVMCkK);
|
||||
var source_tcPmpLT = jQuery("#jform_source").val();
|
||||
var build_tcPmpLT = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
tcPmpLT(source_tcPmpLT,build_tcPmpLT);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_build',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_fTVMCkK = jQuery("#jform_source").val();
|
||||
var build_fTVMCkK = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
fTVMCkK(source_fTVMCkK,build_fTVMCkK);
|
||||
var source_tcPmpLT = jQuery("#jform_source").val();
|
||||
var build_tcPmpLT = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
tcPmpLT(source_tcPmpLT,build_tcPmpLT);
|
||||
|
||||
});
|
||||
|
||||
// #jform_build listeners for build_NPhYsag function
|
||||
// #jform_build listeners for build_gxilNje function
|
||||
jQuery('#jform_build').on('keyup',function()
|
||||
{
|
||||
var build_NPhYsag = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_NPhYsag = jQuery("#jform_source").val();
|
||||
NPhYsag(build_NPhYsag,source_NPhYsag);
|
||||
var build_gxilNje = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_gxilNje = jQuery("#jform_source").val();
|
||||
gxilNje(build_gxilNje,source_gxilNje);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_build',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var build_NPhYsag = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_NPhYsag = jQuery("#jform_source").val();
|
||||
NPhYsag(build_NPhYsag,source_NPhYsag);
|
||||
var build_gxilNje = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_gxilNje = jQuery("#jform_source").val();
|
||||
gxilNje(build_gxilNje,source_gxilNje);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_NPhYsag function
|
||||
// #jform_source listeners for source_gxilNje function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var build_NPhYsag = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_NPhYsag = jQuery("#jform_source").val();
|
||||
NPhYsag(build_NPhYsag,source_NPhYsag);
|
||||
var build_gxilNje = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_gxilNje = jQuery("#jform_source").val();
|
||||
gxilNje(build_gxilNje,source_gxilNje);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var build_NPhYsag = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_NPhYsag = jQuery("#jform_source").val();
|
||||
NPhYsag(build_NPhYsag,source_NPhYsag);
|
||||
var build_gxilNje = jQuery("#jform_build input[type='radio']:checked").val();
|
||||
var source_gxilNje = jQuery("#jform_source").val();
|
||||
gxilNje(build_gxilNje,source_gxilNje);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_kEIQntm function
|
||||
// #jform_source listeners for source_oQgboDx function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_kEIQntm = jQuery("#jform_source").val();
|
||||
kEIQntm(source_kEIQntm);
|
||||
var source_oQgboDx = jQuery("#jform_source").val();
|
||||
oQgboDx(source_oQgboDx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_kEIQntm = jQuery("#jform_source").val();
|
||||
kEIQntm(source_kEIQntm);
|
||||
var source_oQgboDx = jQuery("#jform_source").val();
|
||||
oQgboDx(source_oQgboDx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_RQkNwSY function
|
||||
// #jform_source listeners for source_YcaNolt function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_RQkNwSY = jQuery("#jform_source").val();
|
||||
RQkNwSY(source_RQkNwSY);
|
||||
var source_YcaNolt = jQuery("#jform_source").val();
|
||||
YcaNolt(source_YcaNolt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_RQkNwSY = jQuery("#jform_source").val();
|
||||
RQkNwSY(source_RQkNwSY);
|
||||
var source_YcaNolt = jQuery("#jform_source").val();
|
||||
YcaNolt(source_YcaNolt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_link_type listeners for link_type_lzmprMp function
|
||||
// #jform_link_type listeners for link_type_VrtcKcp function
|
||||
jQuery('#jform_link_type').on('keyup',function()
|
||||
{
|
||||
var link_type_lzmprMp = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
lzmprMp(link_type_lzmprMp);
|
||||
var link_type_VrtcKcp = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
VrtcKcp(link_type_VrtcKcp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_link_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var link_type_lzmprMp = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
lzmprMp(link_type_lzmprMp);
|
||||
var link_type_VrtcKcp = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
VrtcKcp(link_type_VrtcKcp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_link_type listeners for link_type_wAnuIRh function
|
||||
// #jform_link_type listeners for link_type_KohbyVh function
|
||||
jQuery('#jform_link_type').on('keyup',function()
|
||||
{
|
||||
var link_type_wAnuIRh = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
wAnuIRh(link_type_wAnuIRh);
|
||||
var link_type_KohbyVh = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
KohbyVh(link_type_KohbyVh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_link_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var link_type_wAnuIRh = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
wAnuIRh(link_type_wAnuIRh);
|
||||
var link_type_KohbyVh = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||
KohbyVh(link_type_KohbyVh);
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -65,8 +65,8 @@ class SermondistributorViewSermon extends JViewLegacy
|
|||
$this->referral = '&ref='.(string)$this->ref;
|
||||
}
|
||||
|
||||
// [6472] Get Linked view data
|
||||
$this->scistastics = $this->get('Scistastics');
|
||||
// [6479] Get Linked view data
|
||||
$this->zgfstastics = $this->get('Zgfstastics');
|
||||
|
||||
// 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');
|
||||
// [10262] Built the actions for new and existing records.
|
||||
// [10269] Built the actions for new and existing records.
|
||||
if ($this->refid || $this->ref)
|
||||
{
|
||||
if ($this->canDo->get('sermon.create') && $isNew)
|
||||
{
|
||||
// [10274] We can create the record.
|
||||
// [10281] We can create the record.
|
||||
JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('sermon.edit'))
|
||||
{
|
||||
// [10286] We can save the record.
|
||||
// [10293] We can save the record.
|
||||
JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
if ($isNew)
|
||||
{
|
||||
// [10291] Do not creat but cancel.
|
||||
// [10298] Do not creat but cancel.
|
||||
JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
// [10296] We can close it.
|
||||
// [10303] We can close it.
|
||||
JToolBarHelper::cancel('sermon.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ class SermondistributorViewSermon extends JViewLegacy
|
|||
{
|
||||
if ($isNew)
|
||||
{
|
||||
// [10304] For new records, check the create permission.
|
||||
// [10311] 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'))
|
||||
{
|
||||
// [10331] We can save the new record
|
||||
// [10338] We can save the new record
|
||||
JToolBarHelper::apply('sermon.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('sermon.save', 'JTOOLBAR_SAVE');
|
||||
// [10334] We can save this record, but check the create permission to see
|
||||
// [10335] if we can return to make a new one.
|
||||
// [10341] We can save this record, but check the create permission to see
|
||||
// [10342] 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();
|
||||
// [10371] set help url for this view if found
|
||||
// [10378] 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");
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] Use the Metro Style
|
||||
if (!isset($this->fooTableStyle) || 0 == $this->fooTableStyle)
|
||||
{
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.metro.min.css');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] Use the Legacy Style.
|
||||
elseif (isset($this->fooTableStyle) && 1 == $this->fooTableStyle)
|
||||
{
|
||||
$document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.standalone.min.css');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -197,7 +197,7 @@ class SermondistributorViewSermons extends JViewLegacy
|
|||
);
|
||||
}
|
||||
|
||||
// [9185] Category Filter.
|
||||
// [9192] 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)
|
||||
{
|
||||
// [9195] Category Batch selection.
|
||||
// [9202] Category Batch selection.
|
||||
JHtmlBatch_::addListSelection(
|
||||
JText::_('COM_SERMONDISTRIBUTOR_KEEP_ORIGINAL_CATEGORY'),
|
||||
'batch[category]',
|
||||
|
@ -214,11 +214,11 @@ class SermondistributorViewSermons extends JViewLegacy
|
|||
);
|
||||
}
|
||||
|
||||
// [9100] Set Preacher Name Selection
|
||||
// [9107] Set Preacher Name Selection
|
||||
$this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->getOptions();
|
||||
if ($this->preacherNameOptions)
|
||||
{
|
||||
// [9104] Preacher Name Filter
|
||||
// [9111] 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)
|
||||
{
|
||||
// [9113] Preacher Name Batch Selection
|
||||
// [9120] Preacher Name Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_PREACHER_LABEL').' -',
|
||||
'batch[preacher]',
|
||||
|
@ -236,11 +236,11 @@ class SermondistributorViewSermons extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [9100] Set Series Name Selection
|
||||
// [9107] Set Series Name Selection
|
||||
$this->seriesNameOptions = JFormHelper::loadFieldType('Series')->getOptions();
|
||||
if ($this->seriesNameOptions)
|
||||
{
|
||||
// [9104] Series Name Filter
|
||||
// [9111] 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)
|
||||
{
|
||||
// [9113] Series Name Batch Selection
|
||||
// [9120] Series Name Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_SERMON_SERIES_LABEL').' -',
|
||||
'batch[series]',
|
||||
|
@ -258,11 +258,11 @@ class SermondistributorViewSermons extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [9134] Set Link Type Selection
|
||||
// [9141] Set Link Type Selection
|
||||
$this->link_typeOptions = $this->getTheLink_typeSelections();
|
||||
if ($this->link_typeOptions)
|
||||
{
|
||||
// [9138] Link Type Filter
|
||||
// [9145] 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)
|
||||
{
|
||||
// [9147] Link Type Batch Selection
|
||||
// [9154] 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
|
|||
}
|
||||
}
|
||||
|
||||
// [9134] Set Source Selection
|
||||
// [9141] Set Source Selection
|
||||
$this->sourceOptions = $this->getTheSourceSelections();
|
||||
if ($this->sourceOptions)
|
||||
{
|
||||
// [9138] Source Filter
|
||||
// [9145] 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)
|
||||
{
|
||||
// [9147] Source Batch Selection
|
||||
// [9154] 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()
|
||||
{
|
||||
// [9010] Get a db connection.
|
||||
// [9017] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [9012] Create a new query object.
|
||||
// [9019] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [9014] Select the text.
|
||||
// [9021] Select the text.
|
||||
$query->select($db->quoteName('link_type'));
|
||||
$query->from($db->quoteName('#__sermondistributor_sermon'));
|
||||
$query->order($db->quoteName('link_type') . ' ASC');
|
||||
|
||||
// [9018] Reset the query using our newly populated query object.
|
||||
// [9025] Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// [9026] get model
|
||||
// [9033] get model
|
||||
$model = $this->getModel();
|
||||
$results = array_unique($results);
|
||||
$filter = array();
|
||||
foreach ($results as $link_type)
|
||||
{
|
||||
// [9037] Translate the link_type selection
|
||||
// [9044] Translate the link_type selection
|
||||
$text = $model->selectionTranslation($link_type,'link_type');
|
||||
// [9039] Now add the link_type and its text to the options array
|
||||
// [9046] 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()
|
||||
{
|
||||
// [9010] Get a db connection.
|
||||
// [9017] Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [9012] Create a new query object.
|
||||
// [9019] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [9014] Select the text.
|
||||
// [9021] Select the text.
|
||||
$query->select($db->quoteName('source'));
|
||||
$query->from($db->quoteName('#__sermondistributor_sermon'));
|
||||
$query->order($db->quoteName('source') . ' ASC');
|
||||
|
||||
// [9018] Reset the query using our newly populated query object.
|
||||
// [9025] Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// [9026] get model
|
||||
// [9033] get model
|
||||
$model = $this->getModel();
|
||||
$results = array_unique($results);
|
||||
$filter = array();
|
||||
foreach ($results as $source)
|
||||
{
|
||||
// [9037] Translate the source selection
|
||||
// [9044] Translate the source selection
|
||||
$text = $model->selectionTranslation($source,'source');
|
||||
// [9039] Now add the source and its text to the options array
|
||||
// [9046] Now add the source and its text to the options array
|
||||
$filter[] = JHtml::_('select.option', $source, JText::_($text));
|
||||
}
|
||||
return $filter;
|
||||
|
|
|
@ -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');
|
||||
// [10262] Built the actions for new and existing records.
|
||||
// [10269] Built the actions for new and existing records.
|
||||
if ($this->refid || $this->ref)
|
||||
{
|
||||
if ($this->canDo->get('statistic.create') && $isNew)
|
||||
{
|
||||
// [10274] We can create the record.
|
||||
// [10281] We can create the record.
|
||||
JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('statistic.edit'))
|
||||
{
|
||||
// [10286] We can save the record.
|
||||
// [10293] We can save the record.
|
||||
JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
if ($isNew)
|
||||
{
|
||||
// [10291] Do not creat but cancel.
|
||||
// [10298] Do not creat but cancel.
|
||||
JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
// [10296] We can close it.
|
||||
// [10303] We can close it.
|
||||
JToolBarHelper::cancel('statistic.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ class SermondistributorViewStatistic extends JViewLegacy
|
|||
{
|
||||
if ($isNew)
|
||||
{
|
||||
// [10304] For new records, check the create permission.
|
||||
// [10311] 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'))
|
||||
{
|
||||
// [10331] We can save the new record
|
||||
// [10338] We can save the new record
|
||||
JToolBarHelper::apply('statistic.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('statistic.save', 'JTOOLBAR_SAVE');
|
||||
// [10334] We can save this record, but check the create permission to see
|
||||
// [10335] if we can return to make a new one.
|
||||
// [10341] We can save this record, but check the create permission to see
|
||||
// [10342] 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();
|
||||
// [10371] set help url for this view if found
|
||||
// [10378] set help url for this view if found
|
||||
$help_url = SermondistributorHelper::getHelpUrl('statistic');
|
||||
if (SermondistributorHelper::checkString($help_url))
|
||||
{
|
||||
|
|
|
@ -197,11 +197,11 @@ class SermondistributorViewStatistics extends JViewLegacy
|
|||
);
|
||||
}
|
||||
|
||||
// [9100] Set Sermon Name Selection
|
||||
// [9107] Set Sermon Name Selection
|
||||
$this->sermonNameOptions = JFormHelper::loadFieldType('Sermon')->getOptions();
|
||||
if ($this->sermonNameOptions)
|
||||
{
|
||||
// [9104] Sermon Name Filter
|
||||
// [9111] 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)
|
||||
{
|
||||
// [9113] Sermon Name Batch Selection
|
||||
// [9120] Sermon Name Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERMON_LABEL').' -',
|
||||
'batch[sermon]',
|
||||
|
@ -219,11 +219,11 @@ class SermondistributorViewStatistics extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [9100] Set Preacher Name Selection
|
||||
// [9107] Set Preacher Name Selection
|
||||
$this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->getOptions();
|
||||
if ($this->preacherNameOptions)
|
||||
{
|
||||
// [9104] Preacher Name Filter
|
||||
// [9111] 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)
|
||||
{
|
||||
// [9113] Preacher Name Batch Selection
|
||||
// [9120] Preacher Name Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_PREACHER_LABEL').' -',
|
||||
'batch[preacher]',
|
||||
|
@ -241,11 +241,11 @@ class SermondistributorViewStatistics extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [9100] Set Series Name Selection
|
||||
// [9107] Set Series Name Selection
|
||||
$this->seriesNameOptions = JFormHelper::loadFieldType('Series')->getOptions();
|
||||
if ($this->seriesNameOptions)
|
||||
{
|
||||
// [9104] Series Name Filter
|
||||
// [9111] 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)
|
||||
{
|
||||
// [9113] Series Name Batch Selection
|
||||
// [9120] Series Name Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_SERMONDISTRIBUTOR_STATISTIC_SERIES_LABEL').' -',
|
||||
'batch[series]',
|
||||
|
|
344
script.php
344
script.php
|
@ -48,536 +48,536 @@ class com_sermondistributorInstallerScript
|
|||
*/
|
||||
function uninstall($parent)
|
||||
{
|
||||
// [4212] Get Application object
|
||||
// [4219] Get Application object
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
// [4214] Get The Database object
|
||||
// [4221] Get The Database object
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [4223] Create a new query object.
|
||||
// [4230] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
// [4225] Select id from content type table
|
||||
// [4232] Select id from content type table
|
||||
$query->select($db->quoteName('type_id'));
|
||||
$query->from($db->quoteName('#__content_types'));
|
||||
// [4228] Where Preacher alias is found
|
||||
// [4235] Where Preacher alias is found
|
||||
$query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.preacher') );
|
||||
$db->setQuery($query);
|
||||
// [4231] Execute query to see if alias is found
|
||||
// [4238] Execute query to see if alias is found
|
||||
$db->execute();
|
||||
$preacher_found = $db->getNumRows();
|
||||
// [4234] Now check if there were any rows
|
||||
// [4241] Now check if there were any rows
|
||||
if ($preacher_found)
|
||||
{
|
||||
// [4237] Since there are load the needed preacher type ids
|
||||
// [4244] Since there are load the needed preacher type ids
|
||||
$preacher_ids = $db->loadColumn();
|
||||
// [4241] Remove Preacher from the content type table
|
||||
// [4248] Remove Preacher from the content type table
|
||||
$preacher_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.preacher') );
|
||||
// [4243] Create a new query object.
|
||||
// [4250] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__content_types'));
|
||||
$query->where($preacher_condition);
|
||||
$db->setQuery($query);
|
||||
// [4248] Execute the query to remove Preacher items
|
||||
// [4255] Execute the query to remove Preacher items
|
||||
$preacher_done = $db->execute();
|
||||
if ($preacher_done);
|
||||
{
|
||||
// [4252] If succesfully remove Preacher add queued success message.
|
||||
// [4259] If succesfully remove Preacher add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.preacher) type alias was removed from the <b>#__content_type</b> table'));
|
||||
}
|
||||
|
||||
// [4258] Remove Preacher items from the contentitem tag map table
|
||||
// [4265] Remove Preacher items from the contentitem tag map table
|
||||
$preacher_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.preacher') );
|
||||
// [4260] Create a new query object.
|
||||
// [4267] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__contentitem_tag_map'));
|
||||
$query->where($preacher_condition);
|
||||
$db->setQuery($query);
|
||||
// [4265] Execute the query to remove Preacher items
|
||||
// [4272] Execute the query to remove Preacher items
|
||||
$preacher_done = $db->execute();
|
||||
if ($preacher_done);
|
||||
{
|
||||
// [4269] If succesfully remove Preacher add queued success message.
|
||||
// [4276] If succesfully remove Preacher add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.preacher) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
|
||||
}
|
||||
|
||||
// [4275] Remove Preacher items from the ucm content table
|
||||
// [4282] Remove Preacher items from the ucm content table
|
||||
$preacher_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.preacher') );
|
||||
// [4277] Create a new query object.
|
||||
// [4284] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_content'));
|
||||
$query->where($preacher_condition);
|
||||
$db->setQuery($query);
|
||||
// [4282] Execute the query to remove Preacher items
|
||||
// [4289] Execute the query to remove Preacher items
|
||||
$preacher_done = $db->execute();
|
||||
if ($preacher_done);
|
||||
{
|
||||
// [4286] If succesfully remove Preacher add queued success message.
|
||||
// [4293] If succesfully remove Preacher add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.preacher) type alias was removed from the <b>#__ucm_content</b> table'));
|
||||
}
|
||||
|
||||
// [4292] Make sure that all the Preacher items are cleared from DB
|
||||
// [4299] Make sure that all the Preacher items are cleared from DB
|
||||
foreach ($preacher_ids as $preacher_id)
|
||||
{
|
||||
// [4297] Remove Preacher items from the ucm base table
|
||||
// [4304] Remove Preacher items from the ucm base table
|
||||
$preacher_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $preacher_id);
|
||||
// [4299] Create a new query object.
|
||||
// [4306] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_base'));
|
||||
$query->where($preacher_condition);
|
||||
$db->setQuery($query);
|
||||
// [4304] Execute the query to remove Preacher items
|
||||
// [4311] Execute the query to remove Preacher items
|
||||
$db->execute();
|
||||
|
||||
// [4308] Remove Preacher items from the ucm history table
|
||||
// [4315] Remove Preacher items from the ucm history table
|
||||
$preacher_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $preacher_id);
|
||||
// [4310] Create a new query object.
|
||||
// [4317] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_history'));
|
||||
$query->where($preacher_condition);
|
||||
$db->setQuery($query);
|
||||
// [4315] Execute the query to remove Preacher items
|
||||
// [4322] Execute the query to remove Preacher items
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
// [4223] Create a new query object.
|
||||
// [4230] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
// [4225] Select id from content type table
|
||||
// [4232] Select id from content type table
|
||||
$query->select($db->quoteName('type_id'));
|
||||
$query->from($db->quoteName('#__content_types'));
|
||||
// [4228] Where Sermon alias is found
|
||||
// [4235] Where Sermon alias is found
|
||||
$query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermon') );
|
||||
$db->setQuery($query);
|
||||
// [4231] Execute query to see if alias is found
|
||||
// [4238] Execute query to see if alias is found
|
||||
$db->execute();
|
||||
$sermon_found = $db->getNumRows();
|
||||
// [4234] Now check if there were any rows
|
||||
// [4241] Now check if there were any rows
|
||||
if ($sermon_found)
|
||||
{
|
||||
// [4237] Since there are load the needed sermon type ids
|
||||
// [4244] Since there are load the needed sermon type ids
|
||||
$sermon_ids = $db->loadColumn();
|
||||
// [4241] Remove Sermon from the content type table
|
||||
// [4248] Remove Sermon from the content type table
|
||||
$sermon_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermon') );
|
||||
// [4243] Create a new query object.
|
||||
// [4250] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__content_types'));
|
||||
$query->where($sermon_condition);
|
||||
$db->setQuery($query);
|
||||
// [4248] Execute the query to remove Sermon items
|
||||
// [4255] Execute the query to remove Sermon items
|
||||
$sermon_done = $db->execute();
|
||||
if ($sermon_done);
|
||||
{
|
||||
// [4252] If succesfully remove Sermon add queued success message.
|
||||
// [4259] If succesfully remove Sermon add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.sermon) type alias was removed from the <b>#__content_type</b> table'));
|
||||
}
|
||||
|
||||
// [4258] Remove Sermon items from the contentitem tag map table
|
||||
// [4265] Remove Sermon items from the contentitem tag map table
|
||||
$sermon_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermon') );
|
||||
// [4260] Create a new query object.
|
||||
// [4267] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__contentitem_tag_map'));
|
||||
$query->where($sermon_condition);
|
||||
$db->setQuery($query);
|
||||
// [4265] Execute the query to remove Sermon items
|
||||
// [4272] Execute the query to remove Sermon items
|
||||
$sermon_done = $db->execute();
|
||||
if ($sermon_done);
|
||||
{
|
||||
// [4269] If succesfully remove Sermon add queued success message.
|
||||
// [4276] If succesfully remove Sermon add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.sermon) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
|
||||
}
|
||||
|
||||
// [4275] Remove Sermon items from the ucm content table
|
||||
// [4282] Remove Sermon items from the ucm content table
|
||||
$sermon_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.sermon') );
|
||||
// [4277] Create a new query object.
|
||||
// [4284] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_content'));
|
||||
$query->where($sermon_condition);
|
||||
$db->setQuery($query);
|
||||
// [4282] Execute the query to remove Sermon items
|
||||
// [4289] Execute the query to remove Sermon items
|
||||
$sermon_done = $db->execute();
|
||||
if ($sermon_done);
|
||||
{
|
||||
// [4286] If succesfully remove Sermon add queued success message.
|
||||
// [4293] If succesfully remove Sermon add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.sermon) type alias was removed from the <b>#__ucm_content</b> table'));
|
||||
}
|
||||
|
||||
// [4292] Make sure that all the Sermon items are cleared from DB
|
||||
// [4299] Make sure that all the Sermon items are cleared from DB
|
||||
foreach ($sermon_ids as $sermon_id)
|
||||
{
|
||||
// [4297] Remove Sermon items from the ucm base table
|
||||
// [4304] Remove Sermon items from the ucm base table
|
||||
$sermon_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_id);
|
||||
// [4299] Create a new query object.
|
||||
// [4306] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_base'));
|
||||
$query->where($sermon_condition);
|
||||
$db->setQuery($query);
|
||||
// [4304] Execute the query to remove Sermon items
|
||||
// [4311] Execute the query to remove Sermon items
|
||||
$db->execute();
|
||||
|
||||
// [4308] Remove Sermon items from the ucm history table
|
||||
// [4315] Remove Sermon items from the ucm history table
|
||||
$sermon_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_id);
|
||||
// [4310] Create a new query object.
|
||||
// [4317] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_history'));
|
||||
$query->where($sermon_condition);
|
||||
$db->setQuery($query);
|
||||
// [4315] Execute the query to remove Sermon items
|
||||
// [4322] Execute the query to remove Sermon items
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
// [4223] Create a new query object.
|
||||
// [4230] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
// [4225] Select id from content type table
|
||||
// [4232] Select id from content type table
|
||||
$query->select($db->quoteName('type_id'));
|
||||
$query->from($db->quoteName('#__content_types'));
|
||||
// [4228] Where Sermon catid alias is found
|
||||
// [4235] Where Sermon catid alias is found
|
||||
$query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermons.category') );
|
||||
$db->setQuery($query);
|
||||
// [4231] Execute query to see if alias is found
|
||||
// [4238] Execute query to see if alias is found
|
||||
$db->execute();
|
||||
$sermon_catid_found = $db->getNumRows();
|
||||
// [4234] Now check if there were any rows
|
||||
// [4241] Now check if there were any rows
|
||||
if ($sermon_catid_found)
|
||||
{
|
||||
// [4237] Since there are load the needed sermon_catid type ids
|
||||
// [4244] Since there are load the needed sermon_catid type ids
|
||||
$sermon_catid_ids = $db->loadColumn();
|
||||
// [4241] Remove Sermon catid from the content type table
|
||||
// [4248] Remove Sermon catid from the content type table
|
||||
$sermon_catid_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermons.category') );
|
||||
// [4243] Create a new query object.
|
||||
// [4250] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__content_types'));
|
||||
$query->where($sermon_catid_condition);
|
||||
$db->setQuery($query);
|
||||
// [4248] Execute the query to remove Sermon catid items
|
||||
// [4255] Execute the query to remove Sermon catid items
|
||||
$sermon_catid_done = $db->execute();
|
||||
if ($sermon_catid_done);
|
||||
{
|
||||
// [4252] If succesfully remove Sermon catid add queued success message.
|
||||
// [4259] If succesfully remove Sermon catid add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.sermons.category) type alias was removed from the <b>#__content_type</b> table'));
|
||||
}
|
||||
|
||||
// [4258] Remove Sermon catid items from the contentitem tag map table
|
||||
// [4265] Remove Sermon catid items from the contentitem tag map table
|
||||
$sermon_catid_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.sermons.category') );
|
||||
// [4260] Create a new query object.
|
||||
// [4267] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__contentitem_tag_map'));
|
||||
$query->where($sermon_catid_condition);
|
||||
$db->setQuery($query);
|
||||
// [4265] Execute the query to remove Sermon catid items
|
||||
// [4272] Execute the query to remove Sermon catid items
|
||||
$sermon_catid_done = $db->execute();
|
||||
if ($sermon_catid_done);
|
||||
{
|
||||
// [4269] If succesfully remove Sermon catid add queued success message.
|
||||
// [4276] If succesfully remove Sermon catid add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.sermons.category) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
|
||||
}
|
||||
|
||||
// [4275] Remove Sermon catid items from the ucm content table
|
||||
// [4282] Remove Sermon catid items from the ucm content table
|
||||
$sermon_catid_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.sermons.category') );
|
||||
// [4277] Create a new query object.
|
||||
// [4284] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_content'));
|
||||
$query->where($sermon_catid_condition);
|
||||
$db->setQuery($query);
|
||||
// [4282] Execute the query to remove Sermon catid items
|
||||
// [4289] Execute the query to remove Sermon catid items
|
||||
$sermon_catid_done = $db->execute();
|
||||
if ($sermon_catid_done);
|
||||
{
|
||||
// [4286] If succesfully remove Sermon catid add queued success message.
|
||||
// [4293] If succesfully remove Sermon catid add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.sermons.category) type alias was removed from the <b>#__ucm_content</b> table'));
|
||||
}
|
||||
|
||||
// [4292] Make sure that all the Sermon catid items are cleared from DB
|
||||
// [4299] Make sure that all the Sermon catid items are cleared from DB
|
||||
foreach ($sermon_catid_ids as $sermon_catid_id)
|
||||
{
|
||||
// [4297] Remove Sermon catid items from the ucm base table
|
||||
// [4304] Remove Sermon catid items from the ucm base table
|
||||
$sermon_catid_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_catid_id);
|
||||
// [4299] Create a new query object.
|
||||
// [4306] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_base'));
|
||||
$query->where($sermon_catid_condition);
|
||||
$db->setQuery($query);
|
||||
// [4304] Execute the query to remove Sermon catid items
|
||||
// [4311] Execute the query to remove Sermon catid items
|
||||
$db->execute();
|
||||
|
||||
// [4308] Remove Sermon catid items from the ucm history table
|
||||
// [4315] Remove Sermon catid items from the ucm history table
|
||||
$sermon_catid_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $sermon_catid_id);
|
||||
// [4310] Create a new query object.
|
||||
// [4317] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_history'));
|
||||
$query->where($sermon_catid_condition);
|
||||
$db->setQuery($query);
|
||||
// [4315] Execute the query to remove Sermon catid items
|
||||
// [4322] Execute the query to remove Sermon catid items
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
// [4223] Create a new query object.
|
||||
// [4230] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
// [4225] Select id from content type table
|
||||
// [4232] Select id from content type table
|
||||
$query->select($db->quoteName('type_id'));
|
||||
$query->from($db->quoteName('#__content_types'));
|
||||
// [4228] Where Series alias is found
|
||||
// [4235] Where Series alias is found
|
||||
$query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.series') );
|
||||
$db->setQuery($query);
|
||||
// [4231] Execute query to see if alias is found
|
||||
// [4238] Execute query to see if alias is found
|
||||
$db->execute();
|
||||
$series_found = $db->getNumRows();
|
||||
// [4234] Now check if there were any rows
|
||||
// [4241] Now check if there were any rows
|
||||
if ($series_found)
|
||||
{
|
||||
// [4237] Since there are load the needed series type ids
|
||||
// [4244] Since there are load the needed series type ids
|
||||
$series_ids = $db->loadColumn();
|
||||
// [4241] Remove Series from the content type table
|
||||
// [4248] Remove Series from the content type table
|
||||
$series_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.series') );
|
||||
// [4243] Create a new query object.
|
||||
// [4250] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__content_types'));
|
||||
$query->where($series_condition);
|
||||
$db->setQuery($query);
|
||||
// [4248] Execute the query to remove Series items
|
||||
// [4255] Execute the query to remove Series items
|
||||
$series_done = $db->execute();
|
||||
if ($series_done);
|
||||
{
|
||||
// [4252] If succesfully remove Series add queued success message.
|
||||
// [4259] If succesfully remove Series add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.series) type alias was removed from the <b>#__content_type</b> table'));
|
||||
}
|
||||
|
||||
// [4258] Remove Series items from the contentitem tag map table
|
||||
// [4265] Remove Series items from the contentitem tag map table
|
||||
$series_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.series') );
|
||||
// [4260] Create a new query object.
|
||||
// [4267] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__contentitem_tag_map'));
|
||||
$query->where($series_condition);
|
||||
$db->setQuery($query);
|
||||
// [4265] Execute the query to remove Series items
|
||||
// [4272] Execute the query to remove Series items
|
||||
$series_done = $db->execute();
|
||||
if ($series_done);
|
||||
{
|
||||
// [4269] If succesfully remove Series add queued success message.
|
||||
// [4276] If succesfully remove Series add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.series) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
|
||||
}
|
||||
|
||||
// [4275] Remove Series items from the ucm content table
|
||||
// [4282] Remove Series items from the ucm content table
|
||||
$series_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.series') );
|
||||
// [4277] Create a new query object.
|
||||
// [4284] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_content'));
|
||||
$query->where($series_condition);
|
||||
$db->setQuery($query);
|
||||
// [4282] Execute the query to remove Series items
|
||||
// [4289] Execute the query to remove Series items
|
||||
$series_done = $db->execute();
|
||||
if ($series_done);
|
||||
{
|
||||
// [4286] If succesfully remove Series add queued success message.
|
||||
// [4293] If succesfully remove Series add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.series) type alias was removed from the <b>#__ucm_content</b> table'));
|
||||
}
|
||||
|
||||
// [4292] Make sure that all the Series items are cleared from DB
|
||||
// [4299] Make sure that all the Series items are cleared from DB
|
||||
foreach ($series_ids as $series_id)
|
||||
{
|
||||
// [4297] Remove Series items from the ucm base table
|
||||
// [4304] Remove Series items from the ucm base table
|
||||
$series_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $series_id);
|
||||
// [4299] Create a new query object.
|
||||
// [4306] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_base'));
|
||||
$query->where($series_condition);
|
||||
$db->setQuery($query);
|
||||
// [4304] Execute the query to remove Series items
|
||||
// [4311] Execute the query to remove Series items
|
||||
$db->execute();
|
||||
|
||||
// [4308] Remove Series items from the ucm history table
|
||||
// [4315] Remove Series items from the ucm history table
|
||||
$series_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $series_id);
|
||||
// [4310] Create a new query object.
|
||||
// [4317] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_history'));
|
||||
$query->where($series_condition);
|
||||
$db->setQuery($query);
|
||||
// [4315] Execute the query to remove Series items
|
||||
// [4322] Execute the query to remove Series items
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
// [4223] Create a new query object.
|
||||
// [4230] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
// [4225] Select id from content type table
|
||||
// [4232] Select id from content type table
|
||||
$query->select($db->quoteName('type_id'));
|
||||
$query->from($db->quoteName('#__content_types'));
|
||||
// [4228] Where Statistic alias is found
|
||||
// [4235] Where Statistic alias is found
|
||||
$query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.statistic') );
|
||||
$db->setQuery($query);
|
||||
// [4231] Execute query to see if alias is found
|
||||
// [4238] Execute query to see if alias is found
|
||||
$db->execute();
|
||||
$statistic_found = $db->getNumRows();
|
||||
// [4234] Now check if there were any rows
|
||||
// [4241] Now check if there were any rows
|
||||
if ($statistic_found)
|
||||
{
|
||||
// [4237] Since there are load the needed statistic type ids
|
||||
// [4244] Since there are load the needed statistic type ids
|
||||
$statistic_ids = $db->loadColumn();
|
||||
// [4241] Remove Statistic from the content type table
|
||||
// [4248] Remove Statistic from the content type table
|
||||
$statistic_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.statistic') );
|
||||
// [4243] Create a new query object.
|
||||
// [4250] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__content_types'));
|
||||
$query->where($statistic_condition);
|
||||
$db->setQuery($query);
|
||||
// [4248] Execute the query to remove Statistic items
|
||||
// [4255] Execute the query to remove Statistic items
|
||||
$statistic_done = $db->execute();
|
||||
if ($statistic_done);
|
||||
{
|
||||
// [4252] If succesfully remove Statistic add queued success message.
|
||||
// [4259] If succesfully remove Statistic add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.statistic) type alias was removed from the <b>#__content_type</b> table'));
|
||||
}
|
||||
|
||||
// [4258] Remove Statistic items from the contentitem tag map table
|
||||
// [4265] Remove Statistic items from the contentitem tag map table
|
||||
$statistic_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.statistic') );
|
||||
// [4260] Create a new query object.
|
||||
// [4267] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__contentitem_tag_map'));
|
||||
$query->where($statistic_condition);
|
||||
$db->setQuery($query);
|
||||
// [4265] Execute the query to remove Statistic items
|
||||
// [4272] Execute the query to remove Statistic items
|
||||
$statistic_done = $db->execute();
|
||||
if ($statistic_done);
|
||||
{
|
||||
// [4269] If succesfully remove Statistic add queued success message.
|
||||
// [4276] If succesfully remove Statistic add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.statistic) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
|
||||
}
|
||||
|
||||
// [4275] Remove Statistic items from the ucm content table
|
||||
// [4282] Remove Statistic items from the ucm content table
|
||||
$statistic_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.statistic') );
|
||||
// [4277] Create a new query object.
|
||||
// [4284] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_content'));
|
||||
$query->where($statistic_condition);
|
||||
$db->setQuery($query);
|
||||
// [4282] Execute the query to remove Statistic items
|
||||
// [4289] Execute the query to remove Statistic items
|
||||
$statistic_done = $db->execute();
|
||||
if ($statistic_done);
|
||||
{
|
||||
// [4286] If succesfully remove Statistic add queued success message.
|
||||
// [4293] If succesfully remove Statistic add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.statistic) type alias was removed from the <b>#__ucm_content</b> table'));
|
||||
}
|
||||
|
||||
// [4292] Make sure that all the Statistic items are cleared from DB
|
||||
// [4299] Make sure that all the Statistic items are cleared from DB
|
||||
foreach ($statistic_ids as $statistic_id)
|
||||
{
|
||||
// [4297] Remove Statistic items from the ucm base table
|
||||
// [4304] Remove Statistic items from the ucm base table
|
||||
$statistic_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $statistic_id);
|
||||
// [4299] Create a new query object.
|
||||
// [4306] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_base'));
|
||||
$query->where($statistic_condition);
|
||||
$db->setQuery($query);
|
||||
// [4304] Execute the query to remove Statistic items
|
||||
// [4311] Execute the query to remove Statistic items
|
||||
$db->execute();
|
||||
|
||||
// [4308] Remove Statistic items from the ucm history table
|
||||
// [4315] Remove Statistic items from the ucm history table
|
||||
$statistic_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $statistic_id);
|
||||
// [4310] Create a new query object.
|
||||
// [4317] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_history'));
|
||||
$query->where($statistic_condition);
|
||||
$db->setQuery($query);
|
||||
// [4315] Execute the query to remove Statistic items
|
||||
// [4322] Execute the query to remove Statistic items
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
// [4223] Create a new query object.
|
||||
// [4230] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
// [4225] Select id from content type table
|
||||
// [4232] Select id from content type table
|
||||
$query->select($db->quoteName('type_id'));
|
||||
$query->from($db->quoteName('#__content_types'));
|
||||
// [4228] Where Help_document alias is found
|
||||
// [4235] Where Help_document alias is found
|
||||
$query->where( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.help_document') );
|
||||
$db->setQuery($query);
|
||||
// [4231] Execute query to see if alias is found
|
||||
// [4238] Execute query to see if alias is found
|
||||
$db->execute();
|
||||
$help_document_found = $db->getNumRows();
|
||||
// [4234] Now check if there were any rows
|
||||
// [4241] Now check if there were any rows
|
||||
if ($help_document_found)
|
||||
{
|
||||
// [4237] Since there are load the needed help_document type ids
|
||||
// [4244] Since there are load the needed help_document type ids
|
||||
$help_document_ids = $db->loadColumn();
|
||||
// [4241] Remove Help_document from the content type table
|
||||
// [4248] Remove Help_document from the content type table
|
||||
$help_document_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.help_document') );
|
||||
// [4243] Create a new query object.
|
||||
// [4250] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__content_types'));
|
||||
$query->where($help_document_condition);
|
||||
$db->setQuery($query);
|
||||
// [4248] Execute the query to remove Help_document items
|
||||
// [4255] Execute the query to remove Help_document items
|
||||
$help_document_done = $db->execute();
|
||||
if ($help_document_done);
|
||||
{
|
||||
// [4252] If succesfully remove Help_document add queued success message.
|
||||
// [4259] If succesfully remove Help_document add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.help_document) type alias was removed from the <b>#__content_type</b> table'));
|
||||
}
|
||||
|
||||
// [4258] Remove Help_document items from the contentitem tag map table
|
||||
// [4265] Remove Help_document items from the contentitem tag map table
|
||||
$help_document_condition = array( $db->quoteName('type_alias') . ' = '. $db->quote('com_sermondistributor.help_document') );
|
||||
// [4260] Create a new query object.
|
||||
// [4267] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__contentitem_tag_map'));
|
||||
$query->where($help_document_condition);
|
||||
$db->setQuery($query);
|
||||
// [4265] Execute the query to remove Help_document items
|
||||
// [4272] Execute the query to remove Help_document items
|
||||
$help_document_done = $db->execute();
|
||||
if ($help_document_done);
|
||||
{
|
||||
// [4269] If succesfully remove Help_document add queued success message.
|
||||
// [4276] If succesfully remove Help_document add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.help_document) type alias was removed from the <b>#__contentitem_tag_map</b> table'));
|
||||
}
|
||||
|
||||
// [4275] Remove Help_document items from the ucm content table
|
||||
// [4282] Remove Help_document items from the ucm content table
|
||||
$help_document_condition = array( $db->quoteName('core_type_alias') . ' = ' . $db->quote('com_sermondistributor.help_document') );
|
||||
// [4277] Create a new query object.
|
||||
// [4284] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_content'));
|
||||
$query->where($help_document_condition);
|
||||
$db->setQuery($query);
|
||||
// [4282] Execute the query to remove Help_document items
|
||||
// [4289] Execute the query to remove Help_document items
|
||||
$help_document_done = $db->execute();
|
||||
if ($help_document_done);
|
||||
{
|
||||
// [4286] If succesfully remove Help_document add queued success message.
|
||||
// [4293] If succesfully remove Help_document add queued success message.
|
||||
$app->enqueueMessage(JText::_('The (com_sermondistributor.help_document) type alias was removed from the <b>#__ucm_content</b> table'));
|
||||
}
|
||||
|
||||
// [4292] Make sure that all the Help_document items are cleared from DB
|
||||
// [4299] Make sure that all the Help_document items are cleared from DB
|
||||
foreach ($help_document_ids as $help_document_id)
|
||||
{
|
||||
// [4297] Remove Help_document items from the ucm base table
|
||||
// [4304] Remove Help_document items from the ucm base table
|
||||
$help_document_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $help_document_id);
|
||||
// [4299] Create a new query object.
|
||||
// [4306] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_base'));
|
||||
$query->where($help_document_condition);
|
||||
$db->setQuery($query);
|
||||
// [4304] Execute the query to remove Help_document items
|
||||
// [4311] Execute the query to remove Help_document items
|
||||
$db->execute();
|
||||
|
||||
// [4308] Remove Help_document items from the ucm history table
|
||||
// [4315] Remove Help_document items from the ucm history table
|
||||
$help_document_condition = array( $db->quoteName('ucm_type_id') . ' = ' . $help_document_id);
|
||||
// [4310] Create a new query object.
|
||||
// [4317] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__ucm_history'));
|
||||
$query->where($help_document_condition);
|
||||
$db->setQuery($query);
|
||||
// [4315] Execute the query to remove Help_document items
|
||||
// [4322] Execute the query to remove Help_document items
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
// [4323] If All related items was removed queued success message.
|
||||
// [4330] If All related items was removed queued success message.
|
||||
$app->enqueueMessage(JText::_('All related items was removed from the <b>#__ucm_base</b> table'));
|
||||
$app->enqueueMessage(JText::_('All related items was removed from the <b>#__ucm_history</b> table'));
|
||||
|
||||
// [4328] Remove sermondistributor assets from the assets table
|
||||
// [4335] Remove sermondistributor assets from the assets table
|
||||
$sermondistributor_condition = array( $db->quoteName('name') . ' LIKE ' . $db->quote('com_sermondistributor%') );
|
||||
|
||||
// [4330] Create a new query object.
|
||||
// [4337] Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->delete($db->quoteName('#__assets'));
|
||||
$query->where($sermondistributor_condition);
|
||||
|
@ -585,7 +585,7 @@ class com_sermondistributorInstallerScript
|
|||
$help_document_done = $db->execute();
|
||||
if ($help_document_done);
|
||||
{
|
||||
// [4338] If succesfully remove sermondistributor add queued success message.
|
||||
// [4345] If succesfully remove sermondistributor add queued success message.
|
||||
$app->enqueueMessage(JText::_('All related items was removed from the <b>#__assets</b> table'));
|
||||
}
|
||||
|
||||
|
@ -639,11 +639,11 @@ class com_sermondistributorInstallerScript
|
|||
if ($type == 'install')
|
||||
{
|
||||
|
||||
// [4384] Get The Database object
|
||||
// [4391] Get The Database object
|
||||
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// [4391] Create the preacher content type object.
|
||||
// [4398] Create the preacher content type object.
|
||||
$preacher = new stdClass();
|
||||
$preacher->type_title = 'Sermondistributor Preacher';
|
||||
$preacher->type_alias = 'com_sermondistributor.preacher';
|
||||
|
@ -652,10 +652,10 @@ class com_sermondistributorInstallerScript
|
|||
$preacher->router = 'SermondistributorHelperRoute::getPreacherRoute';
|
||||
$preacher->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/preacher.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
|
||||
|
||||
// [4397] Insert the object into the content types table.
|
||||
// [4404] Insert the object into the content types table.
|
||||
$preacherInserted = $db->insertObject('#__content_types', $preacher);
|
||||
|
||||
// [4391] Create the sermon content type object.
|
||||
// [4398] Create the sermon content type object.
|
||||
$sermon = new stdClass();
|
||||
$sermon->type_title = 'Sermondistributor Sermon';
|
||||
$sermon->type_alias = 'com_sermondistributor.sermon';
|
||||
|
@ -664,10 +664,10 @@ class com_sermondistributorInstallerScript
|
|||
$sermon->router = 'SermondistributorHelperRoute::getSermonRoute';
|
||||
$sermon->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/sermon.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required","auto_sermons"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","preacher","series","catid","link_type","source","not_required","build"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "preacher","targetTable": "#__sermondistributor_preacher","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "series","targetTable": "#__sermondistributor_series","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "local_files","targetTable": "","targetColumn": "","displayColumn": ""},{"sourceColumn": "manual_files","targetTable": "","targetColumn": "","displayColumn": ""}]}';
|
||||
|
||||
// [4397] Insert the object into the content types table.
|
||||
// [4404] Insert the object into the content types table.
|
||||
$sermonInserted = $db->insertObject('#__content_types', $sermon);
|
||||
|
||||
// [4391] Create the sermon catagory content type object.
|
||||
// [4398] Create the sermon catagory content type object.
|
||||
$sermon_catagory = new stdClass();
|
||||
$sermon_catagory->type_title = 'Sermondistributor Sermon Catid';
|
||||
$sermon_catagory->type_alias = 'com_sermondistributor.sermons.category';
|
||||
|
@ -676,10 +676,10 @@ class com_sermondistributorInstallerScript
|
|||
$sermon_catagory->router = 'SermondistributorHelperRoute::getCategoryRoute';
|
||||
$sermon_catagory->content_history_options = '{"formFile":"administrator\/components\/com_categories\/models\/forms\/category.xml", "hideFields":["asset_id","checked_out","checked_out_time","version","lft","rgt","level","path","extension"], "ignoreChanges":["modified_user_id", "modified_time", "checked_out", "checked_out_time", "version", "hits", "path"],"convertToInt":["publish_up", "publish_down"], "displayLookup":[{"sourceColumn":"created_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"access","targetTable":"#__viewlevels","targetColumn":"id","displayColumn":"title"},{"sourceColumn":"modified_user_id","targetTable":"#__users","targetColumn":"id","displayColumn":"name"},{"sourceColumn":"parent_id","targetTable":"#__categories","targetColumn":"id","displayColumn":"title"}]}';
|
||||
|
||||
// [4397] Insert the object into the content types table.
|
||||
// [4404] Insert the object into the content types table.
|
||||
$sermon_catagoryInserted = $db->insertObject('#__content_types', $sermon_catagory);
|
||||
|
||||
// [4391] Create the series content type object.
|
||||
// [4398] Create the series content type object.
|
||||
$series = new stdClass();
|
||||
$series->type_title = 'Sermondistributor Series';
|
||||
$series->type_alias = 'com_sermondistributor.series';
|
||||
|
@ -688,10 +688,10 @@ class com_sermondistributorInstallerScript
|
|||
$series->router = 'SermondistributorHelperRoute::getSeriesRoute';
|
||||
$series->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/series.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
|
||||
|
||||
// [4397] Insert the object into the content types table.
|
||||
// [4404] Insert the object into the content types table.
|
||||
$seriesInserted = $db->insertObject('#__content_types', $series);
|
||||
|
||||
// [4391] Create the statistic content type object.
|
||||
// [4398] Create the statistic content type object.
|
||||
$statistic = new stdClass();
|
||||
$statistic->type_title = 'Sermondistributor Statistic';
|
||||
$statistic->type_alias = 'com_sermondistributor.statistic';
|
||||
|
@ -700,10 +700,10 @@ class com_sermondistributorInstallerScript
|
|||
$statistic->router = 'SermondistributorHelperRoute::getStatisticRoute';
|
||||
$statistic->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/statistic.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","sermon","preacher","series","counter"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "sermon","targetTable": "#__sermondistributor_sermon","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "preacher","targetTable": "#__sermondistributor_preacher","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "series","targetTable": "#__sermondistributor_series","targetColumn": "id","displayColumn": "name"}]}';
|
||||
|
||||
// [4397] Insert the object into the content types table.
|
||||
// [4404] Insert the object into the content types table.
|
||||
$statisticInserted = $db->insertObject('#__content_types', $statistic);
|
||||
|
||||
// [4391] Create the help_document content type object.
|
||||
// [4398] Create the help_document content type object.
|
||||
$help_document = new stdClass();
|
||||
$help_document->type_title = 'Sermondistributor Help_document';
|
||||
$help_document->type_alias = 'com_sermondistributor.help_document';
|
||||
|
@ -712,19 +712,19 @@ class com_sermondistributorInstallerScript
|
|||
$help_document->router = 'SermondistributorHelperRoute::getHelp_documentRoute';
|
||||
$help_document->content_history_options = '{"formFile": "administrator/components/com_sermondistributor/models/forms/help_document.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","type","location","target","article","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "article","targetTable": "#__content","targetColumn": "id","displayColumn": "title"}]}';
|
||||
|
||||
// [4397] Insert the object into the content types table.
|
||||
// [4404] Insert the object into the content types table.
|
||||
$help_documentInserted = $db->insertObject('#__content_types', $help_document);
|
||||
|
||||
|
||||
// [4409] Install the global extenstion params.
|
||||
// [4416] Install the global extenstion params.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// [4417] Field to update.
|
||||
// [4424] Field to update.
|
||||
$fields = array(
|
||||
$db->quoteName('params') . ' = ' . $db->quote('{"autorName":"Llewellyn van der Merwe","autorEmail":"llewellyn@vdm.io","add_to_dropbox":"0","dropbox_filetypes":"zero","manual_link_update_method":"1","manual_dropbox_timer":"60","auto_link_update_method":"1","auto_dropbox_timer":"60","preacher_state":"1","series_state":"1","sermon_state":"1","auto_link_type":"1","link_encryption":")$KCGiB3BEfDf6kzEWrFnHex5uTJxlQG","preachers_display":"2","preachers_list_style":"2","preachers_table_color":"0","preachers_icon":"1","preachers_desc":"1","preachers_sermon_count":"1","preachers_hits":"1","preachers_website":"1","preachers_email":"1","preacher_request_id":"zero","preacher_display":"3","preacher_box_contrast":"1","preacher_list_style":"3","preacher_icon":"1","preacher_desc":"1","preacher_sermon_count":"1","preacher_hits":"1","preacher_email":"1","preacher_website":"1","preacher_sermons_display":"2","preacher_sermons_list_style":"2","preacher_sermons_table_color":"0","preacher_sermons_icon":"1","preacher_sermons_desc":"1","preacher_sermons_series":"1","preacher_sermons_category":"1","preacher_sermons_download_counter":"1","preacher_sermons_hits":"1","preacher_sermons_downloads":"1","preacher_sermons_open":"1","categories_display":"2","categories_list_style":"2","categories_table_color":"0","categories_icon":"1","categories_desc":"1","categories_sermon_count":"1","categories_hits":"1","category_display":"3","category_box_contrast":"1","category_list_style":"3","category_icon":"1","category_desc":"1","category_sermon_count":"1","category_hits":"1","category_sermons_display":"2","category_sermons_list_style":"1","category_sermons_table_color":"1","category_sermons_icon":"1","category_sermons_desc":"1","category_sermons_preacher":"1","category_sermons_series":"1","category_sermons_download_counter":"1","category_sermons_hits":"1","category_sermons_downloads":"1","category_sermons_open":"1","list_series_display":"2","list_series_list_style":"2","list_series_table_color":"0","list_series_icon":"1","list_series_desc":"1","list_series_sermon_count":"1","list_series_hits":"1","series_request_id":"zero","series_display":"3","series_box_contrast":"1","series_list_style":"3","series_icon":"1","series_desc":"1","series_sermon_count":"1","series_hits":"1","series_sermons_display":"2","series_sermons_list_style":"1","series_sermons_table_color":"1","series_sermons_icon":"1","series_sermons_desc":"1","series_sermons_preacher":"1","series_sermons_category":"1","series_sermons_download_counter":"1","series_sermons_hits":"1","series_sermons_downloads":"1","series_sermons_open":"1","sermon_display":"1","sermon_box_contrast":"one","sermon_list_style":"1","sermon_icon":"1","sermon_desc":"1","sermon_preacher":"1","sermon_series":"1","sermon_series":"1","sermon_category":"1","sermon_download_counter":"1","sermon_hits":"1","sermon_downloads":"1","check_in":"-1 day","save_history":"1","history_limit":"10","uikit_load":"1","uikit_min":"","uikit_style":""}'),
|
||||
);
|
||||
|
||||
// [4421] Condition.
|
||||
// [4428] Condition.
|
||||
$conditions = array(
|
||||
$db->quoteName('element') . ' = ' . $db->quote('com_sermondistributor')
|
||||
);
|
||||
|
|
|
@ -39,18 +39,18 @@ abstract class SermondistributorHelperRoute
|
|||
{
|
||||
if ($id > 0)
|
||||
{
|
||||
// [4571] Initialize the needel array.
|
||||
// [4578] Initialize the needel array.
|
||||
$needles = array(
|
||||
'sermon' => array((int) $id)
|
||||
);
|
||||
// [4575] Create the link
|
||||
// [4582] Create the link
|
||||
$link = 'index.php?option=com_sermondistributor&view=sermon&id='. $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4580] Initialize the needel array.
|
||||
// [4587] Initialize the needel array.
|
||||
$needles = array();
|
||||
// [4582]Create the link but don't add the id.
|
||||
// [4589]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)
|
||||
{
|
||||
// [4571] Initialize the needel array.
|
||||
// [4578] Initialize the needel array.
|
||||
$needles = array(
|
||||
'preachers' => array((int) $id)
|
||||
);
|
||||
// [4575] Create the link
|
||||
// [4582] Create the link
|
||||
$link = 'index.php?option=com_sermondistributor&view=preachers&id='. $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4580] Initialize the needel array.
|
||||
// [4587] Initialize the needel array.
|
||||
$needles = array();
|
||||
// [4582]Create the link but don't add the id.
|
||||
// [4589]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)
|
||||
{
|
||||
// [4571] Initialize the needel array.
|
||||
// [4578] Initialize the needel array.
|
||||
$needles = array(
|
||||
'preacher' => array((int) $id)
|
||||
);
|
||||
// [4575] Create the link
|
||||
// [4582] Create the link
|
||||
$link = 'index.php?option=com_sermondistributor&view=preacher&id='. $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4580] Initialize the needel array.
|
||||
// [4587] Initialize the needel array.
|
||||
$needles = array();
|
||||
// [4582]Create the link but don't add the id.
|
||||
// [4589]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)
|
||||
{
|
||||
// [4571] Initialize the needel array.
|
||||
// [4578] Initialize the needel array.
|
||||
$needles = array(
|
||||
'categories' => array((int) $id)
|
||||
);
|
||||
// [4575] Create the link
|
||||
// [4582] Create the link
|
||||
$link = 'index.php?option=com_sermondistributor&view=categories&id='. $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4580] Initialize the needel array.
|
||||
// [4587] Initialize the needel array.
|
||||
$needles = array();
|
||||
// [4582]Create the link but don't add the id.
|
||||
// [4589]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)
|
||||
{
|
||||
// [4571] Initialize the needel array.
|
||||
// [4578] Initialize the needel array.
|
||||
$needles = array(
|
||||
'category' => array((int) $id)
|
||||
);
|
||||
// [4575] Create the link
|
||||
// [4582] Create the link
|
||||
$link = 'index.php?option=com_sermondistributor&view=category&id='. $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4580] Initialize the needel array.
|
||||
// [4587] Initialize the needel array.
|
||||
$needles = array();
|
||||
// [4582]Create the link but don't add the id.
|
||||
// [4589]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)
|
||||
{
|
||||
// [4571] Initialize the needel array.
|
||||
// [4578] Initialize the needel array.
|
||||
$needles = array(
|
||||
'serieslist' => array((int) $id)
|
||||
);
|
||||
// [4575] Create the link
|
||||
// [4582] Create the link
|
||||
$link = 'index.php?option=com_sermondistributor&view=serieslist&id='. $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4580] Initialize the needel array.
|
||||
// [4587] Initialize the needel array.
|
||||
$needles = array();
|
||||
// [4582]Create the link but don't add the id.
|
||||
// [4589]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)
|
||||
{
|
||||
// [4571] Initialize the needel array.
|
||||
// [4578] Initialize the needel array.
|
||||
$needles = array(
|
||||
'series' => array((int) $id)
|
||||
);
|
||||
// [4575] Create the link
|
||||
// [4582] Create the link
|
||||
$link = 'index.php?option=com_sermondistributor&view=series&id='. $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
// [4580] Initialize the needel array.
|
||||
// [4587] Initialize the needel array.
|
||||
$needles = array();
|
||||
// [4582]Create the link but don't add the id.
|
||||
// [4589]Create the link but don't add the id.
|
||||
$link = 'index.php?option=com_sermondistributor&view=series';
|
||||
}
|
||||
if ($catid > 1)
|
||||
|
|
|
@ -38,7 +38,7 @@ class SermondistributorModelAjax extends JModelList
|
|||
|
||||
}
|
||||
|
||||
// [8909] Used in sermon
|
||||
// [8916] Used in sermon
|
||||
/**
|
||||
* Check and Set Dropbox local listing
|
||||
**/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<!-- [1732] Adding page parameters -->
|
||||
<fields name="params">
|
||||
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
|
||||
<!-- [11273] Categories_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Categories_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Categories_list_style Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="categories_list_style"
|
||||
|
@ -36,7 +36,7 @@
|
|||
multiple="false"
|
||||
filter="string"
|
||||
default="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Categories_table_color Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Categories_table_color Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="categories_table_color"
|
||||
|
@ -58,7 +58,7 @@
|
|||
multiple="false"
|
||||
filter="string"
|
||||
default="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Categories_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Categories_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Categories_sermon_count Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Categories_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [1755] Global & Option Set. -->
|
||||
<option value="">
|
||||
JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="1">
|
||||
|
|
|
@ -146,21 +146,21 @@ class SermondistributorViewCategories extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] 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');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] 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');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<fieldset name="request"
|
||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields">
|
||||
|
||||
<!-- [11359] Category_request_id Field. Type: Category. (joomla) -->
|
||||
<!-- [11366] 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">
|
||||
<!-- [11273] Category_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_box_contrast Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Category_list_style Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="category_list_style"
|
||||
|
@ -69,7 +69,7 @@
|
|||
multiple="false"
|
||||
filter="string"
|
||||
default="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermon_count Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11373] Spacer_hr_g Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<!-- [11380] Spacer_hr_g Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_g" hr="true" class="spacer_hr_g" />
|
||||
<!-- [11273] Category_sermons_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_table_color Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_preacher Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_series Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_download_counter Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_downloads Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Category_sermons_open Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [1755] Global & Option Set. -->
|
||||
<option value="">
|
||||
JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="1">
|
||||
|
|
|
@ -208,21 +208,21 @@ class SermondistributorViewCategory extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] 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');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] 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');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<fieldset name="request"
|
||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields">
|
||||
|
||||
<!-- [11480] Preacher_request_id Field. Type: Preachers. (custom) -->
|
||||
<!-- [11487] 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">
|
||||
<!-- [11273] Preacher_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_box_contrast Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Preacher_list_style Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="preacher_list_style"
|
||||
|
@ -71,7 +71,7 @@
|
|||
multiple="false"
|
||||
filter="string"
|
||||
default="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermon_count Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_email Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_website Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11373] Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<!-- [11380] Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_f" hr="true" class="spacer_hr_f" />
|
||||
<!-- [11273] Preacher_sermons_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_table_color Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_series Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_category Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_download_counter Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_downloads Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preacher_sermons_open Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [1755] Global & Option Set. -->
|
||||
<option value="">
|
||||
JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="1">
|
||||
|
|
|
@ -203,21 +203,21 @@ class SermondistributorViewPreacher extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] 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');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] 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');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<!-- [1732] Adding page parameters -->
|
||||
<fields name="params">
|
||||
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
|
||||
<!-- [11273] Preachers_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Preachers_list_style Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="preachers_list_style"
|
||||
|
@ -36,7 +36,7 @@
|
|||
multiple="false"
|
||||
filter="string"
|
||||
default="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_table_color Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Preachers_table_color Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="preachers_table_color"
|
||||
|
@ -58,7 +58,7 @@
|
|||
multiple="false"
|
||||
filter="string"
|
||||
default="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_sermon_count Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_website Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Preachers_email Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [1755] Global & Option Set. -->
|
||||
<option value="">
|
||||
JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="1">
|
||||
|
|
|
@ -161,21 +161,21 @@ class SermondistributorViewPreachers extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] 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');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] 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');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<fieldset name="request"
|
||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields">
|
||||
|
||||
<!-- [11480] Series_request_id Field. Type: Series. (custom) -->
|
||||
<!-- [11487] 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">
|
||||
<!-- [11273] Series_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_box_contrast Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] Series_list_style Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="series_list_style"
|
||||
|
@ -70,7 +70,7 @@
|
|||
multiple="false"
|
||||
filter="string"
|
||||
default="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermon_count Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11373] Spacer_hr_h Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<!-- [11380] Spacer_hr_h Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_h" hr="true" class="spacer_hr_h" />
|
||||
<!-- [11273] Series_sermons_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_table_color Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_preacher Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_category Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_download_counter Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_downloads Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] Series_sermons_open Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [1755] Global & Option Set. -->
|
||||
<option value="">
|
||||
JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="1">
|
||||
|
|
|
@ -202,21 +202,21 @@ class SermondistributorViewSeries extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] 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');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] 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');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<!-- [1732] Adding page parameters -->
|
||||
<fields name="params">
|
||||
<fieldset name="basic" label="COM_SERMONDISTRIBUTOR">
|
||||
<!-- [11273] List_series_display Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] List_series_list_style Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] List_series_table_color Field. Type: List. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] List_series_icon Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] List_series_desc Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] List_series_sermon_count Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [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>
|
||||
<!-- [11273] List_series_hits Field. Type: Radio. (joomla) -->
|
||||
<!-- [11280] 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="">
|
||||
<!-- [11345] [1755] Global & Option Set. -->
|
||||
<!-- [11352] [1755] Global & Option Set. -->
|
||||
<option value="">
|
||||
JGLOBAL_USE_GLOBAL</option>
|
||||
<option value="1">
|
||||
|
|
|
@ -161,21 +161,21 @@ class SermondistributorViewSerieslist extends JViewLegacy
|
|||
}
|
||||
}
|
||||
|
||||
// [6507] Add the CSS for Footable.
|
||||
// [6514] Add the CSS for Footable.
|
||||
$this->document->addStyleSheet(JURI::root() .'media/com_sermondistributor/footable/css/footable.core.min.css');
|
||||
|
||||
// [6509] Use the Metro Style
|
||||
// [6516] 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');
|
||||
}
|
||||
// [6514] Use the Legacy Style.
|
||||
// [6521] 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');
|
||||
}
|
||||
|
||||
// [6519] Add the JavaScript for Footable
|
||||
// [6526] 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');
|
||||
|
|
Loading…
Reference in New Issue