root/trunk/app/views/podcasts/recent.ctp

Revision 674, 0.8 kB (checked in by aarkerio, 4 months ago)

New edublog layout

Line 
1<?php
2//die(debug($data));
3
4 echo $html->div('title_portal', __('Last Podcasts', true));
5
6foreach ($data as $val):
7    $tmp  =  $html->div('news_title', $val['Podcast']['title']);
8    $tmp .=  $html->div('news_date',  $val['Podcast']['created']);
9    $tmp .= '<b>Author</b>: '.$html->link($val['User']['username'], '/blog/'.$val['User']['username']);
10    $tmp .=  $html->div('news_body',  $val['Podcast']['description']);
11   
12    $t    =  $html->link(
13                        $html->image('static/headphones.gif', array('alt'=>'Download podcast', 'title'=>'Download podcast')),
14                        '/files/podcasts/'.$val['Podcast']['filename'], null, null, false) .'   ';
15    $t   .=  $html->link('Subscribe', '/podcasts/rss/'.$val['User']['username'].'.rss');
16    $tmp .=  $html->para(null,$t);
17
18    echo $html->div('divblock', $tmp);
19 endforeach;
20?>
21
22
23
Note: See TracBrowser for help on using the browser.