prepare('SELECT * FROM profile WHERE id = ? AND is_active = 1 LIMIT 1'); $profileStmt->execute([$profileId]); $profile = $profileStmt->fetch(); $rolesStmt = $pdo->prepare('SELECT role_title FROM profile_roles WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $rolesStmt->execute([$profileId]); $roles = $rolesStmt->fetchAll(); $menuItems = $pdo->query('SELECT label, anchor, icon_class FROM menu_items WHERE is_active = 1 ORDER BY sort_order, id')->fetchAll(); $socialLinksStmt = $pdo->prepare('SELECT label, icon_class, url FROM social_links WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $socialLinksStmt->execute([$profileId]); $socialLinks = $socialLinksStmt->fetchAll(); $aboutStmt = $pdo->prepare('SELECT description FROM about_me WHERE profile_id = ? AND is_active = 1 LIMIT 1'); $aboutStmt->execute([$profileId]); $about = $aboutStmt->fetch(); $personalInfoStmt = $pdo->prepare('SELECT label, value FROM personal_info_items WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $personalInfoStmt->execute([$profileId]); $personalInfo = $personalInfoStmt->fetchAll(); $servicesStmt = $pdo->prepare('SELECT icon_class, title, description FROM services WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $servicesStmt->execute([$profileId]); $services = $servicesStmt->fetchAll(); $testimonialsStmt = $pdo->prepare('SELECT author_name, company, photo_url, quote FROM testimonials WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $testimonialsStmt->execute([$profileId]); $testimonials = $testimonialsStmt->fetchAll(); $clientsStmt = $pdo->prepare('SELECT name, logo_url, website_url FROM clients WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $clientsStmt->execute([$profileId]); $clients = $clientsStmt->fetchAll(); $pricingPlansStmt = $pdo->prepare('SELECT id, name, price, billing_period, is_featured, button_label, button_url FROM pricing_plans WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $pricingPlansStmt->execute([$profileId]); $pricingPlans = $pricingPlansStmt->fetchAll(); $pricingFeaturesStmt = $pdo->query('SELECT pricing_plan_id, feature_text FROM pricing_features WHERE is_active = 1 ORDER BY sort_order, id'); $pricingFeaturesRaw = $pricingFeaturesStmt->fetchAll(); $pricingFeatures = []; foreach ($pricingFeaturesRaw as $row) { $pricingFeatures[(int) $row['pricing_plan_id']][] = $row['feature_text']; } $funFactsStmt = $pdo->prepare('SELECT icon_class, title, value FROM fun_facts WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $funFactsStmt->execute([$profileId]); $funFacts = $funFactsStmt->fetchAll(); $educationStmt = $pdo->prepare('SELECT period_label, institution, degree_title, description FROM education WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $educationStmt->execute([$profileId]); $education = $educationStmt->fetchAll(); $experienceStmt = $pdo->prepare('SELECT period_label, company, role_title, description FROM experience WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $experienceStmt->execute([$profileId]); $experience = $experienceStmt->fetchAll(); $skillsStmt = $pdo->prepare('SELECT skill_type, name, proficiency FROM skills WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $skillsStmt->execute([$profileId]); $skillsRaw = $skillsStmt->fetchAll(); $skills = ['design' => [], 'coding' => []]; foreach ($skillsRaw as $row) { $type = $row['skill_type']; if (!isset($skills[$type])) { $skills[$type] = []; } $skills[$type][] = $row; } $knowledgesStmt = $pdo->prepare('SELECT name FROM knowledges WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $knowledgesStmt->execute([$profileId]); $knowledges = $knowledgesStmt->fetchAll(); $certificatesStmt = $pdo->prepare('SELECT title, membership_id, date_label, company, logo_url FROM certificates WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $certificatesStmt->execute([$profileId]); $certificates = $certificatesStmt->fetchAll(); $portfolioCategories = $pdo->query('SELECT id, name, slug FROM portfolio_categories WHERE is_active = 1 ORDER BY sort_order, id')->fetchAll(); $portfolioCategoryMap = []; foreach ($portfolioCategories as $cat) { $portfolioCategoryMap[$cat['slug']] = $cat['name']; } $portfolioItemsStmt = $pdo->prepare('SELECT id, title, item_type, thumb_url, link_url, icon_class FROM portfolio_items WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $portfolioItemsStmt->execute([$profileId]); $portfolioItems = $portfolioItemsStmt->fetchAll(); $portfolioItemCategoriesStmt = $pdo->query('SELECT pic.portfolio_item_id, pc.slug FROM portfolio_item_categories pic JOIN portfolio_categories pc ON pc.id = pic.portfolio_category_id WHERE pc.is_active = 1'); $portfolioItemCategoriesRaw = $portfolioItemCategoriesStmt->fetchAll(); $portfolioItemCategories = []; foreach ($portfolioItemCategoriesRaw as $row) { $portfolioItemCategories[(int) $row['portfolio_item_id']][] = $row['slug']; } $blogPostsStmt = $pdo->prepare('SELECT bp.title, bp.slug, bp.cover_image_url, bp.published_date, bc.name AS category_name FROM blog_posts bp JOIN blog_categories bc ON bc.id = bp.category_id WHERE bp.profile_id = ? AND bp.is_active = 1 ORDER BY bp.published_date DESC, bp.id DESC'); $blogPostsStmt->execute([$profileId]); $blogPosts = $blogPostsStmt->fetchAll(); $contactInfoStmt = $pdo->prepare('SELECT label, value, icon_class FROM contact_info WHERE profile_id = ? AND is_active = 1 ORDER BY sort_order, id'); $contactInfoStmt->execute([$profileId]); $contactInfo = $contactInfoStmt->fetchAll(); $contactMetaStmt = $pdo->prepare('SELECT location_label, map_iframe_url, availability_label, recaptcha_site_key FROM contact_meta WHERE profile_id = ? AND is_active = 1 LIMIT 1'); $contactMetaStmt->execute([$profileId]); $contactMeta = $contactMetaStmt->fetch(); function e($value) { return htmlspecialchars((string) $value, ENT_QUOTES, 'UTF-8'); } ?> BreezyCV - Resume / CV / vCard Template

About Me

What I Do

Testimonials

Cilents

Pricing

$

Fun Facts

Resume

Education

Experience

Design Skills

%

Coding Skills

%

Knowledges

Certificates

Portfolio

    $cat): ?> >
<?php echo e($item['title']); ?>

Blog

$post): ?>

Contact

How Can I Help You?