ID,$options['catalogue_category'])):
$args = array(
'post_parent' => $post->ID,
'post_type' => 'attachment',
'post_mime_type' => image,
'order' => 'ASC',
'orderby' => 'menu_order ID'
);
$images =& get_children( $args );
if (($images)):?>
ID,$options['portfolio_category'])):?>
$post->ID,
'post_type' => 'attachment',
'post_mime_type' => image,
'order' => 'ASC',
'orderby' => 'menu_order ID'
);
$images =& get_children( $args );
if (($images)):?>
$attachment ) :
if (!preg_match('/thumb/i',$attachment->post_name)):
$img = wp_get_attachment_image_src( $attachment_id,'full');?>
$attachment ) :
//if (preg_match('/thumb/i',$attachment->post_name)):
$img = wp_get_attachment_image_src( $attachment_id,'full');
$h = min($img[2]*100/$img[1],$options['catalogue_thumb_height']);
$img = substr($img[0], 7+strlen($_SERVER['SERVER_NAME']));
$args1 = array(
'max_width' => $options['catalogue_thumb_width'],
'max_height' => $options['catalogue_thumb_height'],
'caption' => false,
'align'=>'alignnone',
'link_to' => 'image',
'thumb_only'=>false,
'fit_entire_size'=>true,
'img'=>wp_get_attachment_image_src( $attachment_id,'full'),
'margin'=>'10px 10px 0px 0px',
);
draw_image_thumb($args1);
?>