@@ 130-142 (lines=13) @@ | ||
127 | return $module_name; |
|
128 | } |
|
129 | ||
130 | function jetpack_menu_order( $menu_order ) { |
|
131 | $jp_menu_order = array(); |
|
132 | ||
133 | foreach ( $menu_order as $index => $item ) { |
|
134 | if ( $item != 'jetpack' ) |
|
135 | $jp_menu_order[] = $item; |
|
136 | ||
137 | if ( $index == 0 ) |
|
138 | $jp_menu_order[] = 'jetpack'; |
|
139 | } |
|
140 | ||
141 | return $jp_menu_order; |
|
142 | } |
|
143 | ||
144 | function js_templates() { |
|
145 | Jetpack::init()->load_view( 'admin/landing-page-templates.php' ); |
@@ 55-67 (lines=13) @@ | ||
52 | $submenu['jetpack'][] = array( __( 'Settings', 'jetpack' ), 'jetpack_admin_page', $permalink ); |
|
53 | } |
|
54 | ||
55 | function jetpack_menu_order( $menu_order ) { |
|
56 | $jp_menu_order = array(); |
|
57 | ||
58 | foreach ( $menu_order as $index => $item ) { |
|
59 | if ( $item != 'jetpack' ) |
|
60 | $jp_menu_order[] = $item; |
|
61 | ||
62 | if ( $index == 0 ) |
|
63 | $jp_menu_order[] = 'jetpack'; |
|
64 | } |
|
65 | ||
66 | return $jp_menu_order; |
|
67 | } |
|
68 | ||
69 | // Render the configuration page for the module if it exists and an error |
|
70 | // screen if the module is not configurable |
@@ 3100-3114 (lines=15) @@ | ||
3097 | return true; |
|
3098 | } |
|
3099 | ||
3100 | function jetpack_menu_order( $menu_order ) { |
|
3101 | $jp_menu_order = array(); |
|
3102 | ||
3103 | foreach ( $menu_order as $index => $item ) { |
|
3104 | if ( $item != 'jetpack' ) { |
|
3105 | $jp_menu_order[] = $item; |
|
3106 | } |
|
3107 | ||
3108 | if ( $index == 0 ) { |
|
3109 | $jp_menu_order[] = 'jetpack'; |
|
3110 | } |
|
3111 | } |
|
3112 | ||
3113 | return $jp_menu_order; |
|
3114 | } |
|
3115 | ||
3116 | function admin_head() { |
|
3117 | if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |