Skip to content

Instantly share code, notes, and snippets.

@ir-g
Created June 10, 2012 16:44
Show Gist options
  • Save ir-g/2906561 to your computer and use it in GitHub Desktop.
Save ir-g/2906561 to your computer and use it in GitHub Desktop.
Lite_CMS Paging system.
<html>
<head>
<title>Pages</title>
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Ubuntu:300:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})(); </script>
</head>
<body>
<a name="top">
<div id="top">
<?php include('z_top.htm'); ?>
</div>
<div class="container" style="font-family: 'Ubuntu';">
<?php
$linkno = (isset($_GET['link'])) ? $_GET['link'] : 0;
if (isset($linkno))
{
if (!$linkno) {
include('p_index.htm');
} else {
include('p_' . $linkno . '.htm');
}
}
else {
include('p_index.htm');
} ?>
</div>
<div id="footer">
<?php include('z_footer.htm'); ?>
<div>
</body>
</html>
Wow, do you want to go to more? Use the menu.:)
<p>Hi, this is lovely code with very low memory size.</p>
<br/>
<i>This is a lovely <a href="?link=about">link to another page</a>.</i>
This is from p_lol.htm
Yawnnnn!!!
<h1>Simple pages</h1>
<br/>
<a href="?link=index">Home</a>¦
<a href="?link=about">about</a>¦
<a href="?link=lol">Other</a>¦
<a href="?link=ok">another</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment