';
$output .= "\n\t" . '
';
$output .= "\n\t" . '
';
$output .= '
';
$output .= "\n\t\t" . '' . $product_title . '
';
$output .= '';
if ( in_array( 'category', $elemets ) ) {
$output .= '
';
if ( '' !== $categories ) {
$output .= $categories;
$output .= $tags;
}
$output .= '
';
}
$output .= "\n\t\t" . '
' . $price . '
';
if ( in_array( 'description', $elemets ) ) {
$output .= "\n\t\t" . '
' . $product_desc . '
';
}
$output .= "\n\t" . '
';
if ( in_array( 'quick', $elemets ) ) {
$query = new WP_Query(
array(
'post_type' => 'product',
'post__in' => array( $ult_design_single01['product_id'] ),
)
);
if ( $query->have_posts() ) :
while ( $query->have_posts() ) :
$query->the_post();
$output .= '
';
$output .= '
';
$output .= '
';
if ( ! empty( $attachment_ids ) && count( $attachment_ids ) > 1 ) {
$uniqid = uniqid();
$output .= '
';
foreach ( $attachment_ids as $attachment_id ) {
$product_img = wp_get_attachment_image_src( $attachment_id, $image_size );
$output .= '
';
}
$output .= '
';
} else {
$product_img = wp_get_attachment_image_src( get_post_thumbnail_id( $ult_design_single01['product_id'] ), $image_size );
$output .= '
';
}
$output .= '
';
ob_start();
do_action( 'woocommerce_single_product_summary' );
$output .= ob_get_clean();
$output .= '
';
$output .= '
';
$output .= '
';
$output .= '
';
endwhile;
endif;
}
$output .= "\n\t" . '
';
return $output;
}