function atcf_edd_purchase_form_user_info()
{
    if (!atcf_theme_supports('anonymous-backers')) {
        return;
    }
    ?>
	<p id="edd-anon-wrap">
		<label class="edd-label" for="edd-anon">
			<input class="edd-input" type="checkbox" name="edd_anon" id="edd-anon" style="vertical-align: middle;" />
			<?php 
    _e('Hide name on backers list?', 'atcf');
    ?>
		</label>
	</p>
<?php 
}
 /**
  * Add our custom metaboxes.
  *
  * - Collect Funds
  * - Campaign Stats
  * - Campaign Video
  *
  * As well as some other information plugged into EDD in the Download Configuration
  * metabox that already exists.
  *
  * @since Astoundify Crowdfunding 0.1-alpha
  *
  * @return void
  */
 function add_meta_boxes()
 {
     add_meta_box('atcf_campaign_stats', __('Campaign Stats', 'atcf'), '_atcf_metabox_campaign_stats', 'download', 'side', 'high');
     add_meta_box('atcf_campaign_updates', __('Campaign Updates', 'atcf'), '_atcf_metabox_campaign_updates', 'download', 'normal', 'high');
     if (atcf_theme_supports('campaign-video')) {
         add_meta_box('atcf_campaign_video', __('Campaign Video', 'atcf'), '_atcf_metabox_campaign_video', 'download', 'normal', 'high');
     }
     add_action('edd_meta_box_fields', '_atcf_metabox_campaign_info', 5);
 }
 /**
  * Load a template.
  *
  * Handles template usage so that we can use our own templates instead of the themes.
  *
  * Templates are in the 'templates' folder. AT_CrowdFunding looks for theme
  * overides in /theme_directory/crowdfunding/ by default
  *
  * @see https://github.com/woothemes/woocommerce/blob/master/woocommerce.php
  *
  * @access public
  * @param mixed $template
  * @return string $template The path of the file to include
  */
 public function template_loader($template)
 {
     global $wp_query;
     $find = array();
     $files = array();
     /** Check if we are editing */
     if (isset($wp_query->query_vars['edit']) && is_singular('download') && ($wp_query->queried_object->post_author == get_current_user_id() || current_user_can('manage_options')) && atcf_theme_supports('campaign-edit')) {
         do_action('atcf_found_edit');
         $files = apply_filters('atcf_crowdfunding_templates_edit', array('single-campaign-edit.php'));
     } else {
         if (isset($wp_query->query_vars['widget']) && is_singular('download') && atcf_theme_supports('campaign-widget')) {
             do_action('atcf_found_widget');
             $files = apply_filters('atcf_crowdfunding_templates_widget', array('campaign-widget.php'));
         } else {
             if (is_singular('download')) {
                 do_action('atcf_found_single');
                 $files = apply_filters('atcf_crowdfunding_templates_campaign', array('single-campaign.php', 'single-download.php', 'single.php'));
             } else {
                 if (is_post_type_archive('download') || is_tax(array('download_category', 'download_tag'))) {
                     do_action('atcf_found_archive');
                     $files = apply_filters('atcf_crowdfunding_templates_archive', array('archive-campaigns.php', 'archive-download.php', 'archive.php'));
                 }
             }
         }
     }
     $files = apply_filters('atcf_template_loader', $files);
     foreach ($files as $file) {
         $find[] = $file;
         $find[] = $this->template_url . $file;
     }
     if (!empty($files)) {
         $template = locate_template($find);
         if (!$template) {
             $template = $this->plugin_dir . 'templates/' . $file;
         }
     }
     return $template;
 }
/**
 * Image
 *
 * @since Astoundify Crowdfunding 1.7
 *
 * @param $key The key of the current field.
 * @param $field The array of field arguments.
 * @param $args The array of arguments relating to the current state of the campaign
 * @return void
 */
function atcf_shortcode_submit_field_featured_image($key, $field, $args)
{
    if (!atcf_theme_supports('campaign-featured-image')) {
        return;
    }
    ?>
	<p class="atcf-submit-campaign-<?php 
    echo esc_attr($key);
    ?>
">
		<label for="<?php 
    echo esc_attr($key);
    ?>
"><?php 
    echo esc_attr($field['label']);
    ?>
</label>
		<input type="file" name="<?php 
    echo esc_attr($key);
    ?>
" id="<?php 
    echo esc_attr($key);
    ?>
" />

		<?php 
    if (!is_null($args['campaign'])) {
        ?>
			<br /><?php 
        the_post_thumbnail(array(50, 50));
        ?>
		<?php 
    }
    ?>
	</p>
<?php 
}