function loadMobileTheme() { global $amts_mobile_browser; $mobileTheme = $amts_mobile_browser; $themeList = custom_get_themelist(); foreach ($themeList as $theme) { if ($theme['Name'] == $mobileTheme) { return $theme['Template']; } } }
<?php $iphoneTheme = get_option('iphone_theme'); $ipadTheme = get_option('ipad_theme'); $androidTheme = get_option('android_theme'); $androidTabTheme = get_option('android_tab_theme'); $blackberryTheme = get_option('blackberry_theme'); $windowsTheme = get_option('windows_theme'); $operaTheme = get_option('opera_theme'); $palmTheme = get_option('parm_os_theme'); $otherTheme = get_option('other_theme'); $themeList = custom_get_themelist(); $themeNames = array_keys($themeList); $defaultTheme = wp_get_theme(); $defaultTheme = $defaultTheme->Name; natcasesort($themeNames); ?> <table class="wp-list-table widefat fixed bookmarks"> <thead> <tr> <th>Select Theme For Devices</th> </tr> </thead> <tbody> <tr> <td> <table class="form-table"> <tr valign="top"> <th scope="row">iPhone/iPod Touch Theme:</th>