|
Revision 651, 0.9 kB
(checked in by aarkerio, 5 months ago)
|
|
Banners ans faqs
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | //die(debug($data)); |
|---|
| 3 | |
|---|
| 4 | echo $html->div('title_section', __('Last Podcasts', true)); |
|---|
| 5 | |
|---|
| 6 | foreach ($data as $val): |
|---|
| 7 | |
|---|
| 8 | $tmp = $html->div('news_title', $val['Podcast']['title']); |
|---|
| 9 | $tmp .= $html->div('news_date', $val['Podcast']['created']); |
|---|
| 10 | $tmp .= '<b>Author</b>: '.$html->link($val['User']['username'], '/blog/'.$val['User']['username']); |
|---|
| 11 | $tmp .= $html->div('news_body', $val['Podcast']['description']); |
|---|
| 12 | |
|---|
| 13 | $t = $html->link( |
|---|
| 14 | $html->image('static/headphones.gif', array('alt'=>'Download podcast', 'title'=>'Download podcast')), |
|---|
| 15 | '/files/podcasts/'.$val['Podcast']['filename'], null, null, false) .' '; |
|---|
| 16 | $t .= $html->link(__('Subscribe', true), '/podcasts/rss/'.$val['User']['username'].'.rss'); |
|---|
| 17 | $tmp .= $html->para(null,$t); |
|---|
| 18 | |
|---|
| 19 | echo $html->div('divblock', $tmp); |
|---|
| 20 | endforeach; |
|---|
| 21 | ?> |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | |
|---|