forked from verdnatura/hedera-web
24 lines
514 B
PHP
Executable File
24 lines
514 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 ();
|
|
}
|
|
|
|
if (_DEV_MODE)
|
|
{
|
|
$url = 'http://localhost:8080';
|
|
$this->includeJs ("$url/webpack-dev-server.js");
|
|
$this->includeJs ("$url/build/hedera-web.js");
|
|
}
|
|
else
|
|
$this->includeJs ('build/hedera-web.js');
|
|
|