| @@ 86-91 (lines=6) @@ | ||
| 83 | return $template; |
|
| 84 | } |
|
| 85 | ||
| 86 | function wp_mobile_get_main_stylesheet() { |
|
| 87 | remove_action( 'option_stylesheet', 'jetpack_mobile_stylesheet' ); |
|
| 88 | $stylesheet = get_option( 'stylesheet' ); |
|
| 89 | add_action( 'option_stylesheet', 'jetpack_mobile_stylesheet' ); |
|
| 90 | return $stylesheet; |
|
| 91 | } |
|
| 92 | ||
| 93 | function jetpack_mobile_stylesheet( $theme ) { |
|
| 94 | /** |
|
| @@ 152-159 (lines=8) @@ | ||
| 149 | /** |
|
| 150 | * Determine the currently active theme. |
|
| 151 | */ |
|
| 152 | function minileven_actual_current_theme() { |
|
| 153 | $removed = remove_action( 'option_stylesheet', 'jetpack_mobile_stylesheet' ); |
|
| 154 | $stylesheet = get_option( 'stylesheet' ); |
|
| 155 | if ( $removed ) |
|
| 156 | add_action( 'option_stylesheet', 'jetpack_mobile_stylesheet' ); |
|
| 157 | ||
| 158 | return $stylesheet; |
|
| 159 | } |
|
| 160 | ||
| 161 | /* This function grabs the location of the custom menus from the current theme. If no menu is set in a location |
|
| 162 | * it will return a boolean "false". This function helps Minileven know which custom menu to display. */ |
|