User = BackendUser::getInstance(); } /** * @Callback(table="tl_member", target="list.operations.secureDownloads.button") */ public function onListSecureDownloadsOperationCallback(array $row, ?string $href, string $label, string $title, ?string $icon, string $attributes, string $table, array $rootRecordIds, ?array $childRecordIds, bool $circularReference, ?string $previous, ?string $next, DataContainer $dc) { if (Input::get('popup')) { return ''; } else { $objSecFile = SecureDownloadsModel::findByPk($row['id']); $objFile = $objSecFile->getRelated('uuid'); $title = sprintf($GLOBALS['TL_LANG']['tl_member_secureDownloads']['show'][1], $objFile->name); if ($objFile !== null) { return 'name, false, true)) . '\',\'url\':this.href,\'height\':300});return false">' . Image::getHtml($icon, $label) . ' '; } else { return ''; } } } }