Server IP : 192.64.112.168 / Your IP : 18.116.89.70 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/themes/woodmart/inc/admin/dashboard/templates/ |
Upload File : |
<?php global $menu; global $submenu; $logo_url = WOODMART_ASSETS_IMAGES . '/wood-logo-dark.svg'; if ( woodmart_get_opt( 'white_label' ) ) { $image_data = woodmart_get_opt( 'white_label_dashboard_logo' ); if ( ! empty( $image_data['url'] ) ) { $logo_url = wp_get_attachment_image_url( $image_data['id'], 'full' ); } } ?> <div class="xts-header xts-theme-style"> <div class="xts-row"> <div class="xts-col-auto xts-logo-wrap"> <?php if ( current_user_can( apply_filters( 'woodmart_dashboard_theme_links_access', 'administrator' ) ) ) : ?> <a href="<?php echo esc_url( admin_url( 'admin.php?page=xts_dashboard' ) ); ?>"></a> <?php endif; ?> <img src="<?php echo esc_url( $logo_url ); ?>" class="xts-logo" alt="<?php esc_html_e( 'Logo', 'woodmart' ); ?>"> <div class="xts-version"> <?php echo esc_html( 'v.' . woodmart_get_theme_info( 'Version' ) ); ?> </div> </div> <div class="xts-col"> <?php new XTS\Inc\Admin\Dashboard\Menu( [ 'items' => [ [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_theme_settings' ), ], 'type' => 'page', 'slug' => 'xts_theme_settings', 'icon' => 'theme-settings', 'text' => esc_html__( 'Theme settings', 'woodmart' ), 'condition' => current_user_can( apply_filters( 'woodmart_capability_menu_page', 'manage_options', 'xts_theme_settings' ) ), 'child_menu' => [ 'items' => [ [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_theme_settings_presets' ), ], 'type' => 'page', 'slug' => 'xts_theme_settings_presets', 'icon' => 'cog', 'text' => esc_html__( 'Presets', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_theme_settings_backup' ), ], 'type' => 'page', 'slug' => 'xts_theme_settings_backup', 'icon' => 'round-right', 'text' => esc_html__( 'Backup', 'woodmart' ), ], ], ], ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_prebuilt_websites' ), ], 'type' => 'page', 'slug' => 'xts_prebuilt_websites', 'icon' => 'dummy-content', 'condition' => woodmart_get_opt( 'dummy_import', '1' ) && current_user_can( apply_filters( 'woodmart_capability_menu_page', 'manage_options', 'xts_prebuilt_websites' ) ), 'text' => esc_html__( 'Prebuilt websites', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_license' ), ], 'type' => 'page', 'slug' => 'xts_license', 'icon' => 'key', 'condition' => woodmart_get_opt( 'white_label_theme_license_tab', '1' ) && current_user_can( apply_filters( 'woodmart_capability_menu_page', 'manage_options', 'xts_license' ) ), 'text' => esc_html__( 'Theme license', 'woodmart' ), 'class' => woodmart_is_license_activated() ? '' : 'xts-license-not-activated', ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_plugins' ), ], 'type' => 'page', 'slug' => 'xts_plugins', 'icon' => 'tools', 'text' => esc_html__( 'Tools', 'woodmart' ), 'condition' => current_user_can( apply_filters( 'woodmart_capability_menu_page', 'manage_options', 'xts_plugins' ) ), 'child_menu' => [ 'items' => [ [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_plugins' ), ], 'type' => 'page', 'slug' => 'xts_plugins', 'icon' => 'puzzle', 'text' => esc_html__( 'Plugins', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_patcher' ), ], 'type' => 'page', 'slug' => 'xts_patcher', 'icon' => 'cog', 'text' => esc_html__( 'Patcher', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_status' ), ], 'type' => 'page', 'slug' => 'xts_status', 'icon' => 'status', 'text' => esc_html__( 'Status', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_changelog' ), ], 'type' => 'page', 'slug' => 'xts_changelog', 'icon' => 'file-text', 'condition' => woodmart_get_opt( 'white_label_changelog_tab', '1' ), 'text' => esc_html__( 'Changelog', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_wpb_css_generator' ), ], 'type' => 'page', 'slug' => 'xts_wpb_css_generator', 'icon' => 'code', 'condition' => 'wpb' === woodmart_get_current_page_builder(), 'text' => esc_html__( 'WPB CSS generator', 'woodmart' ), ], ], ], ], ], ] ); ?> <?php new XTS\Inc\Admin\Dashboard\Menu( [ 'items' => [ [ 'link' => [ 'url' => admin_url( 'admin.php?page=xts_header_builder' ), ], 'type' => 'page', 'slug' => 'xts_header_builder', 'icon' => 'header-builder', 'text' => esc_html__( 'Header builder', 'woodmart' ), 'condition' => current_user_can( apply_filters( 'woodmart_capability_menu_page', 'manage_options', 'xts_header_builder' ) ), ], [ 'link' => [ 'url' => admin_url( 'edit.php?post_type=woodmart_layout' ), ], 'type' => 'post_type', 'slug' => 'woodmart_layout', 'icon' => 'layouts', 'text' => esc_html__( 'Layouts', 'woodmart' ), 'condition' => in_array( 'edit.php?post_type=woodmart_layout', array_column( $menu, 2 ) ), ], [ 'link' => [ 'url' => admin_url( 'edit-tags.php?taxonomy=woodmart_slider&post_type=woodmart_slide' ), ], 'type' => 'post_type_taxonomy', 'slug' => 'woodmart_slide', 'icon' => 'slides', 'text' => esc_html__( 'Sliders', 'woodmart' ), 'condition' => woodmart_get_opt( 'woodmart_slider', '1' ) && in_array( 'edit.php?post_type=woodmart_slide', array_column( $menu, 2 ) ), 'child_menu' => [ 'items' => [ [ 'link' => [ 'url' => admin_url( 'edit.php?post_type=woodmart_slide' ), ], 'type' => 'post_type', 'slug' => 'woodmart_slide', 'condition' => woodmart_get_opt( 'woodmart_slider', '1' ) && isset( $submenu['edit.php?post_type=woodmart_slide'] ), 'text' => esc_html__( 'All slides', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'post-new.php?post_type=woodmart_slide' ), ], 'type' => 'post_type_new', 'slug' => 'woodmart_slide', 'condition' => woodmart_get_opt( 'woodmart_slider', '1' ) && isset( $submenu['edit.php?post_type=woodmart_slide'] ), 'text' => esc_html__( 'Add new slide', 'woodmart' ), ], ], ], ], [ 'link' => [ 'url' => admin_url( 'edit.php?post_type=cms_block' ), ], 'type' => 'post_type', 'slug' => 'cms_block', 'icon' => 'html-block', 'condition' => in_array( 'edit.php?post_type=cms_block', array_column( $menu, 2 ) ), 'text' => esc_html__( 'HTML Blocks', 'woodmart' ), 'child_menu' => [ 'items' => [ [ 'link' => [ 'url' => admin_url( 'edit-tags.php?taxonomy=cms_block_cat&post_type=cms_block' ), ], 'type' => 'post_type_taxonomy', 'slug' => 'cms_block', 'condition' => isset( $submenu['edit.php?post_type=cms_block'] ), 'text' => esc_html__( 'Categories', 'woodmart' ), ], [ 'link' => [ 'url' => admin_url( 'post-new.php?post_type=cms_block' ), ], 'type' => 'post_type_new', 'slug' => 'cms_block', 'condition' => isset( $submenu['edit.php?post_type=cms_block'] ), 'text' => esc_html__( 'Add new', 'woodmart' ), ], ], ], ], [ 'link' => [ 'url' => admin_url( 'edit.php?post_type=woodmart_sidebar' ), ], 'type' => 'post_type', 'slug' => 'woodmart_sidebar', 'icon' => 'sidebars', 'condition' => in_array( 'edit.php?post_type=woodmart_sidebar', array_column( $menu, 2 ) ), 'text' => esc_html__( 'Sidebars', 'woodmart' ), 'child_menu' => [ 'items' => [ [ 'link' => [ 'url' => admin_url( 'post-new.php?post_type=woodmart_sidebar' ), ], 'type' => 'post_type_new', 'slug' => 'woodmart_sidebar', 'condition' => isset( $submenu['edit.php?post_type=woodmart_sidebar'] ), 'text' => esc_html__( 'Add new', 'woodmart' ), ], ], ], ], ], ] ); ?> </div> </div> </div>