* Date: 2026-6-3 */ if (!defined('ROOT_PATH')) exit; $guestRows = $db->fetchAll("SELECT * FROM {$db->table('guestbook')} WHERE is_show=1 ORDER BY create_time DESC LIMIT 20"); $currentChannel = $db->fetch("SELECT * FROM {$db->table('channel')} WHERE channel_type=8 AND is_show=1 ORDER BY list_order ASC,id ASC LIMIT 1"); $bannerPic = !empty($slides[0]['slide_pic']) ? $slides[0]['slide_pic'] : (!empty($currentChannel['channel_thumb']) ? $currentChannel['channel_thumb'] : 'https://picsum.photos/1600/500?random=88'); $mobileBannerPic = !empty($slides[0]['slide_pic']) ? $slides[0]['slide_pic'] : (!empty($currentChannel['channel_thumb']) ? $currentChannel['channel_thumb'] : 'https://picsum.photos/1200/400?random=88'); ?>