Exemplo n.º 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 
Exemplo n.º 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');
Exemplo n.º 4
0
<?php

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

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

Layout::input($context, 'string');
echo $context;
Exemplo n.º 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.';
}
Exemplo n.º 8
0
<?php

Layout::input($default, 'string', 'great success');
echo $default;
Exemplo n.º 9
0
<?php

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