'100%', 'height' => '300px', 'fov' => 80, 'rotation' => '0 0 0', 'scale' => '-1 1 1', 'text' => '', 'text-position' => '0.0 0.0 -2.5', 'text-rotation' => '0 0 0', 'text-font' => 'kelsonsans', 'text-color' => 'lightgrey', 'text-scale' => '1 1', 'src' => 'test.jpg', 'align' => 'left', 'margin' => '0 10px 0 0', 'src' => plugin_dir_url( __FILE__ ).'default.jpg' ], $atts, $tag); $js_attrs = array_diff_key($wvr_atts, array_flip(['width', 'height', 'align', 'margin'])); $js_attrs['base'] = plugin_dir_url( __FILE__ ); $id = 'img_360_'.rand(100000,999999); $view_data = json_encode($js_attrs,JSON_HEX_APOS); return <<< HTML HTML; } function am360view_scripts() { wp_enqueue_script( '360_view', plugin_dir_url( __FILE__ ) . '360-view.js', array(), '0.2.3', true ); } add_action( 'wp_enqueue_scripts', 'am360view_scripts' ); add_shortcode('360', 'am360view_shortcode'); ?>