'', 'img_size' => 'full', 'title' => '', 'link' => '', 'style' => '', 'el_class' => '' ), $atts ) ); $id = rand( 100, 999 ); $images = explode( ',', $images ); if( $link != '' ) { $class .= ' cursor-pointer'; } $class .= ' ' . $el_class; $frames_count = count( $images ); if ( $frames_count < 2 ) return; woodmart_enqueue_js_library( 'threesixty' ); woodmart_enqueue_js_script( 'view3d-element' ); woodmart_enqueue_inline_style( '360degree' ); $args = array( 'frames_count' => count( $images ), 'images' => array(), 'width' => '', 'height' => '', ); foreach ( $images as $img_id ) { $img = wpb_getImageBySize( array( 'attach_id' => $img_id, 'thumb_size' => $img_size, 'class' => 'threed-view-image' ) ); $args['width'] = $img['p_img_large'][1]; $args['height'] = $img['p_img_large'][2]; $args['images'][] = $img['p_img_large'][0]; } ob_start(); ?>