Ticket #6011: mythweb.genre.colors.diff

File mythweb.genre.colors.diff, 7.7 KB (added by wagabunda, 15 years ago)
  • includes/config.php

     
    9696if (!isset($_SESSION['recorded_paging']))
    9797    $_SESSION['recorded_paging'] = null;
    9898
     99if (!isset($_SESSION['genre_colors']))
     100    $_SESSION['genre_colors'] = 1;
     101
    99102// The following constants are defined for the videos page
    100103
    101104if (!isset($_SESSION['show_video_covers']))
  • includes/css.php

     
    1818/**/
    1919    function category_class(&$item) {
    2020        $css_class =array();
     21    // Disable categories colorization
     22        if (isset($_SESSION['genre_colors'])
     23                  && $_SESSION['genre_colors'] == 0) {
     24            $css_class[] = $cache[$category] = 'cat_Unknown';
     25            return $css_class[0];
     26        }
    2127    // Recording classes?
    2228        $css_class[] = recstatus_class($item);
    2329    // Category type?
  • modules/mythweb/set_defaults.php

     
    1616// Save?
    1717    if ($_POST['save']) {
    1818    // Some global mythweb settings
    19         $_SESSION['prefer_channum']     = setting('WebPrefer_Channum', null, $_POST['prefer_channum'] ? 1 : 0);
    20         $_SESSION['show_popup_info']    = $_POST['show_popup_info']    ? 1 : 0;
    21         $_SESSION['show_channel_icons'] = $_POST['show_channel_icons'] ? 1 : 0;
    22         $_SESSION['sortby_channum']     = $_POST['sortby_channum']     ? 1 : 0;
    23         $_SESSION['show_video_covers']  = $_POST['show_video_covers']  ? 1 : 0;
     19        $_SESSION['prefer_channum']      = setting('WebPrefer_Channum', null, $_POST['prefer_channum'] ? 1 : 0);
     20        $_SESSION['show_popup_info']     = $_POST['show_popup_info']     ? 1 : 0;
     21        $_SESSION['show_channel_icons']  = $_POST['show_channel_icons']  ? 1 : 0;
     22        $_SESSION['sortby_channum']      = $_POST['sortby_channum']      ? 1 : 0;
     23        $_SESSION['genre_colors'] = $_POST['genre_colors'] ? 1 : 0;
     24        $_SESSION['show_video_covers']   = $_POST['show_video_covers']   ? 1 : 0;
    2425    }
    2526
    2627// These settings are limited to MythWeb itself
  • modules/mythweb/tmpl/default/set_defaults.php

     
    4242               <?php if ($_SESSION['sortby_channum']) echo ' CHECKED'; ?>></td>
    4343</tr>
    4444<tr>
     45    <th><?php echo t('genre_colors'); ?>:</th>
     46    <td><input class=radio" type="checkbox" name="genre_colors"
     47               title="<?php echo t('genre_colors'); ?>"
     48               <?php if ($_SESSION['genre_colors']) echo ' CHECKED'; ?>></td>
     49</tr>
     50<tr>
    4551    <th><?php echo t('show_video_covers'); ?>:</th>
    4652    <td><input class=radio" type="checkbox" name="show_video_covers"
    4753               title="<?php echo t('show_video_covers'); ?>"
  • modules/_shared/lang/English_GB.lang

     
    262262"generic_time"
    263263    %I:%M %p
    264264"Genre"
     265"genre_colors"
    265266"Genres"
    266267"Go"
    267268"Google"
  • modules/_shared/lang/Catalan.lang

     
    367367    %I:%M %p
    368368"Genre"
    369369    Genere
     370"genre_colors"
    370371"Genres"
    371372"Go"
    372373    Anar
  • modules/_shared/lang/Spanish.lang

     
    440440    %I:%M %p
    441441"Genre"
    442442    Género
     443"genre_colors"
    443444"Genres"
    444445"Go"
    445446    Ir
  • modules/_shared/lang/French.lang

     
    321321"generic_time"
    322322    %I:%M %p
    323323"Genre"
     324"genre_colors"
    324325"Genres"
    325326"Go"
    326327    Go
  • modules/_shared/lang/Swedish.lang

     
    446446    %H:%M
    447447"Genre"
    448448    Genre
     449"genre_colors"
    449450"Genres"
    450451    Genrer
    451452"Go"
  • modules/_shared/lang/Danish.lang

     
    362362    %H:%M
    363363"Genre"
    364364    Genre
     365"genre_colors"
    365366"Genres"
    366367"Go"
    367368    GÃ¥
  • modules/_shared/lang/Dutch.lang

     
    355355    %H:%M
    356356"Genre"
    357357    Genre
     358"genre_colors"
    358359"Genres"
    359360"Go"
    360361    Doorgaan
  • modules/_shared/lang/German.lang

     
    462462    %H:%M
    463463"Genre"
    464464    Genre
     465"genre_colors"
    465466"Genres"
    466467    Genre
    467468"Go"
  • modules/_shared/lang/Japanese.lang

     
    356356    %I:%M %p
    357357"Genre"
    358358    ゞャンル
     359"genre_colors"
    359360"Genres"
    360361"Go"
    361362    移動
  • modules/_shared/lang/English.lang

     
    257257"generic_time"
    258258    %I:%M %p
    259259"Genre"
     260"genre_colors"
     261    Display Genre Colors
    260262"Genres"
    261263"Go"
    262264"Google"
  • modules/_shared/lang/Czech.lang

     
    289289"generic_time"
    290290    %I:%M %p
    291291"Genre"
     292"genre_colors"
    292293"Genres"
    293294"Go"
    294295"Google"
  • modules/_shared/lang/Finnish.lang

     
    490490    %I:%M %p
    491491"Genre"
    492492    Lajityyppi
     493"genre_colors"
    493494"Genres"
    494495    Lajityypit
    495496"Go"
  • modules/_shared/lang/Polish.lang

     
    332332"generic_time"
    333333    %H:%M %p
    334334"Genre"
     335"genre_colors"
     336    WyróŌniaj gatunki kolorami
    335337"Genres"
    336338"Go"
    337339    Idź
     
    767769"show_channel_icons"
    768770"show_popup_info"
    769771"show_video_covers"
     772    Pokazuj okładki filmów
    770773"Showing all programs from the $1 group."
    771774"Showing all programs."
    772775"Showings between"
  • modules/_shared/lang/Slovenian.lang

     
    472472    %H:%M
    473473"Genre"
    474474    Åœanr
     475"genre_colors"
    475476"Genres"
    476477    Åœanri
    477478"Go"