<?php

namespace App\Controllers;

class PageController {
    private $pdo;
    private $config;
    
    public function __construct($pdo, $config) {
        $this->pdo = $pdo;
        $this->config = $config;
    }
    
    public function faq() {
        $theme = get_setting('default_theme', 'orbit-dark');
        include __DIR__ . '/../Views/layouts/public.php';
        include __DIR__ . '/../Views/pages/faq.php';
        include __DIR__ . '/../Views/layouts/footer.php';
    }
    
    public function terms() {
        $theme = get_setting('default_theme', 'orbit-dark');
        include __DIR__ . '/../Views/layouts/public.php';
        include __DIR__ . '/../Views/pages/terms.php';
        include __DIR__ . '/../Views/layouts/footer.php';
    }
    
    public function privacy() {
        $theme = get_setting('default_theme', 'orbit-dark');
        include __DIR__ . '/../Views/layouts/public.php';
        include __DIR__ . '/../Views/pages/privacy.php';
        include __DIR__ . '/../Views/layouts/footer.php';
    }
}
