Index: index.php =================================================================== --- index.php (revision 38077) +++ index.php (working copy) @@ -1119,7 +1119,7 @@ // If there was a language icon and the language was not default or [all] and if that langauge is accessible for the user, then wrap the flag with an edit link (to support the "Click the flag!" principle for translators) if ($languageIcon && $languageUid>0 && $GLOBALS['BE_USER']->checkLanguageAccess($languageUid) && $contentTreeArr['el']['table']==='tt_content') { - $languageIcon = $this->link_edit($languageIcon, 'tt_content', $contentTreeArr['el']['uid'], TRUE, $contentTreeArr['el']['pid']); + $languageIcon = $this->link_edit($languageIcon, 'tt_content', $contentTreeArr['el']['uid'], TRUE, $contentTreeArr['el']['pid'], 'tpm-langIcon'); } elseif ($languageIcon) { $languageIcon = '' . $languageIcon . ''; } @@ -1161,16 +1161,18 @@ // Finally assemble the table: $finalContent = '
-
+
' . $titleBarRightButtons . '
-
' . +
' . $languageIcon . $titleBarLeftButtons . - ($elementBelongsToCurrentPage ? '' : '') . htmlspecialchars($title) . ($elementBelongsToCurrentPage ? '' : '') . - '
+ '
' . + ($elementBelongsToCurrentPage ? '' : '') . htmlspecialchars($title) . ($elementBelongsToCurrentPage ? '' : '') . + '
+
' . @@ -2110,12 +2112,13 @@ * @param integer $uid: The uid of the element to be edited * @param boolean $forced: By default the link is not shown if translatorMode is set, but with this boolean it can be forced anyway. * @param integer $usePid: ... + * @param string $linkClass: css class to use for regular content elements * @return string HTML anchor tag containing the label and the correct link * @access protected */ - function link_edit($label, $table, $uid, $forced=FALSE, $usePid=0) { + function link_edit($label, $table, $uid, $forced=FALSE, $usePid=0, $linkClass='') { if ($label) { - + $class = $linkClass ? $linkClass : 'tpm-edit'; $pid = $table == 'pages' ? $uid : $usePid; $calcPerms = $pid == 0 ? $this->calcPerms : $this->getCalcPerms($pid); @@ -2126,7 +2129,7 @@ return ''.$label.''; } else { $onClick = t3lib_BEfunc::editOnClick('&edit['.$table.']['.$uid.']=edit', $this->doc->backPath); - return ''.$label.''; + return ''.$label.''; } } else { return $label;