'300', 'url' => plugin_dir_url( __FILE__ ) . '360sample.jpg', 'link' => '', 'speed' => '30', 'direction' => 'right', 'hover' => 'none', 'popup' => '', 'title' => '', ), $atts ); if($a['direction'] == 'right'){ $b = $a['size'] * -2; } else { $b = $a['size'] * 2; }; static $i=0; $i++; $h = '
'; if($a['popup'] != ''){ add_thickbox(); $h .= ''; $h .= ''; $h .= ''; }; if($a['popup'] == 'iframe'){ $h .= ' '; $h .= ''; $h .= ''; }; if($a['popup'] == 'youtube'){ $h .= ''; $h .= ''; $h .= ''; }; if($a['popup'] == 'maps'){ $h .= ''; $h .= ''; $h .= ''; }; if($a['popup'] == 'roundme'){ $h .= ''; $h .= ''; $h .= ''; }; if($a['popup'] == 'veer'){ $h .= ''; $h .= ''; $h .= ''; }; if($a['popup'] == 'embed'){ $h .= $a['link']; $h .= ''; $h .= ''; }; if($a['popup'] == '' && $a['link'] != ''){ $h .= ''; }; $h .= '
'; if($a['link'] != ''){ $h .= '
'; } $h .= '
'; $h .= ''; return $h; } add_shortcode( 'sphere', 'sphere_func' );