Commit c6aab2c8 authored by Benni Mack's avatar Benni Mack
Browse files

[TASK] Deprecated Big/Small/Medium/Standard-Document

Deprecates classes:

- BigDocumentTemplate
- SmallDocumentTemplate
- MediumDocumentTemplate
- StandardDocumentTemplate

These classes are rarely used.
Also the standard style in the backend move along.

Resolves: #45955
Releases: 6.1
Change-Id: Ic6e261eef960a71f56a8c5af4724f24e5da8e32c
Reviewed-on: https://review.typo3.org/18555
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Magdalena Leichsenring
Tested-by: Magdalena Leichsenring
parent cae4134d
......@@ -44,7 +44,7 @@ class BackendLayoutWizardController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......@@ -69,7 +69,7 @@ class BackendLayoutWizardController {
$this->md5ID = $this->P['md5ID'];
$uid = intval($this->P['uid']);
// Initialize document object:
$this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\StandardDocumentTemplate');
$this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
$this->doc->backPath = $GLOBALS['BACK_PATH'];
$pageRenderer = $this->doc->getPageRenderer();
$pageRenderer->addJsFile($GLOBALS['BACK_PATH'] . TYPO3_MOD_PATH . 'res/grideditor.js');
......
......@@ -44,7 +44,7 @@ class ElementHistoryController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -73,7 +73,7 @@ class MoveElementController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -74,7 +74,7 @@ class NewContentElementController {
/**
* Internal backend template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -190,7 +190,7 @@ class EditDocumentController {
/**
* document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -44,7 +44,7 @@ class CreateFolderController {
/**
* document template object
*
* @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -38,7 +38,7 @@ class FileUploadController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -38,7 +38,7 @@ class RenameFileController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -135,7 +135,7 @@ class NewRecordController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -44,7 +44,7 @@ class NoDocumentsOpenController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......@@ -65,7 +65,7 @@ class NoDocumentsOpenController {
*/
public function init() {
// Start the template object:
$this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\MediumDocumentTemplate');
$this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
$this->doc->bodyTagMargins['x'] = 5;
$this->doc->bodyTagMargins['y'] = 5;
$this->doc->backPath = $GLOBALS['BACK_PATH'];
......
......@@ -123,7 +123,7 @@ class PageLayoutController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -102,7 +102,7 @@ class ColorpickerController {
/**
* Document template object
*
* @var \TYPO3\CMS\Backend\Template\SmallDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......@@ -149,7 +149,7 @@ class ColorpickerController {
}
}
// Initialize document object:
$this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\SmallDocumentTemplate');
$this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
$this->doc->backPath = $GLOBALS['BACK_PATH'];
$this->doc->JScode = $this->doc->wrapScriptTags('
function checkReference() { //
......
......@@ -125,7 +125,7 @@ class FormsController {
/**
* document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -38,7 +38,7 @@ class RteController {
/**
* document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -38,7 +38,7 @@ class TableController {
/**
* document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -30,15 +30,16 @@ namespace TYPO3\CMS\Backend\Template;
/**
* Extension class for "template" - used for backend pages which were medium wide. Typically submodules to Web or File which were presented in the list-frame when the content frame were divided into a navigation and list frame.
* The class were more significant in the past than today. But probably you should use this one for most modules you make.
*
* @deprecated since 6.1 will be removed two versions later
*/
class MediumDocumentTemplate extends \TYPO3\CMS\Backend\Template\DocumentTemplate {
/**
* @todo Define visibility
*/
public $divClass = 'typo3-mediumDoc';
public function __construct() {
\TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
parent::__construct();
}
}
?>
\ No newline at end of file
......@@ -30,15 +30,16 @@ namespace TYPO3\CMS\Backend\Template;
/**
* Extension class for "template" - used for backend pages which were narrow (like the Web>List modules list frame. Or the "Show details" pop up box)
* The class were more significant in the past than today.
*
* @deprecated since 6.1 will be removed two versions later
*/
class SmallDocumentTemplate extends \TYPO3\CMS\Backend\Template\DocumentTemplate {
/**
* @todo Define visibility
*/
public $divClass = 'typo3-smallDoc';
public function __construct() {
\TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
parent::__construct();
}
}
?>
\ No newline at end of file
......@@ -30,15 +30,16 @@ namespace TYPO3\CMS\Backend\Template;
/**
* Extension class for "template" - used for backend pages without the "document" background image
* The class were more significant in the past than today.
*
* @deprecated since 6.1 will be removed two versions later
*/
class StandardDocumentTemplate extends \TYPO3\CMS\Backend\Template\DocumentTemplate {
/**
* @todo Define visibility
*/
public $divClass = 'typo3-noDoc';
public function __construct() {
\TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
parent::__construct();
}
}
?>
\ No newline at end of file
......@@ -38,7 +38,7 @@ class TsconfigWizard {
/**
* document template object
*
* @var \TYPO3\CMS\Backend\Template\MediumDocumentTemplate
* @var \TYPO3\CMS\Backend\Template\DocumentTemplate
* @todo Define visibility
*/
public $doc;
......
......@@ -4,17 +4,7 @@
position: relative;
}
body, html {
height: 100%;
width: 100%;
}
div.typo3-noDoc {
width: 98%;
height: 90%;
margin: 0;
padding: 5px;
}
body { padding: 10px; }
table#outer_container td, table#editor td {
vertical-align: middle;
......@@ -132,23 +122,6 @@ div.cell_container:hover {
.cancel {
background-image: url(t3grid-layer-icon-close.png) !important;
}
* {
padding: 0;
margin: 0;
position: relative;
}
body, html {
height: 100%;
width: 100%;
}
div.typo3-noDoc {
width: 98%;
height: 90%;
margin: 0;
padding: 5px;
}
table#outer_container td, table#editor td {
vertical-align: middle;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment