Project

General

Profile

Bug #18713 » bug_8271_improved_class.tx_opendocs.php.diff

Administrator Admin, 2008-05-07 01:26

View differences:

typo3/sysext/opendocs/class.tx_opendocs.php 2008-05-07 01:04:49.000000000 +0200
public function render() {
$this->addJavascriptToBackend();
$this->addCssToBackend();
$numDocs = count($this->openDocs);
$opendocsMenu = array();
$numDocs = count($this->openDocs);
$opendocsMenu = array();
$title = $GLOBALS['LANG']->getLL('toolbaritem',1);
// toolbar item icon
$opendocsMenu[] = '<a href="#" class="toolbar-item">';
$opendocsMenu[] = '<input type="text" id="tx-opendocs-counter" disabled="disabled" value="'.$numDocs.'" />';
$opendocsMenu[] = '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], t3lib_extMgm::extRelPath($this->EXTKEY).'opendocs.png', 'width="23" height="16"').' alt="Open Documents" title="Open Documents" /></a>';
$opendocsMenu[] = '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], t3lib_extMgm::extRelPath($this->EXTKEY).'opendocs.png', 'width="23" height="16"').' alt="'.$title.'" title="'.$title.'" /></a>';
// toolbar item menu and initial content
$opendocsMenu[] = '<div class="toolbar-item-menu" style="display: none;">';
......
}
if (!$isRecentDoc) {
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:rm.closeDoc',1);
// open document
$closeIcon = '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/closedok.gif', 'width="16" height="16"').' title="'.$GLOBALS['LANG']->getLL('rm.closeDoc', 1).'" alt="" />';
$closeIcon = '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/closedok.gif', 'width="16" height="16"').' title="'.$title.'" alt="'.$title.'" />';
$entry = '
<tr id="opendocs-'.$table.'-'.$uid.'" class="opendoc'.$firstRow.'">
(2-2/2)