Example #1
0
require 'head.php';
?>
<body>
<?php 
// including the header of the document
require 'header.php';
// including the blog layout
?>
<div>
	<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <div class="demo-blog__posts mdl-grid">
         <?php 
include_once 'display/functions/otr.func.php';
for ($i = 0; $i < 4; $i++) {
    otr('View text', 'click to view content', 'entry');
}
include_once 'display/functions/amazing.func.php';
for ($i = 0; $i < 6; $i++) {
    amazing('View content', 'click to view the content', 'entry_login');
}
?>
 
        </div>
    <?php 
require 'footer.php';
?>
      </main>
      <!--<div class="mdl-layout__obfuscator"></div>-->
    </div>
</div>
Example #2
0
//includind the head tag
require 'head.php';
?>
<body>
<?php 
// including the header of the document
require 'header.php';
// including the blog layout
?>
<div>
	<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <div class="demo-blog__posts mdl-grid">
         <?php 
include_once 'display/functions/otr.func.php';
otr('hello', 'hello world', 'index.php');
include_once 'display/functions/amazing.func.php';
amazing('I couldn’t take any pictures but this was an amazing thing…', 'hello world', 'index.php');
include_once 'display/functions/shopping.func.php';
shopping('hello', 'hello world', 'index.php');
include_once 'display/next.nav.func.php';
next_nav('index.php');
?>
 
        </div>
    <?php 
require 'footer.php';
?>
      </main>
      <div class="mdl-layout__obfuscator"></div>
    </div>
Example #3
0
	<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <div class="demo-blog__posts mdl-grid">
         <?php 
include_once 'display/functions/get_image.func.php';
include_once 'display/functions/otr.func.php';
include_once 'display/functions/amazing.func.php';
$result = $connection->query("SELECT `id` FROM `notice` ORDER BY `dated` DESC");
$count = $result->num_rows;
if ($count == 0) {
    amazing('Oh a blank notice :-P', "Hey notice board here...searching for notices..catch u later", "#");
}
$i = 1;
while ($rows = $result->fetch_array()) {
    $notice = new notice($rows[0]);
    otr("{$notice->title}", "{$notice->bref}", "entry.php?ref=" . $rows[0], $notice->dated);
}
?>
 
        </div>
    <?php 
// including the footer
require 'footer.php';
?>
      </main>
    </div>
</div>
</body>
<?php 
// including the additional script
require 'script.php';