Fixed bug #12872: Use "strong" instead of "b": t3lib/
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 29 May 2010 21:26:12 +0000 (21:26 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 29 May 2010 21:26:12 +0000 (21:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7751 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_arraybrowser.php
t3lib/class.t3lib_befunc.php
t3lib/class.t3lib_div.php
t3lib/class.t3lib_formmail.php
t3lib/class.t3lib_superadmin.php
t3lib/class.t3lib_tceforms.php
t3lib/class.t3lib_tceforms_fe.php
t3lib/class.t3lib_tceforms_inline.php
t3lib/class.t3lib_tsparser_ext.php
t3lib/class.t3lib_tstemplate.php

index e593c8d..ef00182 100644 (file)
@@ -160,7 +160,7 @@ class t3lib_arrayBrowser    {
        function wrapValue($theValue,$depth)    {
                $wrappedValue = '';
                if (strlen($theValue) > 0) {
-                       $wrappedValue = '<b>' . htmlspecialchars($theValue) . '</b>';
+                       $wrappedValue = '<strong>' . htmlspecialchars($theValue) . '</strong>';
                }
                return $wrappedValue;
        }
index 883a507..452fb2b 100644 (file)
@@ -2002,7 +2002,7 @@ final class t3lib_BEfunc {
 
        /**
         * Returns the label-value for fieldname $col in table, $table
-        * If $printAllWrap is set (to a "wrap") then it's wrapped around the $col value IF THE COLUMN $col DID NOT EXIST in TCA!, eg. $printAllWrap = '<b>|</b>' and the fieldname was 'not_found_field' then the return value would be '<b>not_found_field</b>'
+        * If $printAllWrap is set (to a "wrap") then it's wrapped around the $col value IF THE COLUMN $col DID NOT EXIST in TCA!, eg. $printAllWrap = '<strong>|</strong>' and the fieldname was 'not_found_field' then the return value would be '<strong>not_found_field</strong>'
         * Usage: 17
         *
         * @param       string          Table name, present in $TCA
@@ -4084,7 +4084,7 @@ final class t3lib_BEfunc {
                                                                        <tr>
                                                                                <td bgcolor="#F4F0E8">
                                                                                        <font face="verdana,arial,helvetica" size="2">';
-                       echo '<b><center><font size="+1">'.$header.'</font></center></b><br />'.$text;
+                       echo '<strong><center><font size="+1">'.$header.'</font></center></strong><br />'.$text;
                        echo '                                                  </font>
                                                                                </td>
                                                                        </tr>
index fd82e84..460a774 100644 (file)
@@ -3519,7 +3519,7 @@ final class t3lib_div {
                        $result='
                        <table border="1" cellpadding="1" cellspacing="0" bgcolor="white">';
                        if (count($array_in) == 0)      {
-                               $result.= '<tr><td><font face="Verdana,Arial" size="1"><b>EMPTY!</b></font></td></tr>';
+                               $result.= '<tr><td><font face="Verdana,Arial" size="1"><strong>EMPTY!</strong></font></td></tr>';
                        } else  {
                                foreach ($array_in as $key => $val)     {
                                        $result.= '<tr>
@@ -3602,13 +3602,13 @@ final class t3lib_div {
                if (is_array($var))     {
                        $debug .= self::view_array($var);
                } elseif (is_object($var)) {
-                       $debug .=  '<b>|Object:<pre>';
+                       $debug .=  '<strong>|Object:<pre>';
                        $debug .= print_r($var, TRUE);
-                       $debug .=  '</pre>|</b>';
+                       $debug .=  '</pre>|</strong>';
                } elseif ((string) $var !== '') {
-                       $debug .= '<b>|' . htmlspecialchars((string)$var) . '|</b>';
+                       $debug .= '<strong>|' . htmlspecialchars((string)$var) . '|</strong>';
                } else {
-                       $debug .= '<b>| debug |</b>';
+                       $debug .= '<strong>| debug |</strong>';
                }
 
                if ($header) {
index ac6b8c8..6c26c12 100644 (file)
@@ -151,7 +151,7 @@ class t3lib_formmail extends t3lib_htmlmail {
                                                $HTML_val = ($convCharset && strlen($val)) ? $GLOBALS['TSFE']->csConvObj->conv(htmlspecialchars($val),$GLOBALS['TSFE']->renderCharset,$this->charset,1) : htmlspecialchars($val);
 
                                                $Plain_content.= strtoupper($key).':  '.$space.$Plain_val.LF.$space;
-                                               $HTML_content.= '<tr><td bgcolor="#eeeeee"><font face="Verdana" size="1"><b>'.strtoupper($key).'</b></font></td><td bgcolor="#eeeeee"><font face="Verdana" size="1">'.nl2br($HTML_val).'&nbsp;</font></td></tr>';
+                                               $HTML_content.= '<tr><td bgcolor="#eeeeee"><font face="Verdana" size="1"><strong>'.strtoupper($key).'</strong></font></td><td bgcolor="#eeeeee"><font face="Verdana" size="1">'.nl2br($HTML_val).'&nbsp;</font></td></tr>';
                                        }
                                }
                        }
index 3637627..5415c95 100644 (file)
@@ -1172,7 +1172,7 @@ class t3lib_superadmin {
                                                $label = $all['siteInfo']['sitename'] ? $all['siteInfo']['sitename'] : '(DB: '.$all['siteInfo']['TYPO3_db'].')';
                                                $lines[] = '
                                                        <hr />
-                                                       <b>'.htmlspecialchars($label).'</b> ('.htmlspecialchars(substr($all['siteInfo']['SA_PATH'],strlen($all['siteInfo']['MAIN_DIR'])+1)).')<br />';
+                                                       <strong>'.htmlspecialchars($label).'</strong> ('.htmlspecialchars(substr($all['siteInfo']['SA_PATH'],strlen($all['siteInfo']['MAIN_DIR'])+1)).')<br />';
 
                                                                // To avoid "visited links" display on next hit:
                                                        $tempVal='&_someUniqueValue=' . $GLOBALS['EXEC_TIME'];
index b99b01f..78d8c9b 100644 (file)
@@ -276,7 +276,7 @@ class t3lib_TCEforms        {
 
                // INTERNAL, templates
        var $totalWrap='<hr />|<hr />';                         // Total wrapping for the table rows.
-       var $fieldTemplate='<b>###FIELD_NAME###</b><br />###FIELD_ITEM###<hr />';       // Field template
+       var $fieldTemplate='<strong>###FIELD_NAME###</strong><br />###FIELD_ITEM###<hr />';     // Field template
        var $sectionWrap='';                                            // Wrapping template code for a section
        var $palFieldTemplateHeader='';                         // Template for palette headers
        var $palFieldTemplate='';                                       // Template for palettes
@@ -2495,7 +2495,7 @@ class t3lib_TCEforms      {
 
                        foreach ($rotateLang as $lKey)  {
                                if (!$langChildren && !$langDisabled)   {
-                                       $item.= '<b>'.$this->getLanguageIcon($table,$row,'v'.$lKey).$lKey.':</b>';
+                                       $item.= '<strong>'.$this->getLanguageIcon($table,$row,'v'.$lKey).$lKey.':</strong>';
                                }
 
                                $tabParts = array();
@@ -2729,7 +2729,7 @@ class t3lib_TCEforms      {
                                                        </div>
 
                                                        <div id="'.$idTagPrefix.'" style="padding-left: 20px;">'.implode('',$tRows).'</div>';
-                                                       $output.= $mayRestructureFlexforms ? '<div style="padding: 10px 5px 5px 20px;"><b>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.addnew', 1) . ':</b> '.implode(' | ',$newElementsLinks).'</div>' : '';
+                                                       $output.= $mayRestructureFlexforms ? '<div style="padding: 10px 5px 5px 20px;"><strong>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.addnew', 1) . ':</strong> '.implode(' | ',$newElementsLinks).'</div>' : '';
                                                } else {
                                                        // It is a container
 
@@ -4773,7 +4773,7 @@ class t3lib_TCEforms      {
                $this->fieldTemplate='
                        <tr ###BGCOLOR_HEAD######CLASSATTR_2###>
                                <td>###FIELD_HELP_ICON###</td>
-                               <td width="99%"><span style="color:###FONTCOLOR_HEAD###;"###CLASSATTR_4###><b>###FIELD_NAME###</b></span>###FIELD_HELP_TEXT###</td>
+                               <td width="99%"><span style="color:###FONTCOLOR_HEAD###;"###CLASSATTR_4###><strong>###FIELD_NAME###</strong></span>###FIELD_HELP_TEXT###</td>
                        </tr>
                        <tr ###BGCOLOR######CLASSATTR_1###>
                                <td nowrap="nowrap"><img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-reqImg" alt="" /><img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-contentchangedImg" alt="" /></td>
index 728f85d..4e4b476 100644 (file)
@@ -109,7 +109,7 @@ class t3lib_TCEforms_FE extends t3lib_TCEforms {
        public function setFancyDesign() {
                $this->fieldTemplate = '
        <tr>
-               <td nowrap="nowrap" bgcolor="#F6F2E6">###FIELD_HELP_ICON###<font face="verdana" size="1" color="black"><b>###FIELD_NAME###</b></font>###FIELD_HELP_TEXT###</td>
+               <td nowrap="nowrap" bgcolor="#F6F2E6">###FIELD_HELP_ICON###<font face="verdana" size="1" color="black"><strong>###FIELD_NAME###</strong></font>###FIELD_HELP_TEXT###</td>
        </tr>
        <tr>
                <td nowrap="nowrap" bgcolor="#ABBBB4"><img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" width="10" height="10" alt="" /><img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" width="7" height="10" alt="" /><font face="verdana" size="1" color="black">###FIELD_ITEM###</font>###FIELD_PAL_LINK_ICON###</td>
@@ -123,7 +123,7 @@ class t3lib_TCEforms_FE extends t3lib_TCEforms {
        </tr>   ';
                $this->palFieldTemplateHeader = '
        <tr>
-               <td nowrap="nowrap" bgcolor="#F6F2E6"><font face="verdana" size="1" color="black"><b>###FIELD_HEADER###</b></font></td>
+               <td nowrap="nowrap" bgcolor="#F6F2E6"><font face="verdana" size="1" color="black"><strong>###FIELD_HEADER###</strong></font></td>
        </tr>   ';
        }
 
index 83b3f69..941535b 100644 (file)
@@ -553,7 +553,7 @@ class t3lib_TCEforms_inline {
                        '<table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-right: '.$this->inlineStyles['margin-right'].'px;"'.
                        ($this->fObj->borderStyle[2] ? ' background="'.htmlspecialchars($this->backPath.$this->fObj->borderStyle[2]).'"':'').
                        ($this->fObj->borderStyle[3] ? ' class="'.htmlspecialchars($this->fObj->borderStyle[3]).'"':'').'>' .
-                       '<tr class="class-main12"><td width="18" id="' . $objectId . '_iconcontainer">' . $iconImg . '</td><td align="left"><b>' . $label . '</b></td><td align="right">' . $ctrl . '</td></tr></table>';
+                       '<tr class="class-main12"><td width="18" id="' . $objectId . '_iconcontainer">' . $iconImg . '</td><td align="left"><strong>' . $label . '</strong></td><td align="right">' . $ctrl . '</td></tr></table>';
 
                return $header;
        }
index 40a7eb0..579b2da 100644 (file)
@@ -260,12 +260,12 @@ class t3lib_tsparser_ext extends t3lib_TStemplate {
        function substituteCMarkers($all)       {
                switch($this->constantMode)     {
                        case 'const':
-                               $all = str_replace('##'.$this->Cmarker.'_B##', '<font color="green"><B>', $all);
-                               $all = str_replace('##'.$this->Cmarker.'_E##', '</b></font>', $all);
+                               $all = str_replace('##'.$this->Cmarker.'_B##', '<font color="green"><strong>', $all);
+                               $all = str_replace('##'.$this->Cmarker.'_E##', '</strong></font>', $all);
                        break;
                        case 'subst':
-                               $all = str_replace('##'.$this->Cmarker.'_B##', '<font color="green"><B>', $all);
-                               $all = str_replace('##'.$this->Cmarker.'_E##', '</b></font>', $all);
+                               $all = str_replace('##'.$this->Cmarker.'_B##', '<font color="green"><strong>', $all);
+                               $all = str_replace('##'.$this->Cmarker.'_E##', '</strong></font>', $all);
                        break;
                        default:
                                $all = $all;
@@ -412,7 +412,7 @@ class t3lib_tsparser_ext extends t3lib_TStemplate   {
                                                        $ln = '';
                                                }
 
-                                               if ($this->tsbrowser_searchKeys[$depth] & 4)    { $label = '<b><font color="red">'.$label.'</font></b>'; }      // The key has matched the search string
+                                               if ($this->tsbrowser_searchKeys[$depth] & 4)    { $label = '<strong><font color="red">'.$label.'</font></strong>'; }    // The key has matched the search string
                                                $label = '<a href="'.htmlspecialchars($aHref).'" title="'.htmlspecialchars($ln).'">'.$label.'</a>';
                                        }
                                }
@@ -427,9 +427,9 @@ class t3lib_tsparser_ext extends t3lib_TStemplate   {
                                                $theValue = $this->ext_fixed_lgd($theValue,$lgdChars);
                                        }
                                        if ($this->tsbrowser_searchKeys[$depth] & 2)    {       // The value has matched the search string
-                                               $HTML.='&nbsp;=&nbsp;<b><font color="red">'.$this->makeHtmlspecialchars($theValue).'</font></b>';
+                                               $HTML.='&nbsp;=&nbsp;<strong><font color="red">'.$this->makeHtmlspecialchars($theValue).'</font></strong>';
                                        } else {
-                                               $HTML.='&nbsp;=&nbsp;<b>'.$this->makeHtmlspecialchars($theValue).'</b>';
+                                               $HTML.='&nbsp;=&nbsp;<strong>'.$this->makeHtmlspecialchars($theValue).'</strong>';
                                        }
                                        if ($this->ext_regComments && isset($arr[$key.'..']))   {
                                                $comment = $arr[$key.'..'];
@@ -746,7 +746,7 @@ class t3lib_tsparser_ext extends t3lib_TStemplate   {
 
                        $firstChar = substr(trim($v),0,1);
                        if ($firstChar=='[')    {
-                               $cArr[$k] = '<font color="green"><b>'.$cArr[$k].'</b></font>';
+                               $cArr[$k] = '<font color="green"><strong>'.$cArr[$k].'</strong></font>';
                        } elseif ($firstChar=='/' || $firstChar=='#')   {
                                if ($comments)  {
                                        $cArr[$k] = '<span class="typo3-dimmed">'.$cArr[$k].'</span>';
index 5db1853..b0eb66e 100644 (file)
@@ -1356,7 +1356,7 @@ class t3lib_TStemplate    {
         * Ordinary "wrapping" function. Used in the tslib_menu class and extension classes instead of the similar function in tslib_cObj
         *
         * @param       string          The content to wrap
-        * @param       string          The wrap value, eg. "<b> | </b>"
+        * @param       string          The wrap value, eg. "<strong> | </strong>"
         * @return      string          Wrapped input string
         * @see tslib_menu, tslib_cObj::wrap()
         */