inherit
Frozen in Time
1515
0
Nov 18, 2012 23:46:48 GMT -8
snap2000
29,317
October 2001
snap2000
|
Post by snap2000 on Dec 12, 2012 15:47:49 GMT -8
Hi, I think it would be a great idea to implement the "even" class for alternating styles in posts with threads and boards too. Thanks!
|
|
#e61919
1
0
1
Sept 28, 2023 13:31:20 GMT -8
VS Admin
20,147
January 2000
admin
|
Post by VS Admin on Dec 12, 2012 16:50:33 GMT -8
You can edit your templates to add this
class="{if $[array_name.even]} even{/if}"
where "array_name" is whatever array you want to use.
|
|
inherit
Frozen in Time
1515
0
Nov 18, 2012 23:46:48 GMT -8
snap2000
29,317
October 2001
snap2000
|
Post by snap2000 on Dec 12, 2012 17:00:32 GMT -8
You can edit your templates to add this class="{if $[array_name.even]} even{/if}" where "array_name" is whatever array you want to use. Interesting. I really look forward to a templating guide in the future, haha. Out of curiosity, is there a particular reason to not have this implemented by default, though?
|
|
#e61919
1
0
1
Sept 28, 2023 13:31:20 GMT -8
VS Admin
20,147
January 2000
admin
|
Post by VS Admin on Dec 12, 2012 17:02:04 GMT -8
The "even" class is added by the template engine. Go check it out, Themes > Layout Templates > Thread > Post List.
{foreach $[post]} <tr id="$[post.content_id]" class="$[post.content_class]{if $[post.even]} even{/if}{if $[viewing_recent_posts]} recent{/if}">
We put in classes/ids for what we feel is 'core' to the system, and extras like even/odd are more specific to the theme you are on. We will have more themes coming out soon that may not use this at all.
|
|
inherit
Frozen in Time
1515
0
Nov 18, 2012 23:46:48 GMT -8
snap2000
29,317
October 2001
snap2000
|
Post by snap2000 on Dec 12, 2012 17:06:42 GMT -8
Got it. Thanks.
|
|