| @@ -1,28 +1,29 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - | |
| 4 | 3 | use WPCoder\Dashboard\DashboardInitializer; |
| 5 | 4 | use WPCoder\Snippets\SnippetManager; |
| 6 | 5 | |
| 7 | 6 | defined( 'ABSPATH' ) || exit; |
| 8 | 7 | |
| 9 | -if ( ! current_user_can( 'unfiltered_html' ) ) { | |
| 10 | - wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpcoder' ) ); | |
| 8 | +if ( ! \WPCoder\WPCoder::user_can_manage() ) { | |
| 9 | + wp_die( esc_attr__( 'You do not have sufficient permissions to access this page.', 'wp-coder' ) ); | |
| 11 | 10 | } |
| 12 | 11 | |
| 13 | 12 | |
| 14 | 13 | ?> |
| 15 | 14 | |
| 16 | -<div class="wowp-header-wrapper"> | |
| 17 | - <?php | |
| 18 | - DashboardInitializer::header(); ?> | |
| 15 | + <div class="wowp"> | |
| 16 | + <?php DashboardInitializer::header(); ?> | |
| 19 | 17 | |
| 20 | - <div class="wowp-header-title"> | |
| 21 | - <h2><?php | |
| 22 | - esc_html_e( 'Snippets Manager', 'wpcoder' ); ?></h2> | |
| 18 | + <div class="wowp-page-header"> | |
| 19 | + <h2 class="wowp-page-header__title"> | |
| 20 | + <?php esc_html_e( 'Snippets Manager', 'wp-coder' ); ?> | |
| 21 | + </h2> | |
| 22 | + </div> | |
| 23 | + | |
| 24 | + <?php SnippetManager::init(); ?> | |
| 25 | + | |
| 23 | 26 | </div> |
| 24 | 27 | |
| 25 | -</div> | |
| 26 | - | |
| 27 | -<?php SnippetManager::init(); | |
| 28 | +<?php | |
| 28 | 29 | |