Hanley Wood Marketing

https://www.dropbox.com/s/4gsnk64bnskczmi/Hanley_Wood_Marketing_Video.mp4?dl=0″>src=”http://www.youtube.com/v/EpfYPVzJohc?version=3″ type=”application/x-shockwave-flash” allowfullscreen=”true” allowScriptAccess=”always” width=”512″ height=”400″>

</style>
php
if ( $post->post_type == ‘html5presentation’ ) { ?>

php _e(‘This slide belongs to:’) ?>

php echo $pages; ?>
php } else { ?>
php echo $pages; ?>

php _e(‘Choose an HTML5 Presentation to display on this page:’) ?>

php echo $meta_name ?>”>
php }
} // end empty pages check

if ( $post->post_type == ‘html5presentation’ ) { ?>

php _e(‘Manually Order Slides’) ?>
<p class=”howto”>Begins with 0. Default ordering is by date, oldest first.</p>

 

php if ( ‘page’ == $post->post_type ) _e( ‘Need help? Use the Help tab in the upper right of your screen.’ ); ?>
php }
}

add_action(‘save_post’, ‘save_associated_html5presentation_to_post’, 1, 2);
function save_associated_html5presentation_to_post($post_id, $post) {
if ( !isset( $_POST[‘dsgnwrks_html5presentations_meta_box_noncename’] ) || !wp_verify_nonce( $_POST[‘dsgnwrks_html5presentations_meta_box_noncename’], plugin_basename(__FILE__) ))
return $post->ID;

if ( !current_user_can( ‘edit_post’, $post->ID ) )
return $post->ID;

if( $post->post_type == ‘revision’ ) return;

$presentation_id = $_POST[‘associated_presentation_ID’];
update_post_meta($post->ID, ‘associated_presentation_ID’, $presentation_id);
if(!$presentation_id)
delete_post_meta($post->ID, ‘associated_presentation_ID’);
}

add_action( ‘template_redirect’, ‘load_html5presentation_template’ );
function load_html5presentation_template() {
global $post;
if ( isset( $post->ID ) && ( $presentation_id = get_post_meta( $post->ID, ‘associated_presentation_ID’, true ) ) ) {
html5_run_presentation( $presentation_id );
exit;
}
}

?>