Ticket #1269: icons.patch

File icons.patch, 1.6 KB (added by Mark Edwards, 17 years ago)

corrected patch against 19289

  • modules/tv/tmpl/default/recorded.php

     
    339339                    .'>'.$show->subtitle.'</a>' ?></td>
    340340    <td class="x-programid"><?php echo $show->programid ?></td>
    341341    <td class="x-originalairdate"><?php echo $show->airdate ?></td>
    342     <td class="x-airdate"><?php echo strftime($_SESSION['date_recorded'], $show->starttime) ?></td>
    343     <td class="x-channum"><?php echo $show->channel->channum, ' - ', $show->channel->name ?></td>
     342    <td class="x-airdate"><?php echo strftime($_SESSION['date_recorded'], $show->starttime) ?></td><?php
     343        if ($_SESSION["show_channel_icons"] == true ) {
     344            if (!empty($show->channel->icon)) {
     345                ?><td><a href="<?php echo root ?>tv/channel/<?php echo $show->channel->chanid, '/', $list_starttime ?>"
     346                    onmouseover="return wstatus('<?php echo t('Details for') ?>: <?php echo preg_replace("/([\"'])/", '\\\$1', $show->channel->channum.' '.$show->channel->callsign) ?>')" 
     347                    onmouseout="return wstatus('')"><img src="<?php echo $show->channel->icon ?>" width="42"></a></td><?php
     348            } else {?>
     349                <td><?php echo $show->channel->channum, ' - <nobr>', $show->channel->name ?></nobr></td><?php
     350            }
     351        } else {?>
     352            <td class="x-channum"><?php echo $show->channel->channum, ' - ', $show->channel->name ?></td><?php
     353        }?>
    344354<?php
    345355    if ($recgroup_cols)
    346356        echo "    <td class=\"-recgroup\">$show->recgroup</td>\n";