_inc/lib/admin-pages/class.jetpack-landing-page.php 1 location
|
@@ 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' ); |
_inc/lib/admin-pages/class.jetpack-react-page.php 1 location
|
@@ 97-109 (lines=13) @@
|
94 |
|
echo '</noscript>'; |
95 |
|
} |
96 |
|
|
97 |
|
function jetpack_menu_order( $menu_order ) { |
98 |
|
$jp_menu_order = array(); |
99 |
|
|
100 |
|
foreach ( $menu_order as $index => $item ) { |
101 |
|
if ( $item != 'jetpack' ) |
102 |
|
$jp_menu_order[] = $item; |
103 |
|
|
104 |
|
if ( $index == 0 ) |
105 |
|
$jp_menu_order[] = 'jetpack'; |
106 |
|
} |
107 |
|
|
108 |
|
return $jp_menu_order; |
109 |
|
} |
110 |
|
|
111 |
|
// Render the configuration page for the module if it exists and an error |
112 |
|
// screen if the module is not configurable |
class.jetpack.php 1 location
|
@@ 3124-3138 (lines=15) @@
|
3121 |
|
return true; |
3122 |
|
} |
3123 |
|
|
3124 |
|
function jetpack_menu_order( $menu_order ) { |
3125 |
|
$jp_menu_order = array(); |
3126 |
|
|
3127 |
|
foreach ( $menu_order as $index => $item ) { |
3128 |
|
if ( $item != 'jetpack' ) { |
3129 |
|
$jp_menu_order[] = $item; |
3130 |
|
} |
3131 |
|
|
3132 |
|
if ( $index == 0 ) { |
3133 |
|
$jp_menu_order[] = 'jetpack'; |
3134 |
|
} |
3135 |
|
} |
3136 |
|
|
3137 |
|
return $jp_menu_order; |
3138 |
|
} |
3139 |
|
|
3140 |
|
function admin_head() { |
3141 |
|
if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |