22 lines
480 B
PHP
Executable File
22 lines
480 B
PHP
Executable File
<?php
|
|
|
|
use Vn\Lib\Locale;
|
|
|
|
echo '<meta name="content-language" content="'. Locale::get () .'"/>'."\n\t\t";
|
|
|
|
if ($result = $db->query ('SELECT name, content FROM metatag'))
|
|
{
|
|
while ($row = $result->fetch_assoc ())
|
|
echo "<meta name=\"{$row['name']}\" content=\"{$row['content']}\"/>\n\t\t";
|
|
|
|
$result->free ();
|
|
}
|
|
|
|
$url = _DEV_MODE ? 'http://localhost:8080' : '.';
|
|
|
|
if (_DEV_MODE)
|
|
$this->includeJs ("$url/webpack-dev-server.js");
|
|
|
|
$this->includeJs ("$url/build/hedera-web.js");
|
|
|