Project

General

Profile

Bug #22814 » modtemplate_flashmessages.patch

Administrator Admin, 2010-06-05 01:20

View differences:

typo3/sysext/tstemplate/ts/index.php (Arbeitskopie)
// No template
$theOutput .= $this->doc->spacer(10);
$theOutput .= $this->doc->section('<span class="typo3-red">' . $GLOBALS['LANG']->getLL('noTemplate') . '</span>', $GLOBALS['LANG']->getLL('noTemplateDescription') . '<br />
' . $GLOBALS['LANG']->getLL('createTemplate'), 0, 0, 0, 1);
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('noTemplateDescription') . '<br />' . $GLOBALS['LANG']->getLL('createTemplate'),
$GLOBALS['LANG']->getLL('noTemplate'),
t3lib_FlashMessage::INFO
);
$theOutput .= $flashMessage->render();
// New standard?
if ($newStandardTemplate) {
if (t3lib_extMgm::isLoaded('statictemplates')) { // check wether statictemplates are supported
......
$opt .= '<option value="' . $row['uid'] . '">' . htmlspecialchars($row['title']) . '</option>';
}
}
$selector = '<select name="createStandard"><option></option>' . $opt . '</select>';
$selector = '<select name="createStandard"><option></option>' . $opt . '</select><br />';
$staticsText = ', optionally based on one of the standard templates';
} else {
$selector = '<input type="hidden" name="createStandard" value="" />';
......
// Extension?
$theOutput .= $this->doc->spacer(10);
$theOutput .= $this->doc->section($GLOBALS['LANG']->getLL('newWebsite') . $staticsText, $GLOBALS['LANG']->getLL('newWebsiteDescription') . '<br />
<br />' .
$selector . '<br />' .
$theOutput .= $this->doc->section($GLOBALS['LANG']->getLL('newWebsite') . $staticsText, $GLOBALS['LANG']->getLL('newWebsiteDescription') . '<br /><br />' .
$selector .
t3lib_iconWorks::getSpriteIcon('status-dialog-warning') .
'<input type="Submit" name="newWebsite" value="' . $GLOBALS['LANG']->getLL('newWebsiteAction') . '"' . $confirm . '>', 0, 1);
}
(1-1/3)