I don't think there's a better way unless you want to use a plugin. You could use a plugin on hook location threadbit_process to set values in the $thread array to check in the template, then you wouldn't need to use in_array(). It would be cleaner in the template and may be worth doing just for that reason, but you'd just be moving the checks to the plugin, so I don't know that it's any more elegant.
|