Project

General

Profile

Bug #18389 ยป 7777_hideFilter.diff

Administrator Admin, 2008-03-06 18:04

View differences:

typo3/alt_db_navframe.php (working copy)
$markers = array(
'IMG_RESET' => '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/close_gray.gif', ' width="16" height="16"').' id="treeFilterReset" alt="Reset Filter" />',
'WORKSPACEINFO' => $this->getWorkspaceInfo(),
'CONTENT' => $this->content
'CONTENT' => $this->content,
'STYLE' => ''
);
$subparts = array();
if (!$this->hasFilterBox) {
$subparts['###SECOND_ROW###'] = '';
$markers['STYLE'] = 'style="margin-top:-30px;"';
}
// Build the <body> for the module
$this->content = $this->doc->startPage('TYPO3 Page Tree');
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers, $subparts);
$this->content.= $this->doc->endPage();
$this->content = $this->doc->insertStylesAndJS($this->content);
}
typo3/template.php (working copy)
* @param array HTML for all other markers
* @return string Composite HTML
*/
public function moduleBody($pageRecord = array(), $buttons = array(), $markerArray = array()) {
public function moduleBody($pageRecord = array(), $buttons = array(), $markerArray = array(), $subpartArray = array()) {
// Get the HTML template for the module
$moduleBody = t3lib_parsehtml::getSubpart($this->moduleTemplate, '###FULLDOC###');
// Add CSS
......
$docHeaderButtons = $this->getDocHeaderButtons($buttons);
// Merge docheader buttons with the marker array
$markerArray = array_merge($markerArray, $docHeaderButtons);
// replacing subparts
foreach ($subpartArray as $marker => $content) {
$moduleBody = t3lib_parsehtml::substituteSubpart($moduleBody, $marker, $content);
}
// replacing all markers with the finished markers and return the HTML content
return t3lib_parsehtml::substituteMarkerArray($moduleBody, $markerArray, '###|###');
return t3lib_parsehtml::substituteMarkerArray($moduleBody, $markerArray, '###|###');
}
/**
typo3/templates/alt_db_navframe.html (working copy)
<div class="buttonsleft">###BUTTONLIST_LEFT###</div>
<div class="buttonsright no-border">###BUTTONLIST_RIGHT###</div>
</div>
<!-- ###SECOND_ROW### -->
<div id="typo3-docheader-row2">
<div id="treeFilterBox" class="bgColor4">
<div id="searchBubble">
......
</div>
</div>
</div>
<!-- ###SECOND_ROW### -->
</div>
<!-- Content of module, for instance listing, info or editing -->
<div id="typo3-docbody">
<div id="typo3-docbody" ###STYLE### >
###WORKSPACEINFO###
###CONTENT###
</div>
    (1-1/1)