Commit 1bcd9118 authored by frjo's avatar frjo
Browse files

No gallery option now sets empty rel attribute.

parent 51942ca5
......@@ -50,16 +50,16 @@ function theme_colorbox_image_formatter($variables) {
$nid = !empty($node->nid) ? $node->nid : 'nid';
switch (variable_get('colorbox_imagefield_gallery', 1)) {
case 0:
$gallery_id = 'all';
$gallery_id = 'gallery-all';
break;
case 1:
$gallery_id = $nid;
$gallery_id = 'gallery-' . $nid;
break;
case 2:
$gallery_id = $nid . '-' . $field['field_name'];
$gallery_id = 'gallery-' . $nid . '-' . $field['field_name'];
break;
case 3:
$gallery_id = $nid . '-' . $field['fid'];
$gallery_id = '';
break;
}
......@@ -105,7 +105,7 @@ function theme_colorbox_imagefield($variables) {
'attributes' => array(
'title' => $variables['title'],
'class' => 'colorbox imagefield imagefield-imagelink',
'rel' => 'gallery-' . $variables['gid']
'rel' => $variables['gid'],
)
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment