function gallery_assist_build_block_item in Gallery Assist 6
Build the item box for better css formating. It should be a theme.
- I less it for future versions.
3 calls to gallery_assist_build_block_item()
- _gallery_assist_block_display in ./
gallery_assist.module - Display the GA-Block Galleries (0).
- _gallery_assist_block_display_1 in ./
gallery_assist.module - Display the GA-Block My Galleries (1).
- _gallery_assist_block_display_2 in ./
gallery_assist.module - Display the GA-Block Gallery Block (2).
File
- ./
gallery_assist.module, line 4916 - Drupal content type with gallery functionality.
Code
function gallery_assist_build_block_item($link, $op = 'pic', $conf = array(), $item_height = 0) {
$attr = array(
'class' => 'gab-item-' . $op,
);
$b_img_height = $item_height > 0 ? $item_height : $conf['item_size'];
$style = 'float:left;';
$style .= $conf['item_size'] ? 'width:' . $conf['item_size'] . 'px;height:' . $b_img_height . 'px;' : 'width:50px;height:50px;';
$style .= is_numeric($conf['item_margin']) ? 'margin:' . $conf['item_margin'] . 'px;' : '';
$style .= is_numeric($conf['item_padding']) ? 'padding:' . $conf['item_padding'] . 'px;' : '';
$style .= is_numeric($conf['item_border']) ? 'border:' . $conf['item_border'] . 'px solid ' . $conf['item_border_color'] . ';' : '';
$attr['style'] = $style;
$output = '<div ' . drupal_attributes($attr) . '>';
$output .= $link;
$output .= '</div>';
return $output;
}