Example #1
0
<h1>Here we'll show the a different page</h1>
<h3>Maybe we'll show a little about ourself</h3>
<?php 
contentBlock('db_info');
Example #2
0
<!-- Due to how Lunor works we only inlcude the body contents of our website here -->
<!-- this is simply the template for our website -->
<div id="container">
	<?php 
contentBlock('header');
?>
	<div id="content">
		<?php 
triggerContent();
?>
	</div>
	<?php 
contentBlock('footer');
?>
</div>

Example #3
0
<?php

/* add in custom route */
Routing::custom('lunor', function ($extra) {
    if (isset($_POST['type']) && !empty($_POST['type'])) {
        $type = $_POST['type'];
        $return['sucess'] = false;
        switch ($type) {
            case 'content_block':
                contentBlock($_POST['content_block']);
                break;
            case 'contactus':
                EmailUtil::fromContactUs($return);
                break;
            default:
                $return['error'] = 'Invalid Type.';
                break;
        }
        echo json_encode($return);
        return true;
    }
    return false;
});
Example #4
0
<p>This has a priority of 3 and should display first even though registered second</p>
<?php 
contentBlock('log');
?>
<p>This is content added using a hook</p>