Skip to content
Snippets Groups Projects

[TASK] Remove inline styles and scripts from plugin preview and pagination

Merged Kevin Ditscheid requested to merge cleanup_BackendModule into master
Files
3
@@ -73,9 +73,8 @@ class PageLayoutController {
$buttonLabel = LocalizationUtility::translate('backend.button.goToNewsModule', 'SgNews');
$buttonLabel = '<span style="vertical-align: middle;">' . $buttonLabel . '</span>';
$path = '';
$onclick = 'TYPO3.SgNewsModule.sgNewsGoToNewsModule(' . $categoryRow['uid'] . $path . '); return false;';
$wrap = ' <div class="btn-group" role="group">%s</div>';
$link = '<a href="#" onclick="' . $onclick . '" class="btn btn-primary">%s</a>';
$link = '<a href="#" data-uid="' . $categoryRow['uid'] . '" data-path="' . $path . '" class="btn btn-primary to-news-module">%s</a>';
$link = sprintf($link, $icon . ' ' . $buttonLabel);
$out = sprintf($wrap, $link);
return $out;
Loading