Beispiel #1
0
 * @var $depth int Current category depth.
 * @var $value string Current category value.
 * @var $name string Category name.
 * @var $selected string Currently selected item.
 * @var $show_count bool Whether to show count of products in the category.
 * @var $count int Count of items in category.
 */
?>
<option class="level-<?php 
echo $depth;
?>
" value="<?php 
echo $value;
?>
" <?php 
echo Forms::selected($value, $selected);
?>
>
	<?php 
echo str_repeat('&nbsp;', $depth * 3) . $name;
?>
	<?php 
if ($show_count) {
    ?>
		(<?php 
    echo $count;
    ?>
)
	<?php 
}
?>
Beispiel #2
0
<?php

use Jigoshop\Admin\Helper\Forms;
/**
 * @var $value mixed Option value.
 * @var $label string Option label.
 * @var $disabled boolean Whether item is disabled.
 * @var $current mixed Currently selected value(s).
 */
?>
<option value="<?php 
echo $value;
?>
" <?php 
echo Forms::selected($value, $current);
?>
 <?php 
echo Forms::disabled($disabled);
?>
><?php 
echo $label;
?>
</option>