Browse files

added a few if's

  • Loading branch information...
1 parent deba447 commit fb2fd863477de82ad4ea47339f4450852bea1359 @Romanfyi Romanfyi committed Jun 10, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 fcl_stuff/fcl_stuff_callbacks.inc
View
10 fcl_stuff/fcl_stuff_callbacks.inc
@@ -206,10 +206,16 @@ function fcl_stuff_view_cities($key1,$key2 = 'city', $filter = NULL) {
foreach(element_children($node->taxonomy) as $key) {
$taxonomy = $node->taxonomy[$key]->name;
}
+ #dsm($node);
$output .= '<div class="tombstone">';
- $output .= '<h2>' . l( $row['city_title'] . ' &ndash; ' . $taxonomy . '', 'node/' . $node->nid, array('html' => TRUE)) . '</h2>';
+ $output .= '<h2>' .$node->nid. l( $row['city_title'] . ' &ndash; ' . $taxonomy . '', 'node/' . $node->nid, array('html' => TRUE)) . '</h2>';
$output .= '<div class="meta-subline">Revision #' . $revisions_count . ': viewed ' . $vision_views . ' times</div>';
- $image = theme('imagecache', 'view', $node->field_image_future_tate[0]['filepath']);
+ if($node->field_image_future_tate[0]['filepath'])
+ $image = theme('imagecache', 'view', $node->field_image_future_tate[0]['filepath']);
+ elseif($node->field_image_current_tate[0]['filepath'])
+ $image = theme('imagecache', 'view', $node->field_image_current_tate[0]['filepath']);
+ else
+ $image = theme('imagecache', 'view', 'sites/default/files/noimage.jpg');
$output .= l($image, 'node/' . $node->nid, array('html' => TRUE));
$output .= '<div class="comments">' . '<span class="comment-count">' . $row['comments'] . '</span> ' . t("Comments") . '</div>';
// $output .= '<div class="university">' . $row['university'] . '</div>';

0 comments on commit fb2fd86

Please sign in to comment.