示例#1
0
function page_head($title)
{
    ini_set('session.save_path', realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
    session_start();
    ?>
<!DOCTYPE html>
<html lang="sk-SK">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="keywords" content="fll, lego, letna liga">
        <meta name="author" content="Chaos">
        <meta data-trans-title="<?php 
    echo $title;
    ?>
">
        <title><?php 
    echo $title;
    ?>
</title>
        <link rel="icon" href="favicon.ico" type="image/x-icon">
        <link type="text/css" href="css/styles.css" rel="stylesheet"> 
        <link type="text/css" href="css/dropdownmenu.css" rel="stylesheet">
	<link type="text/css" href="css/stylesMin.css" rel="stylesheet" media="(max-width:530px)"> 

	<script type="text/javascript" src="js/iframeresize.js" ></script>
        <script type="text/javascript" src="js/dropdownmenu.js" ></script>
        <script type="text/javascript" src="js/translator.js" ></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

    </head>

    <script>
        $(document).ready(function(){
            dict.translateElement();
        });
	
	window.onload =  function() {
            sendResizeRequest();
        };
    </script>

    <body>
    <div id="wrapper">
    <a href="."><h1 data-trans-key="main-header"></h1></a>
<?php 
    Image::setIcon("images/image.png");
    Video::setIcon("images/video.png");
    Program::setIcon("images/file.png");
}