1
difenduandada
2024-10-15 7fd2948ee35c8e147ed35ce6d8502f94a98ddd22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html <?php the_html_attrs() ?>>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <title><?php echo get_page_title() ?></title>
        <?php the_canonical_link() ?>
        <meta name="description" content="<?php echo substr(esc_string($meta_description), 0, 160) ?>">
        <?php
            if(isset($game)){ //Game page
                ?>
                <meta name="twitter:card" content="summary_large_image" />
                <meta name="twitter:title" content="<?php echo htmlspecialchars( $page_title )?>" />
                <meta name="twitter:description" content="<?php echo substr(esc_string($meta_description), 0, 200) ?>" />
                <?php
                if(isset($game->thumb_1)){
                    $thumb = $game->thumb_1;
                    if(substr($thumb, 0, 1) == '/'){
                        $thumb = DOMAIN . substr($thumb, 1);
                    }
                    echo('<meta name="twitter:image:src" content="'.$thumb.'">');
                    echo('<meta property="og:image" content="'.$thumb.'">');
                }
            }
        ?>
        <?php load_plugin_headers() ?>
        <!-- Google fonts-->
        <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css" />
        <link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="<?php echo DOMAIN . TEMPLATE_PATH; ?>/style/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo DOMAIN . TEMPLATE_PATH; ?>/style/jquery-comments.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo DOMAIN . TEMPLATE_PATH; ?>/style/user.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo DOMAIN . TEMPLATE_PATH; ?>/style/style.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo DOMAIN . TEMPLATE_PATH; ?>/style/custom.css" />
        <!-- Font Awesome icons (free version)-->
        <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
        <?php widget_aside('head') ?>
    </head>
    <body id="page-top">
        <!-- Navigation-->
        <div class="container site-container">
        <div class="site-content">
        <nav class="navbar navbar-expand-lg navbar-dark top-nav" id="mainNav">
            <div class="container">
                <button class="navbar-toggler navbar-toggler-left collapsed" type="button" data-toggle="collapse" data-target="#navb" aria-expanded="false">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <a class="navbar-brand js-scroll-trigger" href="<?php echo DOMAIN ?>"><img src="<?php echo DOMAIN . SITE_LOGO ?>" class="site-logo" alt="site-logo"></a>
                <?php include  TEMPLATE_PATH . "/parts/navigation-top.php" ?>
                <?php show_user_profile_header() ?>
            </div>
        </nav>
        <div class="nav-categories">
            <div class="container">
                <?php include  TEMPLATE_PATH . "/parts/navigation-categories.php" ?>
            </div>
        </div>