'GENZGATE Competitions',
'hero-title' => 'Showcase Your Talent. Win Global Recognition.',
'hero-subtitle' => 'Join our weekly challenges and show the world what Gen Z can create.',
'btn-get-started' => 'Get Started',
'btn-explore' => 'Explore Competitions',
'btn-submit-entry' => 'Submit Your Entry',
'active-competitions' => 'Active Competitions',
'top-entries' => 'Top Entries',
'recent-winners' => 'Recent Winners',
'stats-contests' => 'Active Contests',
'stats-entries' => 'Total Entries',
'stats-countries' => 'Countries',
'ends-on' => 'Ends',
'entries' => 'entries',
'view-details' => 'View Details',
'enter-now' => 'Enter Now',
'view-all' => 'View All',
'winner' => 'Winner',
'from' => 'from',
'category' => 'Category',
'view-profile' => 'View Profile',
'global-genz' => 'Global Gen Z Competitions',
'section-hero-tag' => 'Global Gen Z Competitions',
];
if ($fallback !== '') {
return htmlspecialchars($fallback, ENT_QUOTES, 'UTF-8');
}
$text = isset($defaults[$key]) ? $defaults[$key] : $key;
return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
}
// بيانات تجريبية للمسابقات (يمكن تغيير الصور والنصوص لاحقاً)
$competitions = [
[
'id' => 1,
'title' => 'Weekly Creative Challenge: Future of Gen Z',
'theme' => 'Future of Gen Z',
'image' => 'https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1200&q=80',
'ends' => 'Dec 31, 2025',
'entries' => 142,
'status' => 'active',
'badge' => 'Active',
'category' => 'Creative',
'countries' => 24,
],
[
'id' => 2,
'title' => 'Impact in 30 Seconds',
'theme' => 'Change the World',
'image' => 'https://images.unsplash.com/photo-1512428559087-560fa5ceab42?auto=format&fit=crop&w=1200&q=80',
'ends' => 'Jan 15, 2026',
'entries' => 89,
'status' => 'active',
'badge' => 'Weekly Video Contest',
'category' => 'Video',
'countries' => 18,
],
[
'id' => 3,
'title' => 'Invite & Win',
'theme' => 'Global Gen Z Community',
'image' => 'https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1200&q=80',
'ends' => 'Jan 15, 2026',
'entries' => 256,
'status' => 'active',
'badge' => 'Featured',
'category' => 'Community',
'countries' => 32,
],
];
// إحصائيات بسيطة (تجريبية)
$total_contests = count($competitions);
$total_entries = array_sum(array_column($competitions, 'entries'));
$total_countries = max(array_column($competitions, 'countries'));
// بيانات لأفضل المشاركات
$top_entries = [
[
'title' => 'The Future Is Bright',
'author' => 'Sara Ali',
'country' => 'Iraq',
'flag' => '🇮🇶',
'image' => 'https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=900&q=80',
'likes' => 1342,
'contest' => 'Future of Gen Z',
],
[
'title' => 'Digital Dreams',
'author' => 'Alex Chen',
'country' => 'USA',
'flag' => '🇺🇸',
'image' => 'https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=900&q=80',
'likes' => 978,
'contest' => 'Creative Challenge',
],
];
// بيانات الفائزين
$recent_winners = [
[
'name' => 'Layla Hassan',
'country' => 'UAE',
'flag' => '🇦🇪',
'image' => 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=900&q=80',
'contest' => 'Impact in 30 Seconds',
'category' => 'Video',
'year' => '2025',
],
[
'name' => 'Mohammed Khan',
'country' => 'Australia',
'flag' => '🇦🇺',
'image' => 'https://images.unsplash.com/photo-1542744095-fcf48d80b0fd?auto=format&fit=crop&w=900&q=80',
'contest' => 'Invite & Win',
'category' => 'Community',
'year' => '2025',
],
];
?>
= t('page-title') ?>
= t('section-hero-tag') ?>
= t('hero-title') ?>
= t('hero-subtitle') ?>
= number_format($total_contests) ?>
= t('stats-contests') ?>
= number_format($total_entries) ?>
= t('stats-entries') ?>
= number_format($total_countries) ?>
= t('stats-countries') ?>
Weekly Featured Contest
= htmlspecialchars($competitions[0]['title']) ?>
= htmlspecialchars($competitions[0]['theme']) ?> •
= t('ends-on') ?> = htmlspecialchars($competitions[0]['ends']) ?>
= number_format($competitions[0]['entries']) ?> = t('entries') ?>
= number_format($competitions[0]['countries']) ?> = t('stats-countries') ?>
= t('enter-now') ?>
= htmlspecialchars($comp['badge']) ?>
= htmlspecialchars($comp['title']) ?>
= htmlspecialchars($comp['theme']) ?>
= t('ends-on') ?> = htmlspecialchars($comp['ends']) ?> •
= number_format($comp['entries']) ?> = t('entries') ?>
= htmlspecialchars($entry['contest']) ?>
= htmlspecialchars($entry['title']) ?>
= $entry['flag'] ?>
= htmlspecialchars($entry['author']) ?> •
= htmlspecialchars($entry['country']) ?>
= number_format($entry['likes']) ?> likes
= t('winner') ?> = htmlspecialchars($winner['year']) ?>
= htmlspecialchars($winner['name']) ?>
= $winner['flag'] ?>
= t('from') ?> = htmlspecialchars($winner['country']) ?> •
= t('category') ?>: = htmlspecialchars($winner['category']) ?>
= htmlspecialchars($winner['contest']) ?>