_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
|
@@ 81-93 (lines=13) @@
|
78 |
|
echo '</noscript>'; |
79 |
|
} |
80 |
|
|
81 |
|
function jetpack_menu_order( $menu_order ) { |
82 |
|
$jp_menu_order = array(); |
83 |
|
|
84 |
|
foreach ( $menu_order as $index => $item ) { |
85 |
|
if ( $item != 'jetpack' ) |
86 |
|
$jp_menu_order[] = $item; |
87 |
|
|
88 |
|
if ( $index == 0 ) |
89 |
|
$jp_menu_order[] = 'jetpack'; |
90 |
|
} |
91 |
|
|
92 |
|
return $jp_menu_order; |
93 |
|
} |
94 |
|
|
95 |
|
// Render the configuration page for the module if it exists and an error |
96 |
|
// screen if the module is not configurable |
class.jetpack.php 1 location
|
@@ 3070-3084 (lines=15) @@
|
3067 |
|
return true; |
3068 |
|
} |
3069 |
|
|
3070 |
|
function jetpack_menu_order( $menu_order ) { |
3071 |
|
$jp_menu_order = array(); |
3072 |
|
|
3073 |
|
foreach ( $menu_order as $index => $item ) { |
3074 |
|
if ( $item != 'jetpack' ) { |
3075 |
|
$jp_menu_order[] = $item; |
3076 |
|
} |
3077 |
|
|
3078 |
|
if ( $index == 0 ) { |
3079 |
|
$jp_menu_order[] = 'jetpack'; |
3080 |
|
} |
3081 |
|
} |
3082 |
|
|
3083 |
|
return $jp_menu_order; |
3084 |
|
} |
3085 |
|
|
3086 |
|
function admin_head() { |
3087 |
|
if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |