PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.2
WP Coder – Insert & Manage Code Snippets v4.2
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | classes/Dashboard/DashboardInitializer.php +17 -10 3.14.2 View file →
@@ -24,18 +24,25 @@
24 24 'action' => 'new'
25 25 ], admin_url( 'admin.php' ) );
26 26 ?>
27 27
28 - <div class="wowp-header-border"></div>
29 - <div class="wowp-header">
30 - <div class="wowp-logo">
31 - <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 64 64"><title>64px_code</title><rect data-element="frame" x="0" y="0" width="64" height="64" rx="13" ry="13" stroke="none" fill="#007ea1"></rect><g transform="translate(12.8 12.8) scale(0.6)" fill="#ffffff"><path d="M19.562 18.75a2 2 0 0 0-2.811-.312l-15.001 12a2 2 0 0 0 0 3.124l15 12a1.997 1.997 0 0 0 2.811-.312 2 2 0 0 0-.312-2.811L6.201 32.001l13.048-10.438a2 2 0 0 0 .312-2.811z" fill="#ffffff"></path><path d="M47.25 18.438a2 2 0 1 0-2.499 3.123l13.048 10.438-13.048 10.438a2 2 0 0 0 2.499 3.123l15-12a2 2 0 0 0 0-3.124l-15-12z" fill="#FF6B6B"></path><path d="M39.539 5.074a2 2 0 0 0-2.465 1.387l-14 50a2 2 0 0 0 3.852 1.079l14-50.001a2 2 0 0 0-1.387-2.465z" fill="#FF6B6B"></path></g></svg>
32 - </div>
33 - <h1><?php echo esc_html( WPCoder::info('name') ); ?> <sup
34 - class="wowp-version"><?php echo esc_html( WPCoder::info('version') ); ?></sup></h1>
35 -
28 + <div class="wowp-header">
29 + <div class="wowp-header__logo">
30 + <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
31 + <g fill="#212121">
32 + <path d="M19.562,18.75c-.69-.862-1.948-1.003-2.811-.312L1.75,30.438c-.474,.379-.75,.954-.75,1.562s.276,1.182,.75,1.562l15,12c.369,.295,.81,.438,1.248,.438,.587,0,1.168-.257,1.563-.75,.69-.863,.55-2.121-.312-2.811l-13.048-10.438,13.048-10.438c.862-.69,1.002-1.948,.312-2.811Z" fill="#fa2222"></path>
33 + <path d="M47.25,18.438c-.862-.691-2.121-.55-2.811,.312-.69,.863-.55,2.121,.312,2.811l13.048,10.438-13.048,10.438c-.862,.69-1.002,1.948-.312,2.811,.395,.494,.976,.75,1.563,.75,.438,0,.879-.143,1.248-.438l15-12c.474-.379,.75-.954,.75-1.562s-.276-1.182-.75-1.562l-15-12Z" fill="#5522fa"></path>
34 + <path d="M39.539,5.074c-1.063-.298-2.167,.324-2.465,1.387l-14,50c-.298,1.063,.323,2.167,1.387,2.465,.18,.051,.362,.075,.54,.075,.875,0,1.678-.578,1.925-1.461L40.926,7.539c.298-1.063-.323-2.167-1.387-2.465Z" fill="#5522fa"></path></g>
35 + </svg>
36 + </div>
37 + <h1 class="wowp-header__title">
38 + <?php echo esc_html( WPCoder::info( 'name' ) ); ?>
39 + <sup class="wowp-header__title-version"><?php echo esc_html( WPCoder::info( 'version' ) ); ?></sup>
40 + </h1>
41 + <div class="wowp-header__links">
36 42 <?php do_action( WPCoder::PREFIX . '_admin_header_links' ); ?>
37 43 </div>
44 + </div>
38 45
39 46
40 47 <?php
41 48 }
@@ -51,9 +58,9 @@
51 58
52 59 public static function menu(): void {
53 60
54 61 $pages = DashboardHelper::get_files( 'pages' );
55 - unset($pages["3"], $pages["4"]);
62 + unset( $pages["3"], $pages["4"] );
56 63
57 64 $current_page = self::get_current_page();
58 65
59 66 $action = ( isset( $_REQUEST["action"] ) ) ? sanitize_text_field( $_REQUEST["action"] ) : '';
@@ -64,9 +71,9 @@
64 71 $id = '';
65 72
66 73 if ( $action === 'update' && $page['file'] === 'settings' ) {
67 74 $id = ( isset( $_REQUEST["id"] ) ) ? absint( $_REQUEST["id"] ) : '';
68 - $page['name'] = __( 'Update', 'wpcoder' ) . ' #' . $id;
75 + $page['name'] = __( 'Update', 'wp-coder' ) . ' #' . $id;
69 76 } elseif ( $page['file'] === 'settings' && ( $action !== 'new' && $action !== 'duplicate' ) ) {
70 77 continue;
71 78 }
72 79