@@ 223-235 (lines=13) @@ | ||
220 | ||
221 | // Render the configuration page for the module if it exists and an error |
|
222 | // screen if the module is not configurable |
|
223 | function render_nojs_configurable() { |
|
224 | echo '<div class="clouds-sm"></div>'; |
|
225 | echo '<div class="wrap configure-module">'; |
|
226 | ||
227 | $module_name = preg_replace( '/[^\da-z\-]+/', '', $_GET['configure'] ); |
|
228 | if ( Jetpack::is_module( $module_name ) && current_user_can( 'jetpack_configure_modules' ) ) { |
|
229 | Jetpack::admin_screen_configure_module( $module_name ); |
|
230 | } else { |
|
231 | echo '<h2>' . esc_html__( 'Error, bad module.', 'jetpack' ) . '</h2>'; |
|
232 | } |
|
233 | ||
234 | echo '</div><!-- /wrap -->'; |
|
235 | } |
|
236 | ||
237 | /* |
|
238 | * Build an array of Jump Start stats urls. |
@@ 114-127 (lines=14) @@ | ||
111 | // Render the configuration page for the module if it exists and an error |
|
112 | // screen if the module is not configurable |
|
113 | // @todo remove when real settings are in place |
|
114 | function render_nojs_configurable( $module_name ) { |
|
115 | $module_name = preg_replace( '/[^\da-z\-]+/', '', $_GET['configure'] ); |
|
116 | ||
117 | include_once( JETPACK__PLUGIN_DIR . '_inc/header.php' ); |
|
118 | echo '<div class="clouds-sm"></div>'; |
|
119 | echo '<div class="wrap configure-module">'; |
|
120 | ||
121 | if ( Jetpack::is_module( $module_name ) && current_user_can( 'jetpack_configure_modules' ) ) { |
|
122 | Jetpack::admin_screen_configure_module( $module_name ); |
|
123 | } else { |
|
124 | echo '<h2>' . esc_html__( 'Error, bad module.', 'jetpack' ) . '</h2>'; |
|
125 | } |
|
126 | ||
127 | echo '</div><!-- /wrap -->'; |
|
128 | } |
|
129 | ||
130 | function page_render() { |