Page 1 of 1

Create more semantic code (span="articleHead" to H

Posted: Sat 21. Feb 2004, 14:43
by bertalizer
First of all I would like to congratulate Oliver on a FANTASTIC project!
I've tried many different sytems and this is the best I've found!

It's almost perfect, but...
Is it possible to change the span tags that are currently used for the different headers?
I really would like to change

<span class="articleHead">...</span> to <h1>...</h1>
<span class="articleSubHead">...</span> to <h2>...</h2>
<span class="contentHead">...</span> to <h3>...</h3>

And style them with CSS...

Could this be implemented? Or is there a (not very difficult) way I can change this myself?

Thanks alot!
B.

Posted: Sun 22. Feb 2004, 20:18
by frold

Posted: Mon 23. Feb 2004, 21:58
by bertalizer
frold wrote:maybe you can use this post? http://www.phpwcms.de/forum/viewtopic.php?p=5346#5346
Thanks for the tip, but no...
maybe I am not being clear.

Now the headers and subheaders are styled by using <span class=""></span>

I really would like to have this replaced by H-tags (H1 for the articleHead, H2 for the articleSubHead, etc...)

This would create more semantic code (Semantic code uses html elements for their given purpose).

I've been looking at the code and I think content.article.inc.php needs to be changed.

Thanks
B.

Posted: Mon 23. Feb 2004, 22:34
by habi
perhaps it could be made like this:

check in file front.func.inc.php function span_class

in this function check the var $class and if one of your head-class comes in, then replace the code with <h1>....</h1> an so on, depending on the incoming $class.