Added the trash helper option to JCB as a pro feature.

This commit is contained in:
2020-12-27 13:54:51 +02:00
parent d36410281d
commit d29bc8f3a0
199 changed files with 405 additions and 212 deletions

View File

@ -12164,6 +12164,18 @@ class Interpretation extends Fields
&& $this->adminFilterType[$nameListCode] == 2)
{
$body[] = "<?php";
// build code to add the trash helper layout
$addTrashHelper = $this->_t(1)
. "echo JLayoutHelper::render('trashhelper', \$this);";
// add the trash helper layout if found in JCB
if ($this->setTemplateAndLayoutData($addTrashHelper, $nameListCode))
{
$body[] = $this->_t(1) . "//" . $this->setLine(
__LINE__
) . " Add the trash helper layout";
$body[] = $addTrashHelper;
}
// add the new search toolbar ;)
$body[] = $this->_t(1) . "//" . $this->setLine(
__LINE__
) . " Add the searchtools";