Ticket #1269: icons.2.patch

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

Slight tweak for the translations

  • 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>
    344 <?php
     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                    title="<?php echo t('Details for: $1', html_entities($show->channel->name)) ?>">
     347                    <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        }
    345354    if ($recgroup_cols)
    346355        echo "    <td class=\"-recgroup\">$show->recgroup</td>\n";
    347356?>