Example #1
0
<?php

Layout::extend('layouts/master');
Layout::input($title, 'string');
Layout::input($body, 'Block');
$navigation = Part::block('parts/navigation');
<?php

Layout::input($title, 'string');
Layout::input($body, 'Block');
Layout::input($navigation, 'Block', new HtmlBlock());
Layout::input($style, 'Block', new HtmlBlock());
?>
<html>
	<head>
		<?php 
if (!$style->draw()) {
    Part::draw('parts/style');
}
?>
		<title>{{appName}} - <?php 
echo $title;
?>
</title> 
	</head>
	<body>
	<div class="container">
		<div class="span-24">
			<h1>{{appName}}</h1>
		</div>
		<div class="span-24 last">
			<div class="navigation">
			<?php 
echo $navigation;
?>
			</div>
			<?php 
Example #3
0
<?php

Layout::extend('layouts/master');
Layout::input($title, 'string');
Layout::input($body, 'Block');
Layout::input($scripts, 'Block', new HtmlBlock());
$title .= ' > Database > ';
$navigation = Part::block('layouts/navigation', 'Database');
Example #4
0
<?php

Layout::extend('layouts/master');
Layout::input($body, 'Block');
Layout::input($title, 'string');
$title .= ' > Home > ';
$navigation = Part::block('layouts/navigation', '');
Example #5
0
<?php

Layout::extend('middle.master');
Layout::input($string, 'string');
$string .= ' middle';
$number = 2;
Example #6
0
<?php

Layout::input($context, 'string');
echo $context;
Example #7
0
<?php

Layout::input($string, 'string');
Layout::input($int, 'int');
Layout::input($object, 'ReallyObnoxiousClass');
if ($string == 'foo' && $int == 1 && get_class($object) == 'ReallyObnoxiousClass') {
    echo 'great success';
} else {
    echo 'fail.';
}
Example #8
0
<?php

Layout::input($default, 'string', 'great success');
echo $default;
<?php

Layout::input($string, 'string');
Layout::input($number, 'int');
$string .= ' master';
for ($i = 0; $i < $number; $i++) {
    echo $string;
}