Bug #22758 ยป replacein_db_new.diff
typo3/db_new.php (Arbeitskopie) | ||
---|---|---|
// Set header-HTML and return_url
|
||
if (is_array($this->pageinfo) && $this->pageinfo['uid']) {
|
||
$iconImgTag = t3lib_iconWorks::getIconImage('pages', $this->pageinfo, $this->backPath, 'title="' . htmlspecialchars($this->pageinfo['_thePath']) . '"');
|
||
$iconImgTag = t3lib_iconWorks::getSpriteIconForRecord('pages', $this->pageinfo, array('title' => htmlspecialchars($this->pageinfo['_thePath']), 'class' => 't3-icon-verticalCentered'));
|
||
$title = strip_tags($this->pageinfo[$GLOBALS['TCA']['pages']['ctrl']['label']]);
|
||
} else {
|
||
$iconImgTag = '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/i/_icon_website.gif') . ' title="' . htmlspecialchars($this->pageinfo['_thePath']) . '" alt="" />';
|
||
$iconImgTag = t3lib_iconWorks::getSpriteIcon('apps-pagetree-root', array('title' => htmlspecialchars($this->pageinfo['_thePath'])));
|
||
$title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'];
|
||
}
|
||
... | ... | |
// Back
|
||
if ($this->R_URI) {
|
||
$buttons['back'] = '<a href="' . htmlspecialchars($this->R_URI) . '" class="typo3-goBack" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.goBack', 1) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-go-back') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-view-go-back') .
|
||
'</a>';
|
||
}
|
||
... | ... | |
// New Page
|
||
$table = 'pages';
|
||
$v = $GLOBALS['TCA'][$table];
|
||
$pageIcon = t3lib_iconWorks::getIconImage($table, array(), $this->doc->backPath, '');
|
||
$newPageIcon = t3lib_iconWorks::getSpriteIcon('actions-page-new');
|
||
$pageIcon = t3lib_iconWorks::getSpriteIconForRecord($table,array(), array('class' => 't3-icon-verticalCentered'));
|
||
|
||
$newPageIcon = t3lib_iconWorks::getSpriteIcon('actions-page-new', array('class' => 't3-icon-verticalCentered'));
|
||
$rowContent = $firstLevel . $newPageIcon . ' <strong>' . $GLOBALS['LANG']->getLL('createNewPage') . '</strong>';
|
||
// New pages INSIDE this pages
|
||
... | ... | |
// Create link to new page inside:
|
||
$rowContent .= '<br />' . $secondLevel . $this->linkWrap(
|
||
'<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/i/' . ($v['ctrl']['iconfile'] ? $v['ctrl']['iconfile'] : $table . '.gif'), 'width="18" height="16"') . ' alt="" />' .
|
||
t3lib_iconWorks::getSpriteIconForRecord($table, array(), array('class' => 't3-icon-verticalCentered')) .
|
||
$GLOBALS['LANG']->sL($v['ctrl']['title'], 1) . ' (' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:db_new.php.inside', 1) . ')',
|
||
$table,
|
||
$this->id);
|
||
... | ... | |
// New tables (but not pages) INSIDE this pages
|
||
$isAdmin = $GLOBALS['BE_USER']->isAdmin();
|
||
$newContentIcon = t3lib_iconWorks::getSpriteIcon('actions-document-new');
|
||
$newContentIcon = t3lib_iconWorks::getSpriteIcon('actions-document-new', array('class' => 't3-icon-verticalCentered'));
|
||
if ($this->newContentInto) {
|
||
if (is_array($GLOBALS['TCA'])) {
|
||
$groupName = '';
|
||
... | ... | |
&& $GLOBALS['BE_USER']->workspaceCreateNewRecord($this->pageinfo['_ORIG_uid'] ? $this->pageinfo['_ORIG_uid'] : $this->id, $table)
|
||
) {
|
||
$newRecordIcon = t3lib_iconWorks::getIconImage($table ,array(), $this->doc->backPath, '');
|
||
$newRecordIcon = t3lib_iconWorks::getSpriteIconForRecord($table, array(), array('class' => 't3-icon-verticalCentered'));
|
||
$rowContent = '';
|
||
// Create new link for record:
|
||
... | ... | |
} else {
|
||
$_EXTKEY = 'system';
|
||
$thisTitle = $GLOBALS['LANG']->getLL('system_records');
|
||
$iconFile['system'] = '<img src="gfx/typo3.png" />';
|
||
$iconFile['system'] = t3lib_iconWorks::getSpriteIcon('apps-pagetree-root', array('class' => 't3-icon-verticalCentered'));
|
||
}
|
||
if($groupName == '' || $groupName != $_EXTKEY) {
|