Exemplo n.º 1
0
<?php

blocks::open();
blocks::title(Kohana::lang('ui_main.official_news'));
?>
<table class="table-list">
	<thead>
		<tr>
			<th scope="col"><?php 
echo Kohana::lang('ui_main.title');
?>
</th>
			<th scope="col"><?php 
echo Kohana::lang('ui_main.source');
?>
</th>
			<th scope="col"><?php 
echo Kohana::lang('ui_main.date');
?>
</th>
		</tr>
	</thead>
	<tbody>
	<?php 
if ($feeds->count() != 0) {
    foreach ($feeds as $feed) {
        $feed_id = $feed->id;
        $feed_title = text::limit_chars($feed->item_title, 40, '...', True);
        $feed_link = $feed->item_link;
        $feed_date = date('M j Y', strtotime($feed->item_date));
        $feed_source = text::limit_chars($feed->feed->feed_name, 15, "...");
<?php

blocks::open("reports");
//blocks::title(Kohana::lang('ui_main.reports_listed'));
?>
		<?php 
if ($total_items == 0) {
    ?>
			<div><?php 
    echo Kohana::lang('ui_main.no_reports');
    ?>
</div>
			<?php 
}
$i = 0;
foreach ($incidents as $incident) {
    $incident_id = $incident->id;
    $incident_title = text::limit_chars($incident->incident_title, 40, '...', True);
    $incident_date = $incident->incident_date;
    $incident_date = date('j M Y', strtotime($incident->incident_date));
    $incident_location = $incident->location->location_name;
    $incident_category = $incident->category->current() ? $incident->category->current()->category_title : '';
    $incident_video = false;
    if (isset($incident_videos[$incident_id][0])) {
        $incident_video = $incident_videos[$incident_id][0]['thumb'] ? $incident_videos[$incident_id][0]['thumb'] : $video_embed->thumb($incident_videos[$incident_id][0]['link']);
    } elseif (isset($incident_photos[$incident_id][0])) {
        $incident_video = $incident_photos[$incident_id][0]['thumb'] ? $incident_photos[$incident_id][0]['thumb'] : FALSE;
    }
    if ($incident_video) {
        ?>
		<div class="report <?php 
Exemplo n.º 3
0
<?php

blocks::open("news");
blocks::title(Kohana::lang('ui_main.official_news'));
?>
<table class="table-list">
	<thead>
		<tr>
			<th scope="col"><?php 
echo Kohana::lang('ui_main.title');
?>
</th>
			<th scope="col"><?php 
echo Kohana::lang('ui_main.source');
?>
</th>
			<th scope="col"><?php 
echo Kohana::lang('ui_main.date');
?>
</th>
		</tr>
	</thead>
	<tbody>
		<?php 
if ($feeds->count() != 0) {
    foreach ($feeds as $feed) {
        $feed_id = $feed->id;
        $feed_title = text::limit_chars($feed->item_title, 40, '...', True);
        $feed_link = $feed->item_link;
        $feed_date = date('M j Y', strtotime($feed->item_date));
        $feed_source = text::limit_chars($feed->feed->feed_name, 15, "...");