[TYPO3-core] Styles in Versioning extension

Ingmar Schlecht ingmar at typo3.org
Sun Feb 5 00:38:57 CET 2006


+1

cheers
Ingmar

Dmitry Dulepov wrote:
> This is a CVS patch request.
> 
> Type: Bugfix
> 
> Description: Comparison controls in cm1 module of Versioning extension 
> are not skinnable (contain hard-coded "bgcolor" element for "td" tag).
> 
> Solution: add styles for these "td" tags to the module header, 
> "post"-type stylesheet can replace them if necessary. Quite trivial.
> 
> Branches: TYPO3_4-0
> 
> Dmitry.
> 
> 
> ------------------------------------------------------------------------
> 
> Index: index.php
> ===================================================================
> RCS file: /cvsroot/typo3/TYPO3core/typo3/sysext/version/cm1/index.php,v
> retrieving revision 1.11.2.2
> diff -u -r1.11.2.2 index.php
> --- index.php	27 Jan 2006 10:54:32 -0000	1.11.2.2
> +++ index.php	4 Feb 2006 21:25:13 -0000
> @@ -178,6 +178,12 @@
>  		$this->doc = t3lib_div::makeInstance('mediumDoc');
>  		$this->doc->backPath = $BACK_PATH;
>  		$this->doc->form='<form action="" method="post">';
> +		
> +	        // Add styles
> +		$this->doc->inDocStylesArray[$GLOBALS['MCONF']['name']] = '
> +.version-diff-1 { background-color: green; }
> +.version-diff-2 { background-color: red; }
> +';
>  
>  			// Setting up the context sensitive menu:
>  		$CMparts = $this->doc->getContextMenuCode();
> @@ -417,8 +423,8 @@
>  					<td>'.$row['t3ver_count'].'</td>
>  					<td>'.$row['pid'].'</td>
>  					<td nowrap="nowrap"><a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick('&edit['.$this->table.']['.$row['uid'].']=edit&columnsOnly=t3ver_label',$this->doc->backPath)).'"><img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/edit2.gif','width="11" height="12"').' alt="" title="Edit"/></a>'.htmlspecialchars($row['t3ver_label']).'</td>
> -					<td bgcolor="green"><input type="radio" name="diff_1" value="'.$row['uid'].'"'.($diff_1==$row['uid'] ? ' checked="checked"':'').'/></td>
> -					<td bgcolor="red"><input type="radio" name="diff_2" value="'.$row['uid'].'"'.($diff_2==$row['uid'] ? ' checked="checked"':'').'/></td>
> +					<td class="version-diff-1"><input type="radio" name="diff_1" value="'.$row['uid'].'"'.($diff_1==$row['uid'] ? ' checked="checked"':'').'/></td>
> +					<td class="version-diff-2"><input type="radio" name="diff_2" value="'.$row['uid'].'"'.($diff_2==$row['uid'] ? ' checked="checked"':'').'/></td>
>  				</tr>';
>  
>  				// Show sub-content if the table is pages AND it is not the online branch (because that will mostly render the WHOLE tree below - not smart;)
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core




More information about the TYPO3-team-core mailing list