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

typo3/sysext/cms/ext_localconf.php
typo3/sysext/cms/layout/class.tx_cms_layout.php
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/cms/tslib/class.tslib_fe.php

index 54e7cba..a5211c2 100755 (executable)
@@ -180,7 +180,7 @@ $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
                                        'underscore (_) to hyphen (-) to make URLs more friendly for search engines' .
                                        'URLs that are already existing (e.g. external links to your site) will still work like before.</p>' .
                                        '<p>You can set the separator character back to an underscore by putting the following line into the '.
-                                       '<b>Setup</b> section of your Page TypoScript template:</p>' .
+                                       '<strong>Setup</strong> section of your Page TypoScript template:</p>' .
                                        '<p style="margin-top: 5px; white-space: nowrap;"><code>config.simulateStaticDocuments_replacementChar = _</code></p></li>'.
                                        '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>'.
                                        '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>'.
index 088775f..4725ed5 100755 (executable)
@@ -348,10 +348,10 @@ class tx_cms_layout extends recordList {
                                } else $eI='';
                                switch($field)  {
                                        case 'title':
-                                               $theData[$field] = '&nbsp;<b>'.$GLOBALS['LANG']->sL($TCA['pages']['columns'][$field]['label']).'</b>'.$eI;
+                                               $theData[$field] = '&nbsp;<strong>'.$GLOBALS['LANG']->sL($TCA['pages']['columns'][$field]['label']).'</strong>'.$eI;
                                        break;
                                        case 'uid':
-                                               $theData[$field] = '&nbsp;<b>ID:</b>';
+                                               $theData[$field] = '&nbsp;<strong>ID:</strong>';
                                        break;
                                        default:
                                                if (substr($field,0,6)=='table_')       {
@@ -371,7 +371,7 @@ class tx_cms_layout extends recordList {
                                                                break;
                                                        }
                                                } else {
-                                                       $theData[$field] = '&nbsp;&nbsp;<b>'.$GLOBALS['LANG']->sL($TCA['pages']['columns'][$field]['label'],1).'</b>'.$eI;
+                                                       $theData[$field] = '&nbsp;&nbsp;<strong>'.$GLOBALS['LANG']->sL($TCA['pages']['columns'][$field]['label'],1).'</strong>'.$eI;
                                                }
                                        break;
                                }
