diff options
| author | Daniel Sutcliffe <dansut@users.sourceforge.net> | 2010-02-23 20:42:32 +0000 |
|---|---|---|
| committer | Daniel Sutcliffe <dansut@users.sourceforge.net> | 2010-02-23 20:42:32 +0000 |
| commit | 619b7b80c6ce5ddabc8f5b0bce1c0644f60a8c64 (patch) | |
| tree | 4330882b2e0133aa1d0310ea1469d1e9c6931f53 | |
| parent | 6bb124d85033417df2ab822d53a527d10e1cd8a4 (diff) | |
| download | themes-619b7b80c6ce5ddabc8f5b0bce1c0644f60a8c64.tar.gz themes-619b7b80c6ce5ddabc8f5b0bce1c0644f60a8c64.tar.bz2 themes-619b7b80c6ce5ddabc8f5b0bce1c0644f60a8c64.zip | |
Make kernel/default layout always be first tab in admin layout options
| -rw-r--r-- | BitThemes.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/BitThemes.php b/BitThemes.php index 653dacf..c67bf62 100644 --- a/BitThemes.php +++ b/BitThemes.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_themes/BitThemes.php,v 1.106 2010/02/11 09:46:05 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_themes/BitThemes.php,v 1.107 2010/02/23 20:42:32 dansut Exp $ * @package themes */ @@ -602,6 +602,12 @@ class BitThemes extends BitBase { $layouts[$module['layout']][$module['layout_area']][] = $module; } ksort( $layouts ); + // Take the default/kernel layout and make sure it is the first item in hash + if( ( count( $layouts ) > 1 ) && isset( $layouts['kernel'] ) ) { + $kernel_layout = $layouts['kernel']; + unset( $layouts['kernel'] ); + $layouts = array('kernel' => $kernel_layout) + $layouts; + } return $layouts; } |
