| @@ -24,18 +24,26 @@ | ||
| 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 width="64" height="64" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> | |
| 31 | + <path id="1728127909379-8007129Oval-Copy" fill="#2b7fff" fill-rule="evenodd" stroke="none" d="M 496 101 C 496 128.614227 473.614227 151 446 151 C 418.385773 151 396 128.614227 396 101 C 396 73.385773 418.385773 51 446 51 C 473.614227 51 496 73.385773 496 101 Z"/> | |
| 32 | + <g id="window-code"> | |
| 33 | + <path id="Path" fill="#212121" stroke="none" d="M 245.714279 232.714294 L 74.285713 61.285736 C 60.571426 47.571411 40 47.571411 26.285713 61.285736 C 12.571427 75 12.571427 95.571442 26.285713 109.285706 L 173.714279 256.714294 L 26.285713 404.142853 C 12.571427 417.857147 12.571427 438.428589 26.285713 452.142853 C 33.142857 459 40 462.428558 50.285713 462.428558 C 60.571426 462.428558 67.428574 459 74.285713 452.142853 L 245.714279 280.714294 C 259.428589 267 259.428589 246.428558 245.714279 232.714294 Z"/> | |
| 34 | + <path id="Rounded-Rectangle" fill="#212121" fill-rule="evenodd" stroke="none" d="M 256 431 C 256 448.673096 270.326874 463 288 463 L 464 463 C 481.673096 463 496 448.673096 496 431 L 496 429 C 496 411.326904 481.673096 397 464 397 L 288 397 C 270.326874 397 256 411.326904 256 429 Z"/> | |
| 35 | + </g> | |
| 36 | + </svg> | |
| 37 | + </div> | |
| 38 | + <h1 class="wowp-header__title"> | |
| 39 | + <?php echo esc_html( WPCoder::info( 'name' ) ); ?> | |
| 40 | + <sup class="wowp-header__title-version"><?php echo esc_html( WPCoder::info( 'version' ) ); ?></sup> | |
| 41 | + </h1> | |
| 42 | + <div class="wowp-header__links"> | |
| 36 | 43 | <?php do_action( WPCoder::PREFIX . '_admin_header_links' ); ?> |
| 37 | 44 | </div> |
| 45 | + </div> | |
| 38 | 46 | |
| 39 | 47 | |
| 40 | 48 | <?php |
| 41 | 49 | } |
| @@ -51,9 +59,9 @@ | ||
| 51 | 59 | |
| 52 | 60 | public static function menu(): void { |
| 53 | 61 | |
| 54 | 62 | $pages = DashboardHelper::get_files( 'pages' ); |
| 55 | - unset($pages["3"], $pages["4"]); | |
| 63 | + unset( $pages["3"], $pages["4"] ); | |
| 56 | 64 | |
| 57 | 65 | $current_page = self::get_current_page(); |
| 58 | 66 | |
| 59 | 67 | $action = ( isset( $_REQUEST["action"] ) ) ? sanitize_text_field( $_REQUEST["action"] ) : ''; |
| @@ -64,9 +72,9 @@ | ||
| 64 | 72 | $id = ''; |
| 65 | 73 | |
| 66 | 74 | if ( $action === 'update' && $page['file'] === 'settings' ) { |
| 67 | 75 | $id = ( isset( $_REQUEST["id"] ) ) ? absint( $_REQUEST["id"] ) : ''; |
| 68 | - $page['name'] = __( 'Update', 'wpcoder' ) . ' #' . $id; | |
| 76 | + $page['name'] = __( 'Update', 'wp-coder' ) . ' #' . $id; | |
| 69 | 77 | } elseif ( $page['file'] === 'settings' && ( $action !== 'new' && $action !== 'duplicate' ) ) { |
| 70 | 78 | continue; |
| 71 | 79 | } |
| 72 | 80 | |