Setting up custom post types template using custompress

Here is my single.php page. I have tried to modify it using the embeded code but it gives me errors each time. Any ideas on how to display my custom post types on the page?

<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
get_header();
$post_type = get_post_type();
$sidebarPosition = get_option ( THEME_NAME."_sidebar_position" );
$sidebarPositionCustom = get_post_meta ( $post->ID, THEME_NAME."_sidebar_position", true );

if($post_type == "gallery") {
get_template_part(THEME_INCLUDES.'gallery-single','style-1');
} else {
get_template_part(THEME_INCLUDES.'news','single-golfers');

get_footer();
}

?>