Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: Articles page subject <h1> tags  (Read 1511 times)

NaEnr

  • Newbie
  • *
  • Karma: 10
  • Posts: 9
Articles page subject <h1> tags
« on: June 17, 2008, 07:49:34 am »


Step 1:  find: echo '<h2>'.(strlen($text) > $shorten ? $link.$category.'/'.$r['seftitle'].'/" title="'.$title.'">'.$title.'</a>' : $title).'</h2>';
   }


Replaced:

Code: [Select]
if (!empty($article) == true) {
echo '<div id="center"><h1>'.(strlen($text) > $shorten ? $link.$category.'/'.$r['seftitle'].'/" title="'.$title.'">'.$title.'</a>' : $title).'</h1>';
} else {
echo '<div id="center"><h2>'.(strlen($text) > $shorten ? $link.$category.'/'.$r['seftitle'].'/" title="'.$title.'">'.$title.'</a>' : $title).'</h2>';
}

OK Demo:

Code: [Select]
http://localhost/cms/
<h2><a href="http://localhost/cms/home/tafas/" title="提供站长常用的广告代码及在线演示">提供站长常用的广告代码及在线演示</a></h2>

Code: [Select]
http://localhost/cms/home/tafas/
<h1><a href="http://localhost/cms/home/tafas/" title="提供站长常用的广告代码及在线演示">提供站长常用的广告代码及在线演示</a></h1>
Logged