Ticket #1269: recorded_icons.patch

File recorded_icons.patch, 1.5 KB (added by Mark Edwards, 15 years ago)
  • themes/default/tv/recorded.php

     
    268275<?php
    269276        if (!$_SESSION['recorded_descunder'])
    270277            echo "\t<td>".$show->description."</td>\n";
    271 ?>
    272     <td><?php echo $show->channel->channum, ' - <nobr>', $show->channel->name ?></nobr></td>
     278        if (show_channel_icons === true) {
     279            if (!empty($show->channel->icon)) {
     280                ?><td><a href="<?php echo root ?>tv/channel/<?php echo $show->channel->chanid, '/', $list_starttime ?>"
     281                    onmouseover="return wstatus('<?php echo t('Details for') ?>: <?php echo preg_replace("/([\"'])/", '\\\$1', $show->channel->channum.' '.$show->channel->callsi$
     282                    onmouseout="return wstatus('')"><img src="<?php echo $show->channel->icon ?>" width="42"></a></td><?php
     283            } else {?>
     284                <td><?php echo $show->channel->channum, ' - <nobr>', $show->channel->name ?></nobr></td><?php
     285            }
     286        } else {?>
     287            <td><?php echo $show->channel->channum, ' - <nobr>', $show->channel->name ?></nobr></td><?php
     288        }?>
    273289    <td nowrap align="center"><?php echo $show->recgroup ?></td>
    274290    <td nowrap align="center"><?php echo strftime($_SESSION['date_recorded'], $show->starttime) ?></td>
    275291    <td nowrap><?php echo nice_length($show->length) ?></td>