Ticket #9510: html_title.patch

File html_title.patch, 2.0 KB (added by Toby Speight <T.M.Speight.90@…>, 9 years ago)
  • /tmp/channel.php

    old new  
    1414/**/
    1515
    1616// Set the desired page title
    17     $page_title = 'MythWeb - '.t('Channel Detail');
     17    $channel_and_time = 'Channel '.$this_channel->channum.': '.$this_channel->callsign.' on '.strftime('%B %e, %Y', $_SESSION['list_time']);
     18    $page_title = 'MythWeb - '.$channel_and_time;
    1819
    1920// Custom headers
    2021    $headers[] = '<link rel="stylesheet" type="text/css" href="'.skin_url.'/tv_channel.css">';
     
    3132<?php   if ($_SESSION["show_channel_icons"] && !empty($this_channel->icon)) { ?>
    3233            <img src="<?php echo $this_channel->icon ?>">
    3334<?php   } ?>
    34         Channel <?php echo $this_channel->channum ?>:  <?php echo $this_channel->callsign ?> on <?php echo strftime('%B %e, %Y', $_SESSION['list_time']) ?>
     35        <?php echo $channel_and_time ?>
    3536    </div>
    3637    <table id="x-jumpto" class="commandbox commands" border="0" cellspacing="0" cellpadding="0">
    3738    <tr>
    3839        <td class="x-jumpto"><?php echo t('Jump To') ?>:</td>
    3940        <td class="x-hour"><?php channel_select('onchange="$(\'program_listing\').submit()"', $this_channel->chanid) ?></td>
    4041        <td class="x-day"><a href="<?php echo root_url ?>tv/channel/<?php echo $this_channel->chanid, '/', $_SESSION['list_time'] - (24 * 60 * 60) ?>"
     42                rel="prev" title="<?php echo strftime($_SESSION['date_channel_jump'], $_SESSION['list_time']-86400) ?>"
    4143                ><img src="<?php echo skin_url ?>img/left.gif" alt="<?php echo t('leftl'); ?>"></a>
    4244            <?php date_select('onchange="$(\'program_listing\').submit()"') ?>
    4345            <a href="<?php echo root_url ?>tv/channel/<?php echo $this_channel->chanid, '/', $_SESSION['list_time'] + (24 * 60 * 60) ?>"
     46                    rel="next" title="<?php echo strftime($_SESSION['date_channel_jump'], $_SESSION['list_time']+86400) ?>"
    4447                    ><img src="<?php echo skin_url ?>img/right.gif" alt="<?php echo t('right'); ?>"></a>
    4548            </td>
    4649    </tr>