Changeset 3242959
- Timestamp:
- 02/19/2025 04:28:23 AM (11 months ago)
- Location:
- dashify
- Files:
-
- 82 added
- 5 edited
-
assets (added)
-
assets/banner-1544x500.png (added)
-
assets/banner-772x250.png (added)
-
assets/blueprints (added)
-
assets/blueprints/blueprint.json (added)
-
assets/icon-256x256.png (added)
-
assets/icon.svg (added)
-
assets/screenshot-1.png (added)
-
assets/screenshot-10.png (added)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.png (added)
-
assets/screenshot-5.png (added)
-
assets/screenshot-6.png (added)
-
assets/screenshot-7.png (added)
-
assets/screenshot-8.png (added)
-
assets/screenshot-9.png (added)
-
tags/1.3.11 (added)
-
tags/1.3.11/admin (added)
-
tags/1.3.11/admin/css (added)
-
tags/1.3.11/admin/css/dashify-dismissibles-styles.css (added)
-
tags/1.3.11/admin/css/dashify-order-styles.css (added)
-
tags/1.3.11/admin/css/dashify-table-styles.css (added)
-
tags/1.3.11/admin/css/util.css (added)
-
tags/1.3.11/admin/images (added)
-
tags/1.3.11/admin/images/calendar-svgrepo-com.svg (added)
-
tags/1.3.11/admin/images/chevron-right-double-svgrepo-com.svg (added)
-
tags/1.3.11/admin/images/chevron-right-svgrepo-com.svg (added)
-
tags/1.3.11/admin/images/cross-svgrepo-com.svg (added)
-
tags/1.3.11/admin/images/filter-svgrepo-com.svg (added)
-
tags/1.3.11/admin/images/search-svgrepo-com.svg (added)
-
tags/1.3.11/admin/images/star-angle-svgrepo-com.svg (added)
-
tags/1.3.11/admin/js (added)
-
tags/1.3.11/admin/js/dashify-dismissibles-script.js (added)
-
tags/1.3.11/admin/js/dashify-order-script.js (added)
-
tags/1.3.11/admin/js/dashify-order-table-script.js (added)
-
tags/1.3.11/admin/js/dashify-screen-options-script.js (added)
-
tags/1.3.11/admin/js/dashify-table-script.js (added)
-
tags/1.3.11/admin/js/util.js (added)
-
tags/1.3.11/dashify.php (added)
-
tags/1.3.11/features (added)
-
tags/1.3.11/features/navigation (added)
-
tags/1.3.11/features/navigation/icons (added)
-
tags/1.3.11/features/navigation/icons/analytics.svg (added)
-
tags/1.3.11/features/navigation/icons/appearance.svg (added)
-
tags/1.3.11/features/navigation/icons/chevron-down.svg (added)
-
tags/1.3.11/features/navigation/icons/chevron-up.svg (added)
-
tags/1.3.11/features/navigation/icons/comments.svg (added)
-
tags/1.3.11/features/navigation/icons/credit-card.svg (added)
-
tags/1.3.11/features/navigation/icons/customers.svg (added)
-
tags/1.3.11/features/navigation/icons/dashboard.svg (added)
-
tags/1.3.11/features/navigation/icons/default.svg (added)
-
tags/1.3.11/features/navigation/icons/fibosearch.svg (added)
-
tags/1.3.11/features/navigation/icons/form.svg (added)
-
tags/1.3.11/features/navigation/icons/home.svg (added)
-
tags/1.3.11/features/navigation/icons/invoice.svg (added)
-
tags/1.3.11/features/navigation/icons/marketing.svg (added)
-
tags/1.3.11/features/navigation/icons/media.svg (added)
-
tags/1.3.11/features/navigation/icons/more.svg (added)
-
tags/1.3.11/features/navigation/icons/orders.svg (added)
-
tags/1.3.11/features/navigation/icons/pages.svg (added)
-
tags/1.3.11/features/navigation/icons/payments.svg (added)
-
tags/1.3.11/features/navigation/icons/plugins.svg (added)
-
tags/1.3.11/features/navigation/icons/posts.svg (added)
-
tags/1.3.11/features/navigation/icons/products.svg (added)
-
tags/1.3.11/features/navigation/icons/rank-math.svg (added)
-
tags/1.3.11/features/navigation/icons/scissors.svg (added)
-
tags/1.3.11/features/navigation/icons/settings.svg (added)
-
tags/1.3.11/features/navigation/icons/stripe.svg (added)
-
tags/1.3.11/features/navigation/icons/subscriptions.svg (added)
-
tags/1.3.11/features/navigation/icons/tools.svg (added)
-
tags/1.3.11/features/navigation/icons/users.svg (added)
-
tags/1.3.11/features/navigation/navigation.css (added)
-
tags/1.3.11/features/navigation/navigation.php (added)
-
tags/1.3.11/features/subscriptions (added)
-
tags/1.3.11/features/subscriptions/edit.css (added)
-
tags/1.3.11/features/subscriptions/edit.js (added)
-
tags/1.3.11/features/subscriptions/list.css (added)
-
tags/1.3.11/features/subscriptions/list.js (added)
-
tags/1.3.11/polyfill.php (added)
-
tags/1.3.11/readme.txt (added)
-
tags/1.3.11/settings.php (added)
-
trunk/admin/css/dashify-table-styles.css (modified) (1 diff)
-
trunk/dashify.php (modified) (3 diffs)
-
trunk/features/navigation/navigation.css (modified) (8 diffs)
-
trunk/features/navigation/navigation.php (modified) (15 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dashify/trunk/admin/css/dashify-table-styles.css
r3146619 r3242959 1139 1139 } 1140 1140 } 1141 1142 /* Compatibility fix for Admin Columns Pro by AdminColumns.com */ 1143 .acp-hts-wrapper .wp-list-table .order-view { 1144 /* Admin Columns Pro hides .order-view, but Dashify unhides it, so here 1145 we hide it again. */ 1146 display: none !important; 1147 } -
dashify/trunk/dashify.php
r3219356 r3242959 3 3 * Plugin Name: Dashify 4 4 * Description: A modern design and UI for the WooCommerce admin. Manage, search, and navigate orders faster. Make the WordPress admin dashboard ecommerce-focused. 5 * Version: 1.3.1 05 * Version: 1.3.11 6 6 * Author: Dashify 7 7 * License: GPLv2 or later … … 21 21 class Dashify_Base 22 22 { 23 const VERSION = '1.3.1 0';23 const VERSION = '1.3.11'; 24 24 25 25 // HPOS … … 516 516 'heading' => 'Improvements', 517 517 'content' => array( 518 'Setting to expand search and filter by default', 519 'Compatibility with Order Tags by 99w', 520 'Custom admin menu icons for several plugins' 521 ) 522 ), 523 array( 524 'heading' => 'Bug fixes', 525 'content' => array( 526 'Admin menu overlap and icons for Smash Balloon Social Photo Feed', 518 'More compatibility for Admin Menu Editor', 519 'Compatibility for Ultimate Dashboard', 527 520 ) 528 521 ), -
dashify/trunk/features/navigation/navigation.css
r3219356 r3242959 4 4 } 5 5 #adminmenuback { 6 background-color: #ebebeb ;6 background-color: #ebebeb !important; 7 7 width: 240px; 8 8 } 9 9 #adminmenuwrap { 10 background-color: #ebebeb ;10 background-color: #ebebeb !important; 11 11 width: 240px; 12 12 } … … 112 112 } 113 113 #dashify-navigation li:where( 114 :not(. admin-menu-editor-active):not(#toplevel_page_woocommerce),115 . admin-menu-editor-active114 :not(.dashify-has-admin-menu-editor-plugin):not(#toplevel_page_woocommerce), 115 .dashify-has-admin-menu-editor-plugin 116 116 ) { 117 117 padding: 0.4rem 0.5rem; … … 124 124 #dashify-navigation .wp-submenu:where( 125 125 :not(#toplevel_page_woocommerce ul), 126 #toplevel_page_woocommerce. admin-menu-editor-activeul126 #toplevel_page_woocommerce.dashify-has-admin-menu-editor-plugin ul 127 127 ) li { 128 128 margin-left: -0.5rem; … … 131 131 #dashify-navigation .wp-submenu.wp-submenu:where( 132 132 :not(#toplevel_page_woocommerce ul), 133 #toplevel_page_woocommerce. admin-menu-editor-activeul133 #toplevel_page_woocommerce.dashify-has-admin-menu-editor-plugin ul 134 134 ) li a { 135 135 padding-left: 1.5rem; … … 158 158 #dashify-navigation li:hover:not(.dashify-current):not(.dashify-has-open-submenu):not(.wp-menu-separator):where( 159 159 :not(#toplevel_page_woocommerce), 160 #toplevel_page_woocommerce. admin-menu-editor-active160 #toplevel_page_woocommerce.dashify-has-admin-menu-editor-plugin 161 161 ) { 162 162 background-color: #f1f1f1; … … 225 225 cursor: pointer; 226 226 } 227 .dashify-menu-heading { 227 .dashify-menu-heading, 228 .ame-menu-heading-item { 228 229 font-size: 0.75rem; 229 230 font-weight: normal; … … 264 265 265 266 /* Compatibility: Admin Menu Editor */ 267 266 268 li#toplevel_page_woocommerce .wp-menu-image { 267 269 background-image: none !important; … … 270 272 } 271 273 274 @media screen and (min-width: 783px) { 275 #wpadminbar { 276 margin-left: 0 !important; 277 width: 100% !important; 278 } 279 } 280 281 #dashify-navigation #ame_ms_admin_menu_logo { 282 background-size: contain; 283 background-repeat: no-repeat; 284 background-position: 41%; 285 background-origin: content-box; 286 min-height: 10px; 287 position: relative; 288 display: block; 289 box-sizing: content-box; 290 background-color: #1e1e1e !important; 291 height: 48px; 292 padding-left: 7px; 293 padding-top: 6px; 294 padding-bottom: 6px; 295 margin-bottom: 10px; 296 cursor: auto; 297 } 298 299 .ame-menu-heading-item { 300 margin-top: 1rem; 301 margin-bottom: 0.25rem; 302 } 303 304 .ame-menu-heading-item:hover { 305 background-color: inherit !important; 306 cursor: auto; 307 } 308 309 .ame-menu-heading-item .wp-menu-image { 310 display: none; 311 } 312 272 313 /* Compatibility: WPFactory */ 273 314 #toplevel_page_wpfactory .wp-menu-image { 274 315 background-size: contain; 275 316 } 317 318 /* Compatibility: Ultimate Dashboard (https://wordpress.org/plugins/ultimate-dashboard/) */ 319 @media screen and (min-width: 961px) { 320 .udb-admin-logo-wrapper { 321 position: inherit !important; 322 } 323 324 .udb-admin-logo-wrapper a { 325 box-sizing: content-box; 326 position: absolute; 327 height: 60px; 328 top: 0; 329 left: 0; 330 width: 160px; 331 margin-top: -32px; 332 padding: 10px 30px; 333 display: flex; 334 justify-content: center !important; 335 align-items: center; 336 border-radius: 0 !important; 337 } 338 339 .udb-admin-logo-wrapper .udb-admin-logo { 340 max-width: 100%; 341 max-height: 100%; 342 } 343 } -
dashify/trunk/features/navigation/navigation.php
r3219356 r3242959 65 65 }); 66 66 } 67 68 // Compatibility: Ultimate Dashboard (https://wordpress.org/plugins/ultimate-dashboard/) 69 const udbLogo = document.querySelector('.udb-admin-logo-wrapper'); 70 if (udbLogo) { 71 document.querySelector('#dashify-navigation > ul').appendChild(udbLogo); 72 } 73 74 // Compatibility: Admin Menu Editor (https://wordpress.org/plugins/admin-menu-editor/) 75 const ameLogo = document.querySelector('#ame_ms_admin_menu_logo') 76 const ameLogoImageURL = window.getComputedStyle(ameLogo).getPropertyValue('background-image'); 77 if (ameLogo) { 78 document.querySelector('#dashify-navigation > ul').prepend(ameLogo); 79 ameLogo.style.backgroundImage = ameLogoImageURL; 80 } 81 const ameMenuHeadingLinks = document.querySelectorAll('a.ame-menu-heading-item'); 82 if (ameMenuHeadingLinks) { 83 for (const a of ameMenuHeadingLinks) { 84 a.removeAttribute('href'); 85 } 86 } 67 87 </script> 68 88 HTML; … … 80 100 global $menu, $submenu, $self, $parent_file, $submenu_file, $plugin_page, $typenow; 81 101 82 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php' ) ) {102 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php' ) || is_plugin_active( 'admin-menu-editor-pro/menu-editor.php' ) ) { 83 103 global $wp_menu_editor; 84 104 if ( isset( $wp_menu_editor ) && $wp_menu_editor->load_custom_menu() ) { … … 87 107 } 88 108 109 if ( is_plugin_active( 'ultimate-dashboard-pro/ultimate-dashboard-pro.php' ) ) { 110 if ( $this->udb_admin_menu_editor_enabled() && class_exists( '\UdbPro\AdminMenu\Admin_Menu_Output' ) ) { 111 $UbdPro_Admin_Menu_Output = \UdbPro\AdminMenu\Admin_Menu_Output::get_instance(); 112 $UbdPro_Admin_Menu_Output::init(); 113 $UbdPro_Admin_Menu_Output->menu_output(); 114 } 115 } 116 117 $has_admin_menu_editor_plugin = $this->has_admin_menu_editor_plugin(); 89 118 $html = ''; 90 119 91 if ( ! is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {120 if ( ! $has_admin_menu_editor_plugin ) { 92 121 $menu[] = array( 93 122 'More', … … 229 258 230 259 // We moved this item out of the WooCommerce submenu and into the top level menu. 260 // We’re rendering the Settings menu item (or possibly the Payments menu item), and the user is on any settings page. 231 261 if ( strpos( $item[2], 'wc-settings' ) !== false && isset( $_GET['page'] ) && $_GET['page'] === 'wc-settings' ) { 232 // If we’re rendering the Payments menu item that links to the payment gateway settings233 // and the user is in the payment gateway settings.234 262 if ( strpos( $item[2], 'tab=checkout' ) !== false && isset( $_GET['tab'] ) && $_GET['tab'] === 'checkout' ) { 263 // If we’re rendering the Payments menu item that links to the payment gateway settings 264 // and the user is in the payment gateway settings, we want to highlight the Payments menu item. 235 265 $class[] = 'dashify-current'; 236 266 } else if ( strpos( $item[2], 'tab=checkout' ) === false && isset( $_GET['tab'] ) && $_GET['tab'] !== 'checkout' ) { 267 // If we’re rending any menu item other than Payments and the user is on a tab other 268 // than the payment methods settings, we want to highlight the Settings menu item. 269 $class[] = 'dashify-current'; 270 } else if ( strpos( $item[2], 'tab=checkout' ) === false && ! isset( $_GET['tab'] ) ) { 271 // If we’re rendering any menu item other than Payments and there is no tab set in the URL, 272 // which means they clicked directly on the Settings menu item and are viewing the General settings, 273 // we want to highlight the Settings menu item. 237 274 $class[] = 'dashify-current'; 238 275 } … … 248 285 } 249 286 250 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {251 $class[] = ' admin-menu-editor-active';287 if ( $has_admin_menu_editor_plugin ) { 288 $class[] = 'dashify-has-admin-menu-editor-plugin'; 252 289 } 253 290 … … 265 302 266 303 if ( str_contains( $class, 'wp-menu-separator' ) ) { 267 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {304 if ( $has_admin_menu_editor_plugin ) { 268 305 $is_separator = true; 269 306 } else { … … 303 340 // index.php = Dashboard menu item 304 341 $heading = ''; 305 if ( ! is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {342 if ( ! $has_admin_menu_editor_plugin ) { 306 343 $heading = $item[2] === 'index.php' ? '<span class="dashify-menu-heading">Site management</span>' : ''; 307 344 } … … 369 406 ) { 370 407 $admin_is_parent = true; 371 if ( $item[2] !== 'woocommerce' || is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {408 if ( $item[2] !== 'woocommerce' || $has_admin_menu_editor_plugin ) { 372 409 $style = $item[2] === 'meowapps-main-menu' ? 'style="padding-left: 24px;"' : ''; 373 410 $html .= " … … 392 429 "; 393 430 } 394 if ( ! empty( $submenu_items ) && ( $item[2] !== 'woocommerce' || is_plugin_active( 'admin-menu-editor/menu-editor.php' )) ) {431 if ( ! empty( $submenu_items ) && ( $item[2] !== 'woocommerce' || $has_admin_menu_editor_plugin ) ) { 395 432 $html .= ' 396 433 <img … … 440 477 441 478 if ( ! empty( $submenu_items ) ) { 442 if ( $item[2] === 'woocommerce' && ! is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {479 if ( $item[2] === 'woocommerce' && ! $has_admin_menu_editor_plugin ) { 443 480 $html .= "\n\t<ul class='wp-submenu wp-submenu-wrap'>"; 444 481 } else { … … 457 494 // We’ll skip these so they are not rendered. 458 495 $moved_submenu_items = array( 'wc-reports', 'wc-settings', 'wc-status', 'wc-admin&path=/extensions' ); 459 if ( in_array( $sub_item[2], $moved_submenu_items ) && ! is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {496 if ( in_array( $sub_item[2], $moved_submenu_items ) && ! $has_admin_menu_editor_plugin ) { 460 497 continue; 461 498 } … … 627 664 } 628 665 } 629 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php' )) {666 if ( $has_admin_menu_editor_plugin ) { 630 667 $icon = ''; 631 668 } … … 674 711 } 675 712 676 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php' ) ) {713 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php' ) || is_plugin_active( 'admin-menu-editor-pro/menu-editor.php' ) ) { 677 714 // $wp_menu_editor is a global from the beginning of this function. 678 715 if ( isset( $wp_menu_editor ) && $wp_menu_editor->load_custom_menu() ) { … … 685 722 686 723 public function move_woocommerce_to_top( $menu_order ) { 687 if ( is_plugin_active( 'admin-menu-editor/menu-editor.php') ) {724 if ( $this->has_admin_menu_editor_plugin() ) { 688 725 return $menu_order; 689 726 } … … 719 756 720 757 return $menu_order; 758 } 759 760 private function has_admin_menu_editor_plugin() { 761 return 762 is_plugin_active( 'admin-menu-editor/menu-editor.php' ) || 763 is_plugin_active( 'admin-menu-editor-pro/menu-editor.php' ) || 764 ( 765 is_plugin_active( 'ultimate-dashboard-pro/ultimate-dashboard-pro.php' ) && 766 $this->udb_admin_menu_editor_enabled() 767 ); 768 } 769 770 private function udb_admin_menu_editor_enabled() { 771 $udb_saved_modules = get_option( 'udb_modules' ); 772 return $udb_saved_modules && isset( $udb_saved_modules['admin_menu_editor'] ) && 'true' === $udb_saved_modules['admin_menu_editor']; 721 773 } 722 774 -
dashify/trunk/readme.txt
r3219356 r3242959 4 4 Requires at least: 4.7 5 5 Tested up to: 6.7 6 Stable tag: 1.3.1 06 Stable tag: 1.3.11 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 84 84 - Smash Balloon Social Photo Feed — Smash Balloon 85 85 - FiboSearch — FiboSearch Team 86 - Ultimate Dashboard — David Vongries 86 87 87 88 If you find a plugin that’s not compatible, leave a message in the [WordPress.org support forum](https://wordpress.org/support/plugin/dashify/) or contact us through the [Dashify Help Desk](https://forms.gle/pRezSbdUcZmvZdX27), and we'll gladly add compatibility for it. … … 126 127 == Changelog == 127 128 128 ### 1.3.10 (2025-01-04) 129 ### 1.3.11 (2025-02-18) 130 131 #### Improvements 132 - Added compatibility for Admin Menu Editor by Janis Elsts: custom logo option and menu headings. 133 - Added compatibility for Ultimate Dashboard by David Vongries: custom logo option and admin menu editor module. 134 135 #### Bug fixes 136 - Fixed Admin Menu Editor compatibility not working for Admin Menu Editor Pro. 137 - Fixed other plugins potentially changing Dashify’s admin menu background color which made the text unreadable. 138 - Fixed a random “a” appearing in the order list when Admin Columns Pro by Codepress is enabled. 139 - Fixed the Settings menu item not being highlighted after clicking on it. 140 141 ### 1.3.10 (2025-01-08) 129 142 130 143 #### Improvements
Note: See TracChangeset
for help on using the changeset viewer.