=') );
//This works only in WP2.6 or higher
if ( IS_WP26 == FALSE) {
add_action('admin_notices', create_function('', 'echo \'
3D Pix
by:
Nductiv
Shortcode to embed a 3D image from
Phereo.com into a post or page
Notice that there's a button

in the page and post editors to insert this shortcode and set the parameters.
[3dpix id="1234" width="600" height="400" mode="anaglyph"]
Where the parameters are:
id - the Phereo.com image number...you can find this in the Phereo.com URL or Embed Code (Required)
width - width in pixels of the embedded 3D picture (Optional)
height - height in pixels of the embedded 3D picture (Optional)
mode - 3D display mode: anaglyph, parallel, crossed, vinterlaced, hinterlaced, chinterlaced, animated, or nvidia (Optional)
If the optional parameters are not specificed in the post/page shortcode,
the defaults set on this page will be used.
Default Settings for 3D Pix
'.__("Settings", "3dPix").'';
array_unshift($links, $settings_link);
}
return $links;
}
function tdpix_install(){
add_option('tdpix_height','400');
add_option('tdpix_width','500');
add_option('tdpix_mode','anaglyph');
}
function tdpix_uninstall(){
delete_option('tdpix_height');
delete_option('tdpix_width');
delete_option('tdpix_mode');
}
// Start this plugin once all other plugins are fully loaded
add_action( 'plugins_loaded', create_function( '', 'global $tdPix; $tdPix = new tdPix();' ) );
register_activation_hook(__FILE__,'tdpix_install');
register_deactivation_hook(__FILE__,'tdpix_uninstall');
add_action('admin_menu','tdpix_settings');
add_filter('plugin_action_links', 'tdpix_add_settings_link', 10, 2 );
?>