if condition in list template

Martooti

Member
I try to make my own list template with if condition. I would like that word "sponsored" will be shown in the list row if the element link_featured = 1. I tried to make it this way:
PHP:
    <?php if ($this->_row->data->jos_mt_links___link_featured='1') {echo "sponsored";};?>
but it return "sponsored" when the link_featured = 1 and when it = 0.
Any advice will be appreciated.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top