Can someone break down $link for me?
$link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false);
$output .= "<{$itemtag} class='gallery-item'>";
$output .= "
<{$icontag} class='gallery-icon'>
$link
</{$icontag}>";
coz I need to put "rel=fanceh" inside it to make a lightbox. I hope you guys can understand what I mean.
break down is to give me the details little by little because I only have a little knowledge in php.
rel is just like putting an id or a class but this one is different though. I need to put it inside the link:
<a rel='fanceh' href='image-link'><img src='img-link' /> </a>
^ something like that