= NOW() ORDER BY bn_order ASC, bn_id DESC ";
$result = sql_query($sql);
$fixed_banners = [];
$slide_groups = [];
while ($row = sql_fetch_array($result)) {
$row['bn_img'] = '';
if (isset($row['bn_group']) && !empty($row['bn_group'])) {
$slide_groups[$row['bn_group']][] = $row;
} else {
$fixed_banners[] = $row;
}
}
$md_banner_skin = isset($module_config['md_banner_skin']) && $module_config['md_banner_skin'] !='' ? $module_config['md_banner_skin'] : 'image_only';
$item_skin_file = G5_PATH . '/rb/' . $md_banner_skin . '/skin.php';
$css_vars = [
'--fixed-columns: ' . (int)$premium_ad_config['fixed_grid_columns'],
'--banner-width: ' . (int)$premium_ad_config['banner_width'] . 'px',
'--banner-height: ' . (int)$premium_ad_config['banner_height'] . 'px',
'--banner-gap: ' . (int)$premium_ad_config['banner_gap'] . 'px',
];
$visual_id = 'pas_' . uniqid();
?>