PageRenderTime 34ms CodeModel.GetById 23ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/application/views/scripts/page/index.phtml

https://bitbucket.org/hamidrezas/melobit
Unknown | 29 lines | 27 code | 2 blank | 0 comment | 0 complexity | 81d366427fe91f542202e8059167d479 MD5 | raw file
Possible License(s): AGPL-1.0
 1<?php $this->layout()->setLayout('page'); ?>
 2
 3<h3>Featured Content</h3>
 4<?php
 5if ($this->featuredItems)
 6{
 7	foreach ($this->featuredItems as $page)
 8	{
 9		?>
10		<h4><a href="/page/open/id/<?php echo $page->id; ?>">
11			<?php echo $page->headline; ?>
12		</a></h4>
13		<img src="<?php echo $page->image; ?>" alt="<?php echo $page->headline; ?>" />
14		<p><?php echo $page->description; ?></p>
15		<br style="clear:left;" />
16		<?php
17	}
18}
19
20if ($this->recentPages) { ?>
21	<h4>More Pages</h4>
22	<ul>
23	<?php foreach ($this->recentPages as $page) { ?>
24	<li><a href="/page/open/id/<?php echo $page->id; ?>">
25		<?php echo $page->headline; ?>
26	</a></li>
27	<?php } ?>
28	</ul>
29<?php } ?>