@@ -833,8 +833,8 @@ class tx_cms_layout extends recordList {
                                        // header line is drawn
                                $theData = Array();
                                $theData['__cmds__'] ='';
-                               $theData['info'] = '<b>Info</b><br /><img src="clear.gif" height="1" width="220" alt="" />';
-                               $theData['note'] = '<b>Note</b>';
+                               $theData['info'] = '<strong>Info</strong><br /><img src="clear.gif" height="1" width="220" alt="" />';
+                               $theData['note'] = '<strong>Note</strong>';
                                $out.=$this->addelement(1,'',$theData,' class="c-headLine"',20);
 
                                        // half line is drawn
@@ -865,7 +865,7 @@ class tx_cms_layout extends recordList {
                                                        $theData = Array();
                                                        $this->getProcessedValue('sys_note','subject,category,author,email,personal',$row,$info);
                                                        $cont=implode('<br />',$info);
-                                                       $head = '<b>Page:</b> '.t3lib_BEfunc::getRecordPath($row['pid'],$perms_clause,10).'<br />';
+                                                       $head = '<strong>Page:</strong> '.t3lib_BEfunc::getRecordPath($row['pid'],$perms_clause,10).'<br />';
 
                                                        $theData['__cmds__']= $this->getIcon('sys_note',$row);
                                                        $theData['info'] = $head.$cont;
@@ -927,12 +927,12 @@ class tx_cms_layout extends recordList {
 
                                // Header line is drawn
                        $theData = Array();
-                       $theData['subject'] = '<b>'.$GLOBALS['LANG']->getLL('tt_board_subject',1).'</b>';
-                       $theData['author'] = '<b>'.$GLOBALS['LANG']->getLL('tt_board_author',1).'</b>';
-                       $theData['date'] = '<b>'.$GLOBALS['LANG']->getLL('tt_board_date',1).'</b>';
-                       $theData['age'] = '<b>'.$GLOBALS['LANG']->getLL('tt_board_age',1).'</b>';
+                       $theData['subject'] = '<strong>'.$GLOBALS['LANG']->getLL('tt_board_subject',1).'</strong>';
+                       $theData['author'] = '<strong>'.$GLOBALS['LANG']->getLL('tt_board_author',1).'</strong>';
+                       $theData['date'] = '<strong>'.$GLOBALS['LANG']->getLL('tt_board_date',1).'</strong>';
+                       $theData['age'] = '<strong>'.$GLOBALS['LANG']->getLL('tt_board_age',1).'</strong>';
                        if ($GLOBALS['SOBE']->MOD_SETTINGS['tt_board']!='expand') {
-                               $theData['replys'] = '<b>'.$GLOBALS['LANG']->getLL('tt_board_RE',1).'</b>';
+                               $theData['replys'] = '<strong>'.$GLOBALS['LANG']->getLL('tt_board_RE',1).'</strong>';
                        }
                        $out.=$this->addelement(1,'',$theData,' class="c-headLine"',20);
 
@@ -1282,7 +1282,7 @@ class tx_cms_layout extends recordList {
                                                // Traverse fields, separated by ";" (displayed in a single cell).
                                        foreach($theFields as $fName2)  {
                                                if ($TCA[$table]['columns'][$fName2])   {
-                                                        $out[$fieldName].= '<b>'.$GLOBALS['LANG']->sL($TCA[$table]['columns'][$fName2]['label'],1).'</b>'.
+                                                        $out[$fieldName].= '<strong>'.$GLOBALS['LANG']->sL($TCA[$table]['columns'][$fName2]['label'],1).'</strong>'.
                                                                                                '&nbsp;&nbsp;'.
                                                                                                htmlspecialchars(t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getProcessedValue($table,$fName2,$row[$fName2],0,0,0,$row['uid']),25)).
                                                                                                '<br />';
@@ -1317,7 +1317,7 @@ class tx_cms_layout extends recordList {
 
                foreach($fieldArr as $fieldName)        {
                        $ll = $GLOBALS['LANG']->sL($TCA[$table]['columns'][$fieldName]['label'],1);
-                       $out[$fieldName] = '<b>'.($ll?$ll:'&nbsp;').'</b>';
+                       $out[$fieldName] = '<strong>'.($ll?$ll:'&nbsp;').'</strong>';
                }
                return $out;
        }
@@ -1397,7 +1397,7 @@ class tx_cms_layout extends recordList {
                foreach($fieldArr as $field)    {
                        switch($field)  {
                                case 'title':
-                                       $red = $this->plusPages[$row['uid']] ? '<font color="red"><b>+&nbsp;</b></font>' : '';
+                                       $red = $this->plusPages[$row['uid']] ? '<font color="red"><strong>+&nbsp;</strong></font>' : '';
                                        $pTitle = htmlspecialchars(t3lib_BEfunc::getProcessedValue('pages',$field,$row[$field],20));
                                        if ($red)       {
                                                $pTitle = '<a href="'.htmlspecialchars($this->script.'?id='.$row['uid']).'">'.$pTitle.'</a>';
@@ -1406,7 +1406,7 @@ class tx_cms_layout extends recordList {
                                break;
                                case 'php_tree_stop':
                                case 'TSconfig':
-                                       $theData[$field] = $row[$field]?'&nbsp;<b>x</b>':'&nbsp;';
+                                       $theData[$field] = $row[$field]?'&nbsp;<strong>x</strong>':'&nbsp;';
                                break;
                                case 'uid':
                                        if ($GLOBALS['BE_USER']->doesUserHaveAccess($row,2))    {
@@ -1562,7 +1562,7 @@ class tx_cms_layout extends recordList {
                                $lockIcon . ' ' .
                                $stat . ' ' .
                                ($langMode ? $this->languageFlag($row['sys_language_uid']) : '') .  ' ' .
-                               '&nbsp;<b>' . htmlspecialchars($this->CType_labels[$row['CType']]) . '</b>';
+                               '&nbsp;<strong>' . htmlspecialchars($this->CType_labels[$row['CType']]) . '</strong>';
 
                        // If show info is set...;
                if ($this->tt_contentConfig['showInfo'])        {
@@ -1688,7 +1688,7 @@ class tx_cms_layout extends recordList {
                        }
                        $outHeader=  ($row['date'] ? htmlspecialchars($this->itemLabels['date'].' '.t3lib_BEfunc::date($row['date'])).'<br />':'').
                                        $this->infoGif($infoArr).
-                                       '<b>' . $this->linkEditContent($this->renderText($row['header']), $row) . $hiddenHeaderNote . '</b><br />';
+                                       '<strong>' . $this->linkEditContent($this->renderText($row['header']), $row) . $hiddenHeaderNote . '</strong><br />';
                }
 
                // Make content:
index 01671e4..be82674 100644 (file)
@@ -3905,10 +3905,10 @@ class tslib_cObj {
                        if ($conf['debug'])     {$content = '<pre>'.htmlspecialchars($content).'</pre>';}
                        if ($conf['debugFunc']) {debug($conf['debugFunc']==2?array($content):$content);}
                        if ($conf['debugData']) {
-                               echo '<b>$cObj->data:</b>';
+                               echo '<strong>$cObj->data:</strong>';
                                debug($this->data,'$cObj->data:');
                                if (is_array($this->alternativeData))   {
-                                       echo '<b>$cObj->alternativeData:</b>';
+                                       echo '<strong>$cObj->alternativeData:</strong>';
                                        debug($this->alternativeData,'$this->alternativeData');
                                }
                        }
@@ -4145,7 +4145,7 @@ class tslib_cObj {
         * Wrapping input value in a regular "wrap" but parses the wrapping value first for "insertData" codes.
         *
         * @param       string          Input string being wrapped
-        * @param       string          The wrap string, eg. "<b></b>" or more likely here '<a href="index.php?id={TSFE:id}"> | </a>' which will wrap the input string in a <a> tag linking to the current page.
+        * @param       string          The wrap string, eg. "<strong></strong>" or more likely here '<a href="index.php?id={TSFE:id}"> | </a>' which will wrap the input string in a <a> tag linking to the current page.
         * @return      string          Output string wrapped in the wrapping value.
         * @see insertData(), stdWrap()
         */
@@ -4478,7 +4478,7 @@ class tslib_cObj {
 
                        // properties
                if (($properties&8))    {$theValue=$this->HTMLcaseshift($theValue, 'upper');}
-               if (($properties&1))    {$theValue='<b>'.$theValue.'</b>';}
+               if (($properties&1))    {$theValue='<strong>'.$theValue.'</strong>';}
                if (($properties&2))    {$theValue='<i>'.$theValue.'</i>';}
                if (($properties&4))    {$theValue='<u>'.$theValue.'</u>';}
 
@@ -6545,10 +6545,10 @@ class tslib_cObj {
        /**
         * Wrapping a string.
         * Implements the TypoScript "wrap" property.
-        * Example: $content = "HELLO WORLD" and $wrap = "<b> | </b>", result: "<b>HELLO WORLD</b>"
+        * Example: $content = "HELLO WORLD" and $wrap = "<strong> | </strong>", result: "<strong>HELLO WORLD</strong>"
         *
         * @param       string          The content to wrap
-        * @param       string          The wrap value, eg. "<b> | </b>"
+        * @param       string          The wrap value, eg. "<strong> | </strong>"
         * @param       string          The char used to split the wrapping value, default is "|"
         * @return      string          Wrapped input string
         * @see noTrimWrap()
@@ -6565,8 +6565,8 @@ class tslib_cObj {
         * Notice that the wrap value uses part 1/2 to wrap (and not 0/1 which wrap() does)
         *
         * @param       string          The content to wrap, eg. "HELLO WORLD"
-        * @param       string          The wrap value, eg. " | <b> | </b>"
-        * @return      string          Wrapped input string, eg. " <b> HELLO WORD </b>"
+        * @param       string          The wrap value, eg. " | <strong> | </strong>"
+        * @return      string          Wrapped input string, eg. " <strong> HELLO WORD </strong>"
         * @see wrap()
         */
        function noTrimWrap($content,$wrap)     {
index fc9ab57..6a53739 100644 (file)
                                        if (@is_file(PATH_site.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate'])) {
                                                $message = t3lib_div::getUrl(PATH_site.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate']);
                                        } else {
-                                               $message = '<b>ERROR!</b><br>Template File "'.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate'].'" configured with $TYPO3_CONF_VARS["FE"]["workspacePreviewLogoutTemplate"] not found. Please contact webmaster about this problem.';
+                                               $message = '<strong>ERROR!</strong><br>Template File "'.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate'].'" configured with $TYPO3_CONF_VARS["FE"]["workspacePreviewLogoutTemplate"] not found. Please contact webmaster about this problem.';
                                        }
                                } else {
                                        $message = 'You logged out from Workspace preview mode. Click this link to <a href="%1$s">go back to the website</a>';