0
1
Fork 0
hedera-web-mindshore/pages/main/head.php

24 lines
514 B
PHP
Raw Normal View History

2016-07-22 20:00:27 +00:00
<?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 ())
2016-08-31 11:53:46 +00:00
echo "<meta name=\"{$row['name']}\" content=\"{$row['content']}\"/>\n\t\t";
2016-07-22 20:00:27 +00:00
$result->free ();
}
2016-10-11 14:45:10 +00:00
if (_DEV_MODE)
2016-09-27 19:31:46 +00:00
{
2016-10-11 14:45:10 +00:00
$url = 'http://localhost:8080';
$this->includeJs ("$url/webpack-dev-server.js");
$this->includeJs ("$url/build/hedera-web.js");
2016-09-27 19:31:46 +00:00
}
else
$this->includeJs ('build/hedera-web.js');
2016-07-22 20:00:27 +00:00