function amalgamation_fp_ajax_response()
{
    $content_type = $_POST['content_type'];
    $content_id = intval($_POST['content_id']);
    if ($content_type == 'post') {
        echo Amalgamation_Front_Panel_Post($content_id);
    } else {
        if ($content_type == 'page') {
            echo Amalgamation_Front_Panel_Page($content_id);
        } else {
            echo Amalgamation_Front_Panel_Latest();
        }
    }
    die;
}
                    <?php 
    if (get_theme_mod('fp_panel_3') == 'post') {
        Amalgamation_Front_Panel_Post(intval(get_theme_mod('panel_3_post')));
    } elseif (get_theme_mod('fp_panel_3') == 'page') {
        Amalgamation_Front_Panel_Page(intval(get_theme_mod('panel_3_page')));
    } else {
        Amalgamation_Front_Panel_Latest();
    }
    ?>
                </div>

                <div id="front-page-panel-4" class="front-page-panel">
                    <?php 
    if (get_theme_mod('fp_panel_4') == 'post') {
        Amalgamation_Front_Panel_Post(intval(get_theme_mod('panel_4_post')));
    } elseif (get_theme_mod('fp_panel_4') == 'page') {
        Amalgamation_Front_Panel_Page(intval(get_theme_mod('panel_4_page')));
    } else {
        Amalgamation_Front_Panel_Latest();
    }
    ?>
                </div>
            </div>
            
		</main><!-- #main -->
	</div><!-- #primary -->

<?php 
    get_footer('front');
}
// end else statement