* - $field->separator: an optional separator that may appear before a field. * - $field->label: The wrap label text to use. * - $field->label_html: The full HTML of the label to use including * configured element type. * - $row: The raw result object from the query, with all data it fetched. * * @ingroup views_templates */ $history = dgu_site_feature_user_last_visit($row->nid); $new_replies = dgu_site_feature_num_new_replies($row->nid, $history); $colour = $row->users_node_uid % 10; // Mark new nodes only for authenticated users. global $user; $new = FALSE; if ($user->uid) { $last_viewed = node_last_viewed($row->nid); $new = $last_viewed ? FALSE : $row->node_created > NODE_NEW_LIMIT; } ?> <div class="forum-topic"> <div class="views-field field-avatar bg-colour-<?php print $colour; ?> "> <?php print $fields['field_avatar']->content; ?> </div> <div class="views-field views-field-title"> <?php print $fields['title']->content;
/** * Node history * @see node.module */ function _authcache_node_history($nid) { include_once './modules/node/node.module'; // Update the 'last viewed' timestamp of the specified node for current user. node_tag_new($nid); // Retrieves the timestamp at which the current user last viewed the specified node return node_last_viewed($nid); }