Files
ai-institute/includes/data.php
T
2026-11-16 07:42:08 +05:45

350 lines
22 KiB
PHP

<?php
/**
* AI Institute — shared data.
*
* All repeated content lives here so index.php can render it with foreach loops.
* Swap the image URLs below for your own files in /assets/img when ready.
*/
/* -------------------------------------------------------------------------
* Helpers
* ---------------------------------------------------------------------- */
if (!function_exists('e')) {
/** Escape text for safe HTML output. */
function e(string $value): string
{
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
}
}
if (!function_exists('icon')) {
/**
* Return an inline SVG icon by name.
* Icons use currentColor so they inherit the surrounding text colour.
*/
function icon(string $name, string $class = ''): string
{
static $icons = null;
if ($icons === null) {
$icons = [
'sparkles' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="m12 3 1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9L12 3Z"/><path d="m19 15 .8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8L19 15Z"/></svg>',
'megaphone' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="m3 11 18-5v12L3 13v-2Z"/><path d="M11.6 16.8a3 3 0 1 1-5.8-1.6"/></svg>',
'laptop' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M2 20h20"/></svg>',
'clapperboard' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z"/><path d="m6.2 5.3 3.1 3.9"/><path d="m12.4 3.4 3.1 4"/><path d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"/></svg>',
'lightbulb' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M9 18h6"/><path d="M10 22h4"/><path d="M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5.76.76 1.23 1.52 1.41 2.5"/></svg>',
'arrow-right' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg>',
'chevron-down' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="6 9 12 15 18 9"/></svg>',
'trend' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="3 17 9 11 13 15 21 7"/><polyline points="15 7 21 7 21 13"/></svg>',
'trending-up' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="22 7 13.5 15.5 8.5 10.5 2 17"/><polyline points="16 7 22 7 22 13"/></svg>',
'briefcase' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><rect x="3" y="7" width="18" height="13" rx="2"/><path d="M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><path d="M3 12h18"/></svg>',
'coins' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="9"/><path d="M12 7v10"/><path d="M15.4 9.6c-.5-1.1-1.7-1.7-3.4-1.7-1.9 0-3.3.8-3.3 2.1 0 2.6 6.6 1.5 6.6 4.2 0 1.3-1.5 2.1-3.3 2.1-1.7 0-3-.6-3.5-1.7"/></svg>',
'wallet' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"/><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"/></svg>',
'zap' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polygon points="13 2 4 14 11 14 10 22 20 9 13 9 13 2"/></svg>',
'graduation' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M22 9 12 4 2 9l10 5 10-5Z"/><path d="M6 11.5V16c0 1.7 2.7 3 6 3s6-1.3 6-3v-4.5"/><path d="M22 9v6"/></svg>',
'chart' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>',
'globe' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10Z"/></svg>',
'video' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polygon points="23 7 16 12 23 17 23 7"/><rect x="1" y="5" width="15" height="14" rx="2"/></svg>',
'rocket' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M4.5 16.5c-1.5 1.3-2 5.5-2 5.5s4.2-.5 5.5-2c.8-.9.8-2.2-.1-3.1-.9-.9-2.2-.9-3.4-.4Z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.9A12.7 12.7 0 0 1 21 3c0 3.5-1.5 7.2-4.1 10a22 22 0 0 1-3.9 2Z"/><path d="M9 12H4s.5-2.7 2-4c1.7-1.4 4.5-1 4.5-1"/><path d="M12 15v5s2.7-.5 4-2c1.4-1.7 1-4.5 1-4.5"/></svg>',
'users' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.9"/><path d="M16 3.1a4 4 0 0 1 0 7.8"/></svg>',
'book' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"/></svg>',
'layers' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>',
'check-circle' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M22 11.1V12a10 10 0 1 1-5.9-9.1"/><polyline points="22 4 12 14.01 9 11.01"/></svg>',
'award' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="8" r="6"/><path d="M15.5 13.5 17 22l-5-3-5 3 1.5-8.5"/></svg>',
'quote' => '<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path d="M9.5 6C6.5 6 4 8.5 4 11.5V18h6.5v-6.5H7c0-1.7 1.1-2.7 2.5-2.7V6Zm10 0c-3 0-5.5 2.5-5.5 5.5V18H20v-6.5h-3.5c0-1.7 1.1-2.7 2.5-2.7V6Z"/></svg>',
'play' => '<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><polygon points="8 5 19 12 8 19 8 5"/></svg>',
'mail' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 6-10 7L2 6"/></svg>',
'phone' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.6a2 2 0 0 1-.5 2.1L8.1 9.6a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.8.3 1.7.6 2.6.7a2 2 0 0 1 1.7 2Z"/></svg>',
'map-pin' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0Z"/><circle cx="12" cy="10" r="3"/></svg>',
'linkedin' => '<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path d="M6.94 8.5H3.56V21h3.38V8.5ZM5.25 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM21 13.9c0-3.4-1.8-5-4.2-5-1.9 0-2.8 1.1-3.3 1.8V8.5H10.1V21h3.4v-7c0-.4 0-.7.1-1 .3-.7.9-1.4 1.9-1.4 1.4 0 1.9 1 1.9 2.6V21H21v-7.1Z"/></svg>',
'instagram' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true" focusable="false"><rect x="2.5" y="2.5" width="19" height="19" rx="5.5"/><circle cx="12" cy="12" r="4.2"/><circle cx="17.4" cy="6.6" r="1.1" fill="currentColor" stroke="none"/></svg>',
'youtube' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M21.6 7.2a2.7 2.7 0 0 0-1.9-1.9C18 4.8 12 4.8 12 4.8s-6 0-7.7.5a2.7 2.7 0 0 0-1.9 1.9A28 28 0 0 0 2 12a28 28 0 0 0 .4 4.8 2.7 2.7 0 0 0 1.9 1.9c1.7.5 7.7.5 7.7.5s6 0 7.7-.5a2.7 2.7 0 0 0 1.9-1.9A28 28 0 0 0 22 12a28 28 0 0 0-.4-4.8Z"/><polygon points="10 15.2 15 12 10 8.8 10 15.2" fill="currentColor" stroke="none"/></svg>',
];
}
$svg = $icons[$name] ?? $icons['sparkles'];
$classes = trim('icon ' . $class);
$svg = preg_replace('/<svg /', '<svg class="' . e($classes) . '" ', $svg, 1);
return $svg;
}
}
/* -------------------------------------------------------------------------
* Courses & filters
* ---------------------------------------------------------------------- */
$courseFilters = [
'all' => 'All',
'ai-professional' => 'AI Professional',
'digital-marketing' => 'Digital Marketing',
'freelancer' => 'Freelancer',
'content-creator' => 'Content Creator',
'entrepreneur' => 'Entrepreneur',
'business-professional' => 'Business Professional',
];
$courses = [
[
'title' => 'Python with Artificial Intelligence (AI) Training',
'category' => 'ai-professional',
'category_label' => 'Programming',
'image' => 'https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=720&q=80',
'alt' => 'A woman working at a table with printed charts and a laptop',
],
[
'title' => 'Digital Marketing 360° with AI Mastery',
'category' => 'digital-marketing',
'category_label' => 'Full Stack',
'image' => 'https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=720&q=80',
'alt' => 'A dark desk with a monitor showing trading charts',
],
[
'title' => 'Python with Artificial Intelligence (AI) Training',
'category' => 'ai-professional',
'category_label' => 'Programming',
'image' => 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=720&q=80',
'alt' => 'A laptop showing a dashboard on a light table with a notebook',
],
[
'title' => 'Python with Artificial Intelligence (AI) Training',
'category' => 'freelancer',
'category_label' => 'Programming',
'image' => 'https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=720&q=80',
'alt' => 'A dark desk with a monitor showing trading charts',
],
[
'title' => 'Python with Artificial Intelligence (AI) Training',
'category' => 'content-creator',
'category_label' => 'Programming',
'image' => 'https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=720&q=80',
'alt' => 'A woman working at a table with printed charts and a laptop',
],
[
'title' => 'Python with Artificial Intelligence (AI) Training',
'category' => 'entrepreneur',
'category_label' => 'Programming',
'image' => 'https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=720&q=80',
'alt' => 'A woman working at a table with printed charts and a laptop',
],
[
'title' => 'Python with Artificial Intelligence (AI) Training',
'category' => 'business-professional',
'category_label' => 'Programming',
'image' => 'https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&w=720&q=80',
'alt' => 'A woman working at a table with printed charts and a laptop',
],
[
'title' => 'Python with Artificial Intelligence (AI) Training',
'category' => 'ai-professional',
'category_label' => 'Programming',
'image' => 'https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=720&q=80',
'alt' => 'A woman working at a table with printed charts and a laptop',
],
];
/* -------------------------------------------------------------------------
* Why learn AI
* ---------------------------------------------------------------------- */
$whyCards = [
[
'icon' => 'trending-up',
'title' => 'Career Growth',
'text' => 'Bring practical AI skills to your role and explore new ways to contribute at work.',
],
[
'icon' => 'briefcase',
'title' => 'Business Opportunities',
'text' => 'Explore smarter workflows, test ideas, and use AI to support your business.',
],
[
'icon' => 'wallet',
'title' => 'Income Opportunities',
'text' => 'Build useful capabilities for freelance services and independent projects.',
],
[
'icon' => 'zap',
'title' => 'Productivity',
'text' => 'Spend less time on repetitive tasks and more time on the work that matters.',
],
];
/* -------------------------------------------------------------------------
* Career pathways
* ---------------------------------------------------------------------- */
$pathways = [
[
'icon' => 'sparkles',
'title' => 'AI Professional',
'text' => 'Support AI-enabled projects and improve everyday workflows.',
],
[
'icon' => 'megaphone',
'title' => 'Digital Marketer',
'text' => 'Connect creative ideas with AI-assisted campaigns and insights.',
],
[
'icon' => 'laptop',
'title' => 'Freelancer',
'text' => 'Explore independent services built around useful digital skills.',
],
[
'icon' => 'clapperboard',
'title' => 'Content Creator',
'text' => 'Develop ideas, stories, and content for a digital-first world.',
],
[
'icon' => 'lightbulb',
'title' => 'Entrepreneur',
'text' => 'Test new concepts and bring more resourcefulness to business.',
],
[
'icon' => 'briefcase',
'title' => 'Business Professional',
'text' => 'Apply AI thinking to analysis, operations, and communication.',
],
];
/* -------------------------------------------------------------------------
* Internship pathway
* ---------------------------------------------------------------------- */
$internshipSteps = [
[
'title' => 'Industry-Led Training',
'text' => 'Learn from practitioners who use AI in real work every day.',
],
[
'title' => 'Hands-on Project Work',
'text' => 'Apply your skills to realistic briefs and build a portfolio that stands out.',
],
[
'title' => 'Rigorous Evaluation & Certification',
'text' => 'Demonstrate your knowledge through structured assessment and feedback.',
],
[
'title' => 'Internship & Guaranteed Job Assistance',
'text' => 'Step into real work with guidance from our dedicated career team.',
],
];
/* -------------------------------------------------------------------------
* Certification steps
* ---------------------------------------------------------------------- */
$certSteps = [
['icon' => 'book', 'title' => 'Enroll'],
['icon' => 'graduation', 'title' => 'Learn'],
['icon' => 'layers', 'title' => 'Complete Training'],
['icon' => 'check-circle', 'title' => 'Complete Requirements'],
['icon' => 'award', 'title' => 'Receive Certification'],
];
/* -------------------------------------------------------------------------
* Student projects
* ---------------------------------------------------------------------- */
$projects = [
[
'title' => 'A campaign from a single idea',
'tag' => 'Digital Marketing',
'image' => 'assets/img/heroimage2.jpg',
'alt' => 'A marketing team planning a campaign with notes on a table',
],
[
'title' => 'A smarter business workflow',
'tag' => 'AI Automation',
'image' => 'assets/img/student.jpg',
'alt' => 'A professional mapping out an automated workflow',
],
[
'title' => 'Turning data into a clearer story',
'tag' => 'Data & Insights',
'image' => 'assets/img/student.jpg',
'alt' => 'A student presenting data visualisations on a screen',
],
[
'title' => 'A structured market research journal',
'tag' => 'Research',
'image' => 'assets/img/heroimage2.jpg',
'alt' => 'A researcher reviewing notes and market research documents',
],
];
/* -------------------------------------------------------------------------
* Success stories
* ---------------------------------------------------------------------- */
$testimonial = [
'quote' => 'The programme changed how I approach work. I stopped fearing AI and started using it to deliver better ideas, faster. The projects gave me something real to show employers.',
'name' => 'Ananya Sharma',
'role' => 'AI Professional Graduate · now at COLT NextSpace',
'avatar' => 'https://picsum.photos/seed/student-ananya/160/160',
];
$videoStory = [
'caption' => 'From Student to UI/UX Designer at COLT NextSpace',
'image' => 'https://picsum.photos/seed/student-story-video/1000/640',
'alt' => 'A student smiling while working at a design studio',
];
$profiles = [
[
'name' => 'Rahul Mehta',
'role' => 'Digital Marketer · Nova Labs',
'avatar' => 'https://picsum.photos/seed/student-rahul/160/160',
],
[
'name' => 'Meera Iyer',
'role' => 'Freelance Content Strategist',
'avatar' => 'https://picsum.photos/seed/student-meera/160/160',
],
];
/* -------------------------------------------------------------------------
* Hiring partners
* ---------------------------------------------------------------------- */
$partners = [
'cod<avatar>',
'PALM MIND',
'PRISMA',
'SUBISU',
'mantraideas',
'pathao',
];
/* -------------------------------------------------------------------------
* FAQ
* ---------------------------------------------------------------------- */
$faqs = [
[
'question' => 'What courses can I explore?',
'answer' => 'We offer programmes across AI, digital marketing, full stack development, freelancing, content creation, entrepreneurship and business. Each course blends live training, guided practice and project work.',
],
[
'question' => 'Who is eligible to enroll?',
'answer' => 'Our programmes are designed for students, graduates, working professionals and business owners. Most tracks begin with no prior technical background, and our advisors will help you choose the right starting point.',
],
[
'question' => 'How long does each course take?',
'answer' => 'Courses typically run between 8 and 24 weeks depending on the track and your schedule. Part-time evening and weekend batches are available for working professionals.',
],
[
'question' => 'Will I receive a certification?',
'answer' => 'Yes. After completing your training and requirements, you will receive a verifiable AI Institute certificate that you can share with employers or clients.',
],
[
'question' => 'How do internship opportunities work?',
'answer' => 'Eligible learners move into our internship pathway after training, evaluation and certification. Our career team supports you with placement preparation and guaranteed job assistance.',
],
[
'question' => 'How do I enroll?',
'answer' => 'Start by talking to an advisor or applying online. We will review your goals, recommend a programme and guide you through the simple enrollment process.',
],
];