prepare($sql); $stmt->execute($params); $products = $stmt->fetchAll(); $anns = db()->query( 'SELECT * FROM ' . tn('announcements') . ' WHERE status = 1 ORDER BY pinned DESC, created_at DESC LIMIT 3' )->fetchAll(); $groups = db()->query('SELECT name, icon FROM ' . tn('product_groups') . ' ORDER BY sort_order ASC, name ASC')->fetchAll(); $categories = array_column($groups, 'name'); $about = getSetting('mall_about', ''); require 'includes/header.php'; ?> = __('hero.title') ?> = __('hero.subtitle') ?> = __('index.announcement') ?> = h($a['title']) ?> = date('m-d', strtotime($a['created_at'])) ?> = __('index.more') ?> = __('product.about_mall') ?> = nl2br(h($about)) ?> = __('index.all') ?> = h($g['name']) ?> = __('index.no_result') ?> = h($p['category']) ?> = h($p['name']) ?> = (int)$p['points_price'] ?> = __('index.points_unit') ?> = __('product.cash_price') ?> = __('common.remaining') ?> = (int)$p['stock'] ?> = __('common.items') ?>
= __('hero.subtitle') ?>
= nl2br(h($about)) ?>
= __('index.no_result') ?>