示例#1
0
" href="#"><?php 
        _e('Active', 'woocommerce');
        ?>
</a></label><?php 
    }
    ?>
					<script>
					window.onload=function(){
						el=document.getElementById('is_downloadable');
						if(el.checked) {
							show_it('download_options',true,true,'is_downloadable');
						}
					};</script>
					<?php 
    ## IS DOWNLOADABLE ##
    $is_downloadable = $mold->pm_get_mold_is_downloadable();
    ?>
<input type="hidden" name="is_downloadable" value="no" /><?php 
    if ($is_downloadable == "yes") {
        ?>
						<input onclick="show_it('download_options',true,true,'is_downloadable');uncheck_this('is_downloadable','is_not_downloadable');" class="css-checkbox" type="checkbox" id="is_downloadable" name="is_downloadable" value="yes" checked><label class="css-label" for="is_downloadable"> <a class="datatips" data-tip="<?php 
        _e('Enable this option if access is given to a downloadable file upon purchase of a product', 'woocommerce');
        ?>
" href="#"><?php 
        _e('Downloadable', 'woocommerce');
        ?>
</a> </label>
					<?php 
    } else {
        ?>
						<input onclick="show_it('download_options',true,true,'is_downloadable');uncheck_this('is_downloadable','is_not_downloadable');" class="css-checkbox" type="checkbox" id="is_downloadable" name="is_downloadable" value="yes"><label class="css-label" for="is_downloadable"> <a class="datatips" data-tip="<?php