@@ 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 | /** |
@@ 154-161 (lines=8) @@ | ||
151 | /** |
|
152 | * Determine the currently active theme. |
|
153 | */ |
|
154 | function minileven_actual_current_theme() { |
|
155 | $removed = remove_action( 'option_stylesheet', 'jetpack_mobile_stylesheet' ); |
|
156 | $stylesheet = get_option( 'stylesheet' ); |
|
157 | if ( $removed ) |
|
158 | add_action( 'option_stylesheet', 'jetpack_mobile_stylesheet' ); |
|
159 | ||
160 | return $stylesheet; |
|
161 | } |
|
162 | ||
163 | /* This function grabs the location of the custom menus from the current theme. If no menu is set in a location |
|
164 | * it will return a boolean "false". This function helps Minileven know which custom menu to display. */ |