Commit: c2674bd25f3bb488bb181a59a40a09a996b8eb69

Author: Matthew Harris | Date: 2009-11-01 13:34:49 -0800
Updating templates to use new view syntax.
diff --git a/views/browser/index.html.php b/views/browser/index.html.php index ca10019..8e8a974 100644 --- a/views/browser/index.html.php +++ b/views/browser/index.html.php @@ -2,6 +2,6 @@ <ul class="libraries"> <?php foreach ($libraries as $name => $config) { ?> <?php $display = ucwords(str_replace('_', ' ', $name)); ?> - <li><?=@$this->html->link($display, "docs/{$name}"); ?></li> + <li><?php echo $this->html->link($display, "docs/{$name}"); ?></li> <?php } ?> </ul> diff --git a/views/browser/view.html.php b/views/browser/view.html.php index b6d0444..5bce6c7 100644 --- a/views/browser/view.html.php +++ b/views/browser/view.html.php @@ -26,7 +26,7 @@ <ul class="children"> <?php foreach ($object['children'] as $class) { ?> <?php $parts = explode('\\', $class); ?> - <li><?=@$this->html->link(end($parts), 'docs/' . str_replace('\\', '/', $class)); ?></li> + <li><?php echo $this->html->link(end($parts), 'docs/' . str_replace('\\', '/', $class)); ?></li> <?php } ?> </ul> <?php } ?> @@ -35,7 +35,7 @@ <?php $parent = $object['parent']; ?> <h4>Parent class</h4> <span class="parent"> - <?=@$this->html->link($parent, 'docs/' . str_replace('\\', '/', $parent)); ?> + <?php echo $this->html->link($parent, 'docs/' . str_replace('\\', '/', $parent)); ?> </span> <?php } ?> @@ -44,7 +44,7 @@ <ul class="subclasses"> <?php foreach ($object['subClasses'] as $class) { ?> <?php $url = 'docs/' . str_replace('\\', '/', $class); ?> - <li><?=@$this->html->link($class, $url); ?></li> + <li><?php echo $this->html->link($class, $url); ?></li> <?php } ?> </ul> <?php } ?> @@ -62,7 +62,7 @@ <h4>Properties</h4> <ul class="properties"> <?php foreach ($object['properties'] as $name => $value) { ?> - <li><?=@$this->html->link($name, "docs/{$curPath}::\${$name}"); ?></li> + <li><?php echo $this->html->link($name, "docs/{$curPath}::\${$name}"); ?></li> <?php } ?> </ul> <?php } ?> @@ -71,7 +71,7 @@ <h4>Methods</h4> <ul class="methods"> <?php foreach ($object['methods'] as $method) { ?> - <li><?=@$this->html->link($method->name, "docs/{$curPath}::{$method->name}()"); ?></li> + <li><?php echo $this->html->link($method->name, "docs/{$curPath}::{$method->name}()"); ?></li> <?php } ?> </ul> <?php } ?> @@ -100,7 +100,7 @@ <h4>Related</h4> <ul class="related"> <?php foreach ((array)$object['info']['tags']['see'] as $name) { ?> - <li><?=@$this->html->link($name, 'docs/' . str_replace('\\', '/', $name)); ?></li> + <li><?php echo$this->html->link($name, 'docs/' . str_replace('\\', '/', $name)); ?></li> <?php } ?> </ul> <?php } ?> diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index 741da96..aab5658 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -9,14 +9,14 @@ <!doctype html> <html> <head> - <?=@$this->html->charset(); ?> - <title>Lithium API <?=@$this->title(); ?></title> - <?=@$this->html->link('Icon', 'http://li3.rad-dev.org/favicon.png', array('type' => 'icon')); ?> - <?=@$this->html->style(array( + <?php echo $this->html->charset(); ?> + <title>Lithium API <?php echo $this->title(); ?></title> + <?php echo $this->html->link('Icon', 'http://li3.rad-dev.org/favicon.png', array('type' => 'icon')); ?> + <?php echo $this->html->style(array( 'http://li3.rad-dev.org/css/li3.css', 'http://li3.rad-dev.org/css/li3.docs.css' )); ?> - <?=@$this->scripts(); ?> + <?php echo $this->scripts(); ?> </head> <body <?php echo (!empty($apiNavigation)) ? 'class="side-navigation"' : null ; ?>> <div id="container"> @@ -42,7 +42,7 @@ </div> </div> <div <?php echo !empty($constrained) ? 'class="width-constraint"' : null; ?>> - <h1><?=@$this->html->link('Lithium', '/'); ?></h1> + <h1><?php echo $this->html->link('Lithium', '/'); ?></h1> </div> </div> @@ -53,8 +53,8 @@ </div> </div> <div class="article"> - <h1><?=@$this->html->link('API', '/docs');?></h1> - <?=@$this->content();?> + <h1><?php echo $this->html->link('API', '/docs');?></h1> + <?php echo $this->content();?> </div> </div> <div id="footer-spacer"></div> @@ -62,7 +62,7 @@ <div class="footer" id="site-footer"> <p class="copyright">Pretty much everything is &copy; 2009 and beyond, the Union of Rad</p> </div> -<?=@$this->html->script(array( +<?php echo $this->html->script(array( 'http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js', 'http://li3.rad-dev.org/js/li3.js', 'http://li3.rad-dev.org/js/cli.js',