if (empty($theme_manifest['converted_to_css'])) { Styles::factory(fn_get_theme_path('[theme]', 'C'))->setStyle($_REQUEST['id'], $_REQUEST['status']); // Delete compiled CSS file fn_clear_cache('assets'); } else { $layout = Layout::instance(Registry::get('runtime.company_id'))->getDefault(); fn_set_notification('E', __('error'), __('theme_editor.error_theme_converted_to_css', array('[url]' => fn_url("customization.update_mode?type=theme_editor&status=enable&s_layout={$layout['layout_id']}")))); } } } if ($mode == 'update_dev_mode') { if (!empty($_REQUEST['dev_mode'])) { if (!empty($_REQUEST['state'])) { Development::enable($_REQUEST['dev_mode']); } else { Development::disable($_REQUEST['dev_mode']); } if ($_REQUEST['dev_mode'] == 'compile_check') { if (!empty($_REQUEST['state'])) { fn_set_notification('W', __('warning'), __('warning_store_optimization_dev', array('[link]' => fn_url('themes.manage')))); } else { fn_set_notification('W', __('warning'), __('warning_store_optimization_dev_disabled', array('[link]' => fn_url('themes.manage?ctpl')))); } } } exit; } return array(CONTROLLER_STATUS_OK, 'themes.manage'); } if ($mode == 'manage') { if (fn_allowed_for('ULTIMATE') && !Registry::get('runtime.company_id')) {