function adminOptionPanelCreate() { $data = array(); $CSS = new ThemeCSS(); $Menu = new ThemeMenu(); $Blog = new ThemeBlog(); $Easing = new ThemeEasing(); $Fancybox = new ThemeFancybox(); $GoogleFont = new ThemeGoogleFont(); $WidgetArea = new ThemeWidgetArea(); $Background = new ThemeBackground(); $ResponsiveMode = new ThemeResponsiveMode($this->responsiveMode); $data['option'] = ThemeOption::getOptionObject(); $data['dictionary']['easingType'] = $Easing->easingType; $data['dictionary']['fancyboxTransitionType'] = $Fancybox->transitionType; $data['dictionary']['googleFont'] = $GoogleFont->unpack(); $data['dictionary']['fontStyle'] = $CSS->fontStyle; $data['dictionary']['fontWeight'] = $CSS->fontWeight; $data['dictionary']['page'] = get_pages(array('hierarchical' => 0)); $data['dictionary']['sortDirection'] = $Blog->sortDirection; $data['dictionary']['sortPostBlogField'] = $Blog->sortPostBlogField; $data['dictionary']['widgetArea-1'] = $WidgetArea->getWidgetAreaDictionary(true, false, false); $data['dictionary']['widgetAreaLocation-1'] = $WidgetArea->getWidgetAreaLocationDictionary(true, false, false); $data['dictionary']['widgetArea-2'] = $WidgetArea->getWidgetAreaDictionary(true, true, true); $data['dictionary']['widgetAreaLocation-2'] = $WidgetArea->getWidgetAreaLocationDictionary(true, true, true); $data['dictionary']['menu-1'] = $Menu->getMenuDictionary(true, false, false); $data['dictionary']['menu-2'] = $Menu->getMenuDictionary(true, true, true); $data['dictionary']['backgroundSize'] = $Background->backgroundSize; $data['dictionary']['backgroundRepeat'] = $Background->backgroundRepeat; $data['dictionary']['responsive'] = $ResponsiveMode->getDictionary(); $data['dictionary']['responsiveMedia'] = $ResponsiveMode->getMedia(); $data['dictionary']['user'] = get_users(); $Template = new ThemeTemplate($data, THEME_PATH_TEMPLATE . 'admin/admin.php'); echo $Template->output(); }