-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php $this->load->view('global/_new_header.php', array('title' => 'Latest News')); ?> | ||
|
||
<h2>GetSparks.org Community News</h2> | ||
|
||
<p> | ||
<strong>News about sparks from blogs and other places. Want to announce | ||
something? Tweet <a href="http://twitter.com/getsparks">@getsparks</a>.</strong> | ||
</p> | ||
|
||
<table class="spark-table"> | ||
<thead> | ||
<tr> | ||
<th>Story</th> | ||
<th>Source</th> | ||
<th>Posted</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach($items as $item): ?> | ||
<tr> | ||
<td><a href="<?php echo $item->url ?>"><?php echo $item->title ?></a></td> | ||
<td><?php echo parse_url($item->url, PHP_URL_HOST) ?></td> | ||
<td><?php echo date('F j, Y', strtotime($item->posted)); ?></td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
|
||
<?php $this->load->view('global/_new_footer.php'); ?> |