Skip to content

Commit 951c1cc

Browse files
committed
Some improvements
1 parent 515db17 commit 951c1cc

4 files changed

Lines changed: 19 additions & 17 deletions

File tree

inc/scripts/fns.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function parse_var($sContent)
4747
{
4848
$sContent = str_replace('{site_url}', RELATIVE, $sContent);
4949
$sContent = str_replace('{static_url}', STATIC_URL, $sContent);
50+
$sContent = str_replace('{lang}', LANG, $sContent);
5051
$sContent = str_replace('{tpl_name}', TPL, $sContent);
5152
$sContent = str_replace('{site_name}', SITE_NAME, $sContent);
5253
$sContent = str_replace('{page_name}', get_page_name(), $sContent);

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
get_page(ROOT_PATH . 'themes/' . TPL . '/tpl/header.tpl');
2222

23-
if(!empty($_GET['p']))
23+
if (!empty($_GET['p']))
2424
{
2525
$sPage = DATA_PATH . LANG . '/' . $_GET['p'] . '.tpl';
2626
get_page($sPage);

themes/base/tpl/footer.tpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
</article>
2-
</section>
3-
</div>
2+
</section>
3+
</div>
44
</div>
55

66
<footer>
77
{menu_langs}
8-
<p>By <a href="http://cool-on-web.com">cool on Web</a></p>
8+
<p>Powered by <strong><a href="http://github.com/pH-7/Nav-Doc-Script-V2" title="Free PHP Documentation Script">Nav Doc Script</a></strong>. <em>Proud to be open source!</em></p>
99
</footer>
1010

1111
</div>
1212

13-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
14-
<script src="{static_url}js/ajph.js"></script>
15-
</body>
13+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
14+
<script src="{static_url}js/ajph.js"></script>
15+
</body>
1616
</html>

themes/base/tpl/header.tpl

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="{lang}">
33
<head>
4-
<meta charset="utf-8" />
5-
<title>{page_name} - {site_name}</title>
6-
<link rel="stylesheet" href="{site_url}themes/{tpl_name}/css/common.css" />
7-
<link rel="stylesheet" href="{site_url}themes/{tpl_name}/css/js/ajph.css" />
4+
<meta charset="utf-8" />
5+
<title>{page_name} - {site_name}</title>
6+
<meta name="author" content="Pierre-Henry Soria" />
7+
<link rel="stylesheet" href="{site_url}themes/{tpl_name}/css/common.css" />
8+
<link rel="stylesheet" href="{site_url}themes/{tpl_name}/css/js/ajph.css" />
89
</head>
910

1011
<body>
1112
<div class="center" id="block">
1213

13-
<header>
14-
<h1><a id="logo" href="{site_url}" data-load="ajax">{site_name}</a></h1>
15-
</header>
14+
<header>
15+
<h1><a id="logo" href="{site_url}" data-load="ajax">{site_name}</a></h1>
16+
</header>
1617

17-
<div id="ajph">
18+
<div id="ajph">
1819
<div id="sub_ajph">
1920

20-
<section>
21+
<section>
2122
<article>

0 commit comments

Comments
 (0)