Added more dynamic behavior to the new plugin area. Added a funding yml file.

This commit is contained in:
2019-07-17 01:15:42 +02:00
parent eae07504fa
commit 8d2af8365b
31 changed files with 573 additions and 32 deletions

View File

@ -35,7 +35,8 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
'method_selection'
),
'fullwidth' => array(
'main_class_code'
'main_class_code',
'note_linked_to_notice'
),
'above' => array(
'name',
@ -882,8 +883,12 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
// make sure the name is safe to be used as a function name
$data['name'] = ComponentbuilderHelper::safeClassFunctionName($data['name']);
// check if the name has placeholder
if (strpos($data['name'], '[[[') === false && strpos($data['name'], '###') === false)
{
// make sure the name is safe to be used as a function name
$data['name'] = ComponentbuilderHelper::safeClassFunctionName($data['name']);
}
// Set the fields items to data.
if (isset($data['fields']) && is_array($data['fields']))