示例#1
0
											attachment = attachment.toJSON();
											 
											// Do something with attachment.id and/or attachment.url here
											paths_textarea = document.getElementById('file_paths');
											paths_textarea.value += ","+attachment.url;
											document.forms["moldForm"].submit();
										});
									});
									 
									// Finally, open the modal
									//file_frame.open();
								});
								
							</script>
							<?php 
    $_filepaths = $mold->pm_get_mold_file_paths();
    $the_file_paths = '';
    if (!empty($_filepaths)) {
        $the_file_paths = implode(",", $_filepaths);
    }
    $the_download_limit = $mold->pm_get_mold_download_limit();
    $the_download_expiry = $mold->pm_get_mold_download_expiry();
    ?>
							<div class="field">
								<label><a class="datatips" data-tip="<?php 
    _e('Enter one or more File Paths, one per line, to make this variation a downloadable product, or leave blank.', 'woocommerce');
    ?>
" href="#">[?]</a> <?php 
    _e('File paths:', 'woocommerce');
    ?>
 </label><br>