コード例 #1
0
ファイル: ui.php プロジェクト: forthrobot/inuvik
function settings_meta_box($Product)
{
    $Shopp = Shopp::object();
    $Admin =& $Shopp->Flow->Admin;
    ?>
	<p><input type="hidden" name="featured" value="off" /><input type="checkbox" name="featured" value="on" id="featured" tabindex="12" <?php 
    if ($Product->featured == "on") {
        echo ' checked="checked"';
    }
    ?>
 /><label for="featured"> <?php 
    _e('Featured Product', 'Shopp');
    ?>
</label></p>
	<p><input type="hidden" name="variants" value="off" /><input type="checkbox" name="variants" value="on" id="variations-setting" tabindex="13"<?php 
    if ($Product->variants == "on") {
        echo ' checked="checked"';
    }
    ?>
 /><label for="variations-setting"> <?php 
    _e('Variants', 'Shopp');
    echo $Admin->boxhelp('product-editor-variations');
    ?>
</label></p>
	<p><input type="hidden" name="addons" value="off" /><input type="checkbox" name="addons" value="on" id="addons-setting" tabindex="13"<?php 
    if ($Product->addons == "on") {
        echo ' checked="checked"';
    }
    ?>
 /><label for="addons-setting"> <?php 
    _e('Add-ons', 'Shopp');
    echo $Admin->boxhelp('product-editor-addons');
    ?>
</label></p>

	<?php 
    if (shopp_setting_enabled('tax_inclusive')) {
        ?>
		<p><input type="hidden" name="meta[excludetax]" value="off" /><input type="checkbox" name="meta[excludetax]" value="on" id="excludetax-setting" tabindex="18"  <?php 
        if (isset($Product->meta['excludetax']) && Shopp::str_true($Product->meta['excludetax']->value)) {
            echo 'checked="checked"';
        }
        ?>
 /> <label for="excludetax-setting"><?php 
        _e('Exclude Taxes', 'Shopp');
        ?>
</label></p>
	<?php 
    }
    ?>

	<?php 
    if ($Shopp->Shipping->realtime) {
        ?>
	<p><input type="hidden" name="meta[packaging]" value="off" /><input type="checkbox" name="meta[packaging]" value="on" id="packaging-setting" tabindex="18"  <?php 
        if (isset($Product->meta['packaging']) && $Product->meta['packaging']->value == "on") {
            echo 'checked="checked"';
        }
        ?>
 /> <label for="packaging-setting"><?php 
        _e('Separate Packaging', 'Shopp');
        ?>
</label></p>
	<?php 
    }
    ?>


	<p><input type="hidden" name="comment_status" value="closed" /><input type="checkbox" name="comment_status" value="open" id="allow-comments" tabindex="18"  <?php 
    if (Shopp::str_true($Product->comment_status)) {
        echo 'checked="checked"';
    }
    ?>
 /> <label for="allow-comments"><?php 
    _e('Comments', 'Shopp');
    ?>
</label>

	<p><input type="hidden" name="ping_status" value="closed" /><input type="checkbox" name="ping_status" value="open" id="allow-trackpings" tabindex="18"  <?php 
    if (Shopp::str_true($Product->ping_status)) {
        echo 'checked="checked"';
    }
    ?>
 /> <label for="allow-trackpings"><?php 
    _e('Trackbacks & Pingbacks', 'Shopp');
    ?>
</label>

	<p><input type="hidden" name="meta[processing]" value="off" /><input type="checkbox" name="meta[processing]" value="on" id="process-time" tabindex="18"  <?php 
    if (isset($Product->meta['processing']) && Shopp::str_true($Product->meta['processing']->value)) {
        echo 'checked="checked"';
    }
    ?>
 /> <label for="process-time"><?php 
    _e('Processing Time', 'Shopp');
    ?>
</label>

	<div id="processing" class="hide-if-js">
		<select name="meta[minprocess]"><?php 
    echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['minprocess']) ? $Product->meta['minprocess']->value : false, true);
    ?>
</select> &mdash;
		<select name="meta[maxprocess]"><?php 
    echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['maxprocess']) ? $Product->meta['maxprocess']->value : false, true);
    ?>
</select>
	</div>

	</p>

<?php 
}
コード例 #2
0
<div class="wrap shopp">
	<div class="icon32"></div>
	<?php 
shopp_admin_screen_tabs();
do_action('shopp_admin_notices');
?>


	<script id="delivery-menu" type="text/x-jquery-tmpl"><?php 
$deliverymenu = Lookup::timeframes_menu();
echo Shopp::menuoptions($deliverymenu, false, true);
?>
</script>

	<?php 
$this->shipping_menu();
?>

	<form action="<?php 
echo esc_url($this->url);
?>
" id="shipping" method="post">
	<div>
		<?php 
wp_nonce_field('shopp-settings-shiprate');
?>
	</div>


	<div class="tablenav">
		<div class="actions">
コード例 #3
0
ファイル: settings.php プロジェクト: forthrobot/inuvik
if (Shopp::str_true($Product->ping_status)) {
    echo 'checked="checked"';
}
?>
 /> <label for="allow-trackpings"><?php 
_e('Trackbacks & Pingbacks', 'Shopp');
?>
</label>

<p><input type="hidden" name="meta[processing]" value="off" /><input type="checkbox" name="meta[processing]" value="on" id="process-time" tabindex="18"  <?php 
if (isset($Product->meta['processing']) && Shopp::str_true($Product->meta['processing']->value)) {
    echo 'checked="checked"';
}
?>
 /> <label for="process-time"><?php 
_e('Processing Time', 'Shopp');
?>
</label>

<div id="processing" class="hide-if-js">
	<select name="meta[minprocess]"><?php 
echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['minprocess']) ? $Product->meta['minprocess']->value : false, true);
?>
</select> &mdash;
	<select name="meta[maxprocess]"><?php 
echo menuoptions(Lookup::timeframes_menu(), isset($Product->meta['maxprocess']) ? $Product->meta['maxprocess']->value : false, true);
?>
</select>
</div>

</p>
コード例 #4
0
?>
</td>
			</tr>
			<tr>
				<th scope="row" valign="top"><label for="order-processing-min"><?php 
_e('Order Processing', 'Shopp');
?>
</label></th>
				<td>
				<select name="settings[order_processing_min]" id="order-processing">
						<?php 
echo menuoptions(Lookup::timeframes_menu(), shopp_setting('order_processing_min'), true);
?>
				</select> &mdash; <select name="settings[order_processing_max]" id="order-processing">
							<?php 
echo menuoptions(Lookup::timeframes_menu(), shopp_setting('order_processing_max'), true);
?>
				</select><br />
				<?php 
_e('Set the estimated time range for processing orders for shipment.', 'Shopp');
?>
</td>
			</tr>
			<tr>
				<th scope="row" valign="top"><label for="lowstock-level"><?php 
_e('Low Inventory', 'Shopp');
?>
</label></th>
				<td>
					<?php 
$values = array_reverse(array_merge(range(0, 25), range(30, 50, 5), range(60, 100, 10)));