Location: PHPKode > projects > Open Power Template > examples/Opt/layout/templates/layout.tpl
<?xml version="1.0" ?>
	<opt:prolog />
	<opt:dtd template="xhtml10transitional" />
	<title>OPT Layout example</title>

	<!-- an example, how to use opt:selector to create a dynamic CSS chooser -->
	<opt:selector name="css">
			<link rel="stylesheet" href="main.css" type="text/css" media="screen" />
			<link rel="stylesheet" href="text.css" type="text/css" media="screen" />
			<link rel="stylesheet" href="printable.css" type="text/css" media="print" />
			<link rel="stylesheet" parse:href="$css.file" type="text/css" />
<div id="header">
	<h1>Layout example</h1>
	<p>This example file shows, how to manage the more advanced layouts with OPT views
	and sections.</p>
	<p>Select a module:</p>
		<li><a href="index.php?cmd=1">Module A</a></li>
		<li><a href="index.php?cmd=2">Module B</a></li>
		<li><a href="index.php?cmd=3">Module C</a></li>
		<li><a href="index.php?cmd=4">Module A + C</a></li>
		<li><a href="index.php?cmd=5">Module A + B + C</a></li>
<div id="content">
	<opt:section name="modules">
		<opt:include from="modules">
			<p>We are sorry, but the requested view has not been found.</p>
<div id="footer">
	<p>Copyright &copy; Invenzzia Group 2009</p>
Return current item: Open Power Template