<?php
$download_form = get_field('download_form', 'options');
$form_id = $download_form ? $download_form['id'] : '';
$download_form_shortcode = $form_id ? '[gravityform id="' . $form_id  . '" title="false" description="true" ajax="true" tabindex="200" ]' : '';
?>
<div class="modal fade" id="download" tabindex="-1" role="dialog" aria-labelledby="download_label" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-nav" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="download_label"><?=get_gform_title($form_id);?></h4>
                <a href="#" class="control control-close icon-close " data-dismiss="modal"><span>close</span></a>
            </div>
            <div class="modal-body">
                <div class="modal-text gray text-center"><?=get_gform_description($form_id);?></div>
								<?php if ($download_form_shortcode) {
									echo do_shortcode($download_form_shortcode); 
								}?>
            </div>
        </div>
    </div>
</div>
