Index: trunk/core/units/themes/themes_config.php =================================================================== diff -u -N -r8075 -r8080 --- trunk/core/units/themes/themes_config.php (.../themes_config.php) (revision 8075) +++ trunk/core/units/themes/themes_config.php (.../themes_config.php) (revision 8080) @@ -50,13 +50,23 @@ 'AutoClone' => true, 'ListSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %s'), - 'ItemSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %s'), + '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' => ''), @@ -67,6 +77,11 @@ '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'),