/[drupal]/contributions/modules/lightbox2/lightbox2.module
ViewVC logotype

Diff of /contributions/modules/lightbox2/lightbox2.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.16.2.16.2.111, Fri Jun 13 17:11:16 2008 UTC revision 1.16.2.16.2.112, Tue Jun 17 09:37:26 2008 UTC
# Line 874  function theme_imagefield_image_imagecac Line 874  function theme_imagefield_image_imagecac
874      }      }
875      $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');      $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');
876      if (!empty($node_link_text)) {      if (!empty($node_link_text)) {
877        $node_link .= '<br /><br />'. l($node_link_text, 'node/'. $item['nid'], $attributes);        $node_link .= '<br /><br />'. l($node_link_text, 'node/'. $item['nid'], array('attributes' => $attributes));
878      }      }
879    }    }
880    
# Line 901  function theme_imagefield_image_imagecac Line 901  function theme_imagefield_image_imagecac
901      $image = theme('imagecache', $view_preset, $item['filepath'], $item['alt'], $item['title'], $attributes);      $image = theme('imagecache', $view_preset, $item['filepath'], $item['alt'], $item['title'], $attributes);
902    }    }
903    if ($item['lightbox_preset'] == 'node') {    if ($item['lightbox_preset'] == 'node') {
904      $output = l($image, 'node/'. $node->nid .'/lightbox2', $link_attributes, NULL, NULL, FALSE, TRUE);      $output = l($image, 'node/'. $node->nid .'/lightbox2', array('attributes' => $link_attributes, 'html' => TRUE));
905    }    }
906    else if ($item['lightbox_preset'] == 'original') {    else if ($item['lightbox_preset'] == 'original') {
907      $output = l($image, file_create_url($item['filepath']), array('attributes' => $link_attributes, 'html' => TRUE));      $output = l($image, file_create_url($item['filepath']), array('attributes' => $link_attributes, 'html' => TRUE));
# Line 941  function theme_lightbox2_video_cck($fiel Line 941  function theme_lightbox2_video_cck($fiel
941    }    }
942    $rel = 'lightframe[|width:'. $width .'px; height:'. $height .'px; overflow:visible;]';    $rel = 'lightframe[|width:'. $width .'px; height:'. $height .'px; overflow:visible;]';
943    
944    $output = l($thumbnail, $destination, array('title' => $title, 'rel' => $rel, 'class' => $field['type_name'], 'html' => TRUE));    $output = l($thumbnail, $destination, array('attributes' => array('title' => $title, 'rel' => $rel, 'class' => $field['type_name']), 'html' => TRUE));
945    return $output;    return $output;
946  }  }
947    
# Line 1038  function theme_lightbox2_image_ncck($fie Line 1038  function theme_lightbox2_image_ncck($fie
1038      }      }
1039      $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');      $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');
1040      if (!empty($node_link_text) && !empty($link)) {      if (!empty($node_link_text) && !empty($link)) {
1041        $node_link = '<br /><br />'. l($node_link_text, $link, $attributes);        $node_link = '<br /><br />'. l($node_link_text, $link, array('attributes' => $attributes));
1042      }      }
1043    
1044      $title = module_invoke('emfield', 'include_invoke', 'image_ncck', $item['provider'], 'image_title', $code, $item['data']);      $title = module_invoke('emfield', 'include_invoke', 'image_ncck', $item['provider'], 'image_title', $code, $item['data']);
# Line 1286  function lightbox2_filefield_formatter($ Line 1286  function lightbox2_filefield_formatter($
1286        }        }
1287        $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');        $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');
1288        if (!empty($node_link_text)) {        if (!empty($node_link_text)) {
1289          $node_link .= '<br /><br />'. l($node_link_text, $link, $attributes);          $node_link .= '<br /><br />'. l($node_link_text, $link, array('attributes' => $attributes));
1290        }        }
1291      }      }
1292    
# Line 1300  function lightbox2_filefield_formatter($ Line 1300  function lightbox2_filefield_formatter($
1300      }      }
1301    
1302      $url = file_create_url($path);      $url = file_create_url($path);
1303      return '<div class="filefield-item">'. $icon . l($description, $url, $link_attributes) .'</div>';      return '<div class="filefield-item">'. $icon . l($description, $url, array('attributes' => $link_attributes)) .'</div>';
1304    }    }
1305    return '';    return '';
1306  }  }

Legend:
Removed from v.1.16.2.16.2.111  
changed lines
  Added in v.1.16.2.16.2.112

  ViewVC Help
Powered by ViewVC 1.1.2