Changeset 5123 for trunk/profile.php


Ignore:
Timestamp:
Mar 13, 2010, 1:00:52 AM (14 years ago)
Author:
plg
Message:

feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r5021 r5123  
    203203    $fields = array(
    204204      'nb_image_line', 'nb_line_page', 'language', 'maxwidth', 'maxheight',
    205       'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'template'
     205      'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'theme'
    206206      );
    207207
     
    258258      ));
    259259
    260   foreach (get_pwg_themes() as $pwg_template)
    261   {
    262     if (isset($_POST['submit'])
    263       or $userdata['template'].'/'.$userdata['theme'] == $pwg_template)
    264     {
    265       $template->assign('template_selection', $pwg_template);
    266     }
    267     $template_options[$pwg_template] = $pwg_template;
     260  foreach (get_pwg_themes() as $pwg_theme)
     261  {
     262    if (isset($_POST['submit']) or $userdata['theme'] == $pwg_theme)
     263    {
     264      $template->assign('template_selection', $pwg_theme);
     265    }
     266    $template_options[$pwg_theme] = $pwg_theme;
    268267  }
    269268  $template->assign('template_options', $template_options);
Note: See TracChangeset for help on using the changeset viewer.