yf_shop__categories_show user module| File | plugins/shop/modules/shop/yf_shop__categories_show.class.php |
|---|---|
| Use | module('shop__categories_show'), URL ?object=shop__categories_show |
| Property | Default | Description |
|---|---|---|
| None declared in this class. | ||
None without a leading underscore.
_ hooks and helpers; not routable as page actionspublic function _categories_show()
public function _categories_show()
{
$shop_cats = [];
foreach ((array) module('shop')->_shop_cats_for_select as $_cat_id => $_cat_name) {
if ( ! $_cat_name) {
continue;
}
$shop_cats[_prepare_html($_cat_name)] = process_url('./?object=shop&action=show&id=' . (module('shop')->_shop_cats_all[$_cat_id]['url']));
}
if (empty($shop_cats)) {
$shop_cats = '';
}
return tpl()->parse('shop/cats_block', [
'shop_cats' => $shop_cats,
]);
}