Ignore:
Timestamp:
Oct 22, 2010, 1:56:23 AM (14 years ago)
Author:
repie38
Message:

New admin panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Random_Header/admin/rh_admin.php

    r7134 r7330  
    22if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    33
    4 global $template;
     4global $template,$conf;
    55$me = get_plugin_data($plugin_id);
    66include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php');
     
    2323        }
    2424       
     25        $rhscreenshot=(file_exists(PHPWG_THEMES_PATH.$pwg_templateID . '/screenshot.png')) ? PHPWG_THEMES_PATH.$pwg_templateID . '/screenshot.png' : PHPWG_ROOT_PATH.'admin/themes/'.$conf['admin_theme'].'/images/missing_screenshot.png';
     26    $rhthemboxclass=($me->rh_config[$pwg_templateID]['selected_cat']!=0) ? 'themeDefault' : 'toto';     
     27       
    2528        $template->append('rhthemes', array(
    2629                                'CURRENT_THEME_NAME'=> $pwg_template,
     
    3235                                'HEAD_CSS'                      =>  $me->rh_config[$pwg_templateID]['head_css'],
    3336                                'IMG_CSS'                       =>  $me->rh_config[$pwg_templateID]['img_css'],
    34                                 'CATSELECTED'           =>  $me->rh_config[$pwg_templateID]['selected_cat']
     37                                'CATSELECTED'           =>  $me->rh_config[$pwg_templateID]['selected_cat'],
     38                                'SCREENSHOT_URL'        =>      $rhscreenshot,
     39                                'THEMEBOXCLASS'         =>      $rhthemboxclass
    3540                                ));
    3641}
Note: See TracChangeset for help on using the changeset viewer.