<?php
$base_url = $base_url ?? 'http://localhost/medsfaq/';

$default_meta_title = 'medsfaq - Nutrition Health and Diet HTML Template';
$default_meta_description = 'medsfaq - Nutrition Health and Diet HTML Template';
$default_meta_keywords = 'Nutrition Health and Diet HTML Template';

$meta_title = trim((string)($meta_title ?? $default_meta_title));
$meta_description = trim((string)($meta_description ?? $default_meta_description));
$meta_keywords = trim((string)($meta_keywords ?? $default_meta_keywords));
$canonical_url = trim((string)($canonical_url ?? ''));

if ($meta_title === '') {
    $meta_title = $default_meta_title;
}

if ($meta_description === '') {
    $meta_description = $default_meta_description;
}

if ($meta_keywords === '') {
    $meta_keywords = $default_meta_keywords;
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <!-- metas -->
    <meta charset="utf-8">
    <meta name="author" content="Website Design Templates">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="keywords" content="<?= htmlspecialchars($meta_keywords, ENT_QUOTES, 'UTF-8'); ?>">
    <meta name="description" content="<?= htmlspecialchars($meta_description, ENT_QUOTES, 'UTF-8'); ?>">

    <!-- title  -->
    <title><?= htmlspecialchars($meta_title, ENT_QUOTES, 'UTF-8'); ?></title>
    <?php if ($canonical_url !== ''): ?>
    <link rel="canonical" href="<?= htmlspecialchars($canonical_url, ENT_QUOTES, 'UTF-8'); ?>">
    <?php endif; ?>

    <!-- favicon -->
    <link rel="shortcut icon" href="<?= $base_url; ?>img/logos/favicon.png">
    <link rel="apple-touch-icon" href="<?= $base_url; ?>img/logos/apple-touch-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="72x72" href="<?= $base_url; ?>img/logos/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="<?= $base_url; ?>img/logos/apple-touch-icon-114x114.png">

    <!-- plugins -->
    <link rel="stylesheet" href="<?= $base_url; ?>css/plugins.css">


    <!-- quform css -->
    <link rel="stylesheet" href="<?= $base_url; ?>quform/css/base.css">

    <!-- scroll -->
    <link rel="stylesheet" href="<?= $base_url; ?>css/scrollbar.css">
    <link rel="stylesheet" href="<?= $base_url; ?>css/category-slider.css">

    <!-- theme core css -->
    <link href="<?= $base_url; ?>css/styles.css" rel="stylesheet">

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css" />
    <script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>

    <script>
        const baseUrl = "<?= $base_url ?>";
    </script>
</head>

