$image_item = array('style_name' => $thumb_image_style, 'path' => $field_custom_video_thumbnail[0]['uri'], 'alt' => $node->title, 'title' => $node->title); $image = theme('image_style', $image_item); } else { $field_video_view_value = field_view_value('node', $node, 'field_video', $field_video[0]); $field_video_view_value['#theme'] = 'video_formatter_thumbnail'; $field_video_view_value['#image_style'] = $thumb_image_style; $image = render($field_video_view_value); } } $node_url = url('node/' . $node->nid); $name = bizutv_helper_get_user_name($node->uid); $display_name = l($name, 'user/' . $node->uid); $duration = bizutv_helper_get_duration($node->field_video['und'][0]['fid']); $likes_display = ''; if ($likes) { $rate_results = rate_get_results('node', $node->nid, 1); $likes_display = $rate_results['up']; } $views_display = ''; if ($views) { $hits = bizutv_video_get_node_hits($node->nid); $views_display = $hits . ' view' . ($hits == 1 ? '' : 's'); } $time_ago_display = ''; if ($time_ago) { $time_diff = REQUEST_TIME - $node->created; //3 hours ago then display hours ago format if ($time_diff < 10800) { $time_ago_display = t('@interval ago', array('@interval' => format_interval($time_diff, 2))); //pass 24 hours } else {
$value = 60; } else { if ($value >= 70 && $value < 90) { $value = 80; } else { if ($value >= 90 && $value <= 100) { $value = 100; } } } } } } $vote1 = rate_get_results('node', $thisNode->nid, 1); $vote2 = rate_get_results('node', $thisNode->nid, 2); $vote3 = rate_get_results('node', $thisNode->nid, 3); $vote = $vote1['count']; if ($vote2['count'] > $vote) { $vote = $vote2['count']; } if ($vote3['count'] > $vote) { $vote = $vote3['count']; } if ($result['fields']['sis_ratings'] == '0') { $vote = 0; } $votes = '<span style="margin-left: 20px;">(' . $vote . ' votes)</span>'; $vote = 0; if ($result[type] == 'Dataset' && $value != 0) { print '<div style="width:100px; float:right;">' . theme('fivestar_static', $result['fields']['sis_ratings']) . $votes . '</div>'; }
} else { if ($value >= 50 && $value < 70) { $value = 60; } else { if ($value >= 70 && $value < 90) { $value = 80; } else { if ($value >= 90 && $value <= 100) { $value = 100; } } } } } } $results = rate_get_results('node', $thisNode->nid, 1); $votes = '<span style="margin-left: 20px;">(' . $results['count'] . ' votes)</span>'; print '<p>' . strip_tags($text) . '</p>'; print '<p><a href="' . $base_url . '/search/apachesolr_search/?filters=is_cck_field_ds_agency_name%3A' . $thisNode->field_ds_agency_name[0][safe][nid] . '">' . $thisNode->field_ds_agency_name[0][safe][title] . '</a></p></td>'; if ($result[type] == 'Dataset' && $value != 0) { print '<td width="15%" valign="top" align="left">' . theme('fivestar_static', $value) . $votes . '</td></tr>'; } else { print '<td></td></tr>'; } /* */ $teaser = FALSE; $page = TRUE; $thisNode = node_build_content($thisNode, $teaser, $page); $statistics = statistics_get($thisNode->nid); if ($statistics == null) { $total_count = 0;