示例#1
0
<?php

use Jigoshop\Helper\Forms;
use Jigoshop\Helper\Product;
/**
 * @var $method \Jigoshop\Shipping\Method Method to display.
 * @var $order \Jigoshop\Entity\Order Order to display.
 */
?>
<li class="list-group-item shipping-<?php 
echo $method->getId();
?>
 clearfix">
	<label>
		<input type="radio" name="order[shipping]" value="<?php 
echo $method->getId();
?>
" <?php 
echo Forms::checked($order->hasShippingMethod($method), true);
?>
 />
		<?php 
echo $method->getName();
?>
	</label>
	<span class="pull-right"><?php 
echo Product::formatPrice($method->calculate($order));
?>
</span>
</li>
示例#2
0
<?php

use Jigoshop\Helper\Forms;
use Jigoshop\Helper\Product;
/**
 * @var $method \Jigoshop\Shipping\Method Method to display.
 * @var $cart \Jigoshop\Entity\Cart Current cart.
 */
?>
<li class="list-group-item shipping-<?php 
echo $method->getId();
?>
 clearfix">
	<label>
		<input type="radio" name="jigoshop_order[shipping_method]" value="<?php 
echo $method->getId();
?>
" <?php 
echo Forms::checked($cart->hasShippingMethod($method), true);
?>
 />
		<?php 
echo $method->getTitle();
?>
	</label>
	<span class="pull-right"><?php 
echo Product::formatPrice($method->calculate($cart));
?>
</span>
</li>
示例#3
0
    ?>
</label></th>
			<td><code><?php 
    echo $homeUrl;
    ?>
/<?php 
    echo $base;
    ?>
/product-category/sample-product/</code></td>
		</tr>
	<?php 
}
?>
	<tr>
		<th><label><input name="product_permalink" id="jigoshop_custom_selection" type="radio" value="custom" <?php 
echo Forms::checked(in_array($permalink, $structures), false);
?>
 /> <?php 
_e('Custom Base', 'jigoshop');
?>
</label></th>
		<td>
			<input name="product_permalink_structure" id="jigoshop_permalink_structure" type="text" value="<?php 
echo $permalink;
?>
" class="regular-text code">
			<span class="description"><?php 
_e('Enter a custom base to use. A base <strong>must</strong> be set or WordPress will use default instead.', 'jigoshop');
?>
</span>
		</td>
示例#4
0
    ?>
" value="off" />
		<?php 
}
?>
		<input type="checkbox" id="<?php 
echo $id;
?>
" name="<?php 
echo $name;
?>
" class="<?php 
echo join(' ', $classes);
?>
" <?php 
echo Forms::checked($checked, true);
?>
 value="<?php 
echo $value;
?>
"<?php 
$disabled and print ' disabled';
?>
 />
		<?php 
if (!empty($description)) {
    ?>
			<label for="<?php 
    echo $id;
    ?>
"><span class="help"><?php