Replaced $this->if with if($this->is in all templates.