1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
| <form id="fv_upload_form" class="fv_upload_form-<?php echo $contest->id ?>" enctype="multipart/form-data" method="POST" onsubmit="<?php echo (!fv_is_ie()) ? "fv_upload_image(this); return false;" : ''; ?>">
<div class="fv_form_fileds">
<div class="fv_form_filed required">
<div class="number"><?php echo $i++ ?></div>
<div class="wrapper">
<label>
<?php echo $public_translated_messages['upload_form_field_name'] ?>: <span class="red_star">*</span>
</label>
<div class="body">
<input type="text" name="foto-name" value="" placeholder="<?php echo $public_translated_messages['upload_form_field_name'] ?>" required pattern=".{3,40}" />
</div>
</div>
</div>
<?php if (( get_option('fotov-upload-form-show-email', false) == 'on')) : ?>
<div class="fv_form_filed required">
<div class="number"><?php echo $i++ ?></div>
<div class="wrapper">
<label>
<?php echo $public_translated_messages['upload_form_field_email'] ?>: <span class="red_star">*</span>
</label>
<div class="body">
<input type="text" name="foto-email" value="<?php echo ( isset($user_info) ) ? $user_info->user_email : ''; ?>" placeholder="<?php echo __('Email', 'fv') ?>" required="" />
</div>
</div>
</div>
<?php endif; ?>
<?php if (( get_option('fotov-upload-form-show-custom-dropdown', false) == 'on')) : ?>
<?php
$lines = explode("\n", get_option('fotov-upload-form-custom-dropdown-lines', ""));
if ( is_array($lines) ):
?>
<div class="fv_form_filed required">
<div class="number"><?php echo $i++ ?></div>
<div class="wrapper">
<label>
<?php echo $public_translated_messages['upload_form_field_dropdown'] ?>: <span class="red_star">*</span>
</label>
<div class="body">
<select name="foto-dropdown" required/><?php foreach($lines as $line): ?>
<option value="<?php echo $line ?>"><?php echo $line ?></option>
<?php endforeach; ?></select>
</div>
</div>
</div>
<?php endif; endif; ?>
<div class="fv_form_filed required fv_file" >
<div class="number"><?php echo $i++ ?></div>
<div class="wrapper">
<label>
<?php echo $public_translated_messages['upload_form_field_image'] ?> <span class="red_star">*</span>
</label>
<div class="body">
<div class="answer">
<div><input type="file" name="foto-async-upload" class="file-input" required="" accept="image/*" capture></div>
</div>
</div>
</div>
</div>
<?php foreach ($upload_info_fields as $info_field_name): if (get_option('fotov-upload-form-show-' . $info_field_name, false) == 'on'): ?>
<div class="fv_form_filed required">
<div class="number"><?php echo $i++ ?></div>
<div class="wrapper">
<label>
<?php echo $public_translated_messages['upload_form_field_'.$info_field_name] ?>: <span class="red_star">*</span>
</label>
<div class="body">
<input type="text" name="foto-<?php echo $info_field_name ?>" value="" required placeholder="Une phrase sympa pour décrire ta photo..." />
</div>
</div>
</div>
<?php endif; endforeach; ?>
</div>
<div style="clear:both;overflow:hidden;border-bottom: 1px solid #E0E0E0;padding-top:15px;padding-bottom:20px;margin-bottom:20px;">
<input type="hidden" name="contest_id" id="contest_id" value="<?php echo $contest->id ?>" />
<input type="hidden" name="post_id" id="post_id" value="<?php echo $post->ID ?>" />
<?php wp_nonce_field('client-file-upload'); ?>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
<input type="hidden" name="go-upload" value="1" />
<div class="number"><?php echo $i++ ?></div>
<table class="poll_submit">
<tr>
<td><input type="submit" id="action_button" value="<?php echo __('Et Hop !', 'fv') ?>"></td>
<td><span id="fv_upload_preloader"> <span class="fvicon-spinner2 icon rotate-animation"></span> </span></td>
</tr>
</table>
</div>
</form> |
Partager