darnoldy
07-10-2014, 05:52 PM
Folks-
In a threadbit template, am trying to take three separate actions when a thread : is new, has been posted in by the user, or is locked. I have come up with the following conditionals:
<if condition="in_array($thread[statusicon], array('_dot_hot_lock_new','_dot_hot_lock','_dot_ho t_new','_dot_hot','_dot_lock_new','_dot_lock','_do t_new','_dot'))"></if>
<if condition="in_array($thread[statusicon], array('_dot_hot_lock_new','_dot_hot_new','_dot_loc k_new','_dot_new','_hot_lock_new','_hot_new','_loc k_new','_moved_new','_new'))"></if>
<if condition="in_array($thread[statusicon], array('_dot_hot_lock_new','_dot_lock_new','_hot_lo ck_new','_lock_new','_dot_hot_lock','_dot_lock','_ hot_lock','_lock'))"></if>
They should work, but they feel very inelegant... is there a better way?
Thanks!
--don
In a threadbit template, am trying to take three separate actions when a thread : is new, has been posted in by the user, or is locked. I have come up with the following conditionals:
<if condition="in_array($thread[statusicon], array('_dot_hot_lock_new','_dot_hot_lock','_dot_ho t_new','_dot_hot','_dot_lock_new','_dot_lock','_do t_new','_dot'))"></if>
<if condition="in_array($thread[statusicon], array('_dot_hot_lock_new','_dot_hot_new','_dot_loc k_new','_dot_new','_hot_lock_new','_hot_new','_loc k_new','_moved_new','_new'))"></if>
<if condition="in_array($thread[statusicon], array('_dot_hot_lock_new','_dot_lock_new','_hot_lo ck_new','_lock_new','_dot_hot_lock','_dot_lock','_ hot_lock','_lock'))"></if>
They should work, but they feel very inelegant... is there a better way?
Thanks!
--don