Check if a row is sticky in a views list

Public

Check if a row is sticky in views-view-fields.tpl.php and change html output

Get raw version
php
  1. <?php
  2. if($row->_field_data['nid']['entity']->sticky) {
  3. print '<div class="highlight">';
  4. }
  5. else {
  6. print '<div class="no-highlight">';
  7. }
  8. ?>
  9. <!-- your fileds here -->
  10. </div>