[TYPO3-core] RFC: Feature 8517: No CSS class for FE Icons
Christopher
Chrissitopher at gmx.de
Thu May 29 20:47:44 CEST 2008
Hey Ralf,
+1 from me, this patch looks good.
Christopher
"Ralf Hettinger" <ng at ralfhettinger.de> schrieb im Newsbeitrag
news:mailman.1.1211811090.2246.typo3-team-core at lists.netfielders.de...
> This is an SVN patch request.
>
> Type: Feature (nobrainer)
>
> Bugtracker references: http://bugs.typo3.org/view.php?id=8517
>
> Branches: trunk only
>
>
> Problem:
> There exists no css class for the edit icons in frontend editing, which
> avoids styling of the icon links by css. This might be a bit annoying if
> f.e. links have generally a border applied - then the frontend edit icon
> links will be bordered, too.
>
> Solution:
> Just add class="frontEndEditIconLink" to those links, to allow them
> being styled separatly from other links.
>
>
> Ralf Hettinger
>
--------------------------------------------------------------------------------
> Index: typo3/sysext/cms/tslib/class.tslib_content.php
> ===================================================================
> --- typo3/sysext/cms/tslib/class.tslib_content.php (revision 3723)
> +++ typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
> @@ -7289,11 +7289,11 @@
> if ($rParts[0]=='tt_content' && $this->parentRecordNumber>2) { // This
> parentRecordNumber is used to make sure that only elements 3- of ordinary
> content elements makes a 'anchor' jump down the page.
> $retUrl.='#'.$rParts[1];
> }
> - return '<a
> href="'.htmlspecialchars($url.'&returnUrl='.rawurlencode($retUrl)).'">'.$string.'</a>';
> + return '<a
> href="'.htmlspecialchars($url.'&returnUrl='.rawurlencode($retUrl)).'"
> class="frontEndEditIconLink">'.$string.'</a>';
> } else {
> return '<a href="#" onclick="'.
>
> htmlspecialchars('vHWin=window.open(\''.$url.'&returnUrl=close.html\',\'FEquickEditWindow\',\''.($GLOBALS['BE_USER']->uc['edit_wideDocument']?'width=690,height=500':'width=540,height=400').',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return
> false;').
> - '">'.$string.'</a>';
> + '" class="frontEndEditIconLink">'.$string.'</a>';
> }
> }
>
>
More information about the TYPO3-team-core
mailing list