Index: trunk/core/units/themes/themes_config.php =================================================================== diff -u -N --- trunk/core/units/themes/themes_config.php (revision 8402) +++ trunk/core/units/themes/themes_config.php (revision 0) @@ -1,104 +0,0 @@ - 'theme', - 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), - 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), - 'EventHandlerClass' => Array('class'=>'ThemesEventHandler','file'=>'themes_eh.php','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'ThemesTagProcessor','file'=>'themes_tag_processor.php','build_event'=>'OnBuild'), - 'AutoLoad' => true, - 'Hooks' => Array(), - 'QueryString' => Array( - 1 => 'id', - 2 => 'page', - 3 => 'event', - 4 => 'mode', - ), - - 'IDField' => 'ThemeId', - 'StatusField' => Array('Enabled', 'PrimaryTheme'), - - 'PermSection' => Array('main' => 'in-portal:configure_themes'), - - 'TitleField' => 'Name', - - 'TitlePresets' => Array ( - 'default' => Array ( - 'new_status_labels' => Array('theme' => '!la_title_Adding_Theme!'), - 'edit_status_labels' => Array('theme' => '!la_title_Editing_Theme!'), - 'new_titlefield' => Array('theme' => ''), - ), - - 'themes_list' => Array('prefixes' => Array('theme_List'), 'format' => "!la_title_Configuration! - !la_title_Themes! (#theme_recordcount#)"), - 'themes_edit_general' => Array('prefixes' => Array('theme'), 'format' => "#theme_status# '#theme_titlefield#' - !la_title_General!"), - 'themes_edit_files' => Array('prefixes' => Array('theme', 'theme-file_List'), 'format' => "#theme_status# '#theme_titlefield#' - !la_title_ThemeFiles! (#theme-file_recordcount#)"), - ), - - 'TableName' => TABLE_PREFIX.'Theme', - 'SubItems' => Array('theme-file'), - - 'FilterMenu' => Array( - 'Groups' => Array( - Array('mode' => 'AND', 'filters' => Array(0,1), 'type' => WHERE_FILTER), - ), - - 'Filters' => Array( - 0 => Array('label' =>'la_Enabled', 'on_sql' => '', 'off_sql' => '%1$s.Enabled != 1' ), - 1 => Array('label' => 'la_Disabled', 'on_sql' => '', 'off_sql' => '%1$s.Enabled != 0' ), - ) - ), - - 'AutoDelete' => true, - 'AutoClone' => true, - - 'ListSQLs' => Array ('' => ' SELECT %1$s.* %2$s - FROM %s - LEFT JOIN '.TABLE_PREFIX.'Stylesheets st ON st.StylesheetId = %1$s.StylesheetId'), - 'ItemSQLs' => Array ( '' => ' SELECT %1$s.* %2$s - FROM %s - LEFT JOIN '.TABLE_PREFIX.'Stylesheets st ON st.StylesheetId = %1$s.StylesheetId'), - - 'ListSortings' => Array ( - '' => Array( - 'Sorting' => Array('Name' => 'asc'), - ) - ), - - 'CalculatedFields' => Array ( - '' => Array ( - 'StyleName' => 'st.Name', - 'LastCompiled' => 'st.LastCompiled', - ), - ), - - 'Fields' => Array( - 'ThemeId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Name' => Array('type' => 'string','not_null' => 1, 'required' => 1, 'default' => ''), - 'Enabled' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array(1=>'la_Enabled', 0=>'la_Disabled'), 'use_phrases'=>1, 'not_null' => 1, 'default' => 1), - 'Description' => Array('type' => 'string','default' => null), - 'PrimaryTheme' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), - 'CacheTimeout' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'StylesheetId' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Stylesheets', 'option_key_field' => 'StylesheetId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), - ), - - 'VirtualFields' => Array ( - 'StyleName' => Array ('type' => 'string', 'default' => ''), - 'LastCompiled' => Array ('type' => 'int', 'default' => null), - ), - - 'Grids' => Array( - 'Default' => Array( - 'Icons' => Array('default'=>'icon16_custom.gif', '1_1' => 'icon16_theme_primary.gif', '1_0' => 'icon16_theme.gif', '0_0' => 'icon16_theme_disabled.gif'), - 'Fields' => Array( - 'ThemeId' => Array ('title' => 'la_col_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter'), - 'Name' => Array( 'title'=>'la_col_Name',), - 'Description' => Array( 'title'=>'la_col_Description', ), - 'Enabled' => Array( 'title'=>'la_col_Status', 'filter_block' => 'grid_options_filter'), -// 'PrimaryTheme' => Array( 'title'=>'la_col_Primary', 'filter_block' => 'grid_options_filter'), - ), - - ), - ), - ); - -?> \ No newline at end of file