Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git wp-content/plugins/mp6/css/admin-bar.css wp-content/plugins/mp6/css/admin-bar.css
- index 22026e4..5e66f97 100644
- --- wp-content/plugins/mp6/css/admin-bar.css
- +++ wp-content/plugins/mp6/css/admin-bar.css
- @@ -412,7 +412,6 @@
- color: #ccc;
- text-shadow: #444 0px -1px 0px;
- background-color: rgba( 255, 255, 255, 0 );
- - background-image: url('../../../../wp-includes/images/admin-bar-sprite.png?d=20120830');
- background-position: 3px 2px;
- background-repeat: no-repeat;
- border: none;
- @@ -478,6 +477,26 @@
- display: none;
- }
- +#wpadminbar #adminbarsearch .adminbar-input,
- +#wpadminbar #adminbarsearch .adminbar-search-input {
- + background-image: none !important;
- +}
- +
- +#wpadminbar #adminbarsearch:before {
- + font-family: 'dashicons';
- + font-size: 16pt;
- + content: '\f179';
- + text-shadow: none;
- + color: #aaa;
- + position: absolute;
- + left: 1px;
- +}
- +
- +#wpadminbar #adminbarsearch {
- + cursor: pointer;
- + position: relative;
- +}
- +
- /**
- * Site Menu
- */
- diff --git wp-content/plugins/mp6/mp6.php wp-content/plugins/mp6/mp6.php
- index 1155853..2e97dac 100644
- --- wp-content/plugins/mp6/mp6.php
- +++ wp-content/plugins/mp6/mp6.php
- @@ -144,4 +144,18 @@ function mp6_override_toolbar_margin() {
- }
- </style>
- <?php endif;
- -}
- \ No newline at end of file
- +}
- +
- +// Add click-through support for the adminbar search icon
- +add_action( 'wp_after_admin_bar_render', 'mp6_adminbar_search_icon' );
- +function mp6_adminbar_search_icon() {
- +?>
- +<script type="text/javascript">
- +;( function ( $ ) {
- + $( '#wpadminbar #adminbarsearch' ).on( 'click.mp6', function() {
- + $( '#wpadminbar #adminbarsearch .adminbar-search-input' ).focus();
- + });
- +})( jQuery );
- +</script>
- +<?php
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement