Submit
Path:
~
/
home
/
getwphos
/
www
/
preferredexotics
/
wp-content
/
plugins
/
seo-by-rank-math
/
includes
/
admin
/
File Content:
class-admin-header.php
<?php /** * Header for the Rank Math pages * * @since 1.0.44 * @package RankMath * @subpackage RankMath\Admin * @author Rank Math <support@rankmath.com> */ namespace RankMath\Admin; use RankMath\Helper; use RankMath\KB; use RankMath\Helpers\Param; defined( 'ABSPATH' ) || exit; /** * Admin Header class. * * @codeCoverageIgnore */ class Admin_Header { /** * Hold current screen ID. * * @var Current screen ID. */ private $screen_id = ''; /** * Display Header. * * @param bool $show_breadcrumbs Determines whether to show breadcrumbs or not. */ public function display( $show_breadcrumbs ) { $logo_url = '<a href="' . esc_url( Helper::get_admin_url() ) . '"><i class="rm-icon rm-icon-rank-math"></i></a>'; $this->screen_id = $this->get_current_screen(); ?> <div class="rank-math-header"> <div class="rank-math-logo"> <?php echo $logo_url; // phpcs:ignore ?> </div> <h1 class="rank-math-logo-text"> Rank Math SEO <?php do_action( 'rank_math/pro_badge' ); ?> </h1> <?php $this->get_search_options(); ?> <?php $this->get_mode_selector(); ?> <?php do_action( 'rank_math/before_help_link' ); ?> <a href="<?php echo esc_url( $this->get_help_link() ); ?>" title="<?php esc_attr_e( 'Rank Math Knowledge Base', 'rank-math' ); ?>" target="_blank" class="button rank-math-help"><i class="dashicons dashicons-editor-help"></i></a> </div> <?php // Breadcrumbs. if ( $show_breadcrumbs ) { rank_math()->admin->display_admin_breadcrumbs(); } } /** * Get Search Options. */ private function get_search_options() { if ( ! in_array( $this->screen_id, [ 'rank-math_page_rank-math-options-general', 'rank-math_page_rank-math-options-titles', 'rank-math_page_rank-math-options-sitemap', ], true ) ) { return; } ?> <div class="rank-math-search-options"> <div class="components-input-control"> <div class="components-input-control__container"> <!-- <i class="rm-icon rm-icon-search"></i> --> <input type="search" class="components-input-control__input" value="" placeholder="<?php esc_attr_e( 'Search Options', 'rank-math' ); ?>" style="width: 100%;"> <!-- <em class="clear-search dashicons dashicons-no-alt"></em> --> </div> </div> </div> <?php } /** * Get Mode Selector. */ private function get_mode_selector() { if ( ! in_array( $this->screen_id, [ 'toplevel_page_rank-math', 'rank-math_page_rank-math-status', ], true ) ) { return; } $is_advanced_mode = Helper::is_advanced_mode(); ?> <div class="rank-math-mode-selector"> <a href="#" class="<?php echo ! $is_advanced_mode ? 'active' : ''; ?>" data-mode="easy"><?php esc_attr_e( 'Easy Mode', 'rank-math' ); ?></a> <a href="#" class="<?php echo $is_advanced_mode ? 'active' : ''; ?>" data-mode="advanced"><?php esc_attr_e( 'Advanced Mode', 'rank-math' ); ?></a> </div> <?php } /** * Get Current Screen ID. */ private function get_help_link() { $links = [ 'import-export-settings' => 'import_export' === Param::get( 'view' ), 'version-control' => 'version_control' === Param::get( 'view' ) || 'rank-math-status' === Param::get( 'page' ), 'general-settings' => 'rank-math-options-general' === Param::get( 'page' ), 'titles-meta' => 'rank-math-options-titles' === Param::get( 'page' ), 'sitemap-general' => 'rank-math-options-sitemap' === Param::get( 'page' ), 'role-manager' => 'rank-math-role-manager' === Param::get( 'page' ), 'seo-analysis' => 'rank-math-seo-analysis' === Param::get( 'page' ), 'content-ai-restore-credits' => 'rank-math-content-ai-page' === Param::get( 'page' ), ]; $link = KB::get( 'knowledgebase', 'RM Header KB Icon' ); foreach ( $links as $key => $value ) { if ( $value ) { $link = KB::get( $key, 'Admin Bar ' . ucwords( str_replace( '-', ' ', $key ) ) ); break; } } return $link; } /** * Get Current Screen ID. */ private function get_current_screen() { $screen = get_current_screen(); if ( empty( $screen ) ) { return ''; } return $screen->id; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
database
---
0755
importers
---
0755
metabox
---
0755
notifications
---
0755
views
---
0755
watcher
---
0755
wizard
---
0755
class-admin-bar-menu.php
13021 bytes
0644
class-admin-breadcrumbs.php
1200 bytes
0644
class-admin-dashboard-nav.php
2916 bytes
0644
class-admin-header.php
4236 bytes
0644
class-admin-helper.php
13098 bytes
0644
class-admin-init.php
2186 bytes
0644
class-admin-menu.php
9633 bytes
0644
class-admin.php
18631 bytes
0644
class-api.php
6688 bytes
0644
class-ask-review.php
7267 bytes
0644
class-assets.php
10740 bytes
0644
class-bulk-actions.php
6028 bytes
0644
class-cmb2-fields.php
12881 bytes
0644
class-cmb2-options.php
12934 bytes
0644
class-dashboard-widget.php
6368 bytes
0644
class-import-export.php
2707 bytes
0644
class-list-table.php
1577 bytes
0644
class-lock-modified-date.php
3233 bytes
0644
class-notices.php
7337 bytes
0644
class-option-center.php
25217 bytes
0644
class-options.php
7169 bytes
0644
class-page.php
7364 bytes
0644
class-post-columns.php
13644 bytes
0644
class-post-filters.php
8988 bytes
0644
class-pro-notice.php
9110 bytes
0644
class-register-options-page.php
643 bytes
0644
class-registration.php
8040 bytes
0644
class-sanitize-settings.php
9652 bytes
0644
class-setup-wizard.php
4912 bytes
0644
index.php
28 bytes
0644
N4ST4R_ID | Naxtarrr