Например так:
Код:
lib.img_with_popup = COA
lib.img_with_popup {
10 = IMG_RESOURCE
10 {
file {
import = uploads/pics/
import.current = 1
}
stdWrap.wrap = <a href="javascript:image_viewer(|)">
}
20 = IMAGE
20{
file{
import = uploads/pics/
import.current = 1
width.field = imagewidth
height.field = imageheight
maxW = {$styles.content.imgtext.maxW}
maxW.override.data = register:maxImageWidth
}
}
wrap = |</a><br>
}