calypsoify
2 years ago
carousel
2 years ago
cloudflare-analytics
4 years ago
comment-likes
5 years ago
comments
2 years ago
contact-form
1 year ago
custom-css
2 years ago
custom-post-types
2 years ago
geo-location
4 years ago
google-analytics
2 years ago
google-fonts
2 years ago
gravatar
6 years ago
infinite-scroll
2 years ago
likes
2 years ago
markdown
2 years ago
masterbar
2 years ago
memberships
2 years ago
photon-cdn
2 years ago
plugin-search
4 years ago
post-by-email
3 years ago
related-posts
2 years ago
scan
2 years ago
seo-tools
2 years ago
sharedaddy
2 years ago
shortcodes
2 years ago
simple-payments
3 years ago
site-icon
4 years ago
sitemaps
2 years ago
sso
2 years ago
stats
2 years ago
subscriptions
2 years ago
theme-tools
2 years ago
tiled-gallery
2 years ago
verification-tools
4 years ago
videopress
2 years ago
widget-visibility
2 years ago
widgets
2 years ago
woocommerce-analytics
2 years ago
wordads
2 years ago
wpcom-block-editor
2 years ago
wpcom-tos
5 years ago
blaze.php
2 years ago
carousel.php
2 years ago
comment-likes.php
2 years ago
comments.php
2 years ago
contact-form.php
2 years ago
copy-post.php
2 years ago
custom-content-types.php
4 years ago
custom-css.php
3 years ago
enhanced-distribution.php
2 years ago
geo-location.php
4 years ago
google-analytics.php
4 years ago
google-fonts.php
2 years ago
gravatar-hovercards.php
2 years ago
infinite-scroll.php
3 years ago
json-api.php
5 years ago
latex.php
4 years ago
likes.php
2 years ago
markdown.php
4 years ago
masterbar.php
2 years ago
module-extras.php
4 years ago
module-headings.php
2 years ago
module-info.php
2 years ago
monitor.php
2 years ago
notes.php
2 years ago
photon-cdn.php
2 years ago
photon.php
3 years ago
plugin-search.php
2 years ago
post-by-email.php
5 years ago
post-list.php
4 years ago
protect.php
3 years ago
publicize.php
2 years ago
related-posts.php
2 years ago
search.php
4 years ago
seo-tools.php
4 years ago
sharedaddy.php
2 years ago
shortcodes.php
2 years ago
shortlinks.php
2 years ago
sitemaps.php
4 years ago
sso.php
2 years ago
stats.php
2 years ago
subscriptions.php
2 years ago
theme-tools.php
3 years ago
tiled-gallery.php
4 years ago
vaultpress.php
2 years ago
verification-tools.php
5 years ago
videopress.php
4 years ago
waf.php
3 years ago
widget-visibility.php
4 years ago
widgets.php
3 years ago
woocommerce-analytics.php
2 years ago
wordads.php
2 years ago
wpgroho.js
6 years ago
masterbar.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Module Name: WordPress.com Toolbar and Dashboard customizations |
| 4 | * Module Description: Replaces the admin bar with a useful toolbar to quickly manage your site via WordPress.com. Also adds additional customizations to the WPAdmin dashboard experience for better compatibility with WP.com. |
| 5 | * Sort Order: 38 |
| 6 | * Recommendation Order: 16 |
| 7 | * First Introduced: 4.8 |
| 8 | * Requires Connection: Yes |
| 9 | * Requires User Connection: Yes |
| 10 | * Auto Activate: No |
| 11 | * Module Tags: General |
| 12 | * Additional Search Queries: adminbar, masterbar, colorschemes, profile-edit |
| 13 | * |
| 14 | * @package automattic/jetpack |
| 15 | */ |
| 16 | |
| 17 | namespace Automattic\Jetpack\Dashboard_Customizations; |
| 18 | |
| 19 | use Automattic\Jetpack\Status\Host; |
| 20 | |
| 21 | require __DIR__ . '/masterbar/masterbar/class-masterbar.php'; |
| 22 | require __DIR__ . '/masterbar/admin-color-schemes/class-admin-color-schemes.php'; |
| 23 | require __DIR__ . '/masterbar/inline-help/class-inline-help.php'; |
| 24 | |
| 25 | $should_use_nav_redesign = function_exists( 'wpcom_is_nav_redesign_enabled' ) && wpcom_is_nav_redesign_enabled(); |
| 26 | |
| 27 | if ( ! $should_use_nav_redesign ) { |
| 28 | new Masterbar(); |
| 29 | } |
| 30 | |
| 31 | new Admin_Color_Schemes(); |
| 32 | |
| 33 | if ( ( new Host() )->is_woa_site() ) { |
| 34 | new Inline_Help(); |
| 35 | require_once __DIR__ . '/masterbar/wp-posts-list/bootstrap.php'; |
| 36 | require_once __DIR__ . '/masterbar/profile-edit/bootstrap.php'; |
| 37 | require_once __DIR__ . '/masterbar/nudges/bootstrap.php'; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Whether to load the admin menu functionality. |
| 42 | * |
| 43 | * @use add_filter( 'jetpack_load_admin_menu_class', '__return_true' ); |
| 44 | * @module masterbar |
| 45 | * |
| 46 | * @since 9.3.0 |
| 47 | * |
| 48 | * @param bool $load_admin_menu_class Load Jetpack's custom admin menu functionality. Default to false. |
| 49 | */ |
| 50 | if ( ! $should_use_nav_redesign && apply_filters( 'jetpack_load_admin_menu_class', false ) ) { |
| 51 | require_once __DIR__ . '/masterbar/admin-menu/load.php'; |
| 52 | } |
| 53 